Create Tenant

Create Tenant

Operation ID: createTenant
Create a storage tenant in the platform. The platform decides whether to adopt the cd_tenand_id in request body as tenant_id. This means the platform could generate new tenant_id by itself for the new storage tenant.

Request
URI
POST
https://{api_host}/api/v1/tenants
COPY
Request Body

Storage tenant to create in the platform

OsisTenant of type(s) application/json
Required
"OsisTenant Object"
string
name
Required

tenant name

boolean
active
Required

tenant status

string
tenant_id
Required

tenant id

array of string
cd_tenant_ids
Optional

Cloud Director tenant ids

Authentication
This operation uses the following authentication methods.
Responses
201

A storage tenant is created

Returns OsisTenant of type(s) application/json
"OsisTenant Object"
string
name
Required

tenant name

boolean
active
Required

tenant status

string
tenant_id
Required

tenant id

array of string
cd_tenant_ids
Optional

Cloud Director tenant ids

Response Headers

string
Location

the newly created storage tenant URI


400

Bad Request

Returns OsisError of type(s) application/json
"OsisError Object"
string
code
Required

code

string
message
Optional

message


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/tenants