Skip to main content

api_issues

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

Overview

Nameapi_issues
TypeResource
Idazure.api_management.api_issues

Fields

The following fields are returned by SELECT queries:

The response body contains the specified Issue entity.

NameDatatypeDescription
propertiesobjectProperties of the Issue.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, serviceName, apiId, issueId, subscriptionIdexpandCommentsAttachmentsGets the details of the Issue for an API specified by its identifier.
list_by_serviceselectresourceGroupName, serviceName, apiId, subscriptionId$filter, expandCommentsAttachments, $top, $skipLists all issues associated with the specified API.
create_or_updateinsertresourceGroupName, serviceName, apiId, issueId, subscriptionIdIf-MatchCreates a new Issue for an API or updates an existing one.
updateupdateresourceGroupName, serviceName, apiId, issueId, If-Match, subscriptionIdUpdates an existing issue for an API.
deletedeleteresourceGroupName, serviceName, apiId, issueId, If-Match, subscriptionIdDeletes the specified Issue from an API.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
If-MatchstringETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
apiIdstringAPI identifier. Must be unique in the current API Management service instance.
issueIdstringIssue identifier. Must be unique in the current API Management service instance.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
serviceNamestringThe name of the API Management service.
subscriptionIdstringThe ID of the target subscription.
$filterstring| Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| userId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| state | filter | eq | |</br>
$skipinteger (int32)Number of records to skip.
$topinteger (int32)Number of records to return.
If-MatchstringETag of the Entity. Not required when creating an entity, but required when updating an entity.
expandCommentsAttachmentsbooleanExpand the comment attachments.

SELECT examples

Gets the details of the Issue for an API specified by its identifier.

SELECT
properties
FROM azure.api_management.api_issues
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiId = '{{ apiId }}' -- required
AND issueId = '{{ issueId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND expandCommentsAttachments = '{{ expandCommentsAttachments }}'
;

INSERT examples

Creates a new Issue for an API or updates an existing one.

INSERT INTO azure.api_management.api_issues (
data__properties,
resourceGroupName,
serviceName,
apiId,
issueId,
subscriptionId,
If-Match
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ apiId }}',
'{{ issueId }}',
'{{ subscriptionId }}',
'{{ If-Match }}'
RETURNING
properties
;

UPDATE examples

Updates an existing issue for an API.

UPDATE azure.api_management.api_issues
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND serviceName = '{{ serviceName }}' --required
AND apiId = '{{ apiId }}' --required
AND issueId = '{{ issueId }}' --required
AND If-Match = '{{ If-Match }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes the specified Issue from an API.

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