GetProject
Queries the details of a DataWorks workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetProject |
get |
Project
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
No |
The DataWorks workspace ID. You can call the ListProjects operation to obtain the workspace ID. |
466230 |
| ProjectIdentifier |
string |
No |
The name of the DataWorks workspace. You can call the ListProjects operation to obtain the workspace name. |
test_project |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Data |
object |
The details of the workspace. |
|
| Appkey |
string |
This parameter is deprecated. |
0 |
| BaseProject |
boolean |
This parameter is deprecated. |
false |
| DefaultDiResourceGroupIdentifier |
string |
The identifier of the default resource group that is automatically assigned when you purchase a MaxCompute exclusive resource group. |
group_280749521**** |
| Destination |
integer |
This parameter is deprecated. |
0 |
| DevStorageQuota |
string |
This parameter is deprecated. |
0 |
| DevelopmentType |
integer |
This parameter is deprecated. |
4 |
| DisableDevelopment |
boolean |
Indicates whether the development role is disabled. Valid values:
|
true |
| EnvTypes |
array |
The environment context of the workspace. |
|
|
string |
The environments of the workspace:
|
["PROD"] |
|
| GmtCreate |
string |
The time when the workspace was created. Example: |
Oct 10, 2019 3:42:53 PM |
| GmtModified |
string |
The time when the workspace was last modified. Example: |
Dec 3, 2019 9:12:20 PM |
| IsAllowDownload |
integer |
Indicates whether downloading query results from the IDE is allowed. Valid values:
|
1 |
| IsDefault |
integer |
Indicates whether the workspace is the default workspace. Valid values:
|
1 |
| MaxFlowNode |
integer |
This parameter is deprecated. |
1 |
| ProdStorageQuota |
string |
This parameter is deprecated. |
1 |
| ProjectDescription |
string |
The description of the workspace. |
test_describe |
| ProjectId |
integer |
The workspace ID. |
466230 |
| ProjectIdentifier |
string |
The name of the workspace. |
test_project |
| ProjectMode |
integer |
The mode of the workspace. Valid values:
|
2 |
| ProjectName |
string |
The display name of the workspace. |
test_project |
| ProjectOwnerBaseId |
string |
The Alibaba Cloud ID of the workspace owner. |
18229311**** |
| ProtectedMode |
integer |
Indicates whether protected mode is enabled for the workspace. Valid values:
|
1 |
| ResidentArea |
string |
The type of the workspace. Valid values:
|
private |
| ResourceManagerResourceGroupId |
string |
The resource group ID. |
rg-acfmzbn7**** |
| SchedulerMaxRetryTimes |
integer |
The default maximum number of automatic reruns upon an error. |
3 |
| SchedulerRetryInterval |
integer |
The default interval between automatic reruns upon an error. Unit: ms. The maximum value is 30 minutes. Note the unit conversion. |
120000 |
| Status |
integer |
The status of the workspace. Valid values:
|
0 |
| TablePrivacyMode |
integer |
The visibility of MaxCompute tables. Valid values:
|
1 |
| Tags |
array<object> |
The list of tags bound to the workspace. |
|
|
object |
The tag details. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| TenantId |
integer |
The tenant ID. |
280749521 |
| UseProxyOdpsAccount |
boolean |
Indicates whether a proxy account is used to access the MaxCompute engine. |
true |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
1AFAE64E-D1BE-432B-A9**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Data": {
"Appkey": "0",
"BaseProject": false,
"DefaultDiResourceGroupIdentifier": "group_280749521****",
"Destination": 0,
"DevStorageQuota": "0",
"DevelopmentType": 4,
"DisableDevelopment": true,
"EnvTypes": [
"[\"PROD\"]"
],
"GmtCreate": "Oct 10, 2019 3:42:53 PM",
"GmtModified": "Dec 3, 2019 9:12:20 PM",
"IsAllowDownload": 1,
"IsDefault": 1,
"MaxFlowNode": 1,
"ProdStorageQuota": " 1",
"ProjectDescription": "test_describe",
"ProjectId": 466230,
"ProjectIdentifier": "test_project",
"ProjectMode": 2,
"ProjectName": "test_project",
"ProjectOwnerBaseId": "18229311****",
"ProtectedMode": 1,
"ResidentArea": "private",
"ResourceManagerResourceGroupId": "rg-acfmzbn7****",
"SchedulerMaxRetryTimes": 3,
"SchedulerRetryInterval": 120000,
"Status": 0,
"TablePrivacyMode": 1,
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"TenantId": 280749521,
"UseProxyOdpsAccount": true
},
"HttpStatusCode": 200,
"RequestId": "1AFAE64E-D1BE-432B-A9****",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | The project does not exist. |
| 400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | The user is not in the project. |
| 403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | The user is not a project administrator or owner. |
| 403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | The user is not in tenant. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.