All Products
Search
Document Center

Security Center:ModifyImageFixCycleConfig

Last Updated:Feb 20, 2024

Modifies the configurations of a scheduled image fix.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ImageFixSwitchstringNo

Specifies whether to enable the schedule image fix.

  • on: enable
  • off: disable
on
ImageFixCycleintegerNo

The cycle of the scheduled fix. Unit: day.

7
ImageFixTargetstringNo

The range of the scheduled fix. The value of this parameter is in the JSON format and contains the following fields:

  • type: The type of the image. The value is fixed to repo.
  • target: The content of the image. The value is in the format of Namespace/Image repository.
{\"type\":\"repo\",\"target\":[\"cdp-uat/zentao\",\"qa-dac/yyuan9\",\"cafdms-qa/xxl-job-admin\"]}
ImageTimeRangeintegerNo

The time range during which the image was modified. Unit: day.

30

Response parameters

ParameterTypeDescriptionExample
object

PlainResult

Databoolean

Indicates whether the configurations of the scheduled image fix are modified.

  • true
  • false
true
RequestIdstring

The request ID.

F7A4DF7E-57A4-5BBF-8290-223754AD****

Examples

Sample success responses

JSONformat

{
  "Data": true,
  "RequestId": "F7A4DF7E-57A4-5BBF-8290-223754AD****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-10-07The internal configuration of the API is changed, but the call is not affectedsee changesets
Change itemChange content
The internal configuration of the API is changed, but the call is not affected.