Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.container_apps.certificates

Fields

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectCertificate resource specific properties
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateName, environmentName, resourceGroupName, subscriptionId
listSELECTenvironmentName, resourceGroupName, subscriptionId
create_or_updateINSERTcertificateName, environmentName, resourceGroupName, subscriptionId
deleteDELETEcertificateName, environmentName, resourceGroupName, subscriptionId
updateUPDATEcertificateName, environmentName, resourceGroupName, subscriptionIdPatches 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.

/*+ create */
INSERT INTO azure.container_apps.certificates (
certificateName,
environmentName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ certificateName }}',
'{{ environmentName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

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 }}';