跳转至

创建一个自建节点



POST /api/v1/dialing_region/regist

概述

创建一个自建节点

Body 请求参数

参数名 类型 必选 说明
internal boolean Y 国家属性(true为国内,false为海外)
允许为空: False
isp string Y 运营商
允许为空: False
country string Y 国家
允许为空: False
province string 省份
允许为空: True
city string 城市
允许为空: True
name string 【拨测节点】昵称
允许为空字符串: True
允许为空: True
company string 企业信息
允许为空: True
keycode string Y 【拨测节点】keycode(不可重名)
允许为空: False

参数补充说明

请求例子

curl 'https://openapi.guance.com/api/v1/dialing_region/regist' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"internal":false,"isp":"telecom","country":"Afghanistan","city":"Shahrak","keycode":"Afghanistan-Shahrak-telecom","name":"test"}' \
--compressed

响应

{
    "code": 200,
    "content": {
        "ak": {
            "ak": "xxxx",
            "external_id": "wksp_xxxx32",
            "owner": "",
            "parent_ak": "ak_xxxx20",
            "sk": "xxxxxxx",
            "status": "",
            "update_at": 0
        },
        "regionInfo": {
            "city": "Shahrak",
            "company": "",
            "country": "Afghanistan",
            "create_at": 0,
            "external_id": "ak_xxxx20-wksp_xxxx32",
            "heartbeat": 0,
            "internal": false,
            "isp": "telecom",
            "keycode": "Afghanistan-Shahrak-telecom",
            "name": "test",
            "owner": "custom",
            "parent_ak": "",
            "province": "",
            "region": "",
            "status": "",
            "uuid": "reg_xxxx20"
        }
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-A9074F0D-8F0B-4034-AD9B-9D8A894F1679"
} 

文档评价

文档内容是否对您有帮助? ×