Skip to content

Delete RUM Configuration



POST /api/v1/rum_cfg/delete

Overview

Delete the specified RUM application configuration and asynchronously synchronize the mapping deletion.

Prerequisites and Usage Steps

The current key must have rum.rumCfgManage, and the operation is limited to the current Workspace. The appIds array is recommended; if the legacy rumcfgUUIDs is non-empty, it takes precedence and appIds is completely ignored. Although the field name contains UUID, its value is still a public appId. If both are omitted or set to [], no application is selected, and {} is returned.

Only matching, undeleted applications in the current Workspace are soft-deleted. The response returns an object mapping the appIds that actually matched to their names; unknown, cross-Workspace, or already deleted items are ignored. custom bindings are soft-deleted, but the original dashboards and built-in views are not deleted. For applications with managed SourceMaps, their Retention Policy is also stopped and any unexecuted retention cleanup is canceled; this does not mean immediate erasure of source code files, rollback of executed cleanup, or data recovery.

Associated Client Tokens are not deleted or revoked, nor does this controller delete historical RUM telemetry data; deleting an application must not be treated as revoking collection credentials. After submission, mapping deletion reconciliation is delivered according to the requested appIds (including unmatched duplicate deletion items); queue failures are tolerated, and success does not guarantee immediate convergence of query/collection nodes. Retrying can trigger reconciliation again; read back the quick list and business status before deciding how to proceed.

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 enter: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target Workspace.

Body Request Parameters

Parameter Name Type Required Description
appIds[*] string A public appId string.
Example: payment_web
How to obtain or enter: Get content[].appId from the RUM application quick list (the uuid is the same value), or get it from the RUM application settings in the current Workspace.
rumcfgUUIDs[*] string A legacy-compatible appId string.
Example: payment_web
How to obtain or enter: Get content[].appId from the RUM application quick list (the uuid is the same value), or get it from the RUM application settings in the current Workspace.
rumcfgUUIDs array Legacy-compatible array; not recommended for new calls. When non-empty, it takes precedence over appIds; items are still appIds rather than internal UUIDs. appIds is used only when this is empty.
Allows null: False
Example: []
How to obtain or enter: Get content[].appId from the RUM application quick list (the uuid is the same value), or get it from the RUM application settings in the current Workspace.
appIds array Recommended application identifier array; omitted or [] means no target. Multiple items do not return per-item errors; only the name mapping of applications actually deleted is returned.
Allows null: False
Example: ["payment_web"]
How to obtain or enter: Get content[].appId from the RUM application quick list (the uuid is the same value), or get it from the RUM application settings in the current Workspace.

Request Example

curl --request POST 'https://openapi.guance.com/api/v1/rum_cfg/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  -H 'Content-Type: application/json' \
  --data-raw '{"appIds":["payment_web"]}'

Response

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

Field Type Description
content object Mapping of actually deleted appIds to names; {} when there is no match (an empty object does not insert the declaration).
content. string The name of an actually deleted application; not a Boolean or deletion count.
content.declaration object, null, or string Usually a public declaration object/null; if the appId of the deleted application is exactly declaration, the application name string is retained and the public declaration is not appended. It is recommended to avoid this reserved key in appIds.
{
  "code": 200,
  "content": {
    "payment_web": "支付Web",
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}
{
  "code": 200,
  "content": {},
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Responses

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

HTTP Status errorCode Trigger Condition Message or Response Description Handling
406 ft.ParameterValidationFailed Request field is missing, or the field value violates the declared validation conditions Parameter parsing failed Verify the parameter location, field name, type, and value.
400 ft.RequestJsonFormatError Invalid request JSON syntax Request JSON format error Correct the JSON according to content.reason, line, and column.
400 ft.JsonFormatError JSON top level is not an object Format error in some json file Submit an appIds array object.
429 ft.OperationTooFrequently Another RUM create/modify/delete/Token operation in the current Workspace holds the write lock, and the lock was not acquired within 5 seconds Your operation is too frequent, please try again later Wait for other operations to finish and back off; read back the current state before retrying, and do not modify concurrently.
500 ft.InternalServerError Database deletion, SourceMap Retention Policy stop, or lock service exception Internal error First check whether the application has been deleted, then ask the administrator to verify the SourceMap Retention Policy/cleanup and the current state of the asynchronous mapping; do not conclude that deletion did not occur based on the failure.

Feedback

Is this page helpful?