Skip to main content

certificate_authorities

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

Overview

Namecertificate_authorities
TypeResource
Idconfluent.iam.certificate_authorities

Fields

The following fields are returned by SELECT queries:

Certificate Authority.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
display_namestringThe human-readable name of the certificate authority. (example: My Certificate Authority)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (iam/v2)
certificate_chain_filenamestringThe file name of the uploaded pem file for this certificate authority. (example: certificate.pem)
crl_sourcestringThe source specifies whether the Certificate Revocation List (CRL) is updated from either local file uploaded (LOCAL) or from url of CRL (URL). (example: LOCAL)
crl_updated_atstring (date-time)The timestamp for when CRL was last updated. (example: 2017-07-21T17:32:28.000Z)
crl_urlstring (uri)The url from which to fetch the CRL for the certificate authority if crl_source is URL.
descriptionstringA description of the certificate authority. (example: Sample description text)
expiration_datesarrayThe expiration dates of certificates in the chain.
fingerprintsarrayThe fingerprints for each certificate in the certificate chain. These are SHA-1 encoded strings that act as unique identifiers for the certificates in the chain.
kindstringKind defines the object this REST resource represents. (CertificateAuthority)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
serial_numbersarrayThe serial numbers for each certificate in the certificate chain.
statestringThe current state of the certificate authority. (example: ENABLED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iam_v2_certificate_authorityselectidMake a request to read a certificate authority.
list_iam_v2_certificate_authoritiesselectpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all certificate authorities.
create_iam_v2_certificate_authorityinsertMake a request to create a certificate authority.
update_iam_v2_certificate_authorityreplaceidMake a request to update a certificate authority.

delete_iam_v2_certificate_authoritydeleteidMake a request to delete a certificate authority.

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
idstringThe unique identifier for the certificate authority.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples

Make a request to read a certificate authority.

SELECT
id,
display_name,
api_version,
certificate_chain_filename,
crl_source,
crl_updated_at,
crl_url,
description,
expiration_dates,
fingerprints,
kind,
metadata,
serial_numbers,
state
FROM confluent.iam.certificate_authorities
WHERE id = '{{ id }}' -- required
;

INSERT examples

Make a request to create a certificate authority.

INSERT INTO confluent.iam.certificate_authorities (
display_name,
description,
certificate_chain,
certificate_chain_filename,
crl_url,
crl_chain
)
SELECT
'{{ display_name }}',
'{{ description }}',
'{{ certificate_chain }}',
'{{ certificate_chain_filename }}',
'{{ crl_url }}',
'{{ crl_chain }}'
RETURNING
id,
display_name,
api_version,
certificate_chain_filename,
crl_source,
crl_updated_at,
crl_url,
description,
expiration_dates,
fingerprints,
kind,
metadata,
serial_numbers,
state
;

REPLACE examples

Make a request to update a certificate authority.

REPLACE confluent.iam.certificate_authorities
SET
display_name = '{{ display_name }}',
description = '{{ description }}',
certificate_chain = '{{ certificate_chain }}',
certificate_chain_filename = '{{ certificate_chain_filename }}',
crl_url = '{{ crl_url }}',
crl_chain = '{{ crl_chain }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
display_name,
api_version,
certificate_chain_filename,
crl_source,
crl_updated_at,
crl_url,
description,
expiration_dates,
fingerprints,
kind,
metadata,
serial_numbers,
state;

DELETE examples

Make a request to delete a certificate authority.

DELETE FROM confluent.iam.certificate_authorities
WHERE id = '{{ id }}' --required
;