Skip to main content

hostname_associations

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

Overview

Namehostname_associations
TypeResource
Idcloudflare.certificate_authorities.hostname_associations

Fields

The following fields are returned by SELECT queries:

List Hostname Associations Response

NameDatatypeDescription
errorsarray
messagesarray
resultobject
successbooleanWhether the API call was successful. (true)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idmtls_certificate_idList Hostname Associations
updatereplacezone_idReplace Hostname Associations

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
zone_idstringThe Cloudflare zone ID.
mtls_certificate_idstring

SELECT examples

List Hostname Associations

SELECT
errors,
messages,
result,
success
FROM cloudflare.certificate_authorities.hostname_associations
WHERE zone_id = '{{ zone_id }}' -- required
AND mtls_certificate_id = '{{ mtls_certificate_id }}'
;

REPLACE examples

Replace Hostname Associations

REPLACE cloudflare.certificate_authorities.hostname_associations
SET
hostnames = '{{ hostnames }}',
mtls_certificate_id = '{{ mtls_certificate_id }}'
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;