Modifies the name of a directory.
Operation description
Changing the directory name also changes the logon URL of the CloudSSO user portal. Make sure to notify all CloudSSO users of the new URL after the change.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:UpdateDirectory |
update |
*Directory
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
The ID of the directory. |
d-00fc2p61**** |
| NewDirectoryName |
string |
No |
The new name of the directory. The name must be globally unique. The name can contain lowercase letters, digits, and hyphens (-). The name cannot start or end with a hyphen (-) and cannot contain two consecutive hyphens (-). If the new name starts with The name must be 2 to 64 characters in length. |
new-example |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
B182C041-8C64-5F2F-A07B-FC67FAF89CF9 |
| Directory |
object |
The information about the directory. |
|
| DirectoryId |
string |
The ID of the directory. |
d-00fc2p61**** |
| CreateTime |
string |
The time when the directory was created. The time is displayed in UTC. The time follows the ISO 8601 standard in the |
2021-06-30T08:35:26Z |
| UpdateTime |
string |
The time when the directory was last modified. The time is displayed in UTC. The time follows the ISO 8601 standard 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 |
Examples
Success response
JSON format
{
"RequestId": "B182C041-8C64-5F2F-A07B-FC67FAF89CF9",
"Directory": {
"DirectoryId": "d-00fc2p61****",
"CreateTime": "2021-06-30T08:35:26Z",
"UpdateTime": "2021-10-25T09:13:24Z",
"Region": "cn-shanghai",
"DirectoryName": "new-example"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.