partner_configurations
Creates, updates, deletes, gets or lists a partner_configurations
resource.
Overview
Name | partner_configurations |
Type | Resource |
Id | azure.event_grid.partner_configurations |
Fields
- vw_partner_configurations
- partner_configurations
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
location | text | Location of the resource. |
partner_authorization | 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 | Tags of the resource. |
type | text | 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. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
location | string | Location of the resource. |
properties | object | Properties of the partner configuration. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
tags | object | Tags of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, subscriptionId | Get properties of a partner configuration. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all the partner configurations under a resource group. |
list_by_subscription | SELECT | subscriptionId | List all the partner configurations under an Azure subscription. |
create_or_update | INSERT | resourceGroupName, subscriptionId | Synchronously creates or updates a partner configuration with the specified parameters. |
delete | DELETE | resourceGroupName, subscriptionId | Delete existing partner configuration. |
update | UPDATE | resourceGroupName, subscriptionId | Synchronously updates a partner configuration with the specified parameters. |
authorize_partner | EXEC | resourceGroupName, subscriptionId | Authorize a single partner either by partner registration immutable Id or by partner name. |
unauthorize_partner | EXEC | resourceGroupName, subscriptionId | Unauthorize a single partner either by partner registration immutable Id or by partner name. |
SELECT
examples
List all the partner configurations under an Azure subscription.
- vw_partner_configurations
- partner_configurations
SELECT
id,
name,
location,
partner_authorization,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
tags,
type
FROM azure.event_grid.vw_partner_configurations
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
systemData,
tags,
type
FROM azure.event_grid.partner_configurations
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new partner_configurations
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.event_grid.partner_configurations (
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
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
- name: properties
value:
- name: partnerAuthorization
value:
- name: defaultMaximumExpirationTimeInDays
value: integer
- name: authorizedPartnersList
value:
- - name: partnerRegistrationImmutableId
value: string
- name: partnerName
value: string
- name: authorizationExpirationTimeInUtc
value: string
- name: provisioningState
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a partner_configurations
resource.
/*+ update */
UPDATE azure.event_grid.partner_configurations
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified partner_configurations
resource.
/*+ delete */
DELETE FROM azure.event_grid.partner_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';