Skip to content
Start here

MTLS Certificates

List mTLS certificates
client.MTLSCertificates.List(ctx, query) (*SinglePage[MTLSCertificate], error)
GET/accounts/{account_id}/mtls_certificates
Get mTLS certificate
client.MTLSCertificates.Get(ctx, mtlsCertificateID, query) (*MTLSCertificate, error)
GET/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}
Upload mTLS certificate
client.MTLSCertificates.New(ctx, params) (*MTLSCertificateNewResponse, error)
POST/accounts/{account_id}/mtls_certificates
Delete mTLS certificate
client.MTLSCertificates.Delete(ctx, mtlsCertificateID, body) (*MTLSCertificate, error)
DELETE/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}
ModelsExpand Collapse
type MTLSCertificate struct{…}
ID stringoptional

Identifier.

maxLength32
CA booloptional

Indicates whether the certificate is a CA or leaf certificate.

Certificates stringoptional

The uploaded root CA certificate.

ExpiresOn Timeoptional

When the certificate expires.

formatdate-time
Issuer stringoptional

The certificate authority that issued the certificate.

Name stringoptional

Optional unique name for the certificate. Only used for human readability.

SerialNumber stringoptional

The certificate serial number.

Signature stringoptional

The type of hash used for the certificate.

UploadedOn Timeoptional

This is the time the certificate was uploaded.

formatdate-time

MTLS CertificatesAssociations

List mTLS certificate associations
client.MTLSCertificates.Associations.Get(ctx, mtlsCertificateID, query) (*SinglePage[CertificateAsssociation], error)
GET/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}/associations
ModelsExpand Collapse
type CertificateAsssociation struct{…}
Service stringoptional

The service using the certificate.

Status stringoptional

Certificate deployment status for the given service.