Skip to main content

subscription_secrets

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

Overview

Namesubscription_secrets
TypeResource
Idazure.api_management.subscription_secrets

Fields

The following fields are returned by SELECT queries:

The response body contains subscription keys.

NameDatatypeDescription
primaryKeystringSubscription primary key.
secondaryKeystringSubscription secondary key.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serviceName, sid, subscriptionIdGets the specified Subscription 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
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
sidstringSubscription entity Identifier. The entity represents the association between a user and a product in API Management.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the specified Subscription keys.

SELECT
primaryKey,
secondaryKey
FROM azure.api_management.subscription_secrets
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND sid = '{{ sid }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;