Skip to main content

custom_trust_store

Creates, updates, deletes, gets or lists a custom_trust_store resource.

Overview

Namecustom_trust_store
TypeResource
Idcloudflare.acm.custom_trust_store

Fields

The following fields are returned by SELECT queries:

Custom Origin Trust Store Details response

NameDatatypeDescription
idstringIdentifier. (example: 023e105f4ecef8ad9ca31a8372d0c353)
certificatestringThe zone's SSL certificate or certificate and the intermediate(s). (example: -----BEGIN CERTIFICATE-----
MIIDdjCCAl6gAwIBAgIJAPnMg0Fs+/B0MA0GCSqGSIb3DQEBCwUAMFsx...
-----END CERTIFICATE-----
)
expires_onstring (date-time)When the certificate expires. (example: 2122-10-29T16:59:47Z)
issuerstringThe certificate authority that issued the certificate. (example: GlobalSign)
signaturestringThe type of hash used for the certificate. (example: SHA256WithRSA)
statusstringStatus of the zone's custom SSL. (initializing, pending_deployment, active, pending_deletion, deleted, expired) (example: active)
updated_atstring (date-time)When the certificate was last modified. (example: 2014-01-01T05:20:00Z)
uploaded_onstring (date-time)When the certificate was uploaded to Cloudflare. (example: 2014-01-01T05:20:00Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcustom_origin_trust_store_id, zone_idRetrieves details about a specific certificate in the custom origin trust store, including expiration and subject information.
listselectzone_idpage, per_page, limit, offsetGet Custom Origin Trust Store for a Zone.
createinsertzone_id, certificateAdd Custom Origin Trust Store for a Zone.
deletedeletecustom_origin_trust_store_id, zone_idRemoves a CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
custom_origin_trust_store_idstring
zone_idstringThe Cloudflare zone ID.
limitinteger
offsetinteger
pagenumber
per_pagenumber

SELECT examples

Retrieves details about a specific certificate in the custom origin trust store, including expiration and subject information.

SELECT
id,
certificate,
expires_on,
issuer,
signature,
status,
updated_at,
uploaded_on
FROM cloudflare.acm.custom_trust_store
WHERE custom_origin_trust_store_id = '{{ custom_origin_trust_store_id }}' -- required
AND zone_id = '{{ zone_id }}' -- required
;

INSERT examples

Add Custom Origin Trust Store for a Zone.

INSERT INTO cloudflare.acm.custom_trust_store (
certificate,
zone_id
)
SELECT
'{{ certificate }}' /* required */,
'{{ zone_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples

Removes a CA certificate from the custom origin trust store. Origins using certificates signed by this CA will no longer be trusted.

DELETE FROM cloudflare.acm.custom_trust_store
WHERE custom_origin_trust_store_id = '{{ custom_origin_trust_store_id }}' --required
AND zone_id = '{{ zone_id }}' --required
;