Skip to content

List



GET /api/v1/rum_sourcemap/list

Overview

List SourceMap status summaries for each environment and version of a RUM app.

Prerequisites and Usage Steps

The key must match one of routine.defaultAccess, rum.rumCfgManage, anonymous.shared, or anonymous.snapshotShared; authentication still uses the actual OpenAPI Key and is limited to the current workspace. Use content[].appId from the RUM App Quick List to obtain the app identifier. This public listing endpoint accepts only appId and returns SourceMap data for all environments and versions of that app. It does not accept additional env/version filter parameters.

The OpenAPI exposes only the Query appId and does not accept frontend pageSize/pageIndex/search/env. It returns arrays of all displayable environments/versions for the entire app, is not paginated, and has no capabilities object. The first read may safely take over legacy directories and publish indexes. If a conflict occurs with a legacy upload/index update, handle it according to the 409 prompt.

Results are sorted in descending order by last successful upload time. A new generation in processing can override the display of an old version in the list, and a failed replacement does not hide an existing healthy current generation. Therefore, the absence of failed in the list does not prove that the most recent replacement request succeeded. state=ready/settling is generally readable; processing means upload/decompression/publishing is still in progress; failed means failure; for blocked, check the legacy directory or recovery status together with reasonCode. Generations that are being deleted or have been deleted are not listed.

createAt is the last successful upload time, not the task creation time; it can be 0 if no upload has succeeded, and lastSuccessfulUploadAt can be null. Only a summary is returned; uploadId, file content, and parsing results are not included. After the upload is complete, you should also check the File Tree and validate with an actual error stack.

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 this operation permission from API Key Management in the target workspace.

Query Request Parameters

Parameter Type Required Description
appId string Y Required. Active app identifier in the current workspace; it is not an internal RumCfg UUID and cannot be used across workspaces.
Allows null: False
Example: payment_web
How to obtain or enter: Obtain from content[].appId in the RUM App Quick List or app_id in error records.

Request Example

curl --get 'https://openapi.guance.com/api/v1/rum_sourcemap/list' \
  -H 'DF-API-KEY: <DF-API-KEY>' \
  --data-urlencode appId=payment_web

Response

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

Field Type Description
content array<object> All displayable environment/version summaries for the app; [] when there are no records; not paginated.
content[].env string Exact environment identifier; an empty string is also an independent environment.
content[].version string Exact version identifier.
content[].createAt integer Unix seconds of the last successful upload; can be 0 if no upload has succeeded; legacy records use the historical upload time.
content[].lastSuccessfulUploadAt integer or null Unix seconds of the last successful upload; null if no upload has succeeded; legacy compatibility records may omit it.
content[].state string For example, processing/ready/settling/failed/blocked; legacy compatibility records may omit it.
content[].reasonCode string or null Reason for the most recent failure/isolation, such as sourcemap_invalid/archive_too_large/legacy_invalid; can be null when normal; not an independent result for each task.
content[].declaration object or null Workspace common declaration attached to non-empty business objects; when not configured, it can be null or an empty object; empty objects are not added. It does not change the semantics of business fields with the same name on the entity itself.
content.reasonCode string Error responses only: machine-readable reason, such as active_operation/invalid_scope/registry_missing.
content.action string Error responses only: suggested action, such as retry_after_operation/verify_ownership/check_scope_and_upload.
content.retryable boolean Error responses only: server-suggested retryable flag; do not replay published writes based on this alone.
content.actualBytes integer Some capacity errors only: number of bytes counted.
content.maxBytes integer Capacity/read limit in bytes.
content.workspaceUUID string Some restricted error diagnostics: current workspace UUID.
content.appId string Some restricted error diagnostics: public app identifier.
content.rumCfgUUID string Some restricted error diagnostics: internal app identifier, for support troubleshooting only; does not replace the request appId.
content.env string Some error diagnostics: environment.
content.version string Some error diagnostics: version.
content.bundleUUID string Some error diagnostics: generation record ID for this operation, not uploadId.
content.state string Some error diagnostics: generation state.
content.resource string Some occupancy diagnostics: resource type, such as application/bundle.
content.shared boolean Some occupancy diagnostics: whether access is shared.
content.waitedSeconds number Some occupancy diagnostics: seconds already waited.
content.waitSeconds number Some occupancy diagnostics: allowed wait seconds.
content.waitExhausted boolean Some occupancy diagnostics: this wait was exhausted.
content.elapsedSeconds number Some single-file error diagnostics: operation duration in seconds.
content.phase string Some error diagnostics: failure phase.
content.phaseElapsedSeconds number Some error diagnostics: phase duration in seconds.
{
  "code": 200,
  "content": [
    {
      "env": "production",
      "version": "1.2.3",
      "createAt": 1785427200,
      "lastSuccessfulUploadAt": 1785427200,
      "state": "settling",
      "reasonCode": null,
      "declaration": {}
    }
  ],
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error Response

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

Storage lifecycle retains compatibility error codes: 409 is usually still ft.InvalidAction; the localized message and content.reasonCode further distinguish the cause. Do not treat message names such as SourceMapOperationBusy as necessarily the errorCode. Reading a missing package, a package still processing, or an unavailable package often returns 404 ft.SourceMapPackageNotFound; see reasonCode for the specific reason. Retry with backoff only when retryable=true is explicitly returned and the current state allows it; when uploadCommitted=true, do not replay writes that have been confirmed as published.

HTTP Status errorCode Trigger Condition Message or Response Description Resolution
406 ft.ParameterValidationFailed Use of undeclared Query parameters or parameter rule violations Parameter parsing failed Check the Query parameter table and example.
404 ft.NotFoundRumSet The app is not in the current workspace, has been deleted, or does not exist Specified RUM configuration not found Refresh the RUM App Quick List and use the actual appId in the current workspace.
409 ft.InvalidAction Upload/read/cleanup conflict, incomplete legacy directory takeover, ownership/recovery pending verification, or environment/version exceeds the allowed lifecycle range Returns a specific localized prompt based on reasonCode; for example, the SourceMap is being used by another upload, read, or cleanup operation Read content.reasonCode/action/retryable: for active_operation/active_upload, etc., back off as instructed; for owner_recovery_required/ownership_verification_required/legacy_invalid, etc., ask the administrator to verify first; do not delete in-use records or force an overwrite yourself. For invalid_scope, verify that env/version are at most 256 characters.
406 ft.InvalidFileName The file relative path, symlink, or legacy publish path is unsafe SourceMap file path does not meet requirements or contains unsupported links. Check the relative path and directory structure of the uploaded file. Use a valid relative path within the package, without .., backslashes, absolute paths, or symlinks; check reasonCode=invalid_path.
500 ft.InternalServerError Database, file read/snapshot, legacy configuration, or unhandled parsing exception Internal error Retain traceId and app/env/version; confirm the version state and files first, then handle according to the actual error; reads can be retried with backoff.

Feedback

Is this page helpful?