获取项目信息

调试

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

请求参数

名称 类型 是否必选 示例值 描述
Action String GetDevopsProjectInfo

系统规定参数。取值:GetDevopsProjectInfo。

OrgId String 5ebbc0228123212b59xxxxx

企业标识,也称企业id,字符串形式,可在云效访问链接中获取,如

https://devops.aliyun.com/organization/【OrgId】

ProjectId String 60af1829a1dee1003fxxxxx

项目ID,可以在项目链接中获取,如

https://devops.aliyun.com/project/【ProjectId】/story/section/all

返回数据

名称 类型 示例值 描述
ErrorCode String “”

错误码

ErrorMsg String “”

错误信息

Object Struct

项目信息

Category String rd

rd

Created String 2021-06-04T08:44:33.443Z

创建时间

CreatorId String 60af1829a1dee1003fxxxxx

创建人

Customfields String []

自定义字段

DefaultCollectionId String 60af1829a1dee1003fxxxxx

m默认coolecton id

DefaultRoleId String 60af1829a1dee1003fxxxxx

默认role id

Description String 一站式、端到端、全栈敏捷的软件研发全生命周期管理。

项目描述

EndDate String 2021-06-04T08:44:33.443Z

结束时间

Id String 60af1829a1dee1003fxxxxx

项目id

IsArchived Boolean false

是否归档

IsDeleted Boolean false

是否删除

IsSuspended Boolean false

false

IsTemplate Boolean false

是否是模板

Logo String http://www.aliyun.com

项目logo

ModifierId String 60af1829a1dee1003fxxxxx

更新人

Name String 测试项目

项目名称

NextTaskUniqueId Integer 14

下一个任务id

NormalType String taskflow

类型

OrganizationId String 5ebbc0228123212b59xxxxx

所属企业id

Pinyin String ceshixiangmu
Py String csxm
RootCollectionId String 60b9e7f1794cbc003ffxxxx

根收藏id

SortMethod String created_desc

created_desc

SourceId String 5dca1d93e8248300193d7xxx

5dca1d93e8248300193dxxxx

SourceType String ""

""

StartDate String 2021-06-04T08:44:33.443Z

项目开始时间

UniqueIdPrefix String MEFC

项目自定义前缀

Updated String 2021-06-04T08:44:33.443Z

更新时间

Visibility String project

项目成员可见

RequestId String ASSDS-ASSASX-XSAXSA-XSAXSAXS

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

Successful Boolean true

true 接口调用成功,false 接口调用失败

示例

请求示例

http(s)://[Endpoint]/?Action=GetDevopsProjectInfo
&OrgId=5ebbc0228123212b59xxxxx
&ProjectId=60af1829a1dee1003fxxxxx
&<公共请求参数>

正常返回示例

JSON格式

{"RequestId":"ASSDS-ASSASX-XSAXSA-XSAXSAXS","ErrorMsg":"“”","Object":{"SortMethod":"created_desc","Category":"rd","Description":"一站式、端到端、全栈敏捷的软件研发全生命周期管理。","SourceType":"\"\"","SourceId":"5dca1d93e8248300193d7xxx","OrganizationId":"5ebbc0228123212b59xxxxx","NextTaskUniqueId":"14","RootCollectionId":"60b9e7f1794cbc003ffxxxx","Name":"测试项目","Created":"2021-06-04T08:44:33.443Z","StartDate":"2021-06-04T08:44:33.443Z","DefaultCollectionId":"60af1829a1dee1003fxxxxx","NormalType":"taskflow","DefaultRoleId":"60af1829a1dee1003fxxxxx","ModifierId":"60af1829a1dee1003fxxxxx","IsTemplate":"false","IsDeleted":"false","Updated":"2021-06-04T08:44:33.443Z","CreatorId":"60af1829a1dee1003fxxxxx","Py":"csxm","IsSuspended":"false","EndDate":"2021-06-04T08:44:33.443Z","Logo":"http://www.aliyun.com","IsArchived":"false","UniqueIdPrefix":"MEFC","Pinyin":"ceshixiangmu","Customfields":"[]","Visibility":"project","Id":"60af1829a1dee1003fxxxxx"},"ErrorCode":"“”","Successful":"true"}

错误码

HttpCode 错误码 错误信息 描述
404 InvalidOrganization.NotFound The specified organization doe not exist. 企业信息有误,未找到该企业
404 InvalidUser.NotFound The specified user does not exist. 用户数据有误,未找到该用户
400 InvalidUser.UserNotInCurrentOrganization The user does not belong to the specified organization. 当前用户不属于该企业

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