Skip to main content

ListCertificates

Retrieves the list of registry certificates for the specified registry.

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);
})();

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.