Skip to main content

certificate_issuance_configs

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

Overview

Namecertificate_issuance_configs
TypeResource
Idgoogle.certificatemanager.certificate_issuance_configs

Fields

NameDatatypeDescription
namestringIdentifier. A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/*.
descriptionstringOptional. One or more paragraphs of text description of a CertificateIssuanceConfig.
certificateAuthorityConfigobjectThe CA that issues the workload certificate. It includes CA address, type, authentication to CA service, etc.
createTimestringOutput only. The creation timestamp of a CertificateIssuanceConfig.
keyAlgorithmstringRequired. The key algorithm to use when generating the private key.
labelsobjectOptional. Set of labels associated with a CertificateIssuanceConfig.
lifetimestringRequired. Workload certificate lifetime requested.
rotationWindowPercentageintegerRequired. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive.
updateTimestringOutput only. The last update timestamp of a CertificateIssuanceConfig.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateIssuanceConfigsId, locationsId, projectsIdGets details of a single CertificateIssuanceConfig.
listSELECTlocationsId, projectsIdLists CertificateIssuanceConfigs in a given project and location.
createINSERTlocationsId, projectsIdCreates a new CertificateIssuanceConfig in a given project and location.
deleteDELETEcertificateIssuanceConfigsId, locationsId, projectsIdDeletes a single CertificateIssuanceConfig.
patchUPDATEcertificateIssuanceConfigsId, locationsId, projectsIdUpdates a CertificateIssuanceConfig.

SELECT examples

Lists CertificateIssuanceConfigs in a given project and location.

SELECT
name,
description,
certificateAuthorityConfig,
createTime,
keyAlgorithm,
labels,
lifetime,
rotationWindowPercentage,
updateTime
FROM google.certificatemanager.certificate_issuance_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

Use the following StackQL query and manifest file to create a new certificate_issuance_configs resource.

/*+ create */
INSERT INTO google.certificatemanager.certificate_issuance_configs (
locationsId,
projectsId,
name,
labels,
description,
certificateAuthorityConfig,
lifetime,
rotationWindowPercentage,
keyAlgorithm
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ certificateAuthorityConfig }}',
'{{ lifetime }}',
'{{ rotationWindowPercentage }}',
'{{ keyAlgorithm }}'
;

UPDATE example

Updates a certificate_issuance_configs resource.

/*+ update */
UPDATE google.certificatemanager.certificate_issuance_configs
SET
name = '{{ name }}',
labels = '{{ labels }}',
description = '{{ description }}',
certificateAuthorityConfig = '{{ certificateAuthorityConfig }}',
lifetime = '{{ lifetime }}',
rotationWindowPercentage = '{{ rotationWindowPercentage }}',
keyAlgorithm = '{{ keyAlgorithm }}'
WHERE
certificateIssuanceConfigsId = '{{ certificateIssuanceConfigsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified certificate_issuance_configs resource.

/*+ delete */
DELETE FROM google.certificatemanager.certificate_issuance_configs
WHERE certificateIssuanceConfigsId = '{{ certificateIssuanceConfigsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';