Skip to main content

authorization_servers

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

Overview

Nameauthorization_servers
TypeResource
Idazure.api_management.authorization_servers

Fields

The following fields are returned by SELECT queries:

Gets the details of the specified authorization server. No secrets included.

NameDatatypeDescription
propertiesobjectProperties of the External OAuth authorization server Contract.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, authsid, subscriptionIdGets the details of the authorization server specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, subscriptionId$filter, $top, $skipLists a collection of authorization servers defined within a service instance.
create_or_updateinsertresourceGroupName, serviceName, authsid, subscriptionIdIf-MatchCreates new authorization server or updates an existing authorization server.
updateupdateresourceGroupName, serviceName, authsid, If-Match, subscriptionIdUpdates the details of the authorization server specified by its identifier.
deletedeleteresourceGroupName, serviceName, authsid, If-Match, subscriptionIdDeletes specific authorization server instance.

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
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
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.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.

SELECT examples

Gets the details of the authorization server specified by its identifier.

SELECT
properties
FROM azure.api_management.authorization_servers
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND authsid = '{{ authsid }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates new authorization server or updates an existing authorization server.

INSERT INTO azure.api_management.authorization_servers (
data__properties,
resourceGroupName,
serviceName,
authsid,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ authsid }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

UPDATE examples

Updates the details of the authorization server specified by its identifier.

UPDATE azure.api_management.authorization_servers
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND authsid = '{{ authsid }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes specific authorization server instance.

DELETE FROM azure.api_management.authorization_servers
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND authsid = '{{ authsid }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;