All Products
Search
Document Center

Resource Management:EnableSharingWithResourceDirectory

Last Updated:Jun 10, 2026

Mengaktifkan berbagi sumber daya untuk direktori sumber daya.

Deskripsi operasi

You can share your resources with all members in your resource directory, all members in a specific folder in your resource directory, or a specific member in your resource directory as a resource owner only after you enable resource sharing for your resource directory.

You can call this API operation only by using the management account of your resource directory or a RAM user or RAM role to which the required permissions are granted within the management account.

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

Tidak ada parameter yang diperlukan.

关于公共请求参数的详情,请参见公共参数

Elemen respons

Element

Type

Description

Example

object

The returned result.

RequestId

string

The request ID.

2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA

Contoh

Respons sukses

JSONformat

{
  "RequestId": "2F23CFB6-A721-4E90-AC1E-0E30FA8B45DA"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

409 ActionNotPermitted The caller must be the master account for the Resource Directory.
409 AlreadyEnabled You have already enabled sharing with the Resource Directory.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.