Queries a list of file resources in DataStudio. You can also specify filter conditions to query specific file resources.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
ProjectId | string | Yes | 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. | 10002 |
Owner | string | No | The ID of the Alibaba Cloud account used by the workspace administrator. You can log on to the Alibaba Cloud Management Console and view the ID on the Security Settings page. | 110755000425XXXX |
Type | string | No | The resource type. This parameter specifies a filter condition. Valid values:
| python |
PageNumber | integer | No | The page number. | 1 |
PageSize | integer | No | The number of entries per page. Default value: 10. Maximum value: 100. | 10 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "99EBE7CF-69C0-5089-BE3E-79563C31XXXX",
"PagingInfo": {
"TotalCount": 131,
"PageSize": 10,
"PageNumber": 1,
"Resources": [
{
"Id": "631478864897630XXXX",
"Name": "math.py",
"ProjectId": "344247",
"Owner": "110755000425XXXX",
"CreateTime": 1724505917000,
"ModifyTime": 1724505917000,
"DataSource": {
"Name": "odps_first",
"Type": "odps"
},
"Script": {
"Path": "root/demo",
"Runtime": {
"Command": "ODPS_PYTHON"
},
"Id": "123348864897630XXXX"
},
"Type": "jar",
"SourceType": "local",
"SourcePath": "XXX/unknown/ide/1/XXX/20240820200851_963a9da676de44ef8d06a6576a8c4d6a.py",
"TargetType": "oss",
"TargetPath": "XXX/unknown/ide/1/XXX/20240820200851_963a9da676de44ef8d06a6576a8c4d6a.py"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|