You need to enable JavaScript to run this app.
导航

ListDomains - 获取域名列表

最近更新时间2023.10.30 15:09:03

首次发布时间2023.10.17 17:43:57

获取域名列表。

请求说明

您可以使用 GET 或 POST 方法。

请求鉴权

您需要 对请求进行鉴权

请求参数

名称
类型
是否必填
示例值
描述
Action
String

ListDomains

要执行的操作,取值:ListDomains

Version
String

2023-09-01

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

响应数据

名称
类型
示例值
描述
Result
Array of DomainInstance

响应结果

示例

GET 示例

请求

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

响应

{
    "ResponseMetadata": {
        "RequestId": "20231011172302477A4BF4688234E71DAB",
        "Action": "ListDomains",
        "Version": "2023-09-01",
        "Service": "httpdns",
        "Region": "cn-north-1"
    },
    "Result": [
        {
            "Domain": "www.douyin.com",
            "Id": 17669
        },
        {
            "Domain": "www.toutiao.com",
            "Id": 13371
        },
    ]
}

POST 示例

请求

POST https://open.volcengineapi.com?Action=ListDomains&Version=2023-09-01

响应

{
    "ResponseMetadata": {
        "RequestId": "20231011172302477A4BF4688234E71DAB",
        "Action": "ListDomains",
        "Version": "2023-09-01",
        "Service": "httpdns",
        "Region": "cn-north-1"
    },
    "Result": [
        {
            "Domain": "www.douyin.com",
            "Id": 17669
        },
        {
            "Domain": "www.toutiao.com",
            "Id": 17671
        },
    ]
}

错误码

您可访问公共错误码,获取详细信息。