Creates a delivery channel to deliver resource data to Simple Log Service (SLS), Object Storage Service (OSS), or Simple Message Queue (formerly MNS).
Operation description
Background information
-
Deliver to Simple Log Service
When you deliver resource configuration history, non-compliant events, and scheduled snapshots to a Logstore in SLS, you must first create a project and a Logstore. This lets you query and analyze logs. For examples of the content in JSON files, see Resource configuration history examples, Non-compliant event examples, and Scheduled resource snapshot examples.
-
Deliver to Object Storage Service
When you deliver scheduled resource snapshots or configuration history to a specified location in OSS, you must first create a bucket. This lets you view or download the JSON files. For examples of the content in JSON files, see Scheduled resource snapshot examples and Resource configuration history examples.
-
Deliver to Simple Message Queue (formerly MNS)
When you deliver resource configuration history and non-compliant events to a specified topic in MNS, you must first create a topic. This lets you set the push method and content for the topic. For examples of the content in JSON files, see Resource configuration history examples and Non-compliant event examples.
Limits
You can create a maximum of 5 delivery channels.
Usage notes
This topic provides an example of how to create a delivery channel of the OSS type with the destination ARN acs:oss:cn-shanghai:100931896542****:new-bucket. The response shows that the delivery channel is successfully created and its ID is cdc-8e45ff4e06a3a8****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:CreateConfigDeliveryChannel |
create |
*Delivery
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DeliveryChannelName |
string |
No |
The name of the delivery channel. Note
If you do not set this parameter, the value is empty. |
testoss |
| DeliveryChannelType |
string |
Yes |
The type of the delivery channel. Valid values:
|
OSS |
| DeliveryChannelTargetArn |
string |
Yes |
The ARN of the delivery destination. Valid values:
|
acs:oss:cn-shanghai:100931896542****:new-bucket |
| DeliveryChannelCondition |
string |
No |
An additional rule for the delivery channel to specify filter conditions for subscribed content.
|
[{"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 data is transferred when the data size exceeds the channel's limit. The format is If you do not set this parameter, Cloud Config delivers only a summary of the data. Note
This parameter is supported only for SLS and MNS delivery channels. The size limit is 1 MB for SLS channels and 64 KB for MNS channels. |
acs:oss:cn-shanghai:100931896542****:new-bucket |
| Description |
string |
No |
The description of the delivery channel. |
My OSS delivery. |
| ClientToken |
string |
No |
A client token used to ensure the idempotence of the request. Generate a unique value for this parameter from your client.
|
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
| ConfigurationSnapshot |
boolean |
No |
Specifies whether to receive scheduled resource snapshots. Every day at
Note
Note
|
false |
| CompliantSnapshot |
boolean |
No |
Specifies whether to receive compliance snapshots. Cloud Config delivers compliance and non-compliance information of resources to SLS. Valid values:
|
false |
| ConfigurationItemChangeNotification |
boolean |
No |
Specifies whether to receive the configuration history of a resource. When the configuration of a resource changes, Cloud Config delivers the configuration history to OSS, SLS, or MNS. Valid values:
Note
Note
Note
|
false |
| NonCompliantNotification |
boolean |
No |
Specifies whether to receive non-compliant events. When a resource is evaluated as non-compliant, Cloud Config delivers the non-compliant events to SLS or MNS. Valid values:
Note
Note
|
false |
| DeliverySnapshotTime |
string |
No |
The time of day when Cloud Config starts to deliver scheduled resource snapshots. The time is in the Note
When you enable scheduled resource snapshots, you can use this parameter to customize the delivery time. If you do not set this parameter, Cloud Config delivers scheduled resource snapshots at |
09:10Z |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
No data is returned. |
||
| RequestId |
string |
The request ID. |
A7A0FFF8-0B44-40C6-8BBF-3A185EFDERTHG |
| DeliveryChannelId |
string |
The ID of the delivery channel. |
cdc-8e45ff4e06a3a8**** |
Examples
Success response
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. | |
| 400 | Invalid.DeliveryChannelAssumeRoleArn.Format | The specified format of DeliveryChannelAssumeRoleArn is invalid. | |
| 400 | Invalid.DeliveryChannelTargetArn.Format | The specified format of DeliveryChannelTargetArn is invalid. | |
| 400 | Invalid.DeliveryChannelCondition.Format | The specified format of DeliveryChannelCondition is invalid. | |
| 400 | MemberNotBelongToMaster | The specified member does not belong to your organization. | |
| 400 | DeliveryChannelAccountNotSupport | Cross-account delivery that is not in the RD is not supported. | |
| 400 | DeliveryChannelMnsUnreachable | The MNS topic is unreachable. | |
| 400 | DeliveryChannelOssUnreachable | The OSS bucket is unreachable. | |
| 400 | DeliveryChannelSlsUnreachable | SLS logstore is unreachable. | |
| 404 | AccountNotExisted | Your account does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.