DistributedAvailabilityGroupSetRole Class
Distributed availability group failover request.
All required parameters must be populated in order to send to server.
Constructor
DistributedAvailabilityGroupSetRole(*, instance_role: str | _models.InstanceRole, role_change_type: str | _models.RoleChangeType, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
instance_role
|
str or
InstanceRole
New role of managed instance in a distributed availability group, can be Primary or Secondary. Required. Known values are: "Primary" and "Secondary". |
|
role_change_type
|
The type of the role change, can be Planned or Forced. Required. Known values are: "Forced" and "Planned". |
Variables
| Name | Description |
|---|---|
|
instance_role
|
str or
InstanceRole
New role of managed instance in a distributed availability group, can be Primary or Secondary. Required. Known values are: "Primary" and "Secondary". |
|
role_change_type
|
The type of the role change, can be Planned or Forced. Required. Known values are: "Forced" and "Planned". |