You need to enable JavaScript to run this app.
导航
ListRecordAttributes - 获取解析记录属性
最近更新时间:2025.05.22 20:04:52首次发布时间:2023.02.08 13:12:56
我的收藏
有用
有用
无用
无用

获取私网解析 PrivateZone 支持的 TTL、记录类型、解析记录权重最大值等属性。

使用说明

请求频率:每秒最多调用 100 次。

请求说明

  • 请求方式:GET
  • 请求地址:https://private-zone.volcengineapi.com/?Action=ListRecordAttributes?Version=2022-06-01

调试

请求参数

除了以下参数,您还需要 对请求进行鉴权

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

ListRecordAttributes

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

Version
String

2022-06-01

API的版本,取值:2022-06-01。

返回参数

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

参数
类型
示例值
描述
TTLs
Array of Integer

私网解析 PrivateZone 支持的解析记录过期时间。单位为秒。

Types
Array of String

私网解析 PrivateZone 支持的解析记录类型。

WeightLimit
Integer

100

私网解析 PrivateZone 支持的解析记录权重的最大值。

请求示例

GET https://private-zone.volcengineapi.com/?Action=ListRecordAttributes&Version=2022-06-01

返回示例

{
    "ResponseMetadata": {
        "RequestId": "20221213233408030C7E5B1C72CA50B820",
        "Action": "ListRecordAttributes",
        "Version": "2022-06-01",
        "Service": "private_zone",
        "Region": "cn"
    },
    "Result": {
        "TTLs": [
            1,
            5,
            10,
            30,
            60,
            120,
            600,
            1800,
            3600,
            43200,
            86400
        ],
        "Types": [
            "A",
            "AAAA",
            "CNAME",
            "TXT",
            "MX",
            "PTR"
        ],
        "WeightLimit": 100,
    }
}

错误码

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

状态码
错误码
错误信息
说明
500
ErrInternalServer

server internal error

服务内部错误