Skip to main content

workspace_api_operations

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

Overview

Nameworkspace_api_operations
TypeResource
Idazure.api_management.workspace_api_operations

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
apiIdtextfield from the properties object
display_nametextfield from the properties object
methodtextfield from the properties object
operationIdtextfield from the properties object
policiestextfield from the properties object
requesttextfield from the properties object
resourceGroupNametextfield from the properties object
responsestextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
template_parameterstextfield from the properties object
url_templatetextfield from the properties object
workspaceIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceIdGets the details of the API Operation specified by its identifier.
list_by_apiSELECTapiId, resourceGroupName, serviceName, subscriptionId, workspaceIdLists a collection of the operations for the specified API.
create_or_updateINSERTapiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceIdCreates a new operation in the API or updates an existing one.
deleteDELETEIf-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceIdDeletes the specified operation in the API.
updateUPDATEIf-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionId, workspaceIdUpdates the details of the operation in the API specified by its identifier.

SELECT examples

Lists a collection of the operations for the specified API.

SELECT
description,
apiId,
display_name,
method,
operationId,
policies,
request,
resourceGroupName,
responses,
serviceName,
subscriptionId,
template_parameters,
url_template,
workspaceId
FROM azure.api_management.vw_workspace_api_operations
WHERE apiId = '{{ apiId }}'
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_operations resource.

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

UPDATE example

Updates a workspace_api_operations resource.

/*+ update */
UPDATE azure.api_management.workspace_api_operations
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND operationId = '{{ operationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND workspaceId = '{{ workspaceId }}';

DELETE example

Deletes the specified workspace_api_operations resource.

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