tencentcloud.SqlserverConfigInstanceRoGroup
Explore with Pulumi AI
Provides a resource to create a sqlserver config_instance_ro_group
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ${zones.zones[4].name}
vpcId: ${vpc.vpcId}
cidrBlock: 10.0.0.0/16
isMulticast: false
securityGroup:
type: tencentcloud:SecurityGroup
properties:
description: desc.
exampleSqlserverBasicInstance:
type: tencentcloud:SqlserverBasicInstance
properties:
availabilityZone: ${zones.zones[4].name}
chargeType: POSTPAID_BY_HOUR
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
projectId: 0
memory: 4
storage: 100
cpu: 2
machineType: CLOUD_PREMIUM
maintenanceWeekSets:
- 1
- 2
- 3
maintenanceStartTime: 09:00
maintenanceTimeSpan: 3
securityGroups:
- ${securityGroup.securityGroupId}
tags:
test: test
exampleSqlserverReadonlyInstance:
type: tencentcloud:SqlserverReadonlyInstance
properties:
availabilityZone: ${zones.zones[4].name}
chargeType: POSTPAID_BY_HOUR
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
memory: 4
storage: 20
masterInstanceId: ${exampleSqlserverBasicInstance.sqlserverBasicInstanceId}
readonlyGroupType: 2
readOnlyGroupName: tf_example_ro
isOfflineDelay: 1
readOnlyMaxDelayTime: 10
minReadOnlyInGroup: 0
forceUpgrade: true
exampleSqlserverConfigInstanceRoGroup:
type: tencentcloud:SqlserverConfigInstanceRoGroup
properties:
instanceId: ${exampleSqlserverReadonlyInstance.masterInstanceId}
readOnlyGroupId: ${exampleSqlserverReadonlyInstance.readonlyGroupId}
readOnlyGroupName: tf_example_ro_update
isOfflineDelay: 1
readOnlyMaxDelayTime: 5
minReadOnlyInGroup: 1
variables:
zones:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: sqlserver
Create SqlserverConfigInstanceRoGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SqlserverConfigInstanceRoGroup(name: string, args: SqlserverConfigInstanceRoGroupArgs, opts?: CustomResourceOptions);
@overload
def SqlserverConfigInstanceRoGroup(resource_name: str,
args: SqlserverConfigInstanceRoGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SqlserverConfigInstanceRoGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
read_only_group_id: Optional[str] = None,
auto_weight: Optional[float] = None,
balance_weight: Optional[float] = None,
is_offline_delay: Optional[float] = None,
min_read_only_in_group: Optional[float] = None,
read_only_group_name: Optional[str] = None,
read_only_max_delay_time: Optional[float] = None,
sqlserver_config_instance_ro_group_id: Optional[str] = None,
weight_pairs: Optional[Sequence[SqlserverConfigInstanceRoGroupWeightPairArgs]] = None)
func NewSqlserverConfigInstanceRoGroup(ctx *Context, name string, args SqlserverConfigInstanceRoGroupArgs, opts ...ResourceOption) (*SqlserverConfigInstanceRoGroup, error)
public SqlserverConfigInstanceRoGroup(string name, SqlserverConfigInstanceRoGroupArgs args, CustomResourceOptions? opts = null)
public SqlserverConfigInstanceRoGroup(String name, SqlserverConfigInstanceRoGroupArgs args)
public SqlserverConfigInstanceRoGroup(String name, SqlserverConfigInstanceRoGroupArgs args, CustomResourceOptions options)
type: tencentcloud:SqlserverConfigInstanceRoGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SqlserverConfigInstanceRoGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SqlserverConfigInstanceRoGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SqlserverConfigInstanceRoGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SqlserverConfigInstanceRoGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SqlserverConfigInstanceRoGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
SqlserverConfigInstanceRoGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SqlserverConfigInstanceRoGroup resource accepts the following input properties:
- Instance
Id string - Instance ID.
- Read
Only stringGroup Id - Read-only group ID.
- Auto
Weight double - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- Balance
Weight double - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- Is
Offline doubleDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- Min
Read doubleOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- Read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- Read
Only doubleMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- Sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- Weight
Pairs List<SqlserverConfig Instance Ro Group Weight Pair> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- Instance
Id string - Instance ID.
- Read
Only stringGroup Id - Read-only group ID.
- Auto
Weight float64 - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- Balance
Weight float64 - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- Is
Offline float64Delay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- Min
Read float64Only In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- Read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- Read
Only float64Max Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- Sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- Weight
Pairs []SqlserverConfig Instance Ro Group Weight Pair Args - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- instance
Id String - Instance ID.
- read
Only StringGroup Id - Read-only group ID.
- auto
Weight Double - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight Double - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- is
Offline DoubleDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read DoubleOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only StringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only DoubleMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config StringInstance Ro Group Id - ID of the resource.
- weight
Pairs List<SqlserverConfig Instance Ro Group Weight Pair> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- instance
Id string - Instance ID.
- read
Only stringGroup Id - Read-only group ID.
- auto
Weight number - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight number - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- is
Offline numberDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read numberOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only numberMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- weight
Pairs SqlserverConfig Instance Ro Group Weight Pair[] - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- instance_
id str - Instance ID.
- read_
only_ strgroup_ id - Read-only group ID.
- auto_
weight float - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance_
weight float - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- is_
offline_ floatdelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min_
read_ floatonly_ in_ group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read_
only_ strgroup_ name - Read-only group name. If this parameter is not specified, it is not modified.
- read_
only_ floatmax_ delay_ time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver_
config_ strinstance_ ro_ group_ id - ID of the resource.
- weight_
pairs Sequence[SqlserverConfig Instance Ro Group Weight Pair Args] - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- instance
Id String - Instance ID.
- read
Only StringGroup Id - Read-only group ID.
- auto
Weight Number - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight Number - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- is
Offline NumberDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read NumberOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only StringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only NumberMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config StringInstance Ro Group Id - ID of the resource.
- weight
Pairs List<Property Map> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
Outputs
All input properties are implicitly available as output properties. Additionally, the SqlserverConfigInstanceRoGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SqlserverConfigInstanceRoGroup Resource
Get an existing SqlserverConfigInstanceRoGroup 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?: SqlserverConfigInstanceRoGroupState, opts?: CustomResourceOptions): SqlserverConfigInstanceRoGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_weight: Optional[float] = None,
balance_weight: Optional[float] = None,
instance_id: Optional[str] = None,
is_offline_delay: Optional[float] = None,
min_read_only_in_group: Optional[float] = None,
read_only_group_id: Optional[str] = None,
read_only_group_name: Optional[str] = None,
read_only_max_delay_time: Optional[float] = None,
sqlserver_config_instance_ro_group_id: Optional[str] = None,
weight_pairs: Optional[Sequence[SqlserverConfigInstanceRoGroupWeightPairArgs]] = None) -> SqlserverConfigInstanceRoGroup
func GetSqlserverConfigInstanceRoGroup(ctx *Context, name string, id IDInput, state *SqlserverConfigInstanceRoGroupState, opts ...ResourceOption) (*SqlserverConfigInstanceRoGroup, error)
public static SqlserverConfigInstanceRoGroup Get(string name, Input<string> id, SqlserverConfigInstanceRoGroupState? state, CustomResourceOptions? opts = null)
public static SqlserverConfigInstanceRoGroup get(String name, Output<String> id, SqlserverConfigInstanceRoGroupState state, CustomResourceOptions options)
resources: _: type: tencentcloud:SqlserverConfigInstanceRoGroup get: id: ${id}
- 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.
- 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.
- Auto
Weight double - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- Balance
Weight double - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- Instance
Id string - Instance ID.
- Is
Offline doubleDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- Min
Read doubleOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- Read
Only stringGroup Id - Read-only group ID.
- Read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- Read
Only doubleMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- Sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- Weight
Pairs List<SqlserverConfig Instance Ro Group Weight Pair> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- Auto
Weight float64 - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- Balance
Weight float64 - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- Instance
Id string - Instance ID.
- Is
Offline float64Delay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- Min
Read float64Only In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- Read
Only stringGroup Id - Read-only group ID.
- Read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- Read
Only float64Max Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- Sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- Weight
Pairs []SqlserverConfig Instance Ro Group Weight Pair Args - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- auto
Weight Double - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight Double - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- instance
Id String - Instance ID.
- is
Offline DoubleDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read DoubleOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only StringGroup Id - Read-only group ID.
- read
Only StringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only DoubleMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config StringInstance Ro Group Id - ID of the resource.
- weight
Pairs List<SqlserverConfig Instance Ro Group Weight Pair> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- auto
Weight number - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight number - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- instance
Id string - Instance ID.
- is
Offline numberDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read numberOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only stringGroup Id - Read-only group ID.
- read
Only stringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only numberMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config stringInstance Ro Group Id - ID of the resource.
- weight
Pairs SqlserverConfig Instance Ro Group Weight Pair[] - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- auto_
weight float - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance_
weight float - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- instance_
id str - Instance ID.
- is_
offline_ floatdelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min_
read_ floatonly_ in_ group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read_
only_ strgroup_ id - Read-only group ID.
- read_
only_ strgroup_ name - Read-only group name. If this parameter is not specified, it is not modified.
- read_
only_ floatmax_ delay_ time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver_
config_ strinstance_ ro_ group_ id - ID of the resource.
- weight_
pairs Sequence[SqlserverConfig Instance Ro Group Weight Pair Args] - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
- auto
Weight Number - 0-user-defined weight (adjusted according to WeightPairs), 1-system automatically assigns weight (WeightPairs is invalid), the default is 0.
- balance
Weight Number - 0-do not rebalance the load, 1-rebalance the load, the default is 0.
- instance
Id String - Instance ID.
- is
Offline NumberDelay - Whether to enable timeout culling function. 0- Disable the culling function. 1- Enable the culling function.
- min
Read NumberOnly In Group - After the timeout removal function is enabled, the number of read-only copies retained by the read-only group at least, if this parameter is not filled, it will not be modified.
- read
Only StringGroup Id - Read-only group ID.
- read
Only StringGroup Name - Read-only group name. If this parameter is not specified, it is not modified.
- read
Only NumberMax Delay Time - After the timeout elimination function is enabled, the timeout threshold used, if this parameter is not filled, it will not be modified.
- sqlserver
Config StringInstance Ro Group Id - ID of the resource.
- weight
Pairs List<Property Map> - Read-only group instance weight modification set, if this parameter is not filled, it will not be modified.
Supporting Types
SqlserverConfigInstanceRoGroupWeightPair, SqlserverConfigInstanceRoGroupWeightPairArgs
- Read
Only stringInstance Id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- Read
Only doubleWeight - Read-only instance weight, the range is 0-100.
- Read
Only stringInstance Id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- Read
Only float64Weight - Read-only instance weight, the range is 0-100.
- read
Only StringInstance Id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- read
Only DoubleWeight - Read-only instance weight, the range is 0-100.
- read
Only stringInstance Id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- read
Only numberWeight - Read-only instance weight, the range is 0-100.
- read_
only_ strinstance_ id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- read_
only_ floatweight - Read-only instance weight, the range is 0-100.
- read
Only StringInstance Id - Read-only instance ID, in the format: mssqlro-3l3fgqn7.
- read
Only NumberWeight - Read-only instance weight, the range is 0-100.
Import
sqlserver config_instance_ro_group can be imported using the id, e.g.
$ pulumi import tencentcloud:index/sqlserverConfigInstanceRoGroup:SqlserverConfigInstanceRoGroup example mssql-ds1xhnt9#mssqlro-o6dv2ugx#0#0
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.