disaster_recovery_configs
Creates, updates, deletes, gets or lists a disaster_recovery_configs
resource.
Overview
Name | disaster_recovery_configs |
Type | Resource |
Id | azure.service_bus.disaster_recovery_configs |
Fields
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 |
location | string | The geo-location where the resource lives |
properties | `` | Properties required to the Create Or Update Alias(Disaster Recovery configurations) |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.EventHub/Namespaces" or "Microsoft.EventHub/Namespaces/EventHubs" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | alias, namespaceName, resourceGroupName, subscriptionId | Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace |
list | SELECT | namespaceName, resourceGroupName, subscriptionId | Gets all Alias(Disaster Recovery configurations) |
create_or_update | INSERT | alias, namespaceName, resourceGroupName, subscriptionId | Creates or updates a new Alias(Disaster Recovery configuration) |
delete | DELETE | alias, namespaceName, resourceGroupName, subscriptionId | Deletes an Alias(Disaster Recovery configuration) |
break_pairing | EXEC | alias, namespaceName, resourceGroupName, subscriptionId | This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces |
check_name_availability | EXEC | namespaceName, resourceGroupName, subscriptionId, data__name | Check the give namespace name availability. |
fail_over | EXEC | alias, namespaceName, resourceGroupName, subscriptionId | Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace |
SELECT
examples
Gets all Alias(Disaster Recovery configurations)
SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.service_bus.disaster_recovery_configs
WHERE namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new disaster_recovery_configs
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_bus.disaster_recovery_configs (
alias,
namespaceName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ alias }}',
'{{ namespaceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
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: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
DELETE
example
Deletes the specified disaster_recovery_configs
resource.
/*+ delete */
DELETE FROM azure.service_bus.disaster_recovery_configs
WHERE alias = '{{ alias }}'
AND namespaceName = '{{ namespaceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';