文档

GetProjectInfo - 获取项目详情

更新时间:

根据projectId获取项目基本信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求语法

GET /organization/{organizationId}/project/{projectId}

请求参数

名称类型必填描述示例值
organizationIdstring

企业标识,也称企业 id,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】

5ebbc0228123212b59xxxxx
projectIdstring

项目 id,同 spaceIdentifier

e8b2xxxxxxx09b07d23

返回参数

名称类型描述示例值
object

项目信息

requestIdstring

请求 id,每次请求都是唯一值,便于后续排查问题

ASSDS-ASSASX-XSAXSA-XSAXSAXS
errorCodestring

错误码

Openapi.RequestError
errorMessagestring

错误信息

error
successboolean

true 或者 false

true
projectobject

项目信息

categorystring

空间大类

null
categoryIdentifierstring

空间大类 id,项目的值都是 Project

Project
creatorstring

创建人阿里云 accountId

19xx7043xxxxxxx914
customCodestring

自定义编号,企业下唯一

OJAY
descriptionstring

描述信息

xxx
gmtCreatelong

创建时间的时间戳,单位毫秒

1623916393000
gmtModifiedlong

修改时间的时间戳,单位毫秒

1623916393000
iconGroupstring

图标组,json 格式字符串

{"small":"https://xxxxxx.png","big":"https://img.yyyyyy.png"}
iconstring

图标

https://xxxxxx.png
iconBigstring

大图标

https://xxxxxx.png
iconSmallstring

小图标

https://img.yyyyyy.png
idstring

项目 id

null
identifierstring

项目唯一标识符

e8bxxxxxxxxxxxxxxxx23
identifierPathstring

空间路径

e8b2xxxxxx2abdxxxxxxxx23
logicalStatusstring

项目状态

NORMAL
modifierstring

修改人阿里云 accountId

19xx7043xxxxxxx914
namestring

项目名称

demo示例项目
organizationIdentifierstring

企业 id

5e70xxxxxxcd000xxxxe96
parentIdentifierstring

父项目 id

null
scopestring

可见范围

public
statusIdentifierstring

状态 id

8a40xxxxxxxxxxxxx64
statusStageIdentifierstring

状态阶段 id,项目状态默认有未开始、进行中、已完成,该字段为状态具体的 id。

8a4058a71159b68254......
subTypestring

空间小类

null
typeIdentifierstring

空间小类 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": "xxx",
    "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错误码错误信息描述
403Operate.NoPermissionNoPermission没有权限

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈