Updates a single-account delivery channel.
Operation description
Resource delivery supports the delivery of resource configuration change events and scheduled resource snapshots.
Scheduled resource snapshots support the following delivery scenarios:
-
Standard delivery: Leave the
ResourceSnapshotDelivery.CustomExpressionparameter empty. -
Custom delivery: Set the
ResourceSnapshotDelivery.CustomExpressionparameter to an appropriate value.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
resourcecenter:UpdateDeliveryChannel |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DeliveryChannelId |
string |
Yes |
The ID of the delivery channel. |
dc-4m6ffpkgu*** |
| DeliveryChannelName |
string |
No |
The name of the delivery channel. |
test-delivery-channel |
| DeliveryChannelDescription |
string |
No |
The description of the delivery channel. |
Delivery description |
| ResourceSnapshotDelivery |
object |
No |
The configurations for delivery of scheduled resource snapshots. |
|
| DeliveryTime |
string |
No |
The delivery time. |
09:00Z |
| Enabled |
string |
No |
Specifies whether to enable delivery of scheduled resource snapshots. Valid values:
|
true |
| TargetArn |
string |
No |
The Alibaba Cloud Resource Name (ARN) of the delivery destination. Valid values:
|
acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss |
| TargetType |
string |
No |
The type of the delivery destination. Valid values:
Valid values:
|
OSS |
| CustomExpression |
string |
No |
The custom expression. |
select * from resources limit 100; |
| SlsProperties |
object |
No |
The Simple Log Service configurations. |
|
| OversizedDataOssTargetArn |
string |
No |
The ARN of the destination to which large files are delivered. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You need to set this parameter to the ARN of a bucket whose name is prefixed with Note
This parameter takes effect only if you use custom delivery for scheduled resource snapshots. You do not need to configure this parameter if you use standard delivery for scheduled resource snapshots. |
acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss |
| ResourceChangeDelivery |
object |
No |
The configurations for delivery of resource configuration change events. |
|
| Enabled |
string |
No |
Specifies whether to enable delivery of resource configuration change events. Valid values:
|
true |
| SlsProperties |
object |
No |
The Simple Log Service configurations. |
|
| OversizedDataOssTargetArn |
string |
No |
The ARN of the destination to which large files are delivered. If the size of a resource configuration change event exceeds 1 MB, the event is delivered as an OSS object. You need to set this parameter to the ARN of a bucket whose name is prefixed with |
acs:oss:cn-hangzhou:1911422487776***:resourcecenter-oss |
| TargetArn |
string |
No |
The ARN of the delivery destination. Valid values:
|
acs:log:cn-hangzhou: 1911422487776***:project/delivery/logstore/resourcecenter-sls |
| TargetType |
string |
No |
The type of the delivery destination. Set the value to Valid values:
|
SLS |
| DeliveryChannelFilter |
object |
No |
The effective scope of the delivery channel. |
|
| ResourceTypes |
array |
No |
The effective resource types of the delivery channel. |
|
|
string |
No |
The effective resource type of the delivery channel. For more information, see Services that work with Resource Center. If you want to deliver items of all resource types supported by Resource Center, set this parameter to |
ACS::VPC::VPC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
AD5F848D-CCDC-5464-93E1-4BA50A482*** |
Examples
Success response
JSON format
{
"RequestId": "AD5F848D-CCDC-5464-93E1-4BA50A482***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | NoPermission.ResourceType | The operator is not permitted for this resource type. | The operator is not permitted for this resource type. |
| 404 | NotExists.DeliveryChannelId | The DeliveryChannelId does not exist. | The DeliveryChannelId does not exist. |
| 404 | MissingParameter.DeliveryName | The specified parameter DeliveryName is missing. | |
| 404 | MissingParameter.OverSizedDataOssTargetArn | The specified parameter OverSizedDataOssTargetArn is missing. | |
| 404 | MissingParameter.DeliveryFilter.AccountScopes | The specified parameter DeliveryFilter.AccountScopes is missing. | |
| 404 | MissingParameter.ResourceSnapshotDelivery.DeliveryTime | The specified parameter ResourceSnapshotDelivery.DeliveryTime is missing. | |
| 404 | MissingParameter.ResourceSnapshotDelivery.TargetArn | The specified parameter ResourceSnapshotDelivery.TargetArn 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.CustomExpression | The specified parameter ResourceSnapshotDelivery.CustomExpression is missing. | |
| 409 | InvalidParameter.DeliveryChannelId | The specified parameter DeliveryChannelId is not valid. | |
| 409 | AlreadyExists.DeliveryName | The DeliveryName Name already exists. | The delivery name already exists. |
| 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.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.TargetArn | The specified parameter ResourceChangeDelivery.TargetArn is not valid. | |
| 409 | InvalidParameter.ResourceChangeDelivery.TargetType | The specified parameter ResourceChangeDelivery.TargetType is not valid. | |
| 409 | InvalidParameter.CustomExpression | Error: %s. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.