Retrieve the image from the image repository - GetRepoImage
Overview
Retrieve the image from the image repository
Definition
Public Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
Action | string | Corresponding API command name, the current API is GetRepoImage . | Yes |
PublicKey | string | The user's public key can be obtained from Console (opens in a new tab) | Yes |
Signature | string | User signature generated based on public key and API command, see Signature Algorithm | Yes |
Request Parameters
Parameter Name | Type | Description Information | Required |
---|---|---|---|
ProjectId | string | Project ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the GetProjectList interface. | No |
RepoName | string | Image Repository Name | Yes |
Offset | int | Offset, default 0 | No |
Limit | int | Display quantity, default is 20 | 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 | Yes | |
ImageSet | array[ImageSet] | Image List | Yes |
Data Model
ImageSet
Field Name | Type | Description Information | Required |
---|---|---|---|
ImageName | string | Image Name | Yes |
PullCount | int | Number of times the image was downloaded | Yes |
CreateTime | string | Creation Time | Yes |
UpdateTime | string | Modification Time | Yes |
LatestTag | string | Latest Pushed Tag | Yes |
RepoName | string | Image Repository Name | Yes |
Example
Request Example
https://api.surfercloud.com/?Action=GetRepoImage
&ProjectId=bbrEuvfC
&RepoName=idkTdEFo
&Offset=6
&Limit=6
&ProjectId=WsHgZAjU
Response Example
{
"Action": "GetRepoImageResponse",
"ImageSet": [
{
"CreateTime": 5,
"ImageName": "dCVBnkxg",
"LatestTag": "iBvvYGkW",
"PullCount": 4,
"UpdateTime": 7
},
{
"CreateTime": 2,
"ImageName": "HxZkUXvp",
"LatestTag": "KNyBVrNA",
"PullCount": 2,
"UpdateTime": 2
},
{
"CreateTime": 2,
"ImageName": "qCHiVQXX",
"LatestTag": "dnvIjkJY",
"PullCount": 6,
"UpdateTime": 6
},
{
"CreateTime": 9,
"ImageName": "lJszSnED",
"LatestTag": "wGBJBifW",
"PullCount": 1,
"UpdateTime": 8
},
{
"CreateTime": 7,
"ImageName": "BfChDnxj",
"LatestTag": "CdySnxrY",
"PullCount": 9,
"UpdateTime": 1
},
{
"CreateTime": 9,
"ImageName": "HUTQywVu",
"LatestTag": "zqXMWiRd",
"PullCount": 1,
"UpdateTime": 9
},
{
"CreateTime": 8,
"ImageName": "QfwwaABh",
"LatestTag": "EymhuHfx",
"PullCount": 7,
"UpdateTime": 9
},
{
"CreateTime": 5,
"ImageName": "ThYJXrVc",
"LatestTag": "dnXrJOti",
"PullCount": 4,
"UpdateTime": 2
},
{
"CreateTime": 2,
"ImageName": "qzCGPhQD",
"LatestTag": "MCnyUuwU",
"PullCount": 6,
"UpdateTime": 3
}
],
"RetCode": 0,
"TotalCount": 5
}