salt.states.stormpath_account

Support for Stormpath.

2015.8.0 新版功能.

salt.states.stormpath_account.absent(name, directory_id=None)

Ensure that an account associated with the given email address is absent. Will search all directories for the account, unless a directory_id is specified.

name
The email address of the account to delete.
directory_id
Optional. The ID of the directory that the account is expected to belong to. If not specified, then a list of directories will be retrieved, and each will be scanned for the account. Specifying a directory_id will therefore cut down on the number of requests to Stormpath, and increase performance of this state.
salt.states.stormpath_account.present(name, **kwargs)

Ensure that an account is present and properly configured

name
The email address associated with the Stormpath account
directory_id
The ID of a directory which the account belongs to. Required.
password
Required when creating a new account. If specified, it is advisable to reference the password in another database using an sdb:// URL. Will NOT update the password if an account already exists.
givenName
Required when creating a new account.
surname
Required when creating a new account.
username
Optional. Must be unique across the owning directory. If not specified, the username will default to the email field.
middleName
Optional.
status
enabled accounts are able to login to their assigned applications, disabled accounts may not login to applications, unverified accounts are disabled and have not verified their email address.
customData.
Optional. Must be specified as a dict.