ListCertificates
Retrieves the list of registry certificates for the specified registry.
- TypeScript
- Python
import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";
const ListRegistryCertificatesRequest =
cloudApi.iot.devices_registry_service.ListRegistryCertificatesRequest;
(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.RegistryServiceClient);
const result = await client.listCertificates(
ListRegistryCertificatesRequest.fromPartial({
registryId: "registryId",
})
);
console.log(result);
})();
import os
import grpc
import yandexcloud
from yandex.cloud.iot.devices.v1.registry_service_pb2 import ListRegistryCertificatesRequest
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.ListCertificates(ListRegistryCertificatesRequest(registry_id="registryId"))
print(response)
ListRegistryCertificatesRequest
registryId
: string
ID of the registry to list certificates for.
ListRegistryCertificatesResponse
certificates
: RegistryCertificate
List of certificates for the specified registry.
RegistryCertificate
A registry certificate. For more information, see Managing registry certificates.
registryId
: string
ID of the registry that the certificate belongs to.
fingerprint
: string
SHA256 hash of the certificates.
certificateData
: string
Public part of the certificate.
createdAt
: google.protobuf.Timestamp
Creation timestamp.