# Get Image Tag - GetImageTag

## Overview

Get Image Tag






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetImageTag`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.scloudsg.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, sub-accounts must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |No|
| **RepoName** | string | Image Repository Name |**Yes**|
| **ImageName** | string | Image Name |**Yes**|
| **Offset** | int | Offset, default 0 |No|
| **Limit** | int | Number of acquisitions each time, default is 20 |No|
| **TagName** | string | By default, it is not written. If filled in, it represents a query for that tag, otherwise all tags are queried. |No|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **TotalCount** | int | Total number of tags |**Yes**|
| **TagSet** | array[[*TagSet*](#tagset)] | Tag List |**Yes**|

#### Data Model


#### TagSet

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **UpdateTime** | string | Image Update Time |**Yes**|
| **TagName** | string | Tag Name |**Yes**|
| **Digest** | string | Image digest value |No|

## Example

### Request Example
    
```
https://api.scloudsg.com/?Action=GetImageTag
&ProjectId=BvXJygZe
&RepoName=HOJJPcie
&ImageName=PWKlOfuO
&Offset=9
&Limit=9
&TagName=uuEBQFTj
```

### Response Example
    
```json
{
  "Action": "GetImageTagResponse",
  "RetCode": 0,
  "TagSet": [
    {
      "Digest": "VzEacruq",
      "TagName": "OLlvXCrO",
      "UpdateTime": "CTydYXMK"
    }
  ],
  "TotalCount": 5
}
```





