Mengubah nama direktori.
Deskripsi operasi
After you change the name of a directory, the URL that is used to log on to the CloudSSO user portal is changed. You must notify the CloudSSO users of the correct URL.
This topic provides an example on how to change the name of a directory to new-example.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cloudsso:UpdateDirectory |
update |
*Directory
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DirectoryId |
string |
Yes |
ID direktori. |
d-00fc2p61**** |
| NewDirectoryName |
string |
No |
Nama baru direktori. Nama harus unik secara global. Nama dapat berisi huruf kecil, angka, dan tanda hubung (-). Nama tidak boleh diawali atau diakhiri dengan tanda hubung (-) dan tidak boleh berisi dua tanda hubung berturut-turut (-). Jika Anda ingin nama baru direktori dimulai dengan Nama harus terdiri dari 2 hingga 64 karakter. |
new-example |
Elemen respons
|
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. |
2021-06-30T08:35:26Z |
| UpdateTime |
string |
The time when the directory was modified. |
2021-10-25T09:13:24Z |
| Region |
string |
The region ID of the directory. |
cn-shanghai |
| DirectoryName |
string |
The name of the directory. |
new-example |
Contoh
Respons sukses
JSONformat
{
"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"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.