首页 云效2020 开发参考 API手册(新版) API目录 代码管理 标签 GetRepositoryTag - 查询单个标签信息

GetRepositoryTag - 查询单个标签信息

更新时间: 2023-09-25 19:16:39

查询代码库的单个标签信息。

调试

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

调试

授权信息

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

请求语法

GET /repository/{repositoryId}/tag/info

请求参数

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

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

60de7a6852743a5162b5f957
accessTokenstring

个人访问令牌。 使用阿里云AK+SK或使用STS临时授权方式不需要传该字段

f0b1e61db5961df5975a93f9129d2513
repositoryIdlong

代码库ID

2369234
tagNamestring

标签名称

tag v1.0

返回参数

名称类型描述示例值
object

Schema of Response

requestIdstring

请求ID

CE7353E3-F989-56A9-B97C-897ABBDB9A01
errorMessagestring

错误信息

""
errorCodestring

错误码

Openapi.RequestError
successboolean

调用是否成功

true
resultobject

返回结果

idstring

标签ID

9a494e7b88ca35cde00579af2df4ab46136c022e
namestring

标签名称

tag v1.0
messagestring

标签的描述信息

具体的描述内容
commitobject

标签指向的提交信息

idstring

提交ID

e0297d8fb0393c833a8531e7cc8832739e3cba6d
shortIdstring

简短的提交ID

e0297d8f
titlestring

提交标题,提交的第一行内容

提交标题
messagestring

提交内容

具体的提交内容
createdAtstring

创建时间

2022-03-18 10:00:00
parentIdsarray

父提交ID

string

父提交ID

34d2c47c7ce46a5c4639c5ffe208a66dda975a05
authorNamestring

作者姓名

阿里云云效
authorEmailstring

作者邮箱

username@example.com
authoredDatestring

作者提交时间

2022-03-18 08:00:00
committerNamestring

提交人的姓名

阿里云云效Committer
committerEmailstring

提交人的邮箱

username@example.com
committedDatestring

提交人的提交时间

2022-03-18 09:00:00
signatureobject

签名信息

gpgKeyIdstring

gpg签名的key id

""
verificationStatusstring

gpg校验状态

  • unverified:未校验
  • verified:gpg公钥验证通过且邮箱一致
  • same_user_different_email:gpg公钥验签通过,提交者邮箱属于当前用户,但与证书邮箱不一致
  • other_user:gpg公钥验签通过,但提交者邮箱不属于key的用户
  • unverified_key:key对应的邮箱,不在该用户的邮箱列表中
  • unknown_key:gpg key不存在
verified

示例

正常返回示例

JSON格式

{
  "requestId": "CE7353E3-F989-56A9-B97C-897ABBDB9A01",
  "errorMessage": "\"\"",
  "errorCode": "Openapi.RequestError",
  "success": true,
  "result": {
    "id": "9a494e7b88ca35cde00579af2df4ab46136c022e",
    "name": "tag v1.0\n",
    "message": "具体的描述内容",
    "commit": {
      "id": "e0297d8fb0393c833a8531e7cc8832739e3cba6d",
      "shortId": "e0297d8f",
      "title": "提交标题",
      "message": "具体的提交内容",
      "createdAt": "2022-03-18 10:00:00",
      "parentIds": [
        "34d2c47c7ce46a5c4639c5ffe208a66dda975a05"
      ],
      "authorName": "阿里云云效",
      "authorEmail": "username@example.com",
      "authoredDate": "2022-03-18 08:00:00",
      "committerName": "阿里云云效Committer",
      "committerEmail": "username@example.com",
      "committedDate": "2022-03-18 09:00:00",
      "signature": {
        "gpgKeyId": "\"\"",
        "verificationStatus": "verified"
      }
    }
  }
}

错误码

HTTP status code错误码错误信息描述
403Forbidden.AccessDeniedThe user is not authorized to perform the operation.用户无权限执行相关操作
403Forbidden.UserNotInCurrentOrganizationThe user is not in the organization and is not authorized to perform the operation.当前用户不在该企业中,无权进行操作。

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

变更历史

变更时间变更内容概要操作
暂无变更历史
阿里云首页 云效2020 相关技术圈