Mengaktifkan ResourceDirectory.
Deskripsi operasi
Anda dapat menggunakan akun saat ini atau akun yang baru dibuat untuk mengaktifkan ResourceDirectory. Untuk informasi selengkapnya, lihat Aktifkan ResourceDirectory.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| MAName |
string |
No |
Nama akun yang baru dibuat. Tentukan nama dalam format |
user01@rdadmin.aliyunid.com |
| MASecureMobilePhone |
string |
No |
Nomor ponsel yang ditautkan ke akun yang baru dibuat. Jika Anda mengosongkan parameter ini, nomor ponsel yang ditautkan ke akun saat ini akan digunakan. Nomor ponsel yang Anda tentukan harus sama dengan nomor ponsel yang Anda masukkan saat memanggil operasi SendVerificationCodeForEnableRD untuk mendapatkan kode verifikasi. Tentukan nomor ponsel dalam format Catatan
Nomor ponsel dalam format |
xx-13900001234 |
| VerificationCode |
string |
No |
Kode verifikasi. Anda dapat memanggil operasi SendVerificationCodeForEnableRD untuk mendapatkan kode verifikasi tersebut. |
123456 |
| EnableMode |
string |
Yes |
Mode pengaktifan direktori sumber daya. Nilai yang valid:
|
CurrentAccount |
| DryRun |
boolean |
No |
Menentukan apakah hanya menjalankan simulasi tanpa melakukan permintaan sebenarnya. Nilai yang valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil yang dikembalikan. |
||
| ResourceDirectory |
object |
Informasi tentang direktori sumber daya. |
|
| ResourceDirectoryId |
string |
ID direktori sumber daya. |
rd-54**** |
| MasterAccountId |
string |
ID akun manajemen. |
507408460615**** |
| MasterAccountName |
string |
Nama akun manajemen. |
alice@example.com |
| RootFolderId |
string |
ID Folder Root. |
r-G9**** |
| CreateTime |
string |
Waktu saat direktori sumber daya diaktifkan. |
2021-12-08T02:15:31.744Z |
| RequestId |
string |
ID permintaan. |
EC2FE94D-A4A2-51A1-A493-5C273A36C46A |
Contoh
Respons sukses
JSONformat
{
"ResourceDirectory": {
"ResourceDirectoryId": "rd-54****",
"MasterAccountId": "507408460615****",
"MasterAccountName": "alice@example.com",
"RootFolderId": "r-G9****",
"CreateTime": "2021-12-08T02:15:31.744Z"
},
"RequestId": "EC2FE94D-A4A2-51A1-A493-5C273A36C46A"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 409 | NotSupport.AccountInAnotherResourceDirectory | The specified account is an Alibaba Cloud account or already exists in another resource directory. | |
| 409 | Invalid.EnterpriseName | You must specify the enterprise name. | |
| 409 | EnterpriseRealNameVerificationError | The specified account does not pass enterprise real-name verification. We recommend you first complete enterprise real-name verification for the account. | |
| 409 | EntityAlreadyExists.ResourceDirectory | The resource directory for the account is already enabled. We recommend that you do not enable the resource directory again. | |
| 409 | InvalidParameter.ManagementAccountName.AlreadyUsed | The ManagementAccountName has been used. | |
| 409 | Invalid.VerificationCode | The verification code is invalid. | |
| 409 | InvalidParameter.ManagementAccountName | The management account name is in the wrong format. | |
| 409 | InvalidParameter.ManagementAccountSecurityInfo | The parameter management account secure mobile phone is invalid. | |
| 409 | MissingSecureMobilePhone | Secure mobile phone is missing. | |
| 409 | MissingSecurityInfo | Security info is missing. | |
| 409 | NotSupport.Account.Site | The caller is not a China site account, which is not supported. | |
| 409 | Invalid.AccountType | The specified profile type of account is invalid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.