Skip to main content

api_issues

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

Overview

Nameapi_issues
TypeResource
Idazure.api_management.api_issues

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
apiIdtextfield from the properties object
api_idtextfield from the properties object
created_datetextfield from the properties object
issueIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
statetextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object
user_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, issueId, resourceGroupName, serviceName, subscriptionIdGets the details of the Issue for an API specified by its identifier.
list_by_serviceSELECTapiId, resourceGroupName, serviceName, subscriptionIdLists all issues associated with the specified API.
create_or_updateINSERTapiId, issueId, resourceGroupName, serviceName, subscriptionIdCreates a new Issue for an API or updates an existing one.
deleteDELETEIf-Match, apiId, issueId, resourceGroupName, serviceName, subscriptionIdDeletes the specified Issue from an API.
updateUPDATEIf-Match, apiId, issueId, resourceGroupName, serviceName, subscriptionIdUpdates an existing issue for an API.

SELECT examples

Lists all issues associated with the specified API.

SELECT
description,
apiId,
api_id,
created_date,
issueId,
resourceGroupName,
serviceName,
state,
subscriptionId,
title,
user_id
FROM azure.api_management.vw_api_issues
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_issues resource.

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

UPDATE example

Updates a api_issues resource.

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

DELETE example

Deletes the specified api_issues resource.

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