Queries information about a directory.
Operation description
Queries the details of a directory, such as the directory name, region, and creation time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:GetDirectory |
get |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
AA6A9E4B-8A61-59E1-AA87-F61CA18258A3 |
| Directory |
object |
The directory details. |
|
| DirectoryId |
string |
The ID of the directory. |
d-00fc2p61**** |
| CreateTime |
string |
The time when the directory was created, in UTC. Format: 2021-06-30T08:35:26Z |
|
| UpdateTime |
string |
The time when the directory was last modified, in UTC. Format: 2021-10-25T07:18:46Z |
|
| Region |
string |
The region ID of the directory. |
cn-shanghai |
| DirectoryName |
string |
The name of the directory. |
example |
Examples
Success response
JSON format
{
"RequestId": "AA6A9E4B-8A61-59E1-AA87-F61CA18258A3",
"Directory": {
"DirectoryId": "d-00fc2p61****",
"CreateTime": "2021-06-30T08:35:26Z",
"UpdateTime": "2021-10-25T07:18:46Z",
"Region": "cn-shanghai",
"DirectoryName": "example"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.