You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Overview

DescriptionUsed to add a tenant to Apache Stratos
URL/admin/tenant
HTTP MethodPOST
Request/Response Formatapplication/json

Sample request

Error rendering macro 'excerpt-include'

No link could be created for 'STRATOS:4.1.0 Sample Tenant Definition'.

For information on the parameter definitions, see Sample Tenant Definition.

Example

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

Sample response

{
  "stratosAdminResponse": {
    "message": "Successfully added new tenant with domain frank.com"
  }
} 
  • No labels