All Products
Search
Document Center

Resource Management:EnableResourceDirectory

Last Updated:Jan 26, 2026

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

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

MAName

string

No

Nama akun yang baru dibuat.

Tentukan nama dalam format <Prefix>@rdadmin.aliyunid.com. Awalan dapat berisi huruf, angka, dan karakter khusus, tetapi tidak boleh berisi karakter khusus yang berurutan. Awalan harus dimulai dan diakhiri dengan huruf atau angka. Karakter khusus yang valid meliputi garis bawah (_), titik (.), dan tanda hubung (-). Panjang awalan harus antara 2 hingga 50 karakter.

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 <Kode negara>-<Nomor ponsel>.

Catatan

Nomor ponsel dalam format 86-<Nomor ponsel> di Daratan Tiongkok tidak didukung.

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: Akun saat ini digunakan untuk mengaktifkan direktori sumber daya.

  • NewManagementAccount: Akun yang baru dibuat digunakan untuk mengaktifkan direktori sumber daya. Jika Anda memilih mode ini, Anda harus mengonfigurasi parameter MAName, MASecureMobilePhone, dan VerificationCode.

CurrentAccount

DryRun

boolean

No

Menentukan apakah hanya menjalankan simulasi tanpa melakukan permintaan sebenarnya. Nilai yang valid:

  • true: hanya menjalankan simulasi.

  • false (default): menjalankan simulasi dan melakukan permintaan sebenarnya.

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.