GetRepositoryTag
Queries the details of a single tag in a code repository.
Try it now
Test
RAM authorization
Request syntax
GET /repository/{repositoryId}/tag/info HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| repositoryId |
integer |
Yes |
The code repository ID. |
2369234 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| organizationId |
string |
Yes |
The enterprise identifier, also known as the enterprise ID. It is a string and can be obtained from the Yunxiao URL, such as https://devops.aliyun.com/organization/[OrganizationId]. |
60de7a6852743a5162b5f957 |
| accessToken |
string |
No |
The personal access token. This field is not required if you use an Alibaba Cloud AccessKey pair or Security Token Service (STS) temporary authorization. |
f0b1e61db5961df5975a93f9129d2513 |
| tagName |
string |
Yes |
The tag name. |
tag v1.0 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| requestId |
string |
The request ID. |
CE7353E3-F989-56A9-B97C-897ABBDB9A01 |
| errorMessage |
string |
The error message. |
"" |
| errorCode |
string |
The error code. |
Openapi.RequestError |
| success |
boolean |
Indicates whether the call was successful. |
true |
| result |
object |
The returned result. |
|
| id |
string |
The tag ID. |
9a494e7b88ca35cde00579af2df4ab46136c022e |
| name |
string |
The tag name. |
tag v1.0 |
| message |
string |
The description of the tag. |
Specific description |
| commit |
object |
The commit information that the tag points to. |
|
| id |
string |
The commit ID. |
e0297d8fb0393c833a8531e7cc8832739e3cba6d |
| shortId |
string |
The short commit ID. |
e0297d8f |
| title |
string |
The commit title, which is the first line of the commit. |
Commit title |
| message |
string |
The commit message. |
Specific commit message |
| createdAt |
string |
The creation time. |
2022-03-18 10:00:00 |
| parentIds |
array |
The parent commit IDs. |
|
|
string |
The parent commit IDs. |
34d2c47c7ce46a5c4639c5ffe208a66dda975a05 |
|
| authorName |
string |
The name of the author. |
Alibaba Cloud Yunxiao |
| authorEmail |
string |
The email address of the author. |
username@example.com |
| authoredDate |
string |
The authored date. |
2022-03-18 08:00:00 |
| committerName |
string |
The name of the committer. |
Alibaba Cloud Yunxiao Committer |
| committerEmail |
string |
The email address of the committer. |
username@example.com |
| committedDate |
string |
The committed date. |
2022-03-18 09:00:00 |
| signature |
object |
The signature information. |
|
| gpgKeyId |
string |
The key ID of the GPG signature. |
"" |
| verificationStatus |
string |
The GPG verification status. Valid values:
|
verified |
Examples
Success response
JSON format
{
"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"
}
}
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Forbidden.AccessDenied | The user is not authorized to perform the operation. | The user is not authorized to perform the operation. |
| 403 | Forbidden.UserNotInCurrentOrganization | The user is not in the organization and is not authorized to perform the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.