DisasterRecoveryConfigsOperations Class
DisasterRecoveryConfigsOperations 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 AuthorizationRule for a Namespace by rule name. |
| list |
Gets all Alias(Disaster Recovery configurations). |
| list_authorization_rules |
Gets a list of 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.
break_pairing(resource_group_name: str, namespace_name: str, alias: str, **kwargs: Any) -> 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.
check_name_availability(resource_group_name: str, namespace_name: str, parameters: azure.mgmt.eventhub.v2021_11_01.models._models_py3.CheckNameAvailabilityParameter, **kwargs: Any) -> azure.mgmt.eventhub.v2021_11_01.models._models_py3.CheckNameAvailabilityResult
Parameters
- parameters
- CheckNameAvailabilityParameter
Parameters to check availability of the given Alias 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).
create_or_update(resource_group_name: str, namespace_name: str, alias: str, parameters: azure.mgmt.eventhub.v2021_11_01.models._models_py3.ArmDisasterRecovery, **kwargs: Any) -> Optional[azure.mgmt.eventhub.v2021_11_01.models._models_py3.ArmDisasterRecovery]
Parameters
- parameters
- 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).
delete(resource_group_name: str, namespace_name: str, alias: str, **kwargs: Any) -> 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.
fail_over(resource_group_name: str, namespace_name: str, alias: str, **kwargs: Any) -> 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
get
Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace.
get(resource_group_name: str, namespace_name: str, alias: str, **kwargs: Any) -> azure.mgmt.eventhub.v2021_11_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 AuthorizationRule for a Namespace by rule name.
get_authorization_rule(resource_group_name: str, namespace_name: str, alias: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2021_11_01.models._models_py3.AuthorizationRule
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
AuthorizationRule, 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: Any) -> Iterable[azure.mgmt.eventhub.v2021_11_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 a list of authorization rules for a Namespace.
list_authorization_rules(resource_group_name: str, namespace_name: str, alias: str, **kwargs: Any) -> Iterable[azure.mgmt.eventhub.v2021_11_01.models._models_py3.AuthorizationRuleListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either AuthorizationRuleListResult or the result of cls(response)
Return type
Exceptions
list_keys
Gets the primary and secondary connection strings for the Namespace.
list_keys(resource_group_name: str, namespace_name: str, alias: str, authorization_rule_name: str, **kwargs: Any) -> azure.mgmt.eventhub.v2021_11_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.eventhub.v2021_11_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\eventhub\\v2021_11_01\\models\\__init__.py'>
Feedback
Submit and view feedback for