Skip to content

Revoke Snapshot/Chart Share



GET /api/v1/share_config/delete

Overview

Revoke the specified share configuration and first-hop credential through GET.

Prerequisites and Usage Steps

The current key must have share.shareManage. Although this is a GET request, this endpoint modifies state and revokes access, so do not use it for prefetching or scheduled health probes. Obtain shareConfigUUIDs from the Share Management list in the current console as share_ UUIDs in the current workspace; they are not snapshot snap_, token/authCode, or share URLs. Separate multiple UUIDs with commas, and do not trim each item.

This share deletion path is not limited to resourceType=snapshot and can also delete other chart/dashboard shares in the same workspace. Callers must first verify resourceType and resourceUUID. It only soft-deletes matching configurations in the current workspace that have not been deleted; unknown, cross-workspace, or already deleted items are ignored. It usually returns true and provides no per-item results.

The share deletion is submitted first, then the long-lived first-hop code and cache are revoked, and the second-stage share token cache is cleared. On failure, the share may already be disabled, and some cache cleanup may not yet be complete. First check the share status in the console and verify it by actually accessing it; do not treat a 500 as a rollback of the revocation. The original snapshot, dashboard, and telemetry data are not deleted. Re-sharing generates a new configuration and code and does not guarantee restoration of the old URL.

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

Query Request Parameters

Parameter Type Required Description
shareConfigUUIDs commaArray Y Required non-empty comma-separated string, not a JSON array. Verify each share type first to avoid revoking shares of other resources; leading and trailing whitespace is not trimmed per item.
Allow null: False
Allow empty string: False
Example: share_example
How to obtain or enter: Obtain the share configuration UUID (share_) from the Share Management list in the current console, and verify resourceType=snapshot and the target resourceUUID. This group of OpenAPI operations has no ShareConfig list. If the UI does not display the UUID, ask a workspace administrator for assistance. Do not use the cross-workspace authorization configuration grant_ UUID.

Additional Parameter Notes

A snapshot saves the page configuration and server-side query scope; internet sharing requires creating a separate share configuration. snap_, share_, the first-hop code, and the second-stage token are different identifiers.

Request Example

curl --get 'https://openapi.guance.com/api/v1/share_config/delete' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode shareConfigUUIDs=share_example

Response

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

Field Type Description
content boolean Success is true; when there is no match, it usually still returns true; does not include declaration or per-item results.
{
  "code": 200,
  "content": true,
  "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 Using an undeclared Query parameter or a parameter that violates the rules Parameter parsing failed Check the Query parameter table and examples.
500 ft.InternalServerError An unhandled exception occurs during share soft deletion, subsequent first-hop code revocation/second-stage token cache cleanup, or audit data indexing Internal error First check the share configuration status in the console and verify whether the old link is invalid; the primary entity may already be deleted; retain traceId to reconcile credential caches, and do not recreate the share.

Feedback

Is this page helpful?