Create Directory Service Details (2.0)
POST/v2.0/api/tenants/:tenant_id/directoryservices
Create directory service details of a tenant.
Request
Path Parameters
The tenant ID.
- application/json
Body
Details of Directory Service
The directory tenant ID.
The directory service enabled.
group_attributes DirectoryGroupAttribute
The directory group attributes.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
The email address values.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
The primary name.
The ID.
Region of the tenant.
A information field that can be added to identify the directory service. Maximum 10 unique tags of length 1024 each are allowed.
user_attributes DirectoryUserAttribute
The directory user attributes.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_1
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_2
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_3
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Primary Name
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The directory tenant ID.
The directory service enabled.
group_attributes DirectoryGroupAttribute
The directory group attributes.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
The email address values.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
The primary name.
The ID.
Region of the tenant.
A information field that can be added to identify the directory service. Maximum 10 unique tags of length 1024 each are allowed.
user_attributes DirectoryUserAttribute
The directory user attributes.
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_1
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_2
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Alternate Username_3
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Possible values: [SAM_ACCOUNT_NAME
, EMAIL
, COMMON_NAME
, DISTINGUISHED_NAME
, USER_PRINCIPAL_NAME
]
Primary Name
{
"directory_tenant_id": "string",
"enabled": true,
"group_attributes": {
"email": "SAM_ACCOUNT_NAME",
"primary_name": "SAM_ACCOUNT_NAME"
},
"id": "string",
"region": "string",
"tags": [
"string"
],
"user_attributes": {
"alternate_username_1": "SAM_ACCOUNT_NAME",
"alternate_username_2": "SAM_ACCOUNT_NAME",
"alternate_username_3": "SAM_ACCOUNT_NAME",
"email": "SAM_ACCOUNT_NAME",
"primary_name": "SAM_ACCOUNT_NAME"
}
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "DIRECTORY_SERVICE_PRIMARY_USER_ATTRIBUTE_REQUIRED"
},
{
"code": "DIRECTORY_SERVICE_USER_ATTRIBUTE_NOT_ALLOWED"
},
{
"code": "DIRECTORY_SERVICE_PRIMARY_GROUP_ATTRIBUTE_NOT_ALLOWED"
},
{
"code": "DIRECTORY_SERVICE_PRIMARY_USER_GROUP_ATTRIBUTE_REQUIRED"
}
]
}
}