调用AddPcdnControlRule添加启停设置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AddPcdnControlRule |
系统规定参数,取值:AddPcdnControlRule。 |
AppVersion | String | 是 | all |
应用版本。 |
BusinessType | String | 是 | live |
业务类型:live、vod、download。 |
IspName | String | 是 | mobile |
运营商英文名,多个使用竖线(|)分隔。 |
Market | String | 是 | all |
市场。 |
Name | String | 是 | TEST+RULE |
规则名称。 |
PlatformType | String | 是 | 01 |
终端类型代码,使用竖线(|)分隔。 |
Region | String | 是 | cn-hangzhou |
地区列表代码,使用竖线(|)分隔。 |
Version | String | 是 | 2017-04-11 |
版本号。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | Integer | 0 |
业务返回码,正常返回为0。 |
RequestId | String | 20963AEE-E3A5-461F-8809-C494558373AB |
请求ID。 |
ResourceId | String | 6p9uch |
规则资源ID。 |
示例
请求示例
http(s)://pcdn.aliyuncs.com/?Action=AddPcdnControlRule
&AppVersion=all
&BusinessType=live
&IspName=mobile
&Market=all
&Name=TEST+RULE
&PlatformType=01
&Region=cn-hangzhou
&Version=2017-04-11
&<公共请求参数>
正常返回示例
XML
格式
<AddPcdnControlRuleResponse>
<ResourceId>6p9uch</ResourceId>
<Code>0</Code>
<RequestId>20963AEE-E3A5-461F-8809-C494558373AB</RequestId>
<AddPcdnControlRuleResponse>
JSON
格式
{
"ResourceId": "6p9uch",
"Code": 0,
"RequestId":"20963AEE-E3A5-461F-8809-C494558373AB"
}
错误码
访问错误中心查看更多错误码。