Cisco Cisco Elastic Services Controller 2.2 Developer's Guide
Type
POST
/v0/tenants/{internal_tenant_id}
Create a tenant in ESC
Implementation Notes
Creates a tenant which will be managed by ESC and can be used for creating other resources under it.Example request:
After the tenant creation operation is done, ECS will send a callback to the client with the result. Example callback:
Parameters
Parameter
Value
Description
Parameter
body
Tenant
configuration
body
Data Type
Model
Model Schema
HTTP/1.1 201 OK
Content-Type: application/xml; charset=UTF-8
ESC_TRANSACTION_ID: d53f0047-2315-466c-b7e3-aa78e0a567e8
ESC-Status-Code: 200
ESC-Status-Message: Tenant successfully created
<tenant xmlns=
"urn:ietf:params:xml:ns:netconf:base:1.0"
>
<enabled>true</enabled>
<event_type>CREATE_TENANT</event_type>
<external_tenant_id>484c620285ea4f588227ff3396215980</external_tenant_id>
<internal_tenant_id>tentest</internal_tenant_id>
<name>example-tenant</name>
</tenant>
POST /v0/tenants/tentest HTTP/1.1
Content-Type: application/xml
Accept: application/xml
Callback: http://127.0.0.1:9010/
Body:
<tenant xmlns=
"urn:ietf:params:xml:ns:netconf:base:1.0"
>
<name>example-tenant</name>
</tenant>