开发者社区> 问答> 正文

云解析怎么修改解析记录



描述


根据传入参数修改解析记录。

请求参数

名称类型是否必须描述
ActionString操作接口名,系统规定参数,取值:UpdateDomainRecord
RecordIdString解析记录的ID,此参数在添加解析时会返回,在获取域名解析列表时会返回
RRString主机记录,如果要解析@.exmaple.com,主机记录要填写"@”,而不是空
TypeString解析记录类型,参见解析记录类型格式
ValueString记录值
TTLLong生存时间,默认为600秒(10分钟),参见TTL定义说明
PriorityLongMX记录的优先级,取值范围[1,10],记录类型为MX记录时,此参数必须
LineString解析线路,默认为default。参见解析线路枚举


返回参数


公共返回参数,详见 公共返回参数
名称类型描述
RequestIdString唯一请求识别码
RecordIdString解析记录的ID


错误码


对于所有接口的通用性错误,请参考 错误代码表
错误代码描述HTTP 状态码语义
DomainRecordNotBelongToUserThe domain record does not belong to this user.400解析记录在本账户下不存在
DomainRecordDuplicateThe domain record is duplicated.400解析记录已存在
DomainRecordConflictThe domain record is conflict with other records.400解析记录冲突
DomainForbiddenThe action could not be completed because the domain has been forbidden.400禁止解析操作的域名
DomainRecordLockedThe domain record has been locked.400解析记录被锁定
UnKnownErrorThere is an unknown error in system.400未知错误
QuotaExceeded.RecordYou Can’t add this domain record because the {“Type RR Line”} record has been out of MAX count (90).400超出解析记录类型最大值90
QuotaExceeded.ARecordYou Can’t add this domain record because the {“Type RR Line”} record has been out of MAX count.400超出A(AAAA)记录类型最大值
RecordForbidden.BlackHoleThe action could not be completed because there are some reords have been into black hole.400域名解析防护进入黑洞
URLForwardError.PanRecordThe Pan-record is not supported in url forward record.400URL转发不支持泛解析记录
URLForwardError.NotDefaultLineThe url forward record only support default line.400URL转发不是默认线路
URLForwardError. ChineseCharThe Chinese char is not supported in url forward record.400URL转发目标域名为中文域名
URLForwardError.NotVerifyDomainThe domain name must be verified in Hichina in url forward record.400URL转发域名未备案
QuotaExceeded.URLRecordThe URL record has been out of MAX count.400URL转发数量超过限制
QuotaExceeded.SubDomainThe sub domain levels have been out of MAX count.400子域名级别超过限制
QuotaExceeded.TTLThe TTL parameter has been out of range.400TTL时间超出限制
UnsupportedLineThis line is not be supported in this DNS version.400当前版本不支持的解析线路
RecordForbidden.DNSChangeThe action could not be completed because DNS is changing.400DNS迁移过程禁止操作


示例



请求示例

http://alidns.aliyuncs.com/?Action=UpdateDomainRecord&RecordId=9999985&RR=www&Type=A&Value=202.106.0.20&TTL=600&Line=default&<公共请求参数>

返回示例



XML格式

<UpdateDomainRecordResponse><RequestId>536E9CAD-DB30-4647-AC87-AA5CC38C5382</RequestId><RecordId>9999985</RecordId></UpdateDomainRecordResponse>

JSON示例

{"RequestId": "536E9CAD-DB30-4647-AC87-AA5CC38C5382","RecordId": "9999985"}

展开
收起
boxti 2017-10-18 10:44:57 4203 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
神龙云服务器产品及技术深度解析 立即下载
弹性创造价值:基于ECS的最佳性价比实践解析 立即下载
又快又稳:阿里云下一代虚拟交换机解析 立即下载

相关镜像