Skip to main content

List

Retrieves the list of Repository resources in the specified registry.

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

const ListRepositoriesRequest =
cloudApi.containerregistry.repository_service.ListRepositoriesRequest;

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

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

ListRepositoriesRequest

registryId : string

ID of the registry to list repositories in.

To get the registry ID use a RegistryService.List request.

folderId : string

ID of the folder to list registries in.

folder_id is ignored if a ListImagesRequest.registry_id is specified in the request.

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

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 ListRepositoriesResponse.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 ListRepositoriesResponse.next_page_token returned by a previous list request.

filter : string

A filter expression that filters resources listed in the response. The expression must specify:

  1. The field name. Currently you can use filtering only on Repository.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

ListRepositoriesResponse

repositories : Repository

List of Repository resources.

nextPageToken : string

This token allows you to get the next page of results for list requests. If the number of results is larger than ListRepositoriesRequest.page_size, use the next_page_token as the value for the ListRepositoriesRequest.page_token query parameter in the next list request. Each subsequent list request will have its own next_page_token to continue paging through the results.

Repository

A Repository resource. For more information, see Repository.

name : string

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

id : string

Output only. ID of the repository.