partner_destinations
Creates, updates, deletes, gets or lists a partner_destinations
resource.
Overview
Name | partner_destinations |
Type | Resource |
Id | azure.event_grid.partner_destinations |
Fields
The following fields are returned by SELECT
queries:
- get
- list_by_resource_group
- list_by_subscription
Name | Datatype | Description |
---|---|---|
location | string | Location of the resource. |
properties | object | Properties of the Partner Destination. |
systemData | object | The system metadata relating to Partner Destination resource. |
tags | object | Tags of the resource. |
Name | Datatype | Description |
---|---|---|
location | string | Location of the resource. |
properties | object | Properties of the Partner Destination. |
systemData | object | The system metadata relating to Partner Destination resource. |
tags | object | Tags of the resource. |
Name | Datatype | Description |
---|---|---|
location | string | Location of the resource. |
properties | object | Properties of the Partner Destination. |
systemData | object | The system metadata relating to Partner Destination resource. |
tags | object | Tags of the resource. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , resourceGroupName , partnerDestinationName | Get properties of a partner destination. | |
list_by_resource_group | select | subscriptionId , resourceGroupName | $filter , $top | List all the partner destinations under a resource group. |
list_by_subscription | select | subscriptionId | $filter , $top | List all the partner destinations under an Azure subscription. |
create_or_update | insert | subscriptionId , resourceGroupName , partnerDestinationName | Asynchronously creates a new partner destination with the specified parameters. | |
update | update | subscriptionId , resourceGroupName , partnerDestinationName | Asynchronously updates a partner destination with the specified parameters. | |
delete | delete | subscriptionId , resourceGroupName , partnerDestinationName | Delete existing partner destination. | |
activate | exec | subscriptionId , resourceGroupName , partnerDestinationName | Activate a newly created partner destination. |
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 |
---|---|---|
partnerDestinationName | string | Name of the partner destination. |
resourceGroupName | string | The name of the resource group within the user's subscription. |
subscriptionId | string | Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. |
$filter | string | The query used to filter the search results using OData syntax. Filtering is permitted on the 'name' property only and with limited number of OData operations. These operations are: the 'contains' function as well as the following logical operations: not, and, or, eq (for equal), and ne (for not equal). No arithmetic operations are supported. The following is a valid filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. The following is not a valid filter example: $filter=location eq 'westus'. |
$top | integer (int32) | The number of results to return per page for the list operation. Valid range for top parameter is 1 to 100. If not specified, the default number of results to be returned is 20 items per page. |
SELECT
examples
- get
- list_by_resource_group
- list_by_subscription
Get properties of a partner destination.
SELECT
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND partnerDestinationName = '{{ partnerDestinationName }}' -- required
;
List all the partner destinations under a resource group.
SELECT
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
;
List all the partner destinations under an Azure subscription.
SELECT
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
;
INSERT
examples
- create_or_update
- Manifest
Asynchronously creates a new partner destination with the specified parameters.
INSERT INTO azure.event_grid.partner_destinations (
data__location,
data__tags,
data__properties,
subscriptionId,
resourceGroupName,
partnerDestinationName
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ partnerDestinationName }}'
RETURNING
location,
properties,
systemData,
tags
;
# Description fields are for documentation purposes
- name: partner_destinations
props:
- name: subscriptionId
value: string
description: Required parameter for the partner_destinations resource.
- name: resourceGroupName
value: string
description: Required parameter for the partner_destinations resource.
- name: partnerDestinationName
value: string
description: Required parameter for the partner_destinations resource.
- name: location
value: string
description: |
Location of the resource.
- name: tags
value: object
description: |
Tags of the resource.
- name: properties
value: object
description: |
Properties of the Partner Destination.
UPDATE
examples
- update
Asynchronously updates a partner destination with the specified parameters.
UPDATE azure.event_grid.partner_destinations
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND partnerDestinationName = '{{ partnerDestinationName }}' --required
RETURNING
location,
properties,
systemData,
tags;
DELETE
examples
- delete
Delete existing partner destination.
DELETE FROM azure.event_grid.partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND partnerDestinationName = '{{ partnerDestinationName }}' --required
;
Lifecycle Methods
- activate
Activate a newly created partner destination.
EXEC azure.event_grid.partner_destinations.activate
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@partnerDestinationName='{{ partnerDestinationName }}' --required
;