public_certificates
Creates, updates, deletes, gets or lists a public_certificates
resource.
Overview
Name | public_certificates |
Type | Resource |
Id | azure.app_service.public_certificates |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource Name. |
kind | string | Kind of resource. |
properties | object | PublicCertificate resource specific properties |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | name, publicCertificateName, resourceGroupName, subscriptionId | Description for Get the named public certificate for an app (or deployment slot, if specified). |
list | SELECT | name, resourceGroupName, subscriptionId | Description for Get public certificates for an app or a deployment slot. |
create_or_update | INSERT | name, publicCertificateName, resourceGroupName, subscriptionId | Description for Creates a hostname binding for an app. |
delete | DELETE | name, publicCertificateName, resourceGroupName, subscriptionId | Description 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_service.public_certificates (
name,
publicCertificateName,
resourceGroupName,
subscriptionId,
kind,
properties
)
SELECT
'{{ name }}',
'{{ publicCertificateName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: kind
value: string
- name: type
value: string
- name: properties
value:
- name: blob
value: string
- name: publicCertificateLocation
value: string
- name: thumbprint
value: string
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 }}';