Domain name for API request: tcss.intl.tencentcloudapi.com.
This API is used to view a scheduled task of an image repository.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeImageRegistryTimingScanTask. |
| Version | Yes | String | Common Params. The value used for this API: 2020-11-01. |
| Region | No | String | Common Params. This parameter is not required. |
| Parameter Name | Type | Description |
|---|---|---|
| Enable | Boolean | Scheduled scan switch |
| ScanTime | String | Scheduled scan time |
| ScanPeriod | Integer | Scheduled scan interval |
| ScanType | Array of String | Scan type array |
| Images | Array of ImageInfo | Custom scan mirror |
| Id | Array of Integer | Automatically scan the image ID. |
| Latest | Boolean | Whether to Scan the Latest Version of Images |
| ScanEndTime | String | Scan end time |
| RegistryType | Array of String | The registry type |
| ContainerRunning | Boolean | Is container Running |
| ScanScope | Integer | The scan scope |
| Namespace | Array of String | The namespace of image |
| ExcludeImageAssetIds | Array of Integer | IDs of excluded image assets. |
| LastScanTime | String | Last scan time |
| ScanResult | String | Scanning result. Valid values: Success, InsufficientLicense, ImageNeedIsEmpty, and InternalError. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to view the scheduled task of an image repository.
POST / HTTP/1.1
Host: tcss.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeImageRegistryTimingScanTask
<Common request parameters>
{}
{
"Response": {
"RequestId": "f60f0ef9-a105-4535-8dfd-42ad8b3a9c73",
"ScanTime": "03:00:00",
"ScanPeriod": 1,
"ScanType": [
"risk",
"virus"
],
"All": false,
"Images": [
{
"ImageDigest": "sha256:1319b1eaa0b7bcebae63af321fa67559b9517e8494060403d083bb3508fe52c8",
"RegistryType": "ccr",
"ImageRepoAddress": "ccr.ccs.tencentyun.com/yunding/luping:v1",
"InstanceId": "ins-apqv42***",
"InstanceName": "InstanceName",
"Namespace": "tcss",
"ImageName": "yunding/luping",
"ImageTag": "v1",
"Force": "Force"
}
],
"Id": [
1
],
"Enable": true,
"Latest": true
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InvalidParameter | The parameter is incorrect. |
| ResourceNotFound | The resource does not exist. |
文档反馈