tag_operation_link
Creates, updates, deletes, gets or lists a tag_operation_link resource.
Overview
| Name | tag_operation_link |
| Type | Resource |
| Id | azure.api_management.tag_operation_link |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_product
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
operationId | string | Full resource Id of an API operation. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
operationId | string | Full resource Id of an API operation. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, service_name, tag_id, operation_link_id, subscription_id | Gets the operation link for the tag. | |
list_by_product | select | resource_group_name, service_name, tag_id, subscription_id | $filter, $top, $skip | Lists a collection of the operation links associated with a tag. |
create_or_update | insert | resource_group_name, service_name, tag_id, operation_link_id, subscription_id | Adds an operation to the specified tag via link. | |
create_or_update | replace | resource_group_name, service_name, tag_id, operation_link_id, subscription_id | Adds an operation to the specified tag via link. | |
delete | delete | resource_group_name, service_name, tag_id, operation_link_id, subscription_id | Deletes the specified operation from the specified tag. |
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 |
|---|---|---|
operation_link_id | string | Tag-operation link identifier. Must be unique in the current API Management service instance. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
service_name | string | The name of the API Management service. Required. |
subscription_id | string | |
tag_id | string | Tag identifier. Must be unique in the current API Management service instance. Required. |
$filter | string | | Field | Usage | Supported operators | Supported functions ||-------------|-------------|-------------|-------------|| operationId | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |. Default value is None. |
$skip | integer | Number of records to skip. Default value is None. |
$top | integer | Number of records to return. Default value is None. |
SELECT examples
- get
- list_by_product
Gets the operation link for the tag.
SELECT
id,
name,
operationId,
systemData,
type
FROM azure.api_management.tag_operation_link
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND tag_id = '{{ tag_id }}' -- required
AND operation_link_id = '{{ operation_link_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lists a collection of the operation links associated with a tag.
SELECT
id,
name,
operationId,
systemData,
type
FROM azure.api_management.tag_operation_link
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND service_name = '{{ service_name }}' -- required
AND tag_id = '{{ tag_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $skip = '{{ $skip }}'
;
INSERT examples
- create_or_update
- Manifest
Adds an operation to the specified tag via link.
INSERT INTO azure.api_management.tag_operation_link (
properties,
resource_group_name,
service_name,
tag_id,
operation_link_id,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ service_name }}',
'{{ tag_id }}',
'{{ operation_link_id }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: tag_operation_link
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the tag_operation_link resource.
- name: service_name
value: "{{ service_name }}"
description: Required parameter for the tag_operation_link resource.
- name: tag_id
value: "{{ tag_id }}"
description: Required parameter for the tag_operation_link resource.
- name: operation_link_id
value: "{{ operation_link_id }}"
description: Required parameter for the tag_operation_link resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the tag_operation_link resource.
- name: properties
description: |
Tag-API link entity contract properties.
value:
operationId: "{{ operationId }}"
REPLACE examples
- create_or_update
Adds an operation to the specified tag via link.
REPLACE azure.api_management.tag_operation_link
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND tag_id = '{{ tag_id }}' --required
AND operation_link_id = '{{ operation_link_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;
DELETE examples
- delete
Deletes the specified operation from the specified tag.
DELETE FROM azure.api_management.tag_operation_link
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND service_name = '{{ service_name }}' --required
AND tag_id = '{{ tag_id }}' --required
AND operation_link_id = '{{ operation_link_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;