Get
Returns the specified Registry resource.
To get the list of available Registry resources, make a List request.
- TypeScript
- Python
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);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.containerregistry.v1.registry_service_pb2 import GetRegistryRequest
from yandex.cloud.containerregistry.v1.registry_service_pb2_grpc import RegistryServiceStub
token = os.getenv("YC_OAUTH_TOKEN")
sdk = yandexcloud.SDK(token=token)
service = sdk.client(RegistryServiceStub)
response = service.Get(GetRegistryRequest(registry_id="registryId"))
print(response)
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.