api_issue_attachments
Creates, updates, deletes, gets or lists a api_issue_attachments
resource.
Overview
Name | api_issue_attachments |
Type | Resource |
Id | azure.api_management.api_issue_attachments |
Fields
- vw_api_issue_attachments
- api_issue_attachments
Name | Datatype | Description |
---|---|---|
apiId | text | field from the properties object |
attachmentId | text | field from the properties object |
content | text | field from the properties object |
content_format | text | field from the properties object |
issueId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
title | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Issue Attachment contract Properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiId, attachmentId, issueId, resourceGroupName, serviceName, subscriptionId | Gets the details of the issue Attachment for an API specified by its identifier. |
list_by_service | SELECT | apiId, issueId, resourceGroupName, serviceName, subscriptionId | Lists all attachments for the Issue associated with the specified API. |
create_or_update | INSERT | apiId, attachmentId, issueId, resourceGroupName, serviceName, subscriptionId | Creates a new Attachment for the Issue in an API or updates an existing one. |
delete | DELETE | If-Match, apiId, attachmentId, issueId, resourceGroupName, serviceName, subscriptionId | Deletes the specified comment from an Issue. |
SELECT
examples
Lists all attachments for the Issue associated with the specified API.
- vw_api_issue_attachments
- api_issue_attachments
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.api_issue_attachments (
apiId,
attachmentId,
issueId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apiId }}',
'{{ attachmentId }}',
'{{ issueId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: title
value: string
- name: contentFormat
value: string
- name: content
value: string
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 }}';