Skip to main content

gateway_certificate_authorities

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

Overview

Namegateway_certificate_authorities
TypeResource
Idazure.api_management.gateway_certificate_authorities

Fields

NameDatatypeDescription
certificateIdtextfield from the properties object
gatewayIdtextfield from the properties object
is_trustedtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcertificateId, gatewayId, resourceGroupName, serviceName, subscriptionIdGet assigned Gateway Certificate Authority details.
list_by_serviceSELECTgatewayId, resourceGroupName, serviceName, subscriptionIdLists the collection of Certificate Authorities for the specified Gateway entity.
create_or_updateINSERTcertificateId, gatewayId, resourceGroupName, serviceName, subscriptionIdAssign Certificate entity to Gateway entity as Certificate Authority.
deleteDELETEIf-Match, certificateId, gatewayId, resourceGroupName, serviceName, subscriptionIdRemove relationship between Certificate Authority and Gateway entity.

SELECT examples

Lists the collection of Certificate Authorities for the specified Gateway entity.

SELECT
certificateId,
gatewayId,
is_trusted,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_gateway_certificate_authorities
WHERE gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.gateway_certificate_authorities (
certificateId,
gatewayId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ certificateId }}',
'{{ gatewayId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified gateway_certificate_authorities resource.

/*+ delete */
DELETE FROM azure.api_management.gateway_certificate_authorities
WHERE If-Match = '{{ If-Match }}'
AND certificateId = '{{ certificateId }}'
AND gatewayId = '{{ gatewayId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';