Creates or updates a delivery channel for your account.
This API has been deprecated. We recommend migrating to Config(2020-09-07) - CreateConfigDeliveryChannel for enhanced functionality and continued support. While the deprecated API remains temporarily accessible, no further updates or bug fixes will be provided.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:PutDeliveryChannel |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| 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 `ClientToken` value can contain only ASCII characters and cannot exceed 64 characters in length. |
1594295238-f9361358-5843-4294-8d30-b5183fac**** |
| DeliveryChannelId |
string |
No |
The ID of the delivery channel. This parameter is required when you update a delivery channel. |
cdc-193f6457e0d90080**** |
| DeliveryChannelName |
string |
No |
The name of the delivery channel. |
testoss |
| DeliveryChannelType |
string |
Yes |
The type of the delivery channel. This parameter is required when you create a delivery channel. Valid values:
|
OSS |
| DeliveryChannelTargetArn |
string |
Yes |
The ARN of the delivery destination. This parameter is required when you create a delivery channel. Valid values:
|
acs:oss:cn-hangzhou:100931896542****:20171130--1 |
| DeliveryChannelAssumeRoleArn |
string |
Yes |
The ARN of the role that you want to assume to deliver data. This parameter is required when you create a delivery channel. Note
If you use the service-linked role for Cloud Config, you can use the value of the example and replace the account ID with the ID of your Alibaba Cloud account. |
acs:ram::100931896542****:role/aliyunserviceroleforconfig |
| DeliveryChannelCondition |
string |
No |
The rule that is attached to the delivery channel. This parameter is available only for delivery channels of the MNS type. You can specify the lowest risk level and the resource types for the events to which you want to subscribe. Details are as follows:
|
[{"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}] |
| Description |
string |
No |
The description of the delivery channel. |
My OSS delivery. |
| Status |
integer |
No |
The status of the delivery channel. Valid values:
|
1 |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| DeliveryChannelId |
string |
The ID of the delivery channel that is returned after the delivery channel is created or updated. |
cdc-ee0f626622af0069**** |
| RequestId |
string |
The ID of the request. |
0D6B9E0A-AD53-4732-922B-0F584ECA5FAB |
Examples
Success response
JSON format
{
"DeliveryChannelId": "cdc-ee0f626622af0069****",
"RequestId": "0D6B9E0A-AD53-4732-922B-0F584ECA5FAB"
}
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.DeliveryChannelName.Empty | You must specify DeliveryChannelName. | |
| 400 | Invalid.DeliveryChannelType.Empty | You must specify DeliveryChannelType. | You must specify DeliveryChannelType. |
| 400 | Invalid.DeliveryChannelAssumeRoleArn.Empty | You must specify DeliveryChannelAssumeRoleArn. | You must specify DeliveryChannelAssumeRoleArn. |
| 400 | Invalid.DeliveryChannelAssumeRoleArn.Format | The specified format of DeliveryChannelAssumeRoleArn is invalid. | The specified format of DeliveryChannelAssumeRoleArn is invalid. |
| 400 | Invalid.DeliveryChannelTargetArn.Empty | You must specify DeliveryChannelTargetArn. | You must specify DeliveryChannelTargetArn. |
| 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. | |
| 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. | |
| 404 | AccountNotExisted | Your account does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.