Update Directory Service (v2.0)
PUT/sdwan/v2.0/api/directoryservices/:directory_service_id
Update a directory service.
Request
Path Parameters
The ID of the directory service.
- 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[]
The error code.
The error message.
{
"_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"
}
]
}
}