Query file products¶
Query file product information by file ID.
GET $CLOUDSIGMA_API_BASE/catalog/file-artifacts/{file_id}
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 target 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/file-artifacts/$FILE_ID" \
-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": {
"file_id": "file-123",
"file_exists": true,
"has_artifact": false,
"derivations": [],
"assets_by_id": {}
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
string |
Query file ID. |
|
boolean |
whether the file exists. |
|
boolean |
Whether there are related products in the file. |
|
string |
Source file ID. May be omitted if not available. |
|
string |
Parse product file ID. May be omitted if not available. |
|
object |
Root data assets. May be omitted if not available. |
|
object |
Data assets in process. May be omitted if not available. |
|
object |
Parsed data assets. May be omitted if not available. |
|
array |
Data asset derivation relationships. |
|
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 source. Return when applicable. |
|
object |
Extended 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 |
Data asset type. |
|
string |
Data asset reference identifier. Return when applicable. |
|
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 source. Return when applicable. |
|
object |
Extended 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 |
Data asset type. |
|
string |
Data asset reference identifier. Return when applicable. |
|
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 source. Return when applicable. |
|
object |
Extended 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 |
Data asset type. |
|
string |
Data asset reference identifier. Return when applicable. |
|
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. |