Skip to main content

ca_certificates

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

Overview

Nameca_certificates
TypeResource
Idazure.event_grid.ca_certificates

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
descriptiontextfield from the properties object
caCertificateNametextfield from the properties object
encoded_certificatetextfield from the properties object
expiry_time_in_utctextfield from the properties object
issue_time_in_utctextfield from the properties object
namespaceNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTcaCertificateName, namespaceName, resourceGroupName, subscriptionIdGet properties of a CA certificate.
list_by_namespaceSELECTnamespaceName, resourceGroupName, subscriptionIdGet all the CA certificates under a namespace.
create_or_updateINSERTcaCertificateName, namespaceName, resourceGroupName, subscriptionIdCreate or update a CA certificate with the specified parameters.
deleteDELETEcaCertificateName, namespaceName, resourceGroupName, subscriptionIdDelete an existing CA certificate.

SELECT examples

Get all the CA certificates under a namespace.

SELECT
id,
name,
description,
caCertificateName,
encoded_certificate,
expiry_time_in_utc,
issue_time_in_utc,
namespaceName,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.event_grid.vw_ca_certificates
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.event_grid.ca_certificates (
caCertificateName,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ caCertificateName }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified ca_certificates resource.

/*+ delete */
DELETE FROM azure.event_grid.ca_certificates
WHERE caCertificateName = '{{ caCertificateName }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';