Skip to main content

ListDryRunResults

Retrieves the list of the dry run results.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const ListDryRunLifecyclePolicyResultsRequest =
cloudApi.containerregistry.lifecycle_policy_service
.ListDryRunLifecyclePolicyResultsRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.LifecyclePolicyServiceClient);

const result = await client.listDryRunResults(
ListDryRunLifecyclePolicyResultsRequest.fromPartial({
lifecyclePolicyId: "lifecyclePolicyId",
// pageSize: 0,
// pageToken: "pageToken",
// filter: "filter",
// orderBy: "orderBy"
})
);
console.log(result);
})();

ListDryRunLifecyclePolicyResultsRequest

lifecyclePolicyId : string

ID of the lifecycle policy.

pageSize : int64

The maximum number of results per page to return. If the number of available results is larger than page_size, the service returns a ListDryRunLifecyclePolicyResultsResponse.next_page_token that can be used to get the next page of results in subsequent list requests.

pageToken : string

Page token. To get the next page of results, set page_token to the ListDryRunLifecyclePolicyResultsResponse.next_page_token returned by a previous list request.

filter : string

A filter expression that filters dry run results listed in the response.

The expression must specify:

  1. The field name. Currently you can use filtering only on LifecyclePolicy.name field.
  2. An = operator.
  3. The value in double quotes ("). Must be 3-63 characters long and match the regular expression [a-z][-a-z0-9]{1,61}[a-z0-9].
orderBy : string

Sorting the list by DryRunLifecyclePolicyResult.run_at and DryRunLifecyclePolicyResult.affected_images_count fields. The default sorting order is ascending.

ListDryRunLifecyclePolicyResultsResponse

dryRunLifecyclePolicyResults : DryRunLifecyclePolicyResult

List of results of dry runs of a lifecycle policy.

nextPageToken : string

Token for getting the next page of the list. If the number of results is greater than the specified ListDryRunLifecyclePolicyResultsRequest.page_size use next_page_token as the value for the ListDryRunLifecyclePolicyResultsRequest.page_token parameter in the next list request.

Each subsequent page will have its own next_page_token to continue paging through the results.

DryRunLifecyclePolicyResult

dryRunLifecyclePolicyResultId : string

ID of the dry run result of the lifecycle policy.

lifecyclePolicyId : string

ID of the lifecycle policy.

runAt : google.protobuf.Timestamp

Time of the getting result.

affectedImagesCount : int64

Count of affected images.