Skip to main content

gateway_keys

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

Overview

Namegateway_keys
TypeResource
Idazure.api_management.gateway_keys

Fields

The following fields are returned by SELECT queries:

The response body contains the specified Gateway keys.

NameDatatypeDescription
primarystringPrimary gateway key.
secondarystringSecondary gateway key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serviceName, gatewayId, subscriptionIdRetrieves gateway keys.

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
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.

SELECT examples

Retrieves gateway keys.

SELECT
primary,
secondary
FROM azure.api_management.gateway_keys
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND gatewayId = '{{ gatewayId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;