Skip to main content

public_certificates

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

Overview

Namepublic_certificates
TypeResource
Idazure.app_service.public_certificates

Fields

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectPublicCertificate resource specific properties
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, publicCertificateName, resourceGroupName, subscriptionIdDescription for Get the named public certificate for an app (or deployment slot, if specified).
listSELECTname, resourceGroupName, subscriptionIdDescription for Get public certificates for an app or a deployment slot.
create_or_updateINSERTname, publicCertificateName, resourceGroupName, subscriptionIdDescription for Creates a hostname binding for an app.
deleteDELETEname, publicCertificateName, resourceGroupName, subscriptionIdDescription for Deletes a hostname binding for an app.

SELECT examples

Description for Get public certificates for an app or a deployment slot.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.public_certificates
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified public_certificates resource.

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