You need to enable JavaScript to run this app.
文档中心
配置审计

配置审计

复制全文
下载 pdf
投递
CreateDeliveryChannel - 创建投递渠道
复制全文
下载 pdf
CreateDeliveryChannel - 创建投递渠道

为当前账号创建投递渠道,配置投递目标、角色、内容、条件和加密信息;创建后用于投递通知或快照。

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

参数
类型
是否必填
示例值
描述
Action
String
是

CreateDeliveryChannel

要执行的操作,取值:CreateDeliveryChannel。

Version
String
是

2025-01-01

API的版本,取值:2025-01-01。

DeliveryChannelName
String
是

example-delivery-channel

投递渠道名称

DeliveryChannelType
String
是

TOS

投递渠道类型,可选值:SNS,TOS,TLS

DeliveryContents
Array of String
是

["NonCompliantNotification"]

投递内容类型列表,可选值:ConfigurationItemChangeNotification,NonCompliantNotification,CompliantSnapshot,ConfigurationSnapshot

DeliveryChannelTargetTrn
String
是

trn:volc:tos:::example-bucket

投递目标 TRN

DeliveryRoleTrn
String
是

trn:volc:iam::2100052080:role/config-delivery-role

投递时使用的 IAM 角色 TRN

Condition
String
否

example-value

投递过滤条件

TosKeyPrefix
String
否

example-value

TOS 对象 key 前缀

TosSSEAlgorithm
String
否

AES256

TOS 服务端加密算法,可选值:AES256,kms

TosSSEKMSKeyId
String
否

id-123456

TOS 服务端加密使用的 KMS Key ID

SnapshotDeliveryTime
String
否

2026-05-18T16:46:49Z

快照定时投递时间,UTC HH:mmZ 格式

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构。

参数
类型
示例值
描述
DeliveryChannelId
String

dc-123456

投递渠道 ID

请求示例

POST /?Action=CreateDeliveryChannel&Version=2025-01-01 HTTP/1.1
Host: config.volcengineapi.com
Content-Type: application/json; charset=UTF-8
X-Date: 20260518T164649Z
X-Content-Sha256: 287e874e******d653b44d21e
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20260518/cn-beijing/config/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f

{
  "DeliveryChannelName": "example-delivery-channel",
  "DeliveryChannelType": "TOS",
  "DeliveryContents": [
    "NonCompliantNotification"
  ],
  "DeliveryChannelTargetTrn": "trn:tos:::example-bucket/config/",
  "DeliveryRoleTrn": "trn:iam::2100052080:role/config-delivery-role"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "202605181646490000000000000000",
        "Action": "CreateDeliveryChannel",
        "Version": "2025-01-01",
        "Service": "config",
        "Region": "cn-beijing"
    },
    "Result": {
        "DeliveryChannelId": "dc-123456"
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
InvalidParameter

The specified parameter %s is invalid.

400
QuotaExceeded.DeliveryChannel

You've reached the limit on the number of delivery channels, please submit ticket to request an increase in quota.

该账号下的投递渠道已超quota限额,请删除非必要的投递渠道或提工单提额

400
ServiceNotEnabled

The operation are prohibited when service is not enabled.

服务处于非开启状态时,禁止执行该操作

404
DeliveryChannelTargetNotExist

The delivery channel target does not exist.

投递渠道目标不存在

500
InternalError

The request has failed due to an unknown error.

最近更新时间:2026.07.10 14:52:22
这个页面对您有帮助吗?
有用
有用
无用
无用