The following Cloud APIs are available:
Login
Description | Log in to WSO2 Cloud's tenant space as admin. |
URI | https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/user/authenticate/ajax/login.jag
|
URI Parameters | - action: login
userName: Admin's username password: Password of the admin
|
HTTP Methods | POST |
Example | curl -c cookies -k -v -X POST https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/user/authenticate/ajax/login.jag -d 'action=login&userName=<user name> &password=adminpassword'
|
addUserToTenant
Description | Create a new user in the Cloud |
URI | https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/tenant/users/add/ajax/add.jag
|
URI Parameters | - action: addUserToTenant
- userEmail: Email address of the user
- password: User's password should meet at least three of the below criteria:
- Uppercase letters
- Lowercase letters
- Numbers
- Special characters
- firstName: User's first name (alphanumeric characters only)
- lastName: User's last name (alphanumeric characters only)
- roles: User's roles. Can take one or more of the following roles in a comma-separated list: integrationclouduser, subscriber, publisher, admin, devicemgtuser, devicemgtadmin
|
HTTP Methods | POST |
Example | curl -k -v -X POSTÂ https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/tenant/users/add/ajax/add.jag -b cookies -H 'ContentÂType:application/xÂwwwÂformÂurlencoded' -H 'AcceptÂLanguage:enÂUS,en;q=0.5' -Âd 'action=addUserToTenant&userEmail=myemail@wso2.com&password=testPassword&firstName=testFirstName&lastName=testLastName&roles=subscriber'
|
deleteUserFromTenant
Description | Delete an existing user from your tenant |
URI | https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/tenant/users/add/ajax/add.jag
|
URI Parameters | - action: deleteUserFromTenant
- userName: Email address of the user
|
HTTP Methods | POST |
Example | curl -Âb cookies -Âk -v -X POSTÂ https://cloudmgt.cloud.wso2.com/cloudmgt/site/blocks/tenant/users/add/ajax/add.jag -ÂH 'ContentÂType:application/xÂwwwÂformÂurlencoded' -H 'AcceptÂLanguage:enÂUS,en;q=0.5'Â -d 'action=deleteUserFromTenant&userName=myemail@wso2.com'
|