Skip to main content

api_issue_comments

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

Overview

Nameapi_issue_comments
TypeResource
Idazure.api_management.api_issue_comments

Fields

NameDatatypeDescription
apiIdtextfield from the properties object
commentIdtextfield 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
subscriptionIdtextfield from the properties object
texttextfield from the properties object
user_idtextfield from the properties object

Methods

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

SELECT examples

Lists all comments for the Issue associated with the specified API.

SELECT
apiId,
commentId,
created_date,
issueId,
resourceGroupName,
serviceName,
subscriptionId,
text,
user_id
FROM azure.api_management.vw_api_issue_comments
WHERE apiId = '{{ apiId }}'
AND issueId = '{{ issueId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified api_issue_comments resource.

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