Modifies the retention period of images that are stored in a Jenkins image repository.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegistryId | long | No | The ID of the image repository. Note
You can call the PageImageRegistry operation to query the IDs of image repositories.
| 25363 |
PersistenceDay | integer | No | The retention period. Unit: days. | 30 |
SourceIp | string | No | The source IP address of the request. | 106.11.XXX.XXX |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": true,
"RequestId": "69F88BA1-004C-51E2-BF5C-A3220E5A****",
"HttpStatusCode": 200,
"TimeCost": 1
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | no permission | - |
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.