修改加速域名。
注意:创建加速域名之前, 必须先开通DCDN服务。
参数 | 类型 | 是否必需 | 描述 |
---|---|---|---|
Action | String | 是 | 操作接口名。系统规定参数,取值:UpdateDcdnDomain |
DomainName | String | 是 | 需要接入DCDN的域名。 |
Sources | Json | 是 | 回源地址列表。 |
ResourceGroupId | String | 否 | 资源组ID。 |
TopLevelDomain | String | 否 | 顶级接入域。 |
[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}]
参数 | 类型 | 是否必需 | 描述 |
---|---|---|---|
type | String | 是 | 源站类型。取值范围:
|
content | String | 是 | 回源地址。可以是IP或域名。 |
port | Integer | 否 | 端口。可指定443或80。也可以自定义端口。443通过HTTPS回源。 默认值:80 |
priority | String | 否 | 源站地址对应的优先级。 默认值:20 |
名称 | 类型 | 描述 |
---|---|---|
RequestId | String | 该条任务请求ID |
http://dcdn.aliyuncs.com?Action=UpdateDcdnDomain&SourceType=domain&Sources=[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}]&<公共请求参数>
JSON格式:
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
错误代码 | 错误信息 | HTTP 状态码 | 说明 |
---|---|---|---|
InvalidDomainName.Malformed | Specified DomainName is malformed. | 400 | DomainName 参数错误 |
InvalidSource.Content.Malformed | Specified source content is malformed. | 400 | 回源地址参数错误 |
InvalidSource.Type.Malformed | Specified source type is malformed. | 400 | 源站类型参数错误 |
InvalidTypeContent.Mismatch | Specified source type does not math the specified source content. | 400 | 回源地址与回源类型不匹配 |
InvalidSource.Priority.Malformed | Specified source priority is malformed. | 400 | 优先级参数错误 |
InvalidScope.Malformed | Specified Scope is malformed. | 400 | Scope 参数错误 |
IllegalOperation | Illegal domain operate is not permitted. | 403 | 没有权限执行当前操作 |
InvalidDomain.NotFound | The domain provided does not belong to you. | 404 | 域名不存在或不属于当前用户 |
Abs.resourceGroupId.Malformed | Specified ResourceGroupId is malformed. | 400 | 资源组ID参数不正确 |
EntityNotExists.ResourceGroup | The resource group does not exist. | 400 | 资源组不存在 |
InvalidStatus.ResourceGroup | It’s now allowed to do this operation because of the current status of resource-group. | 400 | 资源组状态检查失败 |
在文档使用中是否遇到以下问题
更多建议
匿名提交