Yandex Cloud Registry API, REST: LifecyclePolicy.ListDryRunArtifacts
Returns the list of artifacts that the dry run would delete.
HTTP request
GET https://registry.api.cloud.yandex.net/cloud-registry/v1/lifecyclePolicyDryRunResults/{dryRunId}:artifacts
Path parameters
|
Field |
Description |
|
dryRunId |
string Required field. ID of the dry run. The maximum string length in characters is 50. |
Query parameters
|
Field |
Description |
|
pageSize |
string (int64) The maximum number of results per page to return. The maximum value is 1000. |
|
pageToken |
string Page token. To get the next page of results, set page_token to the The maximum string length in characters is 1000. |
|
pathFilter |
string Filter by artifact path.
The maximum string length in characters is 1000. |
|
versionFilter |
string Filter by artifact version.
The maximum string length in characters is 1000. |
|
orderBy |
string Sort order. Comma-separated "field [asc|desc]", e.g. "path desc". The maximum string length in characters is 256. |
Response
HTTP Code: 200 - OK
{
"artifacts": [
{
"path": "string",
"version": "string",
"artifactId": "string",
"affectedBy": {
"ruleType": "string",
"ruleIndex": "string"
}
}
],
"nextPageToken": "string"
}
|
Field |
Description |
|
artifacts[] |
List of artifacts that the dry run would delete. |
|
nextPageToken |
string This token allows you to get the next page of results for list requests. |
AffectedArtifact
One artifact that a dry run would delete.
|
Field |
Description |
|
path |
string Full path of the artifact, for example /library/ubuntu/latest. |
|
version |
string Version of the artifact. The backend does not store it. |
|
artifactId |
string ID of the artifact. |
|
affectedBy |
Rule that would delete this artifact. |
TriggeredRule
Rule that matched the artifact during the dry run.
|
Field |
Description |
|
ruleType |
enum (LifecycleRuleType) Type of the rule that matched.
|
|
ruleIndex |
string (int64) Index of the rule in the policy rules snapshot (policy_snapshot) of this dry run. |