該介面用於查詢一個DataWorks工作空間的詳細資料。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ProjectId |
integer |
否 |
DataWorks 工作空間 ID。 您可以通過 ListProjects 介面擷取工作空間 ID。 |
466230 |
| ProjectIdentifier |
string |
否 |
DataWorks 工作空間的名稱。您可以通過 ListProjects 介面擷取工作空間的名稱。 |
test_project |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| HttpStatusCode |
integer |
請求返回碼。 |
200 |
| RequestId |
string |
請求 ID。 |
1AFAE64E-D1BE-432B-A9**** |
| Success |
boolean |
請求是否成功,取值如下:
|
true |
| Data |
object |
工作空間的詳細資料。 |
|
| Status |
integer |
工作空間的狀態,取值如下:
|
0 |
| MaxFlowNode |
integer |
該參數已廢棄。 |
1 |
| ProjectId |
integer |
工作空間的 ID。 |
466230 |
| IsAllowDownload |
integer |
是否允許下載 ide 上查詢的結果,取值如下:
|
1 |
| ProjectMode |
integer |
工作空間的模式,取值如下:
|
2 |
| GmtModified |
string |
修改工作空間的時間,樣本格式為 |
Dec 3, 2019 9:12:20 PM |
| ProdStorageQuota |
string |
該參數已廢棄。 |
1 |
| ProjectDescription |
string |
工作空間的詳細描述資訊。 |
test_describe |
| DevelopmentType |
integer |
該參數已廢棄。 |
4 |
| TablePrivacyMode |
integer |
MaxCompute 表的可見度許可權,取值如下:
|
1 |
| DefaultDiResourceGroupIdentifier |
string |
購買 MaxCompute 獨享資源群組時,預設分配的資源群組的標識。 |
group_280749521**** |
| SchedulerMaxRetryTimes |
integer |
預設出錯自動重跑的次數。 |
3 |
| ProtectedMode |
integer |
工作空間是否開啟了保護模式,取值如下:
|
1 |
| SchedulerRetryInterval |
integer |
預設出錯自動重跑的時間間隔,單位為 ms。取值最大為 30 分鐘,注意單位轉換。 |
120000 |
| Appkey |
string |
該參數已廢棄。 |
0 |
| DevStorageQuota |
string |
該參數已廢棄。 |
0 |
| ResidentArea |
string |
工作空間的類型。
|
private |
| IsDefault |
integer |
是否為預設工作空間,取值如下:
|
1 |
| Destination |
integer |
該參數已廢棄。 |
0 |
| ProjectName |
string |
工作空間的顯示名稱。 |
test_project |
| ProjectIdentifier |
string |
工作空間的名稱。 |
test_project |
| DisableDevelopment |
boolean |
是否禁用開發角色,取值如下:
|
true |
| ProjectOwnerBaseId |
string |
工作空間所有者的阿里雲 ID。 |
18229311**** |
| BaseProject |
boolean |
該參數已廢棄。 |
false |
| UseProxyOdpsAccount |
boolean |
訪問 MaxCompute 引擎是否使用代理帳號。 |
true |
| GmtCreate |
string |
建立工作空間時間,樣本格式 |
Oct 10, 2019 3:42:53 PM |
| TenantId |
integer |
租戶 ID。 |
280749521 |
| EnvTypes |
array |
工作空間包含的環境資訊。 |
|
|
string |
工作空間包含的環境:
|
["PROD"] |
|
| ResourceManagerResourceGroupId |
string |
資源群組 ID。 |
rg-acfmzbn7**** |
| Tags |
array<object> |
工作空間綁定的標籤資訊列表。 |
|
|
object |
標籤資訊詳情。 |
||
| Key |
string |
標籤鍵。 |
key |
| Value |
string |
標籤值。 |
value |
樣本
正常返回樣本
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "1AFAE64E-D1BE-432B-A9****",
"Success": true,
"Data": {
"Status": 0,
"MaxFlowNode": 1,
"ProjectId": 466230,
"IsAllowDownload": 1,
"ProjectMode": 2,
"GmtModified": "Dec 3, 2019 9:12:20 PM",
"ProdStorageQuota": " 1",
"ProjectDescription": "test_describe",
"DevelopmentType": 4,
"TablePrivacyMode": 1,
"DefaultDiResourceGroupIdentifier": "group_280749521****",
"SchedulerMaxRetryTimes": 3,
"ProtectedMode": 1,
"SchedulerRetryInterval": 120000,
"Appkey": "0",
"DevStorageQuota": "0",
"ResidentArea": "private",
"IsDefault": 1,
"Destination": 0,
"ProjectName": "test_project",
"ProjectIdentifier": "test_project",
"DisableDevelopment": true,
"ProjectOwnerBaseId": "18229311****",
"BaseProject": false,
"UseProxyOdpsAccount": true,
"GmtCreate": "Oct 10, 2019 3:42:53 PM",
"TenantId": 280749521,
"EnvTypes": [
"[\"PROD\"]"
],
"ResourceManagerResourceGroupId": "rg-acfmzbn7****",
"Tags": [
{
"Key": "key",
"Value": "value"
}
]
}
}
錯誤碼
|
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. | 使用者不在租戶中。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。