Description | Used to add a tenant to Apache Stratos |
URL | /admin/tenant |
HTTP Method | POST |
Request/Response Format | application/json |
For information on the parameter definitions, see Sample Tenant Definition.
Use case: Add a tenant with the name: Frank Myers, admin password: admin123, tenant domain: frank.com, email: foo@bar.com, and username: admin. The example request is as follows:
curl -X POST -H “Content-Type: application/json” -d @request -k -v -u admin:admin https://<SM_HOST>:9443/stratos/admin/tenant
{ "stratosAdminResponse": { "message": "Successfully added new tenant with domain frank.com" } }