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

The following fields are returned by SELECT queries:

The response body contains the specified Gateway Certificate Authority entity.

NameDatatypeDescription
propertiesobjectGateway certificate authority details.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, gatewayId, certificateId, subscriptionIdGet assigned Gateway Certificate Authority details.
list_by_serviceselectresourceGroupName, serviceName, gatewayId, subscriptionId$filter, $top, $skipLists the collection of Certificate Authorities for the specified Gateway entity.
create_or_updateinsertresourceGroupName, serviceName, gatewayId, certificateId, subscriptionIdIf-MatchAssign Certificate entity to Gateway entity as Certificate Authority.
deletedeleteresourceGroupName, serviceName, gatewayId, certificateId, If-Match, subscriptionIdRemove relationship between Certificate Authority and Gateway entity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
certificateIdstringIdentifier of the certificate entity. Must be unique in the current API Management service instance.
gatewayIdstringGateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | eq, ne | |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Get assigned Gateway Certificate Authority details.

SELECT
properties
FROM azure.api_management.gateway_certificate_authorities
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND gatewayId = '{{ gatewayId }}' -- required
AND certificateId = '{{ certificateId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Assign Certificate entity to Gateway entity as Certificate Authority.

INSERT INTO azure.api_management.gateway_certificate_authorities (
data__properties,
resourceGroupName,
serviceName,
gatewayId,
certificateId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ gatewayId }}',
'{{ certificateId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

DELETE examples

Remove relationship between Certificate Authority and Gateway entity.

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