Method | URI | Description |
---|---|---|
POST | /v2.0/tenants | Creates a tenant. |
Normal response codes: 201
Error response codes: identityFault (400, 500, …), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), serviceUnavailable (503), badMediaType (415)
This table shows the header parameters for the add tenant request:
Name | Type | Description |
---|---|---|
| String (Required) | A valid authentication token for an administrative user. |
Example 4.23. Add Tenant: XML request
<?xml version="1.0" encoding="UTF-8"?> <tenant xmlns="http://docs.openstack.org/identity/api/v2.0" enabled="true" name="ACME Corp"> <description>A description...</description> </tenant>
Example 4.24. Add Tenant: JSON request
{ "tenant": { "name": "ACME corp", "description": "A description ...", "enabled": true } }
Example 4.25. Add Tenant: XML response
<?xml version="1.0" encoding="UTF-8"?> <tenant xmlns="http://docs.openstack.org/identity/api/v2.0" enabled="true" id="1234" name="ACME Corp"> <description>A description...</description> </tenant>
Example 4.26. Add Tenant: JSON response
{ "tenant": { "id": "1234", "name": "ACME corp", "description": "A description ...", "enabled": true } }