All Products
Search
Document Center

DataWorks:GetResource

Last Updated:Dec 10, 2024

Queries the information about a file resource.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdstringNo

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

You must configure this parameter to specify the DataWorks workspace to which the API operation is applied.

10000
IdstringYes

The ID of the file resource.

860438872620113XXXX

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

E871F6C0-2EFF-5790-A00D-C57543EEXXXX
Resourceobject

The information about the file resource.

Idstring

The ID of the file resource.

860438872620113XXXX
ProjectIdstring

The ID of the workspace to which the file resource belongs.

10000
Namestring

The name of the file resource.

Ownerstring

The owner of the file resource.

110755000425XXXX
CreateTimelong

The time when the file resource was created. This value is a UNIX timestamp.

1700539206000
ModifyTimelong

The time when the file resource was last modified. This value is a UNIX timestamp.

1700539206000
Specstring

The FlowSpec field information about the file resource. For more information, see FlowSpec .

Examples

Sample success responses

JSONformat

{
  "RequestId": "E871F6C0-2EFF-5790-A00D-C57543EEXXXX",
  "Resource": {
    "Id": "860438872620113XXXX",
    "ProjectId": "10000",
    "Name": "",
    "Owner": "110755000425XXXX",
    "CreateTime": 1700539206000,
    "ModifyTime": 1700539206000,
    "Spec": ""
  }
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history