Skip to main content

ListDryRunResultAffectedImages

Retrieves the list of the affected images.

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

const ListDryRunLifecyclePolicyResultAffectedImagesRequest =
cloudApi.containerregistry.lifecycle_policy_service
.ListDryRunLifecyclePolicyResultAffectedImagesRequest;

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

const result = await client.listDryRunResultAffectedImages(
ListDryRunLifecyclePolicyResultAffectedImagesRequest.fromPartial({
dryRunLifecyclePolicyResultId: "dryRunLifecyclePolicyResultId",
// pageSize: 0,
// pageToken: "pageToken",
// filter: "filter",
// orderBy: "orderBy"
})
);
console.log(result);
})();

ListDryRunLifecyclePolicyResultAffectedImagesRequest

dryRunLifecyclePolicyResultId : string

ID of the dry run result 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 ListDryRunLifecyclePolicyResultAffectedImagesResponse.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 ListDryRunLifecyclePolicyResultAffectedImagesResponse.next_page_token returned by a previous list request.

filter : string

A filter expression that filters affected images 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 LifecyclePolicy.name and LifecyclePolicy.created_at fields. The default sorting order is ascending.

ListDryRunLifecyclePolicyResultAffectedImagesResponse

affectedImages : Image

List of affected images.

nextPageToken : string

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

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

Image

An Image resource. For more information, see Docker image.

id : string

Output only. ID of the Docker image.

name : string

Name of the Docker image. The name is unique within the registry.

digest : string

Content-addressable identifier of the Docker image.

compressedSize : int64

Compressed size of the Docker image, specified in bytes.

config : Blob

Configuration of the Docker image.

layers : Blob

Layers of the Docker image.

tags : string

Tags of the Docker image.

Each tag is unique within the repository.

createdAt : google.protobuf.Timestamp

Output only. Creation timestamp in RFC3339 text format.

Blob

A Blob resource.

id : string

Output only. ID of the blob.

digest : string

Content-addressable identifier of the blob.

size : int64

Size of the blob, specified in bytes.

urls : string

List of blob urls.