Use this API to add a domain.

Resource Information

Method

URL

Required authentication

POST

/V1/CMDB/Domains

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:

tenantId*(string): the ID of the tenant that the created domain belongs to.

domainName*(string): the name of the created domain.

description (string): the description of the domain.

maximumNodes*(integer): the maximum licensed node count that the domain 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:

{
  "tenantId""4e75247a-309c-4231-96a5-823b6cb1e78d",
  "domainName""domainName",
  "description""Description",
  "maximumNodes""5"
}

Response

Parameter

Type

Description

Example

domainId

string

The ID of the domain.

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

statusCode

integer

The returned status code of executing the API.

statusDescription

string

The explanation of the status code.