Skip to content

Create



POST /api/v1/dialing_region/regist

Overview

Create a self-built node

Body Request Parameters

Parameter Name Type Required Description
internal boolean Y Country attribute (true for domestic, false for overseas)
Nullable: False
isp string Y Internet Service Provider
Nullable: False
country string Y Country
Nullable: False
province string Province
Nullable: True
city string City
Nullable: True
name string [Testing Node] Nickname
Nullable as empty string: True
Nullable: True
company string Company Information
Nullable: True
keycode string Y [Testing Node] keycode (cannot have the same name)
Nullable: False

Additional Parameter Notes

Request Example

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

Response

{
    "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"
} 

Feedback

Is this page helpful? ×