Skip to main content

gateway_certificate_authority

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

Overview

Namegateway_certificate_authority
TypeResource
Idazure.api_management.gateway_certificate_authority

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
isTrustedbooleanDetermines whether certificate authority is trusted.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, gateway_id, certificate_id, subscription_idGet assigned Gateway Certificate Authority details.
list_by_serviceselectresource_group_name, service_name, gateway_id, subscription_id$filter, $top, $skipLists the collection of Certificate Authorities for the specified Gateway entity.
create_or_updateinsertresource_group_name, service_name, gateway_id, certificate_id, subscription_idAssign Certificate entity to Gateway entity as Certificate Authority.
create_or_updatereplaceresource_group_name, service_name, gateway_id, certificate_id, subscription_idAssign Certificate entity to Gateway entity as Certificate Authority.
deletedeleteresource_group_name, service_name, gateway_id, certificate_id, subscription_idRemove relationship between Certificate Authority and Gateway entity.
get_entity_tagexecresource_group_name, service_name, gateway_id, certificate_id, subscription_idChecks if Certificate entity is assigned to Gateway entity as Certificate Authority.

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
certificate_idstringIdentifier of the certificate entity. Must be unique in the current API Management service instance. Required.
gateway_idstringGateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring
$filterstring| Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| name | filter | eq, ne | |. Default value is None.
$skipintegerNumber of records to skip. Default value is None.
$topintegerNumber of records to return. Default value is None.

SELECT examples

Get assigned Gateway Certificate Authority details.

SELECT
id,
name,
isTrusted,
systemData,
type
FROM azure.api_management.gateway_certificate_authority
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND gateway_id = '{{ gateway_id }}' -- required
AND certificate_id = '{{ certificate_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Assign Certificate entity to Gateway entity as Certificate Authority.

INSERT INTO azure.api_management.gateway_certificate_authority (
properties,
resource_group_name,
service_name,
gateway_id,
certificate_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ gateway_id }}',
'{{ certificate_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Assign Certificate entity to Gateway entity as Certificate Authority.

REPLACE azure.api_management.gateway_certificate_authority
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_id = '{{ gateway_id }}' --required
AND certificate_id = '{{ certificate_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Remove relationship between Certificate Authority and Gateway entity.

DELETE FROM azure.api_management.gateway_certificate_authority
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND gateway_id = '{{ gateway_id }}' --required
AND certificate_id = '{{ certificate_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Checks if Certificate entity is assigned to Gateway entity as Certificate Authority.

EXEC azure.api_management.gateway_certificate_authority.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@gateway_id='{{ gateway_id }}' --required,
@certificate_id='{{ certificate_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;