Queries the details of directories.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| ecd:DescribeDirectories | get | *All Resources * |
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
| DirectoryType | string | No | The directory type. Valid value:
| RAM |
| DirectoryStatus | string | No | The directory status. This parameter is equivalent to | REGISTERED |
| MaxResults | integer | No | The number of entries to return on each page. Maximum value: 100. Default value: 10. | 10 |
| NextToken | string | No | The token that determines the start point of the next query. If this parameter is empty, all results are returned. | caeba0bbb2be03f84eb48b699f0a4883 |
| DirectoryId | array | No | Details of directory IDs. You can specify one or more directory IDs. | |
| string | No | The ID of the directory. | cn-hangzhou+dir-gx2x1dhsmu52rd**** | |
| Status | string | No | The directory status. Valid values:
| REGISTERED |
Response parameters
Examples
Sample success responses
JSONformat
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "F369A091-002F-49C8-AD55-02A776297C7B",
"Directories": [
{
"EnableInternetAccess": false,
"VpcId": "vpc-uf6tz5k67puge5jn8****",
"CreationTime": "2020-11-02T01:44Z",
"Status": "REGISTERING",
"DomainPassword": "testPassword",
"EnableAdminAccess": true,
"SubDomainName": "child.example.com",
"DomainUserName": "sAMAccountName",
"EnableCrossDesktopAccess": true,
"CustomSecurityGroupId": "sg-bp1ce64o4g9mdf5u****",
"DesktopVpcEndpoint": "http://ep-bp1s2vmbj55r5rzc****.epsrv-bp1pcfhpwvlpny01****.cn-hangzhou.privatelink.aliyuncs.com",
"SsoEnabled": false,
"DomainName": "example.com",
"DesktopAccessType": "Internet",
"MfaEnabled": false,
"DirectoryType": "RAM",
"DnsUserName": "testDnsUserName",
"TrustPassword": "82Tg****",
"OuName": "example.com/Domain Controllers",
"Name": "testDirectoryName",
"DirectoryId": "cn-hangzhou+dir-gx2x1dhsmu52rd****",
"ADConnectors": [
{
"ConnectorStatus": "RUNNING",
"VSwitchId": "vsw-bp19ocz3erfx15uon****",
"ADConnectorAddress": "172.17.**.**",
"TrustKey": "yfpoAD****",
"NetworkInterfaceId": "eni-bp1i4wx78lgosrj6****",
"Specification": 1
}
],
"Logs": [
{
"Step": "DescribeDirectories",
"Message": "code:success | message:Create Connector complete.",
"TimeStamp": "2021-01-22T06:45Z",
"Level": "INFO"
}
],
"VSwitchIds": [
"vsw-bp19ocz3erfx15uon****"
],
"FileSystemIds": [
"05b534****"
],
"SubDnsAddress": [
"172.24.XX.XX"
],
"DnsAddress": [
"172.24.XX.XX"
],
"NeedVerifyLoginRisk": false,
"AdHostname": "dc001",
"BackupDns": "192.168.2.100",
"BackupDCHostname": "dc002"
}
],
"AdHostname": "cnshsv21hmc****"
}Error codes
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|---|---|
| 2024-06-26 | The response structure of the API has changed | View Change Details |
| 2021-08-19 | The response structure of the API has changed | View Change Details |
| 2021-08-19 | The response structure of the API has changed | View Change Details |
