Skip to main content

List

Retrieves the list of registries in the specified folder.

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

const ListRegistriesRequest =
cloudApi.containerregistry.registry_service.ListRegistriesRequest;

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

const result = await client.list(
ListRegistriesRequest.fromPartial({
folderId: "folderId",
// pageSize: 0,
// pageToken: "pageToken",
// filter: "filter"
})
);
console.log(result);
})();

ListRegistriesRequest​

folderId : string​

ID of the folder to list registries in.

To get a folder ID make a yandex.cloud.resourcemanager.v1.FolderService.List request.

pageSize : int64​

The maximum number of results per page that should be returned. If the number of available results is larger than page_size, the service returns a ListRegistriesResponse.next_page_token that can be used to get the next page of results in subsequent list requests. Default value: 100.

pageToken : string​

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

ListRegistriesResponse​

registries : Registry​

List of registries.

nextPageToken : string​

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

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

Registry​

A registry. For more information, see Registry.

Status​
  • STATUS_UNSPECIFIED

  • CREATING

    Registry is being created.

  • ACTIVE

    Registry is ready to use.

  • DELETING

    Registry is being deleted.

  • DISABLED

    Registry is disabled.

id : string​

ID of the registry.

folderId : string​

ID of the folder that the registry belongs to.

createdAt : google.protobuf.Timestamp​

Creation timestamp.

name : string​

Name of the registry. The name is unique within the folder.

description : string​

Description of the registry. 0-256 characters long.

labels : string​

Resource labels as key:value pairs. Maximum of 64 per resource.

status : Status​

Status of the registry.

logGroupId : string​

ID of the logs group for the specified registry.

logOptions : LogOptions​

Options for logging registry events

LogOptions​

disabled : bool​

Is logging from registry disabled.

One of destination​

Log entries destination.

  • logGroupId : string​

    Entry should be written to log group resolved by ID.

  • folderId : string​

    Entry should be written to default log group for specified folder.

minLevel : yandex.cloud.logging.v1.LogLevel.Level​

Minimum log entry level.

See LogLevel.Level for details.