Skip to main content

tenant_access_secrets

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

Overview

Nametenant_access_secrets
TypeResource
Idazure.api_management.tenant_access_secrets

Fields

The following fields are returned by SELECT queries:

Tenant Access information.

NameDatatypeDescription
idstringAccess Information type ('access' or 'gitAccess')
enabledbooleanDetermines whether direct access is enabled.
primaryKeystringPrimary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
principalIdstringPrincipal (User) Identifier.
secondaryKeystringSecondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serviceName, subscriptionId, accessNameGet tenant access information details.

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
accessNamestringThe identifier of the Access configuration.
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

Get tenant access information details.

SELECT
id,
enabled,
primaryKey,
principalId,
secondaryKey
FROM azure.api_management.tenant_access_secrets
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND accessName = '{{ accessName }}' -- required
;