Get Zero Trust certificate configuration
Deprecated
client.zeroTrust.gateway.configurations.customCertificate.get(CustomCertificateGetParams { account_id } params, RequestOptionsoptions?): CustomCertificateSettings { enabled, id, binding_status, updated_at } | null
GET/accounts/{account_id}/gateway/configuration/custom_certificate
Retrieve the current Zero Trust certificate configuration.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Get Zero Trust certificate configuration
import Cloudflare from 'cloudflare';
const client = new Cloudflare({
apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});
const customCertificateSettings =
await client.zeroTrust.gateway.configurations.customCertificate.get({
account_id: '699d98642c564d2e855e9661899b7252',
});
console.log(customCertificateSettings.id);{
"enabled": true,
"id": "d1b364c5-1311-466e-a194-f0e943e0799f",
"binding_status": "pending_deployment",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"enabled": true,
"id": "d1b364c5-1311-466e-a194-f0e943e0799f",
"binding_status": "pending_deployment",
"updated_at": "2019-12-27T18:11:19.117Z"
}