Skip to main content

tenant_accesses

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

Overview

Nametenant_accesses
TypeResource
Idazure.api_management.tenant_accesses

Fields

NameDatatypeDescription
idtextfield from the properties object
accessNametextfield from the properties object
enabledtextfield from the properties object
principal_idtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccessName, resourceGroupName, serviceName, subscriptionIdGet tenant access information details without secrets.
list_by_serviceSELECTresourceGroupName, serviceName, subscriptionIdReturns list of access infos - for Git and Management endpoints.
createINSERTIf-Match, accessName, resourceGroupName, serviceName, subscriptionIdUpdate tenant access information details.
updateUPDATEIf-Match, accessName, resourceGroupName, serviceName, subscriptionIdUpdate tenant access information details.
regenerate_git_primary_keyEXECaccessName, resourceGroupName, serviceName, subscriptionIdRegenerate primary access key for GIT.
regenerate_git_secondary_keyEXECaccessName, resourceGroupName, serviceName, subscriptionIdRegenerate secondary access key for GIT.
regenerate_primary_keyEXECaccessName, resourceGroupName, serviceName, subscriptionIdRegenerate primary access key
regenerate_secondary_keyEXECaccessName, resourceGroupName, serviceName, subscriptionIdRegenerate secondary access key

SELECT examples

Returns list of access infos - for Git and Management endpoints.

SELECT
id,
accessName,
enabled,
principal_id,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_tenant_accesses
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.tenant_accesses (
If-Match,
accessName,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ If-Match }}',
'{{ accessName }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a tenant_accesses resource.

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