Skip to main content

workspace_api_operation_policies

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

Overview

Nameworkspace_api_operation_policies
TypeResource
Idazure.api_management.workspace_api_operation_policies

Fields

NameDatatypeDescription
apiIdtextfield from the properties object
formattextfield from the properties object
operationIdtextfield from the properties object
policyIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
valuetextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, operationId, policyId, resourceGroupName, serviceName, subscriptionId, workspaceIdGet the policy configuration at the API Operation level.
list_by_operationSELECTapiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceIdGet the list of policy configuration at the API Operation level.
create_or_updateINSERTapiId, operationId, policyId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates or updates policy configuration for the API Operation level.
deleteDELETEIf-Match, apiId, operationId, policyId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the policy configuration at the Api Operation.

SELECT examples

Get the list of policy configuration at the API Operation level.

SELECT
apiId,
format,
operationId,
policyId,
resourceGroupName,
serviceName,
subscriptionId,
value,
workspaceId
FROM azure.api_management.vw_workspace_api_operation_policies
WHERE apiId = '{{ apiId }}'
AND operationId = '{{ operationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.api_management.workspace_api_operation_policies (
apiId,
operationId,
policyId,
resourceGroupName,
serviceName,
subscriptionId,
workspaceId,
properties
)
SELECT
'{{ apiId }}',
'{{ operationId }}',
'{{ policyId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ workspaceId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified workspace_api_operation_policies resource.

/*+ delete */
DELETE FROM azure.api_management.workspace_api_operation_policies
WHERE If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND operationId = '{{ operationId }}'
AND policyId = '{{ policyId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';