Use this API to add a tenant.

Resource Information

Method

URL

Required authentication

POST

/V1/CMDB/Tenants

Yes

Parameters

Name

Description

Token*required
(header)

Place the token received from the API Log in to get an authentication token.

Request*required
(body)

The body contains the following parameters:

tenantName*(string): the name of the tenant to be created.

description (string): the description of the tenant.

maximumNodes*(integer): the maximum licensed node count that the tenant owns. The number must be greater than 0.

maximumPorts (integer): the maximum number of SDN ports that the tenant owns.

maxinumCPU (integer): the maximum number of SDN CPU processors that the tenant owns.

Example:

{
  "tenantName""TenantName",
  "description""Description",
  "maximumNodes""5"
}

Response

Parameter

Type

Description

Example

tenantId

string

The ID of the tenant.

{
  "statusCode"790200,
  "statusDescription""string",
  "tenantId""3e75247a-309c-4231-96a5-823b6cb1e78d"
}

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.