根据projectId获取项目基本信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /organization/{organizationId}/project/{projectId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| organizationId |
string |
是 |
企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 |
5ebbc0228123212b59xxxxx |
| projectId |
string |
是 |
项目 id,同 spaceIdentifier |
e8b2xxxxxxx09b07d23 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
项目信息 |
||
| requestId |
string |
请求 id,每次请求都是唯一值,便于后续排查问题 |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorCode |
string |
错误码 |
Openapi.RequestError |
| errorMessage |
string |
错误信息 |
error |
| success |
boolean |
true 或者 false |
true |
| project |
object |
项目信息 |
|
| category |
string |
空间大类 |
null |
| categoryIdentifier |
string |
空间大类 id,项目的值都是 Project |
Project |
| creator |
string |
创建人阿里云 accountId |
19xx7043xxxxxxx914 |
| customCode |
string |
自定义编号,企业下唯一 |
OJAY |
| description |
string |
描述信息 |
用于演示需求跟踪与协作。 |
| gmtCreate |
integer |
创建时间的时间戳,单位毫秒 |
1623916393000 |
| gmtModified |
integer |
修改时间的时间戳,单位毫秒 |
1623916393000 |
| iconGroup |
string |
图标组,json 格式字符串 |
{"small":"https://xxxxxx.png","big":"https://img.yyyyyy.png"} |
| icon |
string |
图标 |
https://xxxxxx.png |
| iconBig |
string |
大图标 |
https://xxxxxx.png |
| iconSmall |
string |
小图标 |
https://img.yyyyyy.png |
| id |
string |
项目 id |
null |
| identifier |
string |
项目唯一标识符 |
e8bxxxxxxxxxxxxxxxx23 |
| identifierPath |
string |
空间路径 |
e8b2xxxxxx2abdxxxxxxxx23 |
| logicalStatus |
string |
项目状态 |
NORMAL |
| modifier |
string |
修改人阿里云 accountId |
19xx7043xxxxxxx914 |
| name |
string |
项目名称 |
demo示例项目 |
| organizationIdentifier |
string |
企业 id |
5e70xxxxxxcd000xxxxe96 |
| parentIdentifier |
string |
父项目 id |
null |
| scope |
string |
可见范围 |
public |
| statusIdentifier |
string |
状态 id |
8a40xxxxxxxxxxxxx64 |
| statusStageIdentifier |
string |
状态阶段 id,项目状态默认有未开始、进行中、已完成,该字段为状态具体的 id。 |
8a4058a71159b68254...... |
| subType |
string |
空间小类 |
null |
| typeIdentifier |
string |
空间小类 id,该字段已废弃 |
CustomProject |
示例
正常返回示例
JSON格式
{
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "Openapi.RequestError",
"errorMessage": "error",
"success": true,
"project": {
"category": "null",
"categoryIdentifier": "Project",
"creator": "19xx7043xxxxxxx914",
"customCode": "OJAY",
"description": "用于演示需求跟踪与协作。",
"gmtCreate": 1623916393000,
"gmtModified": 1623916393000,
"iconGroup": "{\"small\":\"https://xxxxxx.png\",\"big\":\"https://img.yyyyyy.png\"}",
"icon": "https://xxxxxx.png",
"iconBig": "https://xxxxxx.png",
"iconSmall": "https://img.yyyyyy.png",
"id": "null",
"identifier": "e8bxxxxxxxxxxxxxxxx23",
"identifierPath": "e8b2xxxxxx2abdxxxxxxxx23",
"logicalStatus": "NORMAL",
"modifier": "19xx7043xxxxxxx914",
"name": "demo示例项目",
"organizationIdentifier": "5e70xxxxxxcd000xxxxe96",
"parentIdentifier": "null",
"scope": "public",
"statusIdentifier": "8a40xxxxxxxxxxxxx64",
"statusStageIdentifier": "8a4058a71159b68254......",
"subType": "null",
"typeIdentifier": "CustomProject"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 403 | Operate.NoPermission | NoPermission | 没有权限 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。