Container Registry API, REST: LifecyclePolicy.list
Retrieves the list of lifecycle policies in the specified repository.
HTTP request
GET https://container-registry.api.il.nebius.cloud/container-registry/v1/lifecyclePolicies
Query parameters
Parameter | Description |
---|---|
registryId | ID of the lifecycle policy. The maximum string length in characters is 50. |
repositoryId | Repository of the lifecycle policy. The maximum string length in characters is 50. |
pageSize | The maximum number of results per page to return. If the number of available results is larger than Acceptable values are 0 to 1000, inclusive. |
pageToken | Page token. To get the next page of results, set The maximum string length in characters is 100. |
filter | A filter expression that filters lifecycle policy resources listed in the response. The expression must specify:
The maximum string length in characters is 1000. |
orderBy | Sorting the list by LifecyclePolicy.name, LifecyclePolicy.createdAt and LifecyclePolicy.status fields. The default sorting order is ascending. The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"lifecyclePolicies": [
{
"id": "string",
"name": "string",
"repositoryId": "string",
"description": "string",
"status": "string",
"createdAt": "string",
"rules": [
{
"description": "string",
"expirePeriod": "string",
"tagRegexp": "string",
"untagged": true,
"retainedTop": "string"
}
]
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
lifecyclePolicies[] | object List of lifecycle policies. |
lifecyclePolicies[]. id |
string ID of the lifecycle policy. |
lifecyclePolicies[]. name |
string Name of the lifecycle policy. |
lifecyclePolicies[]. repositoryId |
string ID of the repository that the lifecycle policy belongs to. Required. The maximum string length in characters is 50. |
lifecyclePolicies[]. description |
string Description of the lifecycle policy. The maximum string length in characters is 256. |
lifecyclePolicies[]. status |
string Status of lifecycle policy.
|
lifecyclePolicies[]. createdAt |
string (date-time) Creation timestamp. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
lifecyclePolicies[]. rules[] |
object The rules of lifecycle policy. |
lifecyclePolicies[]. rules[]. description |
string Description of the lifecycle policy rule. The maximum string length in characters is 256. |
lifecyclePolicies[]. rules[]. expirePeriod |
string Period of time for automatic deletion. Period must be a multiple of 24 hours. The minimum value is 86400 seconds. |
lifecyclePolicies[]. rules[]. tagRegexp |
string Tag for specifying a filter in the form of a regular expression. The maximum string length in characters is 256. |
lifecyclePolicies[]. rules[]. untagged |
boolean (boolean) Tag for applying the rule to Docker images without tags. |
lifecyclePolicies[]. rules[]. retainedTop |
string (int64) Number of Docker images (falling under the specified filter by tags) that must be left, even if the expire_period has already expired. The minimum value is 0. |
nextPageToken | string Token for getting the next page of the list. If the number of results is greater than the specified pageSize, use Each subsequent page will have its own |