Client Reference
Origin CA Certificates
Origin CA Certificates endpoint reference.
List
List all Origin CA certificates.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
params | array | No | [] | Query Parameters, e.g. `zone_id`. |
php
$response = $client->originCACertificates()->list([]);
Create
Create an Origin CA certificate.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
csr | string | Yes | Certificate Signing Request (CSR). | |
hostnames | array | Yes | Array of hostnames or wildcard names bound to the certificate. | |
requestedValidity | int | No | 5475 | The number of days for which the certificate should be valid. |
requestType | string | No | 'origin-rsa' | The signature type desired on the certificate. Allowed values: `origin-rsa`, `origin-ecc`, `keyless-certificate` |
php
$response = $client->originCACertificates()->create('CSR', [], 1, 'REQUEST_TYPE');
Get
Get an Origin CA certificate.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
certificateId | string | Yes | Origin CA certificate Identifier. |
php
$response = $client->originCACertificates()->get('CERTIFICATE_ID');
Revoke
Revoke an Origin CA certificate.
| Param | Type | Required | Default | Description |
|---|---|---|---|---|
certificateId | string | Yes | Origin CA certificate Identifier. |
php
$response = $client->originCACertificates()->revoke('CERTIFICATE_ID');

