ListDryRunResults
Retrieves the list of the dry run results.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.containerregistry.v1.lifecycle_policy_service_pb2_grpc import (
LifecyclePolicyServiceStub,
)
from yandex.cloud.containerregistry.v1.lifecycle_policy_service_pb2 import (
ListDryRunLifecyclePolicyResultsRequest,
)
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(LifecyclePolicyServiceStub)
response = service.ListDryRunResults(
ListDryRunLifecyclePolicyResultsRequest(
lifecycle_policy_id="lifecyclePolicyId",
# page_size = 0,
# page_token = "pageToken",
# filter = "filter",
# order_by = "orderBy"
)
)
print(response)
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:
- The field name. Currently you can use filtering only on LifecyclePolicy.name field.
- An
=
operator. - 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.