Query data assets

Query the corresponding data assets after processing according to the original file ID.

HTTP
GET $CLOUDSIGMA_API_BASE/catalog/files/{file_id}/data-asset

Before you call

Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the file list to obtain the original file ID. Prepare the personal access token, target workspace ID, and file ID that can access the target workspace.

Request parameters

Shell
curl "$CLOUDSIGMA_API_BASE/catalog/files/$FILE_ID/data-asset" \
  -H "X-API-Key: $CLOUDSIGMA_API_KEY" \
  -H "X-Workspace-ID: $WORKSPACE_ID"

Path parameters

Field

Type

Required

Description

file_id

string

Yes

The original file ID to query.

Successful response

JSON
{
  "code": "OK",
  "msg": "OK",
  "data": {
    "asset": {
      "id": 1,
      "asset_id": "asset-123",
      "name": "orders.csv",
      "volume_id": 789,
      "asset_type": "file",
      "asset_ref": "file-123"
    },
    "derivations": [],
    "assets_by_id": {}
  }
}

Field

Type

Description

code

string

OK on success.

msg

string

OK on success.

data.asset

object

Data assets corresponding to the original files.

data.derivations

array

Asset derivation relationship.

data.manifest

object

Mapping metadata of original files and parsed products. May be omitted if not available.

data.assets_by_id

object

Related assets indexed by asset ID. The object key is determined by the asset ID returned by the server and cannot be enumerated in advance. Each value is the data asset structure listed on this page data.asset.

data.asset.id

integer

Data asset record ID.

data.asset.asset_id

string

Data asset ID.

data.asset.name

string

Asset name.

data.asset.raw_file_id

string

Compatibility field, old original file ID. Return when applicable.

data.asset.volume_id

integer

The volume ID to which it belongs.

data.asset.asset_type

string

Data asset type.

data.asset.asset_ref

string

Data asset reference identifier.

data.asset.source

string

Data asset source.

data.asset.meta

object

Data asset extension metadata. Keys are written by the processing link, and the server does not define a fixed key set.

data.asset.created_at

integer

Unix timestamp of creation time in seconds.

data.asset.updated_at

integer

Unix timestamp of the update time in seconds.

data.derivations[].id

integer

Derived relationship record ID.

data.derivations[].asset_id

string

Compatibility field, old source asset ID. Return when applicable.

data.derivations[].kind

string

Derived relationship type.

data.derivations[].file_id

string

Compatibility field, old target physical reference. Return when applicable.

data.derivations[].meta

object

Derived relationship extension metadata. Keys are written by the processing link, and the server does not define a fixed key set.

data.derivations[].created_at

integer

Unix timestamp of creation time in seconds.

data.derivations[].updated_at

integer

Unix timestamp of the update time in seconds.

data.derivations[].root_asset_id

string

Root data asset ID.

data.derivations[].source_asset_id

string

Source data asset ID.

data.derivations[].target_asset_id

string

Target data asset ID.

data.derivations[].case_id

string

Associated case ID. Return when applicable.

data.derivations[].producer_workitem_id

string

The work item ID that produces this relationship. Return when applicable.

data.derivations[].recorded_by_workitem_id

string

Record the work item ID of this relationship. Return when applicable.

data.derivations[].parallel_index

integer

Process sequence numbers in parallel. Return when applicable.

data.derivations[].logical_slot

string

Logical slot. Return when applicable.

data.derivations[].idempotency_key

string

Idempotent keys. Return when applicable.

data.manifest.id

integer

Mapping record ID.

data.manifest.asset_id

string

Compatibility field, old root asset ID. Return when applicable.

data.manifest.raw_file_id

string

Compatibility field, old source file ID. Return when applicable.

data.manifest.parsed_file_id

string

Parse product file ID.

data.manifest.manifest

object

Parse manifest expansion content. Keys are written by the processing link, and the server does not define a fixed key set.

data.manifest.created_at

integer

Unix timestamp of creation time in seconds.

data.manifest.updated_at

integer

Unix timestamp of the update time in seconds.

data.manifest.root_asset_id

string

Root data asset ID.

data.manifest.source_file_id

string

Source file ID.

data.manifest.parsed_asset_id

string

Resolve data asset IDs.

Error response

JSON
{
  "code": "ErrNotFound",
  "msg": "对象不存在"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on