DisasterRecoveryConfigsOperations Class
DisasterRecoveryConfigsOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectDisasterRecoveryConfigsOperations
Constructor
DisasterRecoveryConfigsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| break_pairing |
This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces. |
| check_name_availability |
Check the give namespace name availability. |
| create_or_update |
Creates or updates a new Alias(Disaster Recovery configuration). |
| delete |
Deletes an Alias(Disaster Recovery configuration). |
| fail_over |
Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace. |
| get |
Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace. |
| get_authorization_rule |
Gets an authorization rule for a namespace by rule name. |
| list |
Gets all Alias(Disaster Recovery configurations). |
| list_authorization_rules |
Gets the authorization rules for a namespace. |
| list_keys |
Gets the primary and secondary connection strings for the namespace. |
break_pairing
This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces.
async break_pairing(resource_group_name: str, namespace_name: str, alias: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
check_name_availability
Check the give namespace name availability.
async check_name_availability(resource_group_name: str, namespace_name: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.CheckNameAvailability, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.CheckNameAvailabilityResult
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.CheckNameAvailability>
Parameters to check availability of the given namespace name.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
CheckNameAvailabilityResult, or the result of cls(response)
Return type
Exceptions
create_or_update
Creates or updates a new Alias(Disaster Recovery configuration).
async create_or_update(resource_group_name: str, namespace_name: str, alias: str, parameters: azure.mgmt.servicebus.v2017_04_01.models._models_py3.ArmDisasterRecovery, **kwargs) -> Optional[azure.mgmt.servicebus.v2017_04_01.models._models_py3.ArmDisasterRecovery]
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.ArmDisasterRecovery>
Parameters required to create an Alias(Disaster Recovery configuration).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ArmDisasterRecovery, or the result of cls(response)
Return type
Exceptions
delete
Deletes an Alias(Disaster Recovery configuration).
async delete(resource_group_name: str, namespace_name: str, alias: str, **kwargs) -> None
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
fail_over
Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace.
async fail_over(resource_group_name: str, namespace_name: str, alias: str, parameters: Optional[_models.FailoverProperties] = None, **kwargs) -> None
Parameters
- parameters
- <xref:azure.mgmt.servicebus.models.FailoverProperties>
Parameters required to create an Alias(Disaster Recovery configuration).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
async get(resource_group_name: str, namespace_name: str, alias: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.ArmDisasterRecovery
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ArmDisasterRecovery, or the result of cls(response)
Return type
Exceptions
get_authorization_rule
Gets an authorization rule for a namespace by rule name.
async get_authorization_rule(resource_group_name: str, namespace_name: str, alias: str, authorization_rule_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SBAuthorizationRule, or the result of cls(response)
Return type
Exceptions
list
Gets all Alias(Disaster Recovery configurations).
list(resource_group_name: str, namespace_name: str, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.ArmDisasterRecoveryListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ArmDisasterRecoveryListResult or the result of cls(response)
Return type
Exceptions
list_authorization_rules
Gets the authorization rules for a namespace.
list_authorization_rules(resource_group_name: str, namespace_name: str, alias: str, **kwargs) -> AsyncIterable[azure.mgmt.servicebus.v2017_04_01.models._models_py3.SBAuthorizationRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SBAuthorizationRuleListResult or the result of cls(response)
Return type
Exceptions
list_keys
Gets the primary and secondary connection strings for the namespace.
async list_keys(resource_group_name: str, namespace_name: str, alias: str, authorization_rule_name: str, **kwargs) -> azure.mgmt.servicebus.v2017_04_01.models._models_py3.AccessKeys
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AccessKeys, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.servicebus.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\servicebus\\models.py'>
Feedback
Submit and view feedback for