Skip to main content

api_operations

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

Overview

Nameapi_operations
TypeResource
Idazure.api_management.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

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, operationId, resourceGroupName, serviceName, subscriptionIdGets the details of the API Operation specified by its identifier.
list_by_apiSELECTapiId, resourceGroupName, serviceName, subscriptionIdLists a collection of the operations for the specified API.
create_or_updateINSERTapiId, operationId, resourceGroupName, serviceName, subscriptionIdCreates a new operation in the API or updates an existing one.
deleteDELETEIf-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionIdDeletes the specified operation in the API.
updateUPDATEIf-Match, apiId, operationId, resourceGroupName, serviceName, subscriptionIdUpdates 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
FROM azure.api_management.vw_api_operations
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a api_operations resource.

/*+ update */
UPDATE azure.api_management.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 }}';

DELETE example

Deletes the specified api_operations resource.

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