Yandex Cloud Registry API, gRPC: LifecyclePolicyService.ListDryRunArtifacts
Returns the list of artifacts that the dry run would delete.
gRPC request
rpc ListDryRunArtifacts (ListDryRunLifecyclePolicyArtifactsRequest) returns (ListDryRunLifecyclePolicyArtifactsResponse)
ListDryRunLifecyclePolicyArtifactsRequest
{
"dry_run_id": "string",
"page_size": "int64",
"page_token": "string",
"path_filter": "string",
"version_filter": "string",
"order_by": "string"
}
|
Field |
Description |
|
dry_run_id |
string Required field. ID of the dry run. The maximum string length in characters is 50. |
|
page_size |
int64 The maximum number of results per page to return. The maximum value is 1000. |
|
page_token |
string Page token. To get the next page of results, set page_token to the The maximum string length in characters is 1000. |
|
path_filter |
string Filter by artifact path.
The maximum string length in characters is 1000. |
|
version_filter |
string Filter by artifact version.
The maximum string length in characters is 1000. |
|
order_by |
string Sort order. Comma-separated "field [asc|desc]", e.g. "path desc". The maximum string length in characters is 256. |
ListDryRunLifecyclePolicyArtifactsResponse
{
"artifacts": [
{
"path": "string",
"version": "string",
"artifact_id": "string",
"affected_by": {
"rule_type": "LifecycleRuleType",
"rule_index": "int64"
}
}
],
"next_page_token": "string"
}
|
Field |
Description |
|
artifacts[] |
List of artifacts that the dry run would delete. |
|
next_page_token |
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. |
|
artifact_id |
string ID of the artifact. |
|
affected_by |
Rule that would delete this artifact. |
TriggeredRule
Rule that matched the artifact during the dry run.
|
Field |
Description |
|
rule_type |
enum LifecycleRuleType Type of the rule that matched.
|
|
rule_index |
int64 Index of the rule in the policy rules snapshot (policy_snapshot) of this dry run. |