查詢一個DataWorks工作空間的資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dataworks:GetProjectDetail |
get |
Project
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ProjectId |
integer |
是 |
DataWorks 工作空間的 ID。 |
27 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| HttpStatusCode |
integer |
HTTP 狀態碼。 |
200 |
| RequestId |
string |
請求 ID。 |
0bc1411515937635973**** |
| Success |
boolean |
是否成功查詢工作空間的資訊。 |
true |
| Data |
object |
工作空間的描述資訊。 |
|
| Status |
integer |
工作空間的狀態。 |
0 |
| ResidentArea |
string |
工作空間的類型:private 為私人區,swap 為交換區。 |
private |
| ProjectId |
integer |
工作空間的 ID。 |
27 |
| ProjectIdentifier |
string |
工作空間的識別碼。 |
abc |
| ProjectName |
string |
工作空間的顯示名稱。 |
abc |
| IsAllowDownload |
integer |
是否允許下載。 |
1 |
| ProjectMode |
integer |
工作空間模式:簡單工作空間模式為 2,標準工作空間模式為 3。 |
1 |
| ProjectDescription |
string |
工作空間的描述。 |
abc |
| GmtModified |
string |
修改工作空間的時間。 |
Dec 3, 2019 9:12:20 PM |
| ProjectOwnerBaseId |
string |
工作空間擁有者的阿里雲 ID。 |
18229311**** |
| DevelopmentType |
integer |
專案開發類型,目前均為 4。 |
4 |
| DefaultDiResourceGroupIdentifier |
string |
預設節點的資料整合資源群組識別碼。 |
group_280749521**** |
| GmtCreate |
string |
建立工作空間的時間。 |
Oct 10, 2019 3:42:53 PM |
| SchedulerMaxRetryTimes |
integer |
預設出錯自動重跑的次數。 |
3 |
| ProtectedMode |
integer |
工作空間是否開啟了保護模式。 |
1 |
| TenantId |
integer |
租戶 ID。 |
280749521950784 |
| SchedulerRetryInterval |
integer |
預設出錯自動重跑的時間間隔。 |
120000 |
| EnvTypes |
array |
工作空間包含的環境:簡單模式只有生產環境(PROD),標準模式包含開發環境(DEV)和生產環境(PROD)。 |
|
|
string |
工作空間包含的環境:簡單模式只有生產環境(PROD),標準模式包含開發環境(DEV)和生產環境(PROD)。 |
["PROD"] |
|
| ResourceManagerResourceGroupId |
string |
資源群組 ID。 |
rg-acfmzbn7pti3zfa |
| Tags |
array<object> |
標籤資訊。 |
|
|
object |
標籤資訊。 |
||
| Key |
string |
The tag key. |
Env |
| Value |
string |
The tag value. |
Test |
| DisableDevelopment |
boolean |
是否停用開發角色,取值如下:
|
true |
| UseProxyOdpsAccount |
boolean |
存取 MaxCompute 引擎是否使用代理帳號。 |
true |
| TablePrivacyMode |
integer |
MaxCompute 表的可見性權限,取值如下:
|
1 |
| IsDefault |
integer |
是否為預設工作空間,取值如下:
|
1 |
樣本
正常返回樣本
JSON格式
{
"HttpStatusCode": 200,
"RequestId": "0bc1411515937635973****",
"Success": true,
"Data": {
"Status": 0,
"ResidentArea": "private",
"ProjectId": 27,
"ProjectIdentifier": "abc",
"ProjectName": "abc",
"IsAllowDownload": 1,
"ProjectMode": 1,
"ProjectDescription": "abc",
"GmtModified": "Dec 3, 2019 9:12:20 PM",
"ProjectOwnerBaseId": "18229311****",
"DevelopmentType": 4,
"DefaultDiResourceGroupIdentifier": "group_280749521****",
"GmtCreate": "Oct 10, 2019 3:42:53 PM",
"SchedulerMaxRetryTimes": 3,
"ProtectedMode": 1,
"TenantId": 280749521950784,
"SchedulerRetryInterval": 120000,
"EnvTypes": [
"[\"PROD\"]"
],
"ResourceManagerResourceGroupId": "rg-acfmzbn7pti3zfa",
"Tags": [
{
"Key": "Env",
"Value": "Test"
}
],
"DisableDevelopment": true,
"UseProxyOdpsAccount": true,
"TablePrivacyMode": 1,
"IsDefault": 1
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | |
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。