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}/osis/api/v1/tenants
COPY
Request Body

Storage tenant to create in the platform

OsisTenant of type(s) application/json
Required
{
    "name": "ACME",
    "active": true,
    "tenant_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "cd_tenant_ids": [
        "8daca9a9-5b11-4f63-9c52-953a2ef77739"
    ]
}
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
{
    "name": "ACME",
    "active": true,
    "tenant_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
    "cd_tenant_ids": [
        "8daca9a9-5b11-4f63-9c52-953a2ef77739"
    ]
}
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
{
    "code": "E_BAD_REQUEST",
    "message": "invalid value for the property xyz."
}
string
code
Required

code

string
message
Optional

message