You need to enable JavaScript to run this app.
导航
DeleteDomainRecord - 删除自定义解析记录
最近更新时间:2025.05.26 15:43:41首次发布时间:2023.10.17 17:43:57
我的收藏
有用
有用
无用
无用

在指定的域名下删除自定义解析记录。

请求说明

您可以使用 GET 或 POST 方法。

请求鉴权

您需要 对请求进行鉴权

请求参数

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

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

DeleteDomainRecord

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

Version
String

2023-09-01

API的版本,取值:2023-09-01。

Id
Integer

245

解析记录的 ID

DryRun
Boolean

false

是否空运行。您可以通过该参数对请求进行预检

ClientToken
String

d3e5f7a9-0b1d-2c3e-4f5a-6789b0c1d2e3

用于保证请求幂等性。您需要从客户端生成一个参数值,确保不同请求间该参数值唯一。ClientToken 只支持 ASCII 字符,且长度不能超过 64 个字符

返回参数

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

参数
类型
示例值
描述
Domain
String

www.douyin.com

解析记录的域名

Type
String

A

解析记录的类型

Ttl
Integer

10

解析记录的过期时间(秒)

Line
String

中国_华北

线路值

Target
Array of String
[
    "1.1.1.1",
    "2.2.2.2"
]

解析记录的记录值

Enable
Boolean

true

解析记录是否被启用

  • true:被启用
  • false:被禁用
Weights
Array of Object
[
      {
        "Key": "www.toutiao.com",
        "Value": 1
      }
]

权重值

请求示例 1

GET https://open.volcengineapi.com/?Action=DeleteDomainRecord&Version=2023-09-01&Id=245

返回示例 1

{
  "ResponseMetadata": {
    "RequestId": "20231011172302477A4BF4688234E71DAB",
    "Action": "DeleteDomainRecord",
    "Version": "2023-09-01",
    "Service": "httpdns",
    "Region": "cn-north-1"
  },
  "Result": {
    "CreateTime": "2023-03-15T15:24:18+08:00",
    "Domain": "www.douyin.com",
    "Enable": false,
    "Id": 245,
    "Line": "中国_华北",
    "Target": [
      "www.toutiao.com"
    ],
    "Ttl": 0,
    "Type": "CNAME",
    "UpdateTime": "2023-03-15T15:24:18+08:00",
    "Weights": [
      {
        "Key": "www.toutiao.com",
        "Value": 1
      }
    ]
  }
}

请求示例 2

POST https://open.volcengineapi.com/?Action=DeleteDomainRecord&Version=2023-09-01
{
  "Id": 245
}

返回示例 2

{
  "ResponseMetadata": {
    "RequestId": "20231011172302477A4BF4688234E71DAB",
    "Action": "DeleteDomainRecord",
    "Version": "2023-09-01",
    "Service": "httpdns",
    "Region": "cn-north-1"
  },
  "Result": {
    "CreateTime": "2023-03-15T15:24:18+08:00",
    "Domain": "www.douyin.com",
    "Enable": false,
    "Id": 245,
    "Line": "中国_华北",
    "Target": [
      "www.toutiao.com"
    ],
    "Ttl": 0,
    "Type": "CNAME",
    "UpdateTime": "2023-03-15T15:24:18+08:00",
    "Weights": [
      {
        "Key": "www.toutiao.com",
        "Value": 1
      }
    ]
  }
}

错误码

您可访问公共错误码,获取更多错误码信息。