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
- vw_partner_destinations
- partner_destinations
Name | Datatype | Description |
---|---|---|
activation_state | text | field from the properties object |
endpoint_base_url | text | field from the properties object |
endpoint_service_context | text | field from the properties object |
expiration_time_if_not_activated_utc | text | field from the properties object |
location | text | The geo-location where the resource lives |
message_for_activation | text | field from the properties object |
partnerDestinationName | text | field from the properties object |
partner_registration_immutable_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
tags | text | Resource tags. |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Properties of the Partner Destination. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | partnerDestinationName, resourceGroupName, subscriptionId | Get properties of a partner destination. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the partner destinations under a resource group. |
list_by_subscription | SELECT | subscriptionId | List all the partner destinations under an Azure subscription. |
create_or_update | INSERT | partnerDestinationName, resourceGroupName, subscriptionId | Asynchronously creates a new partner destination with the specified parameters. |
delete | DELETE | partnerDestinationName, resourceGroupName, subscriptionId | Delete existing partner destination. |
update | UPDATE | partnerDestinationName, resourceGroupName, subscriptionId | Asynchronously updates a partner destination with the specified parameters. |
activate | EXEC | partnerDestinationName, resourceGroupName, subscriptionId | Activate a newly created partner destination. |
SELECT
examples
List all the partner destinations under an Azure subscription.
- vw_partner_destinations
- partner_destinations
SELECT
activation_state,
endpoint_base_url,
endpoint_service_context,
expiration_time_if_not_activated_utc,
location,
message_for_activation,
partnerDestinationName,
partner_registration_immutable_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_destinations
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new partner_destinations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.partner_destinations (
partnerDestinationName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ partnerDestinationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: partnerRegistrationImmutableId
value: string
- name: endpointServiceContext
value: string
- name: expirationTimeIfNotActivatedUtc
value: string
- name: provisioningState
value: string
- name: activationState
value: string
- name: endpointBaseUrl
value: string
- name: messageForActivation
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
UPDATE
example
Updates a partner_destinations
resource.
/*+ update */
UPDATE azure.event_grid.partner_destinations
SET
tags = '{{ tags }}'
WHERE
partnerDestinationName = '{{ partnerDestinationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified partner_destinations
resource.
/*+ delete */
DELETE FROM azure.event_grid.partner_destinations
WHERE partnerDestinationName = '{{ partnerDestinationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';