certificate_issuance_configs
Creates, updates, deletes, gets or lists a certificate_issuance_configs
resource.
Overview
Name | certificate_issuance_configs |
Type | Resource |
Id | google.certificatemanager.certificate_issuance_configs |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. A user-defined name of the certificate issuance config. CertificateIssuanceConfig names must be unique globally and match pattern projects/*/locations/*/certificateIssuanceConfigs/* . |
description | string | Optional. One or more paragraphs of text description of a CertificateIssuanceConfig. |
certificateAuthorityConfig | object | The CA that issues the workload certificate. It includes CA address, type, authentication to CA service, etc. |
createTime | string | Output only. The creation timestamp of a CertificateIssuanceConfig. |
keyAlgorithm | string | Required. The key algorithm to use when generating the private key. |
labels | object | Optional. Set of labels associated with a CertificateIssuanceConfig. |
lifetime | string | Required. Workload certificate lifetime requested. |
rotationWindowPercentage | integer | Required. Specifies the percentage of elapsed time of the certificate lifetime to wait before renewing the certificate. Must be a number between 1-99, inclusive. |
updateTime | string | Output only. The last update timestamp of a CertificateIssuanceConfig. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | certificateIssuanceConfigsId, locationsId, projectsId | Gets details of a single CertificateIssuanceConfig. |
list | SELECT | locationsId, projectsId | Lists CertificateIssuanceConfigs in a given project and location. |
create | INSERT | locationsId, projectsId | Creates a new CertificateIssuanceConfig in a given project and location. |
delete | DELETE | certificateIssuanceConfigsId, locationsId, projectsId | Deletes a single CertificateIssuanceConfig. |
patch | UPDATE | certificateIssuanceConfigsId, locationsId, projectsId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: labels
value: object
- name: description
value: string
- name: certificateAuthorityConfig
value:
- name: certificateAuthorityServiceConfig
value:
- name: caPool
value: string
- name: lifetime
value: string
- name: rotationWindowPercentage
value: integer
- name: keyAlgorithm
value: string
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 }}';