Delete Self-hosted Synthetic Test Node¶
GET /api/v1/dialing_region/{region_uuid}/delete
Overview¶
Delete a self-hosted node and stop the task configurations associated with the node.
Before Calling and Usage Steps¶
Note that this legacy API is actually a GET request but has a deletion side effect. Call it only for an explicit deletion. Do not automatically prefetch, perform liveness checks, or blindly retry. The node must be an owner=custom node in the current workspace. It first queries associated tasks, removes the node from the tasks' regions, and batch deletes the task configurations for this region from the node service. Then it commits the local task updates, and finally deletes the node outside the transaction. Raw reported data is not deleted with the node configuration. Other nodes can still continue execution. After the last node is removed, the task may remain but have no execution region; the task is not automatically deleted.
This process is not a cross-service atomic transaction: even if the task/remote region stop or local commit has succeeded, the final node deletion may still fail. On error, first check the node list and the regions of each associated task; do not immediately assume that nothing was executed. If the node is no longer in the list, deleting it again may return 403. The historical regionsInfo may retain an old node snapshot. For actual execution selection, verify against the updated regions and platform status; do not use the old displayed snapshot to determine that execution is still in progress.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| region_uuid | string | Y | This is not a default public node, mobile node ID, keycode, or task UUID. Example: regn_exampleHow to obtain or specify: From the Self-hosted Node List, use the UUID of the owner=custom node in the current workspace. |
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or specify: Obtain an OpenAPI Key with the required permissions from API Key Management in the target workspace. |
Example Request¶
curl --get 'https://openapi.guance.com/api/v1/dialing_region/regn_example/delete' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | JSON | The upstream deletion content is returned as-is, usually {}, not a fixed true; an explicit upstream [] may be returned as-is; if a success dictionary lacks content, the SDK supplies {}. |
| content.declaration | object or null | Workspace common declaration attached to non-empty content; can be null or an empty object when not configured. |
{
"code": 200,
"content": {},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
The standard synthetic testing SDK uniformly maps the 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 as 500 ft.InternalServerError by the public entry point. The SDK returns the upstream content. This controller does not uniformly rewrap it into a fixed regionInfo/ak structure; identify the flat or compatibility-wrapped form according to the actual deployment version, and retain unknown additional fields for compatibility.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 403 | ft.ForbiddenInvalidSelfBuiltNode | The UUID is not in the workspace's self-hosted node set | Invalid operation, invalid self-hosted node ID | Verify against the workspace's self-hosted list; idempotent success is not guaranteed for already deleted objects. |
| 406 | ft.DialingBrandNoSetError | The brand configuration for the synthetic testing service corresponding to the workspace is missing | The synthetic testing configuration for brand {} is not configured. |
Have an administrator check the synthetic testing service for the current workspace. |
| 400 | ft.DialingAKNoSetError | The signing credential for the synthetic testing service is not configured | Synthetic testing AK information is not configured. Check the Launcher activation configuration. | Have an administrator check the service activation information; the client does not submit these credentials in this body. |
| 400 | ft.DialingServerError | The downstream synthetic testing node API returns a 400 business failure or the response media cannot be parsed | Synthetic testing service API call failed | Check message/traceId, and have an administrator check the node service; do not treat the failure as no node. |
| 500 | ft.InternalServerError | Regular downstream 5xx/connection exceptions, or exceptions in the format or name of historical nodes/associated fields and in response assembly | Internal error | Narrow it down to a specific node/filter, and verify the upstream response format and service availability; for persistent failures, retain the traceId. |
| 400 | ft.DialingRegionError | Maps to this error when the downstream response has error_code=dialtesting.invalidRegion; other 4xx responses retain their respective upstream error codes and actual status and are not uniformly mapped. | Some synthetic testing nodes in the current task are invalid. Update the configuration and save it again. | Verify valid self-hosted nodes and the node service status; do not perform fixed matching based on the original dialtesting code. |