调用GetProjectDetail查询一个Dataworks工作空间的信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetProjectDetail |
要执行的操作。 |
ProjectId | Long | 是 | 27 |
Dataworks工作空间的ID。 |
RegionId | String | 是 | cn-shanghai |
工作空间所在地域的ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Struct |
工作空间的描述信息。 |
|
DefaultDiResourceGroupIdentifier | String | group_280749521**** |
默认节点的数据集成资源组标识。 |
DevelopmentType | Integer | 4 |
项目开发类型,目前均为4。 |
EnvTypes | List | ["PROD"] |
工作空间包含的环境:简单模式只有生产环境(PROD),标准模式包含开发环境(DEV)和生产环境(PROD)。 |
GmtCreate | String | Oct 10, 2019 3:42:53 PM |
创建工作空间的时间。 |
GmtModified | String | Dec 3, 2019 9:12:20 PM |
修改工作空间的时间。 |
IsAllowDownload | Integer | 1 |
是否允许下载。 |
ProjectDescription | String | abc |
工作空间的描述。 |
ProjectId | Integer | 27 |
工作空间的ID。 |
ProjectIdentifier | String | abc |
工作空间的标识。 |
ProjectMode | Integer | 1 |
工作空间模式:简单工作空间模式为2,标准工作空间模式为3。 |
ProjectName | String | abc |
工作空间的显示名称。 |
ProjectOwnerBaseId | String | 18229311**** |
工作空间所有者的阿里云ID。 |
ProtectedMode | Integer | 1 |
工作空间是否开启了保护模式。 |
ResidentArea | String | private |
工作空间的类型:private为私有区,swap为交换区。 |
SchedulerMaxRetryTimes | Integer | 3 |
默认出错自动重跑的次数。 |
SchedulerRetryInterval | Integer | 120000 |
默认出错自动重跑的时间间隔。 |
Status | Integer | 0 |
工作空间的状态。 |
TenantId | Long | 280749521950784 |
租户ID。 |
HttpStatusCode | Integer | 200 |
HTTP状态码。 |
RequestId | String | 0bc1411515937635973**** |
请求ID。 |
Success | Boolean | true |
是否成功查询工作空间的信息。 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetProjectDetail
&ProjectId=27
&RegionId=cn-shanghai
&<公共请求参数>
正常返回示例
XML
格式
<data>
<appkey/>
<baseProject>false</baseProject>
<defaultDiResourceGroupIdentifier>group_280749521****</defaultDiResourceGroupIdentifier>
<destination>28</destination>
<devStorageQuota>64</devStorageQuota>
<developmentType>4</developmentType>
<disableDevelopment>false</disableDevelopment>
<envTypes>PROD</envTypes>
<gmtCreate>Oct 10, 2019 3:42:53 PM</gmtCreate>
<gmtModified>Dec 3, 2019 9:12:20 PM</gmtModified>
<isAllowDownload>1</isAllowDownload>
<isDefault>0</isDefault>
<maxFlowNode>30</maxFlowNode>
<prodStorageQuota>64</prodStorageQuota>
<projectId>27</projectId>
<projectIdentifier>abc</projectIdentifier>
<projectMode>2</projectMode>
<projectName>abc</projectName>
<projectOwnerBaseId>18229311****</projectOwnerBaseId>
<protectedMode>1</protectedMode>
<residentArea>private</residentArea>
<schedulerMaxRetryTimes>3</schedulerMaxRetryTimes>
<schedulerRetryInterval>120000</schedulerRetryInterval>
<status>0</status>
<tablePrivacyMode>0</tablePrivacyMode>
<tenantId>280749521950784</tenantId>
<useProxyOdpsAccount>false</useProxyOdpsAccount>
</data>
<httpStatusCode>200</httpStatusCode>
<requestId>0bc1ec9b15973****</requestId>
<success>true</success>
JSON
格式
{
"data": {
"appkey": "",
"baseProject": false,
"defaultDiResourceGroupIdentifier": "group_280749521****",
"destination": 28,
"devStorageQuota": 64,
"developmentType": 4,
"disableDevelopment": false,
"envTypes": "PROD",
"gmtCreate": "Oct 10, 2019 3:42:53 PM",
"gmtModified": "Dec 3, 2019 9:12:20 PM",
"isAllowDownload": 1,
"isDefault": 0,
"maxFlowNode": 30,
"prodStorageQuota": 64,
"projectId": 27,
"projectIdentifier": "abc",
"projectMode": 2,
"projectName": "abc",
"projectOwnerBaseId": "18229311****",
"protectedMode": 1,
"residentArea": "private",
"schedulerMaxRetryTimes": 3,
"schedulerRetryInterval": 120000,
"status": 0,
"tablePrivacyMode": 0,
"tenantId": 280749521950784,
"useProxyOdpsAccount": false
},
"httpStatusCode": 200,
"requestId": "0bc1ec9b15973****",
"success": true
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Invalid.Tenant.ConnectionNotExists | The connection does not exist. | 数据源不存在。 |
400 | Invalid.Tenant.ProjectNotExists | The project does not exist. | 项目不存在。 |
403 | Invalid.Tenant.UserIsNotProjectOwnerOrAdmin | The user is not a project administrator or owner. | 用户不是项目负责人或者项目管理员。 |
400 | Invalid.Tenant.UserNotInProject | The user is not in the project. | 用户不在项目中。 |
403 | Invalid.Tenant.UserNotInTenant | The user is not in tenant. | 用户不在租户中。 |
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交