All Products
Search
Document Center

Resource Management:CreateMultiAccountDeliveryChannel

Last Updated:Jun 10, 2026

Membuat saluran pengiriman multi-akun.

Deskripsi operasi

In Resource Center, you can create multi-account delivery channels by using the management account of your resource directory or the delegated administrator account of Resource Center to deliver resource configuration change events and scheduled resource snapshots within the members in your resource directory to Object Storage Service (OSS) or Simple Log Service (SLS). Then, other Alibaba Cloud services consume standardized resource information from OSS or Simple Log Service.

Scheduled resource snapshots support the following delivery scenarios:

  • Standard delivery: Leave the ResourceSnapshotDelivery.CustomExpression parameter empty.

  • Custom delivery: Set the ResourceSnapshotDelivery.CustomExpression parameter to an appropriate value.

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

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

resourcecenter:CreateMultiAccountDeliveryChannel

create

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

DeliveryChannelName

string

Yes

Nama saluran pengiriman.

test-multi-account-delivery

DeliveryChannelDescription

string

No

Deskripsi saluran pengiriman.

This is a description.

ResourceSnapshotDelivery

object

No

Konfigurasi untuk mengirimkan Snapshot Sumber daya terjadwal.

DeliveryTime

string

No

The delivery time.

09:00Z

TargetArn

string

No

The Alibaba Cloud Resource Name (ARN) of the delivery destination. Valid values:

  • If you set TargetType to OSS, you must set TargetArn to the ARN of an OSS bucket that has a prefix of resourcecenter-. Example: acs:oss:cn-hangzhou:191142248777****:resourcecenter-oss.

  • If you set TargetType to SLS, you must set TargetArn to the ARN of an SLS Logstore that has a prefix of resourcecenter-. Example: acs:log:cn-hangzhou: 191142248777****:project/delivery/logstore/resourcecenter-sls.

acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss

TargetType

string

No

The type of the delivery destination. Valid values:

  • OSS for standard delivery

  • OSS or SLS for custom delivery

Valid values:

  • SLS :

    SLS

  • OSS :

    OSS

OSS

CustomExpression

string

No

The custom expression.

select * from resources limit 100;

SlsProperties

object

No

The SLS configurations.

OversizedDataOssTargetArn

string

No

The ARN of the delivery destination for oversized data.

If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You must enter the ARN of an OSS bucket that has a prefix of resourcecenter-.

Catatan

This parameter takes effect only when you create a custom scheduled delivery task for resource snapshots. You do not need to specify this parameter when you create a standard scheduled delivery task for resource snapshots.

acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss

ResourceChangeDelivery

object

No

Konfigurasi untuk mengirimkan perubahan konfigurasi Sumber daya.

SlsProperties

object

No

The SLS configurations.

OversizedDataOssTargetArn

string

No

The ARN of the delivery destination for oversized data.

If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You must enter the ARN of an OSS bucket that has a prefix of resourcecenter-.

acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss

TargetArn

string

No

The ARN of the delivery destination. Valid values:

  • If you set TargetType to OSS, you must set TargetArn to the ARN of an OSS bucket that has a prefix of resourcecenter-.

  • If you set TargetType to SLS, you must set TargetArn to the ARN of an SLS Logstore that has a prefix of resourcecenter-.

acs:log:cn-hangzhou: 1911422487776***:project/delivery/logstore/resourcecenter-sls

TargetType

string

No

The type of the delivery destination.

Valid value: SLS.

Valid values:

  • SLS :

    SLS

SLS

DeliveryChannelFilter

object

Yes

Kondisi filter untuk saluran pengiriman.

AccountScopes

array

Yes

The account scopes for delivery.

string

Yes

The account scope. Valid values:

  • The ID of a resource directory. This value specifies that the resources of the management account and all members of the resource directory are delivered.

  • The ID of the Root folder. This value specifies that the resources of all members in the Root folder and its subfolders are delivered.

  • The ID of a folder. This value specifies that the resources of all members in the folder are delivered.

  • The ID of a member. This value specifies that the resources of the member are delivered.

For more information about how to obtain the ID of a resource directory, folder, member or the Root folder, see GetResourceDirectory, ListFoldersForParent, and ListAccounts.

rd-r4****

ResourceTypes

array

No

The resource types for delivery.

string

No

The resource type. For more information, see Alibaba Cloud services and resource types that are supported by Resource Center.

To deliver all resource types supported by Resource Center, set this parameter to ALL.

ACS::VPC::VPC

Elemen respons

Element

Type

Description

Example

object

The response parameters.

DeliveryChannelId

string

The delivery channel ID.

dc-6q79dm4o9***

RequestId

string

The request ID.

994BFEFE-4BB5-5A27-8917-4583DEEF2***

Contoh

Respons sukses

JSONformat

{
  "DeliveryChannelId": "dc-6q79dm4o9***",
  "RequestId": "994BFEFE-4BB5-5A27-8917-4583DEEF2***"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 NoPermission.ServiceLinkedRole The current user does not have permission to create servicelinkedrole. Please contact the Alibaba Cloud account or administrator to authorize custom policy: Service Name: rmc.resourcemanager.aliyuncs.com, Action: ram:CreateServiceLinkedRole.
400 InvalidParameter.ResourceChangeDelivery.TargetArn The resource configuration change delivery target arn is invalid.
403 ExceedLimit.DeliveryChannelQuota The number of delivery channels exceeds the limit. The number of delivery channels exceeds the limit.
403 NoPermission.AccountScope The operator is not permitted for this account scope. The operator is not permitted for this account scope.
404 MissingParameter.DeliveryName The specified parameter DeliveryName is missing.
404 MissingParameter.OverSizedDataOssTargetArn The specified parameter OverSizedDataOssTargetArn is missing.
404 MissingParameter.DeliveryFilter The specified parameter DeliveryFilter is missing.
404 MissingParameter.DeliveryFilter.AccountScopes The specified parameter DeliveryFilter.AccountScopes is missing.
404 MissingParameter.ResourceSnapshotDelivery.TargetType The specified parameter ResourceSnapshotDelivery.TargetType is missing.
404 MissingParameter.ResourceChangeDelivery.TargetArn The specified parameter ResourceChangeDelivery.TargetArn is missing.
404 MissingParameter.ResourceChangeDelivery.TargetType The specified parameter ResourceChangeDelivery.TargetType is missing.
404 MissingParameter.ResourceSnapshotDelivery.TargetArn The specified parameter ResourceSnapshotDelivery.TargetArn is missing.
404 MissingParameter.ResourceDeliveryConfiguration The parameter ResourceSnapshotDelivery or ResourceChangeDelivery must be specified.
404 MissingParameter.ResourceSnapshotDelivery.CustomExpression The specified parameter ResourceSnapshotDelivery.CustomExpression is missing.
404 MissingParameter.ResourceSnapshotDelivery.DeliveryTime The specified parameter ResourceSnapshotDelivery.DeliveryTime is missing.
409 AlreadyExists.DeliveryName The DeliveryName Name already exists. The delivery name already exists.
409 InvalidParameter.DeliveryName The specified parameter DeliveryName is not valid.
409 InvalidParameter.DeliveryDescription The specified parameter DeliveryDescription is not valid.
409 InvalidParameter.OverSizedDataOssTargetArn The specified parameter OverSizedDataOssTargetArn is not valid.
409 InvalidParameter.DeliveryFilter.AccountScopes The specified parameter DeliveryFilter.AccountScopes is not valid. The specified parameter DeliveryFilter.AccountScopes is not valid.
409 InvalidParameter.DeliveryFilter.ResourceTypes The specified parameter DeliveryFilter.ResourceTypes is not valid.
409 InvalidParameter.ConfigurationSnapshotDelivery.TargetType The specified parameter ConfigurationSnapshotDelivery.TargetType is not valid.
409 InvalidParameter.ResourceSnapshotDelivery.TargetArn The specified parameter ResourceSnapshotDelivery.TargetArn is not valid.
409 InvalidParameter.ResourceSnapshotDelivery.DeliveryTime The specified parameter ResourceSnapshotDelivery.DeliveryTime is not valid.
409 InvalidParameter.ResourceSnapshotDelivery.TargetType The specified parameter ResourceSnapshotDelivery.TargetType is not valid.
409 InvalidParameter.ResourceChangeDelivery.TargetType The specified parameter ResourceChangeDelivery.TargetType is not valid.
409 NoPermission.ResourceDirectory.MemberAccount ResourceDirectory Member Account is not authorized to perform this operation.
409 InvalidParameter.CustomExpression Error: %s.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.