Skip to main content

authorization_server_secrets

Creates, updates, deletes, gets or lists an authorization_server_secrets resource.

Overview

Nameauthorization_server_secrets
TypeResource
Idazure.api_management.authorization_server_secrets

Fields

The following fields are returned by SELECT queries:

Gets the secrets of the specified authorization server.

NameDatatypeDescription
clientSecretstringoAuth Authorization Server Secrets.
resourceOwnerPasswordstringCan be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
resourceOwnerUsernamestringCan be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, serviceName, authsid, subscriptionIdGets the client secret details of the authorization server.

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
authsidstringIdentifier of the authorization server.
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

Gets the client secret details of the authorization server.

SELECT
clientSecret,
resourceOwnerPassword,
resourceOwnerUsername
FROM azure.api_management.authorization_server_secrets
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND authsid = '{{ authsid }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;