Skip to main content

authorization_servers

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

Overview

Nameauthorization_servers
TypeResource
Idazure.api_management.authorization_servers

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
authorization_endpointtextfield from the properties object
authorization_methodstextfield from the properties object
authsidtextfield from the properties object
bearer_token_sending_methodstextfield from the properties object
client_authentication_methodtextfield from the properties object
client_idtextfield from the properties object
client_registration_endpointtextfield from the properties object
client_secrettextfield from the properties object
default_scopetextfield from the properties object
display_nametextfield from the properties object
grant_typestextfield from the properties object
resourceGroupNametextfield from the properties object
resource_owner_passwordtextfield from the properties object
resource_owner_usernametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
support_statetextfield from the properties object
token_body_parameterstextfield from the properties object
token_endpointtextfield from the properties object
use_in_api_documentationtextfield from the properties object
use_in_test_consoletextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTauthsid, resourceGroupName, serviceName, subscriptionIdGets the details of the authorization server specified by its identifier.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdLists a collection of authorization servers defined within a service instance.
create_or_updateINSERTauthsid, resourceGroupName, serviceName, subscriptionIdCreates new authorization server or updates an existing authorization server.
deleteDELETEIf-Match, authsid, resourceGroupName, serviceName, subscriptionIdDeletes specific authorization server instance.
updateUPDATEIf-Match, authsid, resourceGroupName, serviceName, subscriptionIdUpdates the details of the authorization server specified by its identifier.

SELECT examples

Lists a collection of authorization servers defined within a service instance.

SELECT
description,
authorization_endpoint,
authorization_methods,
authsid,
bearer_token_sending_methods,
client_authentication_method,
client_id,
client_registration_endpoint,
client_secret,
default_scope,
display_name,
grant_types,
resourceGroupName,
resource_owner_password,
resource_owner_username,
serviceName,
subscriptionId,
support_state,
token_body_parameters,
token_endpoint,
use_in_api_documentation,
use_in_test_console
FROM azure.api_management.vw_authorization_servers
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new authorization_servers resource.

/*+ create */
INSERT INTO azure.api_management.authorization_servers (
authsid,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ authsid }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a authorization_servers resource.

/*+ update */
UPDATE azure.api_management.authorization_servers
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND authsid = '{{ authsid }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified authorization_servers resource.

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