Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.app_service.certificates

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
locationstringResource Location.
propertiesobjectCertificate resource specific properties
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Get a certificate.
listSELECTsubscriptionIdDescription for Get all certificates for a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdDescription for Get all certificates in a resource group.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Create or update a certificate.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Delete a certificate.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Create or update a certificate.

SELECT examples

Description for Get all certificates for a subscription.

SELECT
id,
name,
kind,
location,
properties,
tags,
type
FROM azure.app_service.certificates
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.app_service.certificates (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a certificates resource.

/*+ update */
UPDATE azure.app_service.certificates
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified certificates resource.

/*+ delete */
DELETE FROM azure.app_service.certificates
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';