Skip to content
Start here

Hostname Certificates

List Certificates
client.OriginTLSClientAuth.HostnameCertificates.List(ctx, query) (*SinglePage[HostnameCertificateListResponse], error)
GET/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates
Get the Hostname Client Certificate
client.OriginTLSClientAuth.HostnameCertificates.Get(ctx, certificateID, query) (*HostnameCertificateGetResponse, error)
GET/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id}
Upload a Hostname Client Certificate
client.OriginTLSClientAuth.HostnameCertificates.New(ctx, params) (*HostnameCertificateNewResponse, error)
POST/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates
Delete Hostname Client Certificate
client.OriginTLSClientAuth.HostnameCertificates.Delete(ctx, certificateID, body) (*HostnameCertificateDeleteResponse, error)
DELETE/zones/{zone_id}/origin_tls_client_auth/hostnames/certificates/{certificate_id}
ModelsExpand Collapse
type Certificate struct{…}
ID stringoptional

Identifier.

maxLength32
Certificate stringoptional

The hostname certificate.

ExpiresOn Timeoptional

The date when the certificate expires.

formatdate-time
Issuer stringoptional

The certificate authority that issued the certificate.

SerialNumber stringoptional

The serial number on the uploaded certificate.

Signature stringoptional

The type of hash used for the certificate.

Status CertificateStatusoptional

Status of the certificate or the association.

One of the following:
const CertificateStatusInitializing CertificateStatus = "initializing"
const CertificateStatusPendingDeployment CertificateStatus = "pending_deployment"
const CertificateStatusPendingDeletion CertificateStatus = "pending_deletion"
const CertificateStatusActive CertificateStatus = "active"
const CertificateStatusDeleted CertificateStatus = "deleted"
const CertificateStatusDeploymentTimedOut CertificateStatus = "deployment_timed_out"
const CertificateStatusDeletionTimedOut CertificateStatus = "deletion_timed_out"
UploadedOn Timeoptional

The time when the certificate was uploaded.

formatdate-time