调用DescribeDeliveryChannels接口查询投递渠道信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDeliveryChannels |
要执行的操作,取值:DescribeDeliveryChannels。 |
DeliveryChannelIds | String | 否 | cdc-d9106457e0d900b1**** |
投递渠道ID。多个投递渠道ID之间用半角逗号(,)分隔。 关于如何获取投递渠道ID,请参见PutDeliveryChannel。 |
返回数据
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeDeliveryChannels
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeDeliveryChannelsResponse>
<DeliveryChannels>
<Status>1</Status>
<ConfigurationSnapshot>false</ConfigurationSnapshot>
<OversizedDataOSSTargetArn></OversizedDataOSSTargetArn>
<Description>My OSS delivery.</Description>
<DeliveryChannelName>myDeliveryChannel</DeliveryChannelName>
<DeliveryChannelId>cdc-d9106457e0d900b1****</DeliveryChannelId>
<DeliveryChannelTargetArn>acs:oss:cn-shanghai:120886317861****:new-bucket</DeliveryChannelTargetArn>
<DeliveryChannelAssumeRoleArn>acs:ram::120886317861****:role/aliyunserviceroleforconfig</DeliveryChannelAssumeRoleArn>
<ConfigurationItemChangeNotification>true</ConfigurationItemChangeNotification>
<DeliveryChannelType>OSS</DeliveryChannelType>
<DeliveryChannelCondition></DeliveryChannelCondition>
<NonCompliantNotification>false</NonCompliantNotification>
</DeliveryChannels>
<RequestId>DC300244-FCE3-5061-8214-C27ECB668487</RequestId>
</DescribeDeliveryChannelsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"DeliveryChannels" : [ {
"Status" : 1,
"ConfigurationSnapshot" : false,
"OversizedDataOSSTargetArn" : "",
"Description" : "My OSS delivery.",
"DeliveryChannelName" : "myDeliveryChannel",
"DeliveryChannelId" : "cdc-d9106457e0d900b1****",
"DeliveryChannelTargetArn" : "acs:oss:cn-shanghai:120886317861****:new-bucket",
"DeliveryChannelAssumeRoleArn" : "acs:ram::120886317861****:role/aliyunserviceroleforconfig",
"ConfigurationItemChangeNotification" : true,
"DeliveryChannelType" : "OSS",
"DeliveryChannelCondition" : "",
"NonCompliantNotification" : false
} ],
"RequestId" : "DC300244-FCE3-5061-8214-C27ECB668487"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | DeliveryChannelNotExists | The delivery channel does not exist. | 投递渠道不存在。 |
404 | AccountNotExisted | Your account does not exist. | 您的账号不存在。 |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。