Skip to content

Create a Self-hosted Synthetic Test Node



POST /api/v1/dialing_region/regist

Overview

Register the Self-hosted Synthetic Test Node configuration for the current Workspace.

Prerequisites and Usage Steps

First confirm the node plan, network location, and unique keycode/display name. The server binds ownership to the current Key Workspace and attaches the server-side created/updated identity and Unix seconds. It does not accept an external Workspace external_id or custom extend_info. Registration only creates the node configuration; it does not install DataKit or guarantee that the heartbeat is online. After success, obtain the node UUID from content.uuid or content.regionInfo.uuid in the actual response, then obtain deployment materials through Node Details/the product's "Get Configuration", and refer to Self-hosted Node Management to complete installation and query isAlive=true for acceptance.

The response may be the node directly, or it may retain an upstream ak/regionInfo wrapper. Do not treat the node AK/SK as an OpenAPI Key; configure real values securely only for the node. The current controller only normalizes the outermost name; regionInfo in the wrapper is not automatically recursively converted. Prefer reading the display from the actual node object and nameI18n. For duplicate names, check self-hosted nodes first; this is not a promise of global uniqueness across Workspaces. If downstream registration succeeds but the response or subsequent steps fail, first query the keycode in the list instead of blindly registering again.

Request Headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the Workspace.
Example: <DF-API-KEY>
How to obtain or fill in: Obtain an OpenAPI Key with the required permission for this operation from API Key management in the target Workspace.

Body Request Parameters

Parameter Type Required Description
nameI18n.zh string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: 生产自建节点
How to obtain or fill in: The customer provides the display name in that language.
nameI18n.en string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: Production self node
How to obtain or fill in: The customer provides the display name in that language.
nameI18n.zh-hant string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: Production self node
How to obtain or fill in: The customer provides the display name in that language.
nameI18n.id string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: Production self node
How to obtain or fill in: The customer provides the display name in that language.
nameI18n.ja string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: Production self node
How to obtain or fill in: The customer provides the display name in that language.
nameI18n.ko string Optional language member; if omitted, it is empty/falls back and does not change the node identifier.
Example: Production self node
How to obtain or fill in: The customer provides the display name in that language.
internal boolean Y Required boolean; does not indicate whether the node is accessible on an internal network or enabled.
Allows null: False
Example: true
How to obtain or fill in: true for mainland China, false for overseas; fill in according to the node's actual location.
isp string Y Required string; the current Studio does not fix the carrier enumeration and does not replace upstream validation.
Allows null: False
Example: example-isp
How to obtain or fill in: Obtain the identifier from the actual node network carrier/provider.
country string Y Required string; the public layer does not fix the country enumeration and remains consistent with node management.
Allows null: False
Example: China
How to obtain or fill in: Fill in according to the node's actual country.
province string Optional and may be null; if omitted, this region information is not provided.
Allows null: True
Example: Zhejiang
How to obtain or fill in: Fill in according to the node's actual province.
city string Optional and may be null.
Allows null: True
Example: Hangzhou
How to obtain or fill in: Fill in according to the node's actual city.
name string Optional; may be null/empty string. A non-empty explicit name overrides nameI18n.zh; if there is no valid display name, the duplicate check falls back to using the keycode. No trim normalization is performed; the client should normalize first.
Allows empty string: True
Allows null: True
Example: 生产自建节点
How to obtain or fill in: Business display name; a non-empty value is recommended to avoid conflicts with existing display names of nodes in the current Workspace or the keycodes of unnamed nodes.
nameI18n json Optional and may be null; an explicit name takes precedence over zh, other languages are normalized, unknown languages are ignored, missing languages become empty strings, and display falls back accordingly. Each value should be a string; this is not a JSON-serialized string required to register the node.
Allows null: True
Example: {"zh": "生产自建节点", "en": "Production self node"}
How to obtain or fill in: Fill in the name mapping according to the languages supported by the product; currently supports zh/en/zh-hant/id/ja/ko.
company string Optional and may be null; does not determine Workspace ownership.
Allows null: True
Example: example
How to obtain or fill in: Fill in according to the enterprise that owns the node.
keycode string Y Required string; exact duplicate pre-check within this Workspace; no automatic trim/case normalization; upstream may impose other constraints, and case variations must not be used to bypass them. This is not the uuid returned after registration.
Allows null: False
Example: example-self-node
How to obtain or fill in: Set a stable deployment identifier for the node; first check the keycode of nodes in this Workspace to avoid duplicates.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/dialing_region/regist' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"internal":true,"isp":"example-isp","country":"China","province":"Zhejiang","city":"Hangzhou","name":"生产自建节点","nameI18n":{"zh":"生产自建节点","en":"Production self node"},"company":"example","keycode":"example-self-node"}'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content.uuid string regn_ node UUID; use this value for regions when creating a standard task.
content.keycode string Node deployment/identification code; not used as the regions UUID.
content.owner string custom for self-hosted nodes.
content.name string Name selected according to the current request language.
content.nameEn string English compatibility display name.
content.name_en string Legacy upstream English name, retained conditionally.
content.nameI18n object Canonical language name mapping.
content.nameI18n. string Display name for that language.
content.internal boolean true for mainland China, false for overseas; not network privacy.
content.country string Country.
content.province string Province.
content.city string City.
content.isp string Carrier/provider.
content.status string Node service status, such as OK/disabled; not the task execution status.
content.heartbeat integer Unix seconds of the node's latest heartbeat, as defined by upstream.
content.region string Upstream region identifier.
content.company string Enterprise information.
content.external_id string Upstream field such as self-hosted ownership; usually empty for default nodes.
content.parent_ak string Upstream compatibility ownership field; may be empty; clients must not treat it as an OpenAPI Key.
content.extend_info string Upstream extension JSON string or an empty string; not an object by default.
content.create_at integer Upstream creation time field; may be -1 for historical records; distinct from the task createAt.
content.Other upstream fields JSON Upstream-compatible additional fields are passed through as-is; do not directly treat unlisted keys as writable parameters.
content.ak object Node deployment credential object returned by some upstream registration/details responses; when absent, obtain the configuration through the product; do not assume the field always exists.
content.ak.ak string Node AK identifier; not the DF-API-KEY of this request.
content.ak.sk string Node SK; only for secure deployment configuration; do not expose or log actual values.
content.ak.external_id string Credential owner Workspace identifier.
content.ak.owner string Upstream credential owner field.
content.ak.parent_ak string Upstream parent credential identifier; do not treat it as a secret that can be used directly for authentication.
content.ak.status string Upstream credential status.
content.ak.update_at integer Upstream update time; preserve the actual unit/historical 0; do not confuse with Studio updateAt.
content.regionInfo object Wrapper node object from some upstreams, with the same semantics as flat node fields; this controller does not recursively normalize the names in this object.
content.regionInfo.uuid string regn_ node UUID; use this value for regions when creating a standard task.
content.regionInfo.keycode string Node deployment/identification code; not used as the regions UUID.
content.regionInfo.owner string custom for self-hosted nodes.
content.regionInfo.name string Name selected according to the current request language.
content.regionInfo.nameEn string English compatibility display name.
content.regionInfo.name_en string Legacy upstream English name, retained conditionally.
content.regionInfo.nameI18n object Canonical language name mapping.
content.regionInfo.nameI18n. string Display name for that language.
content.regionInfo.internal boolean true for mainland China, false for overseas; not network privacy.
content.regionInfo.country string Country.
content.regionInfo.province string Province.
content.regionInfo.city string City.
content.regionInfo.isp string Carrier/provider.
content.regionInfo.status string Node service status, such as OK/disabled; not the task execution status.
content.regionInfo.heartbeat integer Unix seconds of the node's latest heartbeat, as defined by upstream.
content.regionInfo.region string Upstream region identifier.
content.regionInfo.company string Enterprise information.
content.regionInfo.external_id string Upstream field such as self-hosted ownership; usually empty for default nodes.
content.regionInfo.parent_ak string Upstream compatibility ownership field; may be empty; clients must not treat it as an OpenAPI Key.
content.regionInfo.extend_info string Upstream extension JSON string or an empty string; not an object by default.
content.regionInfo.create_at integer Upstream creation time field; may be -1 for historical records; distinct from the task createAt.
content.regionInfo.Other upstream fields JSON Upstream-compatible additional fields are passed through as-is; do not directly treat unlisted keys as writable parameters.
content.declaration object or null Workspace common declaration attached to a non-empty response business object; may be null or an empty object when not configured; empty objects are not added.
{
  "code": 200,
  "content": {
    "uuid": "regn_example",
    "keycode": "example-self-node",
    "owner": "custom",
    "name": "生产自建节点",
    "nameEn": "Production self node",
    "nameI18n": {
      "zh": "生产自建节点",
      "en": "Production self node"
    },
    "internal": true,
    "country": "China",
    "province": "Zhejiang",
    "city": "Hangzhou",
    "isp": "example-isp",
    "status": "OK",
    "heartbeat": 1785427200,
    "region": "example-region",
    "company": "example",
    "external_id": "wksp_example",
    "parent_ak": "",
    "extend_info": "{\"createAt\":1785427200,\"updateAt\":1785427200,\"creator\":\"wsak_example\",\"updator\":\"wsak_example\"}",
    "create_at": 1785427200,
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

For authentication, rate limiting, and common request errors, see Common Error Definitions.

The standard Synthetic Testing SDK uniformly maps downstream error_code=dialtesting.invalidRegion to ft.DialingRegionError and preserves the actual HTTP status (not limited to 400); other downstream 4xx responses preserve the actual HTTP status and error_code/message (including upstream codes without the ft prefix); unlisted codes may also be returned; >=500 is uniformly wrapped by the public entry point as 500 ft.InternalServerError. The SDK returns upstream content. This controller does not uniformly rewrap it into a fixed regionInfo/ak structure; identify flat or compatibility wrappers according to the actual deployment version, and retain unknown additional fields for compatibility.

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed A request field is missing, or the field value violates the declared validation constraints Parameter parsing failed Check the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Fix the JSON according to content.reason, line, and column.
400 ft.JsonFormatError Body top level is not an object Partial JSON file format error Submit the registration object described on this page.
400 RegionRepeatNameKeycode A self-hosted node in this Workspace already has the same keycode Node Code {} already exists Change to a unique keycode or use the existing node; the real errorCode has no ft prefix.
400 RegionRepeatKeycode The display name or fallback keycode conflicts with the display name of an existing node in this Workspace Duplicate node name Use a unique display name; this historical error code name differs from what is checked, and the real code has no ft prefix.
406 ft.DialingBrandNoSetError The Synthetic Testing service brand configuration for the Workspace is missing Synthetic Testing configuration for the {} brand is not configured. Ask the administrator to check the Synthetic Testing service for the current Workspace.
400 ft.DialingAKNoSetError Synthetic Testing service signing credentials are not configured Synthetic Testing AK information is not configured. Check the Launcher activation configuration Ask the administrator to check the service activation information; clients do not submit these credentials in this Body.
400 ft.DialingServerError The downstream Synthetic Test node API returns a 400 business failure or the response media cannot be parsed Synthetic Testing service API call failed Check message/traceId and ask the administrator to inspect the node service; do not treat the failure as no nodes.
500 ft.InternalServerError Standard downstream 5xx/connection exception, or format, name, or response assembly exception for historical nodes/associated fields Internal error Narrow down to the specific node/filter and check the upstream response format and service availability; if the failure persists, retain the traceId.
400 ft.DialingRegionError Mapped to this error when the downstream response error_code=dialtesting.invalidRegion; other 4xx responses retain their respective upstream error codes and actual statuses and are not mapped uniformly. Some Synthetic Test nodes in the current task are invalid. Update the configuration and save again. Check valid self-hosted nodes and node service status; do not perform fixed matching based on the original dialtesting code.

Feedback

Is this page helpful?