api_issues
Creates, updates, deletes, gets or lists an api_issues
resource.
Overview
Name | api_issues |
Type | Resource |
Id | azure.api_management.api_issues |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_service
The response body contains the specified Issue entity.
Name | Datatype | Description |
---|---|---|
properties | object | Properties of the Issue. |
Paged Result response of issues for the API.
Name | Datatype | Description |
---|---|---|
properties | object | Properties of the Issue. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | resourceGroupName , serviceName , apiId , issueId , subscriptionId | expandCommentsAttachments | Gets the details of the Issue for an API specified by its identifier. |
list_by_service | select | resourceGroupName , serviceName , apiId , subscriptionId | $filter , expandCommentsAttachments , $top , $skip | Lists all issues associated with the specified API. |
create_or_update | insert | resourceGroupName , serviceName , apiId , issueId , subscriptionId | If-Match | Creates a new Issue for an API or updates an existing one. |
update | update | resourceGroupName , serviceName , apiId , issueId , If-Match , subscriptionId | Updates an existing issue for an API. | |
delete | delete | resourceGroupName , serviceName , apiId , issueId , If-Match , subscriptionId | Deletes 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.
Name | Datatype | Description |
---|---|---|
If-Match | string | ETag 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. |
apiId | string | API identifier. Must be unique in the current API Management service instance. |
issueId | string | Issue identifier. Must be unique in the current API Management service instance. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
serviceName | string | The name of the API Management service. |
subscriptionId | string | The ID of the target subscription. |
$filter | string | | 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> |
$skip | integer (int32) | Number of records to skip. |
$top | integer (int32) | Number of records to return. |
If-Match | string | ETag of the Entity. Not required when creating an entity, but required when updating an entity. |
expandCommentsAttachments | boolean | Expand the comment attachments. |
SELECT
examples
- get
- list_by_service
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 }}'
;
Lists all issues associated with the specified API.
SELECT
properties
FROM azure.api_management.api_issues
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND serviceName = '{{ serviceName }}' -- required
AND apiId = '{{ apiId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND expandCommentsAttachments = '{{ expandCommentsAttachments }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT
examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: api_issues
props:
- name: resourceGroupName
value: string
description: Required parameter for the api_issues resource.
- name: serviceName
value: string
description: Required parameter for the api_issues resource.
- name: apiId
value: string
description: Required parameter for the api_issues resource.
- name: issueId
value: string
description: Required parameter for the api_issues resource.
- name: subscriptionId
value: string
description: Required parameter for the api_issues resource.
- name: properties
value: object
description: |
Properties of the Issue.
- name: If-Match
value: string
description: ETag of the Entity. Not required when creating an entity, but required when updating an entity.
UPDATE
examples
- update
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
- delete
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
;