Queries directories.
Operation description
Queries the directories within your Alibaba Cloud account. Each Alibaba Cloud account can have only one directory.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:ListDirectories |
list |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Directories |
array<object> |
The directories. |
|
|
object |
The directory. |
||
| DirectoryId |
string |
The ID of the directory. |
d-00fc2p61**** |
| CreateTime |
string |
The time when the directory was created, in the |
2021-06-30T08:35:26Z |
| UpdateTime |
string |
The time when the directory was last modified, in the |
2021-10-25T09:13:24Z |
| Region |
string |
The region ID of the directory. |
cn-shanghai |
| DirectoryName |
string |
The name of the directory. |
new-example |
| RequestId |
string |
The request ID. |
9A504392-F06D-5029-AB64-6654CB9F1DC1 |
| TotalCounts |
integer |
The number of directories. |
1 |
Examples
Success response
JSON format
{
"Directories": [
{
"DirectoryId": "d-00fc2p61****",
"CreateTime": "2021-06-30T08:35:26Z",
"UpdateTime": "2021-10-25T09:13:24Z",
"Region": "cn-shanghai",
"DirectoryName": "new-example"
}
],
"RequestId": "9A504392-F06D-5029-AB64-6654CB9F1DC1",
"TotalCounts": 1
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.