FailoverGroup
Create a failover group of databases on a collection of Azure SQL servers.
Create a FailoverGroup Resource
new FailoverGroup(name: string, args: FailoverGroupArgs, opts?: CustomResourceOptions);def FailoverGroup(resource_name, opts=None, databases=None, name=None, partner_servers=None, read_write_endpoint_failover_policy=None, readonly_endpoint_failover_policy=None, resource_group_name=None, server_name=None, tags=None, __props__=None);func NewFailoverGroup(ctx *Context, name string, args FailoverGroupArgs, opts ...ResourceOption) (*FailoverGroup, error)public FailoverGroup(string name, FailoverGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FailoverGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FailoverGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FailoverGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
FailoverGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The FailoverGroup resource accepts the following input properties:
- Partner
Servers List<FailoverGroup Partner Server Args> A list of secondary servers as documented below
- Read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy Args A read/write policy as documented below
- Resource
Group stringName The name of the resource group containing the SQL server
- Server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- Databases List<string>
A list of database ids to add to the failover group
- Name string
The name of the failover group. Changing this forces a new resource to be created.
- Readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy Args a read-only policy as documented below
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Partner
Servers []FailoverGroup Partner Server A list of secondary servers as documented below
- Read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy A read/write policy as documented below
- Resource
Group stringName The name of the resource group containing the SQL server
- Server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- Databases []string
A list of database ids to add to the failover group
- Name string
The name of the failover group. Changing this forces a new resource to be created.
- Readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy a read-only policy as documented below
- map[string]string
A mapping of tags to assign to the resource.
- partner
Servers FailoverGroup Partner Server[] A list of secondary servers as documented below
- read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy A read/write policy as documented below
- resource
Group stringName The name of the resource group containing the SQL server
- server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- databases string[]
A list of database ids to add to the failover group
- name string
The name of the failover group. Changing this forces a new resource to be created.
- readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy a read-only policy as documented below
- {[key: string]: string}
A mapping of tags to assign to the resource.
- partner_
servers List[FailoverGroup Partner Server] A list of secondary servers as documented below
- read_
write_ Dict[Failoverendpoint_ failover_ policy Group Read Write Endpoint Failover Policy] A read/write policy as documented below
- resource_
group_ strname The name of the resource group containing the SQL server
- server_
name str The name of the primary SQL server. Changing this forces a new resource to be created.
- databases List[str]
A list of database ids to add to the failover group
- name str
The name of the failover group. Changing this forces a new resource to be created.
- readonly_
endpoint_ Dict[Failoverfailover_ policy Group Readonly Endpoint Failover Policy] a read-only policy as documented below
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the FailoverGroup resource produces the following output properties:
Look up an Existing FailoverGroup Resource
Get an existing FailoverGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FailoverGroupState, opts?: CustomResourceOptions): FailoverGroupstatic get(resource_name, id, opts=None, databases=None, location=None, name=None, partner_servers=None, read_write_endpoint_failover_policy=None, readonly_endpoint_failover_policy=None, resource_group_name=None, role=None, server_name=None, tags=None, __props__=None);func GetFailoverGroup(ctx *Context, name string, id IDInput, state *FailoverGroupState, opts ...ResourceOption) (*FailoverGroup, error)public static FailoverGroup Get(string name, Input<string> id, FailoverGroupState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Databases List<string>
A list of database ids to add to the failover group
- Location string
the location of the failover group.
- Name string
The name of the failover group. Changing this forces a new resource to be created.
- Partner
Servers List<FailoverGroup Partner Server Args> A list of secondary servers as documented below
- Read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy Args A read/write policy as documented below
- Readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy Args a read-only policy as documented below
- Resource
Group stringName The name of the resource group containing the SQL server
- Role string
local replication role of the failover group instance.
- Server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Databases []string
A list of database ids to add to the failover group
- Location string
the location of the failover group.
- Name string
The name of the failover group. Changing this forces a new resource to be created.
- Partner
Servers []FailoverGroup Partner Server A list of secondary servers as documented below
- Read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy A read/write policy as documented below
- Readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy a read-only policy as documented below
- Resource
Group stringName The name of the resource group containing the SQL server
- Role string
local replication role of the failover group instance.
- Server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- databases string[]
A list of database ids to add to the failover group
- location string
the location of the failover group.
- name string
The name of the failover group. Changing this forces a new resource to be created.
- partner
Servers FailoverGroup Partner Server[] A list of secondary servers as documented below
- read
Write FailoverEndpoint Failover Policy Group Read Write Endpoint Failover Policy A read/write policy as documented below
- readonly
Endpoint FailoverFailover Policy Group Readonly Endpoint Failover Policy a read-only policy as documented below
- resource
Group stringName The name of the resource group containing the SQL server
- role string
local replication role of the failover group instance.
- server
Name string The name of the primary SQL server. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- databases List[str]
A list of database ids to add to the failover group
- location str
the location of the failover group.
- name str
The name of the failover group. Changing this forces a new resource to be created.
- partner_
servers List[FailoverGroup Partner Server] A list of secondary servers as documented below
- read_
write_ Dict[Failoverendpoint_ failover_ policy Group Read Write Endpoint Failover Policy] A read/write policy as documented below
- readonly_
endpoint_ Dict[Failoverfailover_ policy Group Readonly Endpoint Failover Policy] a read-only policy as documented below
- resource_
group_ strname The name of the resource group containing the SQL server
- role str
local replication role of the failover group instance.
- server_
name str The name of the primary SQL server. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Supporting Types
FailoverGroupPartnerServer
FailoverGroupReadWriteEndpointFailoverPolicy
- Mode string
the failover mode. Possible values are
Manual,Automatic- Grace
Minutes int Applies only if
modeisAutomatic. The grace period in minutes before failover with data loss is attempted
- Mode string
the failover mode. Possible values are
Manual,Automatic- Grace
Minutes int Applies only if
modeisAutomatic. The grace period in minutes before failover with data loss is attempted
- mode string
the failover mode. Possible values are
Manual,Automatic- grace
Minutes number Applies only if
modeisAutomatic. The grace period in minutes before failover with data loss is attempted
- mode str
the failover mode. Possible values are
Manual,Automatic- grace
Minutes float Applies only if
modeisAutomatic. The grace period in minutes before failover with data loss is attempted
FailoverGroupReadonlyEndpointFailoverPolicy
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.