Skip to content
Start here

Zone Certificates

List Certificates
client.OriginTLSClientAuth.ZoneCertificates.List(ctx, query) (*SinglePage[ZoneCertificateListResponse], error)
GET/zones/{zone_id}/origin_tls_client_auth
Get Certificate Details
client.OriginTLSClientAuth.ZoneCertificates.Get(ctx, certificateID, query) (*ZoneCertificateGetResponse, error)
GET/zones/{zone_id}/origin_tls_client_auth/{certificate_id}
Upload Certificate
client.OriginTLSClientAuth.ZoneCertificates.New(ctx, params) (*ZoneCertificateNewResponse, error)
POST/zones/{zone_id}/origin_tls_client_auth
Delete Certificate
client.OriginTLSClientAuth.ZoneCertificates.Delete(ctx, certificateID, body) (*ZoneCertificateDeleteResponse, error)
DELETE/zones/{zone_id}/origin_tls_client_auth/{certificate_id}
ModelsExpand Collapse
type ZoneAuthenticatedOriginPull struct{…}
ID stringoptional

Identifier.

maxLength32
Certificate stringoptional

The zone's leaf certificate.

ExpiresOn Timeoptional

When the certificate from the authority expires.

formatdate-time
Issuer stringoptional

The certificate authority that issued the certificate.

Signature stringoptional

The type of hash used for the certificate.

Status ZoneAuthenticatedOriginPullStatusoptional

Status of the certificate activation.

One of the following:
const ZoneAuthenticatedOriginPullStatusInitializing ZoneAuthenticatedOriginPullStatus = "initializing"
const ZoneAuthenticatedOriginPullStatusPendingDeployment ZoneAuthenticatedOriginPullStatus = "pending_deployment"
const ZoneAuthenticatedOriginPullStatusPendingDeletion ZoneAuthenticatedOriginPullStatus = "pending_deletion"
const ZoneAuthenticatedOriginPullStatusActive ZoneAuthenticatedOriginPullStatus = "active"
const ZoneAuthenticatedOriginPullStatusDeleted ZoneAuthenticatedOriginPullStatus = "deleted"
const ZoneAuthenticatedOriginPullStatusDeploymentTimedOut ZoneAuthenticatedOriginPullStatus = "deployment_timed_out"
const ZoneAuthenticatedOriginPullStatusDeletionTimedOut ZoneAuthenticatedOriginPullStatus = "deletion_timed_out"
UploadedOn Timeoptional

This is the time the certificate was uploaded.

formatdate-time