根据企业标识(云效企业ID或者企业路径)获取Codeup侧的企业信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
GET /api/organization/{identity} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| identity |
string |
是 |
企业标识,也称企业 ID 或企业路径,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 |
60de7a6852743a5162b5f957 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| accessToken |
string |
否 |
个人访问令牌。 使用阿里云 AK+SK 或使用 STS 临时授权方式不需要传该字段 |
f0b1e61db5961df5975a93f9129d2513 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| errorMessage |
string |
错误信息 |
"" |
| requestId |
string |
请求 ID |
ASSDS-ASSASX-XSAXSA-XSAXSAXS |
| errorCode |
string |
错误码 |
InvalidTagGroup.IdNotFound |
| success |
boolean |
调用是否成功 |
true |
| result |
object |
返回结果 |
|
| namespaceId |
integer |
库所属组或者企业空间 ID |
100003 |
| userRole |
string |
用户在企业中的角色
|
ORG_MEMBER |
| path |
string |
代码库路径 |
test-codeup |
| createdAt |
string |
创建时间,格式为 YYYY-MM-DD HH:mm:ss。 |
2022-03-12 12:00:00 |
| updatedAt |
string |
更新时间,格式为 YYYY-MM-DD HH:mm:ss。 |
2022-03-18 14:24:54 |
| id |
integer |
主键 ID |
3624 |
| organizationId |
string |
企业标识,也称企业 ID,字符串形式,可在云效访问链接中获取,如 https://devops.aliyun.com/organization/【OrganizationId】 |
60de7a6852743a5162b5f957 |
示例
正常返回示例
JSON格式
{
"errorMessage": "\"\"",
"requestId": "ASSDS-ASSASX-XSAXSA-XSAXSAXS",
"errorCode": "InvalidTagGroup.IdNotFound",
"success": true,
"result": {
"namespaceId": 100003,
"userRole": "ORG_MEMBER",
"path": "test-codeup",
"createdAt": "2022-03-12 12:00:00",
"updatedAt": "2022-03-18 14:24:54",
"id": 3624,
"organizationId": "60de7a6852743a5162b5f957"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | SystemError.UnKnownError | An error occurred while processing your request. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。