该接口用于查询一个DataWorks工作空间的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
dataworks:GetProject |
get |
Project
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ProjectId |
integer |
否 |
DataWorks 工作空间 ID。 您可以通过 ListProjects 接口获取工作空间 ID。 |
466230 |
| ProjectIdentifier |
string |
否 |
DataWorks 工作空间的名称。您可以通过 ListProjects 接口获取工作空间的名称。 |
test_project |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回结果。 |
||
| Data |
object |
工作空间的详细信息。 |
|
| Appkey |
string |
该参数已废弃。 |
0 |
| BaseProject |
boolean |
该参数已废弃。 |
false |
| DefaultDiResourceGroupIdentifier |
string |
购买 MaxCompute 独享资源组时,默认分配的资源组的标识。 |
group_280749521**** |
| Destination |
integer |
该参数已废弃。 |
0 |
| DevStorageQuota |
string |
该参数已废弃。 |
0 |
| DevelopmentType |
integer |
该参数已废弃。 |
4 |
| DisableDevelopment |
boolean |
是否禁用开发角色,取值如下:
|
true |
| EnvTypes |
array |
工作空间包含的环境信息。 |
|
|
string |
工作空间包含的环境:
|
["PROD"] |
|
| GmtCreate |
string |
创建工作空间时间,示例格式 |
Oct 10, 2019 3:42:53 PM |
| GmtModified |
string |
修改工作空间的时间,示例格式为 |
Dec 3, 2019 9:12:20 PM |
| IsAllowDownload |
integer |
是否允许下载 ide 上查询的结果,取值如下:
|
1 |
| IsDefault |
integer |
是否为默认工作空间,取值如下:
|
1 |
| MaxFlowNode |
integer |
该参数已废弃。 |
1 |
| ProdStorageQuota |
string |
该参数已废弃。 |
1 |
| ProjectDescription |
string |
工作空间的详细描述信息。 |
test_describe |
| ProjectId |
integer |
工作空间的 ID。 |
466230 |
| ProjectIdentifier |
string |
工作空间的名称。 |
test_project |
| ProjectMode |
integer |
工作空间的模式,取值如下:
|
2 |
| ProjectName |
string |
工作空间的显示名称。 |
test_project |
| ProjectOwnerBaseId |
string |
工作空间所有者的阿里云 ID。 |
18229311**** |
| ProtectedMode |
integer |
工作空间是否开启了保护模式,取值如下:
|
1 |
| ResidentArea |
string |
工作空间的类型。
|
private |
| ResourceManagerResourceGroupId |
string |
资源组 ID。 |
rg-acfmzbn7**** |
| SchedulerMaxRetryTimes |
integer |
默认出错自动重跑的次数。 |
3 |
| SchedulerRetryInterval |
integer |
默认出错自动重跑的时间间隔,单位为 ms。取值最大为 30 分钟,注意单位转换。 |
120000 |
| Status |
integer |
工作空间的状态,取值如下:
|
0 |
| TablePrivacyMode |
integer |
MaxCompute 表的可见性权限,取值如下:
|
1 |
| Tags |
array<object> |
工作空间绑定的标签信息列表。 |
|
|
object |
标签信息详情。 |
||
| Key |
string |
标签键。 |
key |
| Value |
string |
标签值。 |
value |
| TenantId |
integer |
租户 ID。 |
280749521 |
| UseProxyOdpsAccount |
boolean |
访问 MaxCompute 引擎是否使用代理账号。 |
true |
| HttpStatusCode |
integer |
请求返回码。 |
200 |
| RequestId |
string |
请求 ID。 |
1AFAE64E-D1BE-432B-A9**** |
| Success |
boolean |
请求是否成功,取值如下:
|
true |
示例
正常返回示例
JSON格式
{
"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
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | 项目不存在。 |
| 400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | 用户不在项目中。 |
| 403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | 用户不是项目负责人或者项目管理员。 |
| 403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | 用户不在租户中。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。