Skip to main content

Get

Returns the specified Registry resource.

To get the list of available Registry resources, make a List request.

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

const GetRegistryRequest =
cloudApi.containerregistry.registry_service.GetRegistryRequest;

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

const result = await client.get(
GetRegistryRequest.fromPartial({
registryId: "registryId",
})
);
console.log(result);
})();

GetRegistryRequest

registryId : string

ID of the Registry resource to return.

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

Registry

A Registry resource. For more information, see the Registry section of the documentation.

Status

  • STATUS_UNSPECIFIED

  • CREATING

    Registry is being created.

  • ACTIVE

    Registry is ready to use.

  • DELETING

    Registry is being deleted.

id : string

Output only. ID of the registry.

folderId : string

ID of the folder that the registry belongs to.

name : string

Name of the registry.

status : Status

Output only. Status of the registry.

createdAt : google.protobuf.Timestamp

Output only. Creation timestamp in RFC3339 text format.

labels : string

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