/**
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The project and location from which the certificate should be listed,
* specified in the format `projects/* /locations/*`.
*/
// const parent = 'abc123'
/**
* Maximum number of certificates to return per call.
*/
// const pageSize = 1234
/**
* The value returned by the last `ListCertificatesResponse`. Indicates that
* this is a continuation of a prior `ListCertificates` call, and that the
* system should return the next page of data.
*/
// const pageToken = 'abc123'
/**
* Filter expression to restrict the Certificates returned.
*/
// const filter = 'abc123'
/**
* A list of Certificate field names used to specify the order of the returned
* results. The default sorting order is ascending. To specify descending
* order for a field, add a suffix " desc".
*/
// const orderBy = 'abc123'
// Imports the Certificatemanager library
const {CertificateManagerClient} =
require('@google-cloud/certificate-manager').v1;
// Instantiates a client
const certificatemanagerClient = new CertificateManagerClient();
async function callListCertificates() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await certificatemanagerClient.listCertificatesAsync(
request
);
for await (const response of iterable) {
console.log(response);
}
}
callListCertificates();
Samples
Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.
Our client libraries follow the Node.js release schedule.
Libraries are compatible with all current active and maintenance versions of
Node.js.
If you are using an end-of-life version of Node.js, we recommend that you update
as soon as possible to an actively supported LTS version.
Google's client libraries support legacy versions of Node.js runtimes on a
best-efforts basis with the following warnings:
Legacy versions are not tested in continuous integration.
Some security patches and features cannot be backported.
Dependencies cannot be kept up-to-date.
Client libraries targeting some end-of-life versions of Node.js are available, and
can be installed through npm dist-tags.
The dist-tags follow the naming convention legacy-(version).
For example, npm install @google-cloud/certificate-manager@legacy-8 installs client libraries
for versions compatible with Node.js 8.
This library is considered to be stable. The code surface will not change in backwards-incompatible ways
unless absolutely necessary (e.g. because of critical security issues) or with
an extensive deprecation period. Issues and requests against stable libraries
are addressed with the highest priority.
Please note that this README.md, the samples/README.md,
and a variety of configuration files in this repository (including .nycrc and tsconfig.json)
are generated from a central template. To edit one of these files, make an edit
to its templates in
directory.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["Version latestkeyboard_arrow_down\n\n- [0.7.2 (latest)](/nodejs/docs/reference/certificate-manager/latest)\n- [0.7.1](/nodejs/docs/reference/certificate-manager/0.7.1)\n- [0.6.2](/nodejs/docs/reference/certificate-manager/0.6.2)\n- [0.5.0](/nodejs/docs/reference/certificate-manager/0.5.0)\n- [0.1.0](/nodejs/docs/reference/certificate-manager/0.1.0) \n\n[Certificate Manager: Node.js Client](https://github.com/googleapis/google-cloud-node)\n======================================================================================\n\n[](https://cloud.google.com/terms/launch-stages)\n[](https://www.npmjs.org/package/@google-cloud/certificate-manager)\n\ncertificatemanager client for Node.js\n\nA comprehensive list of changes in each version may be found in\n[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-certificatemanager/CHANGELOG.md).\n\n- [Certificate Manager Node.js Client API Reference](https://cloud.google.com/nodejs/docs/reference/certificate-manager/latest)\n- [Certificate Manager Documentation](https://cloud.google.com/certificate-manager/)\n- [github.com/googleapis/google-cloud-node/packages/google-cloud-certificatemanager](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-certificatemanager)\n\nRead more about the client libraries for Cloud APIs, including the older\nGoogle APIs Client Libraries, in [Client Libraries Explained](https://cloud.google.com/apis/docs/client-libraries-explained).\n\n**Table of contents:**\n\n- [Quickstart](#quickstart)\n - [Before you begin](#before-you-begin)\n - [Installing the client library](#installing-the-client-library)\n - [Using the client library](#using-the-client-library)\n- [Samples](#samples)\n- [Versioning](#versioning)\n- [Contributing](#contributing)\n- [License](#license)\n\nQuickstart\n----------\n\n### Before you begin\n\n1. [Select or create a Cloud Platform project](https://console.cloud.google.com/project).\n2. [Enable billing for your project](https://support.google.com/cloud/answer/6293499#enable-billing).\n3. [Enable the Certificate Manager API](https://console.cloud.google.com/flows/enableapi?apiid=certificatemanager.googleapis.com).\n4. [Set up authentication with a service account](https://cloud.google.com/docs/authentication/getting-started) so you can access the API from your local workstation.\n\n### Installing the client library\n\n npm install @google-cloud/certificate-manager\n\n### Using the client library\n\n /**\n * TODO(developer): Uncomment these variables before running the sample.\n */\n /**\n * Required. The project and location from which the certificate should be listed,\n * specified in the format `projects/* /locations/*`.\n */\n // const parent = 'abc123'\n /**\n * Maximum number of certificates to return per call.\n */\n // const pageSize = 1234\n /**\n * The value returned by the last `ListCertificatesResponse`. Indicates that\n * this is a continuation of a prior `ListCertificates` call, and that the\n * system should return the next page of data.\n */\n // const pageToken = 'abc123'\n /**\n * Filter expression to restrict the Certificates returned.\n */\n // const filter = 'abc123'\n /**\n * A list of Certificate field names used to specify the order of the returned\n * results. The default sorting order is ascending. To specify descending\n * order for a field, add a suffix \" desc\".\n */\n // const orderBy = 'abc123'\n\n // Imports the Certificatemanager library\n const {CertificateManagerClient} =\n require('https://cloud.google.com/nodejs/docs/reference/certificate-manager/latest/overview.html').v1;\n\n // Instantiates a client\n const certificatemanagerClient = new https://cloud.google.com/nodejs/docs/reference/certificate-manager/latest/overview.html();\n\n async function callListCertificates() {\n // Construct request\n const request = {\n parent,\n };\n\n // Run request\n const iterable = await certificatemanagerClient.https://cloud.google.com/nodejs/docs/reference/certificate-manager/latest/certificate-manager/v1.certificatemanagerclient.html(\n request\n );\n for await (const response of iterable) {\n console.log(response);\n }\n }\n\n callListCertificates();\n\nSamples\n-------\n\nSamples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.\n\nThe [Certificate Manager Node.js Client API Reference](https://cloud.google.com/nodejs/docs/reference/certificate-manager/latest) documentation\nalso contains samples.\n\nSupported Node.js Versions\n--------------------------\n\nOur client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/).\nLibraries are compatible with all current *active* and *maintenance* versions of\nNode.js.\nIf you are using an end-of-life version of Node.js, we recommend that you update\nas soon as possible to an actively supported LTS version.\n\nGoogle's client libraries support legacy versions of Node.js runtimes on a\nbest-efforts basis with the following warnings:\n\n- Legacy versions are not tested in continuous integration.\n- Some security patches and features cannot be backported.\n- Dependencies cannot be kept up-to-date.\n\nClient libraries targeting some end-of-life versions of Node.js are available, and\ncan be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag).\nThe dist-tags follow the naming convention `legacy-(version)`.\nFor example, `npm install @google-cloud/certificate-manager@legacy-8` installs client libraries\nfor versions compatible with Node.js 8.\n\nVersioning\n----------\n\nThis library follows [Semantic Versioning](http://semver.org/).\n\nThis library is considered to be **stable** . The code surface will not change in backwards-incompatible ways\nunless absolutely necessary (e.g. because of critical security issues) or with\nan extensive deprecation period. Issues and requests against **stable** libraries\nare addressed with the highest priority.\n\nMore Information: [Google Cloud Platform Launch Stages](https://cloud.google.com/terms/launch-stages)\n\nContributing\n------------\n\nContributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md).\n\nPlease note that this `README.md`, the `samples/README.md`,\nand a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`)\nare generated from a central template. To edit one of these files, make an edit\nto its templates in\n[directory](https://github.com/googleapis/synthtool).\n\nLicense\n-------\n\nApache Version 2.0\n\nSee [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)"]]