Modifies a delivery channel in an account group.
Operation description
This topic provides an example on how to disable a delivery channel in an account group. The ID of the account group is ca-a4e5626622af0079****
, and the ID of the delivery channel is cdc-8e45ff4e06a3a8****
. The Status parameter is set to 0
. After the delivery channel is disabled, Cloud Config retains the most recent delivery configuration and stops resource data delivery.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
config:UpdateAggregateConfigDeliveryChannel | Write |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AggregatorId | string | Yes | The ID of the account group. For more information about how to obtain the ID of the account group, see ListAggregators . | ca-a4e5626622af0079**** |
DeliveryChannelId | string | Yes | The ID of the delivery channel. For more information about how to obtain the ID of a delivery channel, see ListAggregateConfigDeliveryChannels . | cdc-8e45ff4e06a3a8**** |
DeliveryChannelName | string | No | The name of the delivery channel. | testoss |
DeliveryChannelTargetArn | string | No | The ARN of the delivery destination. Valid values:
| acs:oss:cn-shanghai:100931896542****:new-bucket |
DeliveryChannelCondition | string | No | The rule that is attached to the delivery channel. This parameter is available when you deliver data of all types to MNS or deliver snapshots to Log Service.
| [{"filterType":"ResourceType","values":["ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage","ACS::CDN::Domain","ACS::CEN::CenBandwidthPackage","ACS::CEN::CenInstance","ACS::CEN::Flowlog","ACS::DdosCoo::Instance"],"multiple":true}] |
OversizedDataOSSTargetArn | string | No | The ARN of the OSS bucket to which the delivered data is transferred when the size of the data exceeds the specified upper limit of the delivery channel. Format: If you do not configure this parameter, Cloud Config delivers only summary data. Note
This parameter is available only for delivery channels of the SLS or MNS type. The upper limit on the storage size of delivery channels of the SLS type is 1 MB, and the upper limit on the storage size of delivery channels of the MNS type is 64 KB.
| acs:oss:cn-shanghai:100931896542****:new-bucket |
Description | string | No | The description of the delivery channel. | My OSS delivery. |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The | 1594295238-f9361358-5843-4294-8d30-b5183fac**** |
ConfigurationSnapshot | boolean | No | Specifies whether to deliver scheduled resource snapshots. Cloud Config delivers scheduled resource snapshots at
| false |
ConfigurationItemChangeNotification | boolean | No | Specifies whether to deliver resource change logs. If you set this parameter to true, Cloud Config delivers resource change logs to OSS, Log Service, or MNS when the configurations of the resources change. Valid values:
Note
This parameter is available for delivery channels of the OSS, SLS, and MNS types.
| false |
NonCompliantNotification | boolean | No | Specifies whether to deliver resource non-compliance events. If you set this parameter to true, Cloud Config delivers resource non-compliance events to Log Service or MNS when resources are considered non-compliant. Valid values:
Note
This parameter is available only for delivery channels of the SLS or MNS type.
| false |
Status | long | No | Specifies whether to enable the delivery channel. Valid values:
| 0 |
DeliverySnapshotTime | string | No | The time when Cloud Config delivers scheduled resources snapshots every day. Format: Note
When you enable the scheduled resource delivery feature, you can specify a custom delivery time for this parameter. If you do not configure this parameter, Cloud Config automatically delivers scheduled resource snapshots at 04:00Z and 16:00Z every day.
| 09:10Z |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A7A0FFF8-0B44-40C6-8BBF-3A185EFDERTHG",
"DeliveryChannelId": "cdc-8e45ff4e06a3a8****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | DeliveryChannelNotExists | The delivery channel does not exist. | The delivery channel does not exist. |
400 | Invalid.DeliveryChannelAssumeRoleArn.Format | The specified format of DeliveryChannelAssumeRoleArn is invalid. | The specified format of DeliveryChannelAssumeRoleArn is invalid. |
400 | Invalid.DeliveryChannelTargetArn.Format | The specified format of DeliveryChannelTargetArn is invalid. | The specified format of DeliveryChannelTargetArn is invalid. |
400 | Invalid.DeliveryChannelCondition.Format | The specified format of DeliveryChannelCondition is invalid. | The specified format of DeliveryChannelCondition is invalid. |
400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | The specified member does not belong to your organization. |
400 | DeliveryChannelAccountNotSupport | Cross-account delivery that is not in the RD is not supported. | Cross-account delivery that is not in the RD is not supported. |
400 | DeliveryChannelMnsUnreachable | The MNS topic is unreachable. | The MNS topic is unreachable. |
400 | DeliveryChannelOssUnreachable | The OSS bucket is unreachable. | The OSS bucket is unreachable. |
400 | DeliveryChannelSlsUnreachable | SLS logstore is unreachable. | The SLS Logstore is unreachable. |
404 | AccountNotExisted | Your account does not exist. | The specified account does not exist. |
For a list of error codes, visit the Service error codes.