All Products
Search
Document Center

Security Center:UpdateJenkinsImageRegistryPersistenceDay

Last Updated:May 22, 2025

Modifies the retention period of images that are stored in a Jenkins image repository.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegistryIdlongNo

The ID of the image repository.

Note You can call the PageImageRegistry operation to query the IDs of image repositories.
25363
PersistenceDayintegerNo

The retention period. Unit: days.

30
SourceIpstringNo

The source IP address of the request.

106.11.XXX.XXX

Response parameters

ParameterTypeDescriptionExample
object

The data returned.

Databoolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

69F88BA1-004C-51E2-BF5C-A3220E5A****
HttpStatusCodeinteger

The HTTP status code returned.

200
TimeCostlong

The time consumed. Unit: seconds.

1

Examples

Sample success responses

JSONformat

{
  "Data": true,
  "RequestId": "69F88BA1-004C-51E2-BF5C-A3220E5A****",
  "HttpStatusCode": 200,
  "TimeCost": 1
}

Error codes

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

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