All Products
Search
Document Center

Cloud Config:PutDeliveryChannel

Last Updated:Oct 16, 2025

Creates or updates a delivery channel for your account.

Note

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: Object Storage Service

  • MNS: Simple Message Queue (formerly MNS)

  • SLS: Simple Log Service

OSS

DeliveryChannelTargetArn

string

Yes

The ARN of the delivery destination. This parameter is required when you create a delivery channel. Valid values:

  • If the delivery channel type is OSS, the value is in the following format: acs:oss:{RegionId}:{Aliuid}:{bucketName}.

  • If the delivery channel type is MNS, the value is in the following format: acs:mns:{RegionId}:{Aliuid}:/topics/{topicName}.

  • If the delivery channel type is SLS, the value is in the following format: acs:log:{RegionId}:{Aliuid}:project/{projectName}/logstore/{logstoreName}

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:

  • The lowest risk level of the events to which you want to subscribe is specified in the following format: {"filterType":"RuleRiskLevel","value":"1","multiple":false}.

    `value` indicates the risk level that you want to filter. Valid values: 1 indicates high risk, 2 indicates medium risk, and 3 indicates low risk.

  • The resource types of the events to which you want to subscribe are specified in the following format: {"filterType":"ResourceType","values":["ACS::ACK::Cluster","ACS::ActionTrail::Trail","ACS::CBWP::CommonBandwidthPackage"],"multiple":true}.

    `values` indicates the resource types of the events to which you want to subscribe. The value is a JSON array. For example: [{"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}]

[{"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:

  • 0: The delivery channel is disabled.

  • 1 (default): The delivery channel is enabled.

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.