Skip to main content

GetDryRunResult

Returns the dry run result of the specified lifecycle policy.

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

const GetDryRunLifecyclePolicyResultRequest =
cloudApi.containerregistry.lifecycle_policy_service
.GetDryRunLifecyclePolicyResultRequest;

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

const result = await client.getDryRunResult(
GetDryRunLifecyclePolicyResultRequest.fromPartial({
dryRunLifecyclePolicyResultId: "dryRunLifecyclePolicyResultId",
})
);
console.log(result);
})();

GetDryRunLifecyclePolicyResultRequest

dryRunLifecyclePolicyResultId : string

ID of the dry run result of the lifecycle policy.

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.