partner_registrations
Creates, updates, deletes, gets or lists a partner_registrations
resource.
Overview
Name | partner_registrations |
Type | Resource |
Id | azure.event_grid.partner_registrations |
Fields
- vw_partner_registrations
- partner_registrations
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
partnerRegistrationName | 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 registration. |
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 | partnerRegistrationName, resourceGroupName, subscriptionId | Gets a partner registration with the specified parameters. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the partner registrations under a resource group. |
list_by_subscription | SELECT | subscriptionId | List all the partner registrations under an Azure subscription. |
create_or_update | INSERT | partnerRegistrationName, resourceGroupName, subscriptionId | Creates a new partner registration with the specified parameters. |
delete | DELETE | partnerRegistrationName, resourceGroupName, subscriptionId | Deletes a partner registration with the specified parameters. |
update | UPDATE | partnerRegistrationName, resourceGroupName, subscriptionId | Updates a partner registration with the specified parameters. |
SELECT
examples
List all the partner registrations under an Azure subscription.
- vw_partner_registrations
- partner_registrations
SELECT
location,
partnerRegistrationName,
partner_registration_immutable_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags
FROM azure.event_grid.vw_partner_registrations
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
systemData,
tags
FROM azure.event_grid.partner_registrations
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new partner_registrations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.partner_registrations (
partnerRegistrationName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ partnerRegistrationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: partnerRegistrationImmutableId
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_registrations
resource.
/*+ update */
UPDATE azure.event_grid.partner_registrations
SET
tags = '{{ tags }}'
WHERE
partnerRegistrationName = '{{ partnerRegistrationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified partner_registrations
resource.
/*+ delete */
DELETE FROM azure.event_grid.partner_registrations
WHERE partnerRegistrationName = '{{ partnerRegistrationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';