Skip to main content

delegation_settings

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

Overview

Namedelegation_settings
TypeResource
Idazure.api_management.delegation_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
subscriptionsobjectSubscriptions delegation settings.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
urlstringA delegation Url.
userRegistrationobjectUser registration delegation settings.
validationKeystringA base64-encoded validation key to validate, that a request is coming from Azure API Management.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, service_name, subscription_idGet Delegation Settings for the Portal.
create_or_updateinsertresource_group_name, service_name, subscription_idCreate or Update Delegation settings.
updateupdateresource_group_name, service_name, subscription_idUpdate Delegation settings.
create_or_updatereplaceresource_group_name, service_name, subscription_idCreate or Update Delegation settings.
get_entity_tagexecresource_group_name, service_name, subscription_idGets the entity state (Etag) version of the DelegationSettings.
list_secretsexecresource_group_name, service_name, subscription_idGets the secret validation key of the DelegationSettings.

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
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
service_namestringThe name of the API Management service. Required.
subscription_idstring

SELECT examples

Get Delegation Settings for the Portal.

SELECT
id,
name,
subscriptions,
systemData,
type,
url,
userRegistration,
validationKey
FROM azure.api_management.delegation_settings
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or Update Delegation settings.

INSERT INTO azure.api_management.delegation_settings (
properties,
resource_group_name,
service_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Update Delegation settings.

UPDATE azure.api_management.delegation_settings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required;

REPLACE examples

Create or Update Delegation settings.

REPLACE azure.api_management.delegation_settings
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

Lifecycle Methods

Gets the entity state (Etag) version of the DelegationSettings.

EXEC azure.api_management.delegation_settings.get_entity_tag 
@resource_group_name='{{ resource_group_name }}' --required,
@service_name='{{ service_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;