certificates
Creates, updates, deletes, gets or lists a certificates
resource.
Overview
Name | certificates |
Type | Resource |
Id | azure.container_apps.certificates |
Fields
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Certificate resource specific properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | certificateName, environmentName, resourceGroupName, subscriptionId | |
list | SELECT | environmentName, resourceGroupName, subscriptionId | |
create_or_update | INSERT | certificateName, environmentName, resourceGroupName, subscriptionId | |
delete | DELETE | certificateName, environmentName, resourceGroupName, subscriptionId | |
update | UPDATE | certificateName, environmentName, resourceGroupName, subscriptionId | Patches a certificate. Currently only patching of tags is supported |
SELECT
examples
SELECT
location,
properties,
tags
FROM azure.container_apps.certificates
WHERE environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new certificates
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.certificates (
certificateName,
environmentName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ certificateName }}',
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: certificateKeyVaultProperties
value:
- name: identity
value: string
- name: keyVaultUrl
value: string
- name: password
value: string
- name: subjectName
value: string
- name: subjectAlternativeNames
value:
- string
- name: value
value: string
- name: issuer
value: string
- name: issueDate
value: string
- name: expirationDate
value: string
- name: thumbprint
value: string
- name: valid
value: boolean
- name: publicKeyHash
value: string
- name: certificateType
value: string
UPDATE
example
Updates a certificates
resource.
/*+ update */
UPDATE azure.container_apps.certificates
SET
tags = '{{ tags }}'
WHERE
certificateName = '{{ certificateName }}'
AND environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified certificates
resource.
/*+ delete */
DELETE FROM azure.container_apps.certificates
WHERE certificateName = '{{ certificateName }}'
AND environmentName = '{{ environmentName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';