Skip to main content

api_issue_attachments

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

Overview

Nameapi_issue_attachments
TypeResource
Idazure.api_management.api_issue_attachments

Fields

NameDatatypeDescription
apiIdtextfield from the properties object
attachmentIdtextfield from the properties object
contenttextfield from the properties object
content_formattextfield from the properties object
issueIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object
titletextfield from the properties object

Methods

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

SELECT examples

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

SELECT
apiId,
attachmentId,
content,
content_format,
issueId,
resourceGroupName,
serviceName,
subscriptionId,
title
FROM azure.api_management.vw_api_issue_attachments
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_attachments resource.

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

DELETE example

Deletes the specified api_issue_attachments resource.

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