Membuat saluran pengiriman Sumber daya untuk akun saat ini.
Deskripsi operasi
Resource delivery supports the scheduled delivery of resource snapshots and the delivery of resource configuration changes.
Scheduled delivery of resource snapshots supports two scenarios:
-
Standard delivery: Leave the
ResourceSnapshotDelivery.CustomExpressionparameter empty. -
Custom delivery: Set the
ResourceSnapshotDelivery.CustomExpressionparameter to an appropriate value.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:CreateDeliveryChannel |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DeliveryChannelName |
string |
Yes |
Nama saluran pengiriman. |
test-delivery |
| DeliveryChannelDescription |
string |
No |
Deskripsi saluran pengiriman. |
测试投递 |
| ResourceSnapshotDelivery |
object |
No |
Pengiriman terjadwal snapshot Sumber daya. |
|
| DeliveryTime |
string |
No |
The delivery time. |
09:00Z |
| TargetArn |
string |
No |
The Alibaba Cloud Resource Name (ARN) of the destination. Valid values:
|
acs:log:cn-hangzhou: 191142248777****:project/delivery/logstore/resourcecenter-sls |
| TargetType |
string |
No |
The type of the destination. Valid values:
Valid values:
|
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 destination OSS bucket for oversized files. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. Set this parameter to the ARN of an OSS bucket that has the Catatan
This parameter is valid only for custom scheduled delivery. You do not need to specify this parameter for standard scheduled delivery. |
acs:oss:cn-hangzhou:191142248777****:resourcecenter-oss |
| ResourceChangeDelivery |
object |
No |
Pengiriman perubahan konfigurasi Sumber daya. |
|
| SlsProperties |
object |
No |
The SLS configurations. |
|
| OversizedDataOssTargetArn |
string |
No |
The ARN of the destination OSS bucket for oversized files. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. Set this parameter to the ARN of an OSS bucket that has the |
acs:oss:cn-hangzhou:191142248777****:resourcecenter-oss |
| TargetArn |
string |
No |
The ARN of the destination. Valid values:
|
acs:log:cn-hangzhou: 191142248777****:project/delivery/logstore/resourcecenter-sls |
| TargetType |
string |
No |
The type of the destination. Valid value: Valid values:
|
SLS |
| DeliveryChannelFilter |
object |
Yes |
Cakupan efektif saluran pengiriman. |
|
| ResourceTypes |
array |
No |
The list of resource types to be delivered. |
|
|
string |
No |
The resource type to be delivered. For more information, see Services that work with Resource Center. To deliver all resource types supported by Resource Center, enter |
ACS::VPC::VPC |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| DeliveryChannelId |
string |
The ID of the delivery channel. |
dc-0bzhsqpn**** |
| RequestId |
string |
The request ID. |
42A89312-0616-591E-B614-07BC87D3D |
Contoh
Respons sukses
JSONformat
{
"DeliveryChannelId": "dc-0bzhsqpn****",
"RequestId": "42A89312-0616-591E-B614-07BC87D3D"
}
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 specified parameter ResourceChangeDelivery.TargetArn is not valid. | |
| 403 | ExceedLimit.DeliveryChannelQuota | The number of delivery channels exceeds the limit. | |
| 403 | NoPermission.ResourceType | The operator is not permitted for this resource type. | |
| 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. | |
| 404 | MissingParameter.DeliveryConfiguration | The parameter ConfigurationSnapshotDelivery or ConfigurationChangeDelivery must be specified. | |
| 409 | AlreadyExists.DeliveryName | The DeliveryName 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. | |
| 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 | InvalidParameter.CustomExpression | Error: %s. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.