Query data assets¶
Query the corresponding data assets after processing according to the original file ID.
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¶
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 |
|---|---|---|---|
|
string |
Yes |
The original file ID to query. |
Successful response¶
{
"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 |
|---|---|---|
|
string |
|
|
string |
|
|
object |
Data assets corresponding to the original files. |
|
array |
Asset derivation relationship. |
|
object |
Mapping metadata of original files and parsed products. May be omitted if not available. |
|
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 |
|
integer |
Data asset record ID. |
|
string |
Data asset ID. |
|
string |
Asset name. |
|
string |
Compatibility field, old original file ID. Return when applicable. |
|
integer |
The volume ID to which it belongs. |
|
string |
Data asset type. |
|
string |
Data asset reference identifier. |
|
string |
Data asset source. |
|
object |
Data asset extension metadata. Keys are written by the processing link, and the server does not define a fixed key set. |
|
integer |
Unix timestamp of creation time in seconds. |
|
integer |
Unix timestamp of the update time in seconds. |
|
integer |
Derived relationship record ID. |
|
string |
Compatibility field, old source asset ID. Return when applicable. |
|
string |
Derived relationship type. |
|
string |
Compatibility field, old target physical reference. Return when applicable. |
|
object |
Derived relationship extension metadata. Keys are written by the processing link, and the server does not define a fixed key set. |
|
integer |
Unix timestamp of creation time in seconds. |
|
integer |
Unix timestamp of the update time in seconds. |
|
string |
Root data asset ID. |
|
string |
Source data asset ID. |
|
string |
Target data asset ID. |
|
string |
Associated case ID. Return when applicable. |
|
string |
The work item ID that produces this relationship. Return when applicable. |
|
string |
Record the work item ID of this relationship. Return when applicable. |
|
integer |
Process sequence numbers in parallel. Return when applicable. |
|
string |
Logical slot. Return when applicable. |
|
string |
Idempotent keys. Return when applicable. |
|
integer |
Mapping record ID. |
|
string |
Compatibility field, old root asset ID. Return when applicable. |
|
string |
Compatibility field, old source file ID. Return when applicable. |
|
string |
Parse product file ID. |
|
object |
Parse manifest expansion content. Keys are written by the processing link, and the server does not define a fixed key set. |
|
integer |
Unix timestamp of creation time in seconds. |
|
integer |
Unix timestamp of the update time in seconds. |
|
string |
Root data asset ID. |
|
string |
Source file ID. |
|
string |
Resolve data asset IDs. |
Error response¶
{
"code": "ErrNotFound",
"msg": "对象不存在"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |