Skip to main content

certificates

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

Overview

Namecertificates
TypeResource
Idazure.spring_apps.certificates

Fields

NameDatatypeDescription
activate_datetextfield from the properties object
certificateNametextfield from the properties object
dns_namestextfield from the properties object
expiration_datetextfield from the properties object
issued_datetextfield from the properties object
issuertextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subject_nametextfield from the properties object
subscriptionIdtextfield from the properties object
thumbprinttextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateName, resourceGroupName, serviceName, subscriptionIdGet the certificate resource.
listSELECTresourceGroupName, serviceName, subscriptionIdList all the certificates of one user.
create_or_updateINSERTcertificateName, resourceGroupName, serviceName, subscriptionIdCreate or update certificate resource.
deleteDELETEcertificateName, resourceGroupName, serviceName, subscriptionIdDelete the certificate resource.

SELECT examples

List all the certificates of one user.

SELECT
activate_date,
certificateName,
dns_names,
expiration_date,
issued_date,
issuer,
provisioning_state,
resourceGroupName,
serviceName,
subject_name,
subscriptionId,
thumbprint,
type
FROM azure.spring_apps.vw_certificates
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.spring_apps.certificates (
certificateName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ certificateName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified certificates resource.

/*+ delete */
DELETE FROM azure.spring_apps.certificates
WHERE certificateName = '{{ certificateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';