tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.MysqlBackupPolicy
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const zones = tencentcloud.getAvailabilityZonesByProduct({
product: "cdb",
});
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
const subnet = new tencentcloud.Subnet("subnet", {
availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
vpcId: vpc.vpcId,
cidrBlock: "10.0.0.0/16",
isMulticast: false,
});
const securityGroup = new tencentcloud.SecurityGroup("securityGroup", {description: "mysql test"});
const exampleMysqlInstance = new tencentcloud.MysqlInstance("exampleMysqlInstance", {
internetService: 1,
engineVersion: "5.7",
chargeType: "POSTPAID",
rootPassword: "PassWord123",
slaveDeployMode: 0,
availabilityZone: zones.then(zones => zones.zones?.[0]?.name),
slaveSyncMode: 1,
instanceName: "tf-example-mysql",
memSize: 4000,
volumeSize: 200,
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
intranetPort: 3306,
securityGroups: [securityGroup.securityGroupId],
tags: {
name: "test",
},
parameters: {
character_set_server: "utf8",
max_connections: "1000",
},
});
const exampleMysqlBackupPolicy = new tencentcloud.MysqlBackupPolicy("exampleMysqlBackupPolicy", {
mysqlId: exampleMysqlInstance.mysqlInstanceId,
retentionPeriod: 7,
backupModel: "physical",
backupTime: "22:00-02:00",
binlogPeriod: 32,
enableBinlogStandby: "off",
binlogStandbyDays: 31,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
zones = tencentcloud.get_availability_zones_by_product(product="cdb")
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
subnet = tencentcloud.Subnet("subnet",
availability_zone=zones.zones[0].name,
vpc_id=vpc.vpc_id,
cidr_block="10.0.0.0/16",
is_multicast=False)
security_group = tencentcloud.SecurityGroup("securityGroup", description="mysql test")
example_mysql_instance = tencentcloud.MysqlInstance("exampleMysqlInstance",
internet_service=1,
engine_version="5.7",
charge_type="POSTPAID",
root_password="PassWord123",
slave_deploy_mode=0,
availability_zone=zones.zones[0].name,
slave_sync_mode=1,
instance_name="tf-example-mysql",
mem_size=4000,
volume_size=200,
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id,
intranet_port=3306,
security_groups=[security_group.security_group_id],
tags={
"name": "test",
},
parameters={
"character_set_server": "utf8",
"max_connections": "1000",
})
example_mysql_backup_policy = tencentcloud.MysqlBackupPolicy("exampleMysqlBackupPolicy",
mysql_id=example_mysql_instance.mysql_instance_id,
retention_period=7,
backup_model="physical",
backup_time="22:00-02:00",
binlog_period=32,
enable_binlog_standby="off",
binlog_standby_days=31)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zones, err := tencentcloud.GetAvailabilityZonesByProduct(ctx, &tencentcloud.GetAvailabilityZonesByProductArgs{
Product: "cdb",
}, nil)
if err != nil {
return err
}
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
AvailabilityZone: pulumi.String(zones.Zones[0].Name),
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("10.0.0.0/16"),
IsMulticast: pulumi.Bool(false),
})
if err != nil {
return err
}
securityGroup, err := tencentcloud.NewSecurityGroup(ctx, "securityGroup", &tencentcloud.SecurityGroupArgs{
Description: pulumi.String("mysql test"),
})
if err != nil {
return err
}
exampleMysqlInstance, err := tencentcloud.NewMysqlInstance(ctx, "exampleMysqlInstance", &tencentcloud.MysqlInstanceArgs{
InternetService: pulumi.Float64(1),
EngineVersion: pulumi.String("5.7"),
ChargeType: pulumi.String("POSTPAID"),
RootPassword: pulumi.String("PassWord123"),
SlaveDeployMode: pulumi.Float64(0),
AvailabilityZone: pulumi.String(zones.Zones[0].Name),
SlaveSyncMode: pulumi.Float64(1),
InstanceName: pulumi.String("tf-example-mysql"),
MemSize: pulumi.Float64(4000),
VolumeSize: pulumi.Float64(200),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
IntranetPort: pulumi.Float64(3306),
SecurityGroups: pulumi.StringArray{
securityGroup.SecurityGroupId,
},
Tags: pulumi.StringMap{
"name": pulumi.String("test"),
},
Parameters: pulumi.StringMap{
"character_set_server": pulumi.String("utf8"),
"max_connections": pulumi.String("1000"),
},
})
if err != nil {
return err
}
_, err = tencentcloud.NewMysqlBackupPolicy(ctx, "exampleMysqlBackupPolicy", &tencentcloud.MysqlBackupPolicyArgs{
MysqlId: exampleMysqlInstance.MysqlInstanceId,
RetentionPeriod: pulumi.Float64(7),
BackupModel: pulumi.String("physical"),
BackupTime: pulumi.String("22:00-02:00"),
BinlogPeriod: pulumi.Float64(32),
EnableBinlogStandby: pulumi.String("off"),
BinlogStandbyDays: pulumi.Float64(31),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var zones = Tencentcloud.GetAvailabilityZonesByProduct.Invoke(new()
{
Product = "cdb",
});
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
var subnet = new Tencentcloud.Subnet("subnet", new()
{
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
VpcId = vpc.VpcId,
CidrBlock = "10.0.0.0/16",
IsMulticast = false,
});
var securityGroup = new Tencentcloud.SecurityGroup("securityGroup", new()
{
Description = "mysql test",
});
var exampleMysqlInstance = new Tencentcloud.MysqlInstance("exampleMysqlInstance", new()
{
InternetService = 1,
EngineVersion = "5.7",
ChargeType = "POSTPAID",
RootPassword = "PassWord123",
SlaveDeployMode = 0,
AvailabilityZone = zones.Apply(getAvailabilityZonesByProductResult => getAvailabilityZonesByProductResult.Zones[0]?.Name),
SlaveSyncMode = 1,
InstanceName = "tf-example-mysql",
MemSize = 4000,
VolumeSize = 200,
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
IntranetPort = 3306,
SecurityGroups = new[]
{
securityGroup.SecurityGroupId,
},
Tags =
{
{ "name", "test" },
},
Parameters =
{
{ "character_set_server", "utf8" },
{ "max_connections", "1000" },
},
});
var exampleMysqlBackupPolicy = new Tencentcloud.MysqlBackupPolicy("exampleMysqlBackupPolicy", new()
{
MysqlId = exampleMysqlInstance.MysqlInstanceId,
RetentionPeriod = 7,
BackupModel = "physical",
BackupTime = "22:00-02:00",
BinlogPeriod = 32,
EnableBinlogStandby = "off",
BinlogStandbyDays = 31,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetAvailabilityZonesByProductArgs;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.SecurityGroup;
import com.pulumi.tencentcloud.SecurityGroupArgs;
import com.pulumi.tencentcloud.MysqlInstance;
import com.pulumi.tencentcloud.MysqlInstanceArgs;
import com.pulumi.tencentcloud.MysqlBackupPolicy;
import com.pulumi.tencentcloud.MysqlBackupPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var zones = TencentcloudFunctions.getAvailabilityZonesByProduct(GetAvailabilityZonesByProductArgs.builder()
.product("cdb")
.build());
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var subnet = new Subnet("subnet", SubnetArgs.builder()
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.vpcId(vpc.vpcId())
.cidrBlock("10.0.0.0/16")
.isMulticast(false)
.build());
var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
.description("mysql test")
.build());
var exampleMysqlInstance = new MysqlInstance("exampleMysqlInstance", MysqlInstanceArgs.builder()
.internetService(1)
.engineVersion("5.7")
.chargeType("POSTPAID")
.rootPassword("PassWord123")
.slaveDeployMode(0)
.availabilityZone(zones.applyValue(getAvailabilityZonesByProductResult -> getAvailabilityZonesByProductResult.zones()[0].name()))
.slaveSyncMode(1)
.instanceName("tf-example-mysql")
.memSize(4000)
.volumeSize(200)
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.intranetPort(3306)
.securityGroups(securityGroup.securityGroupId())
.tags(Map.of("name", "test"))
.parameters(Map.ofEntries(
Map.entry("character_set_server", "utf8"),
Map.entry("max_connections", "1000")
))
.build());
var exampleMysqlBackupPolicy = new MysqlBackupPolicy("exampleMysqlBackupPolicy", MysqlBackupPolicyArgs.builder()
.mysqlId(exampleMysqlInstance.mysqlInstanceId())
.retentionPeriod(7)
.backupModel("physical")
.backupTime("22:00-02:00")
.binlogPeriod(32)
.enableBinlogStandby("off")
.binlogStandbyDays(31)
.build());
}
}
resources:
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ${zones.zones[0].name}
vpcId: ${vpc.vpcId}
cidrBlock: 10.0.0.0/16
isMulticast: false
securityGroup:
type: tencentcloud:SecurityGroup
properties:
description: mysql test
exampleMysqlInstance:
type: tencentcloud:MysqlInstance
properties:
internetService: 1
engineVersion: '5.7'
chargeType: POSTPAID
rootPassword: PassWord123
slaveDeployMode: 0
availabilityZone: ${zones.zones[0].name}
slaveSyncMode: 1
instanceName: tf-example-mysql
memSize: 4000
volumeSize: 200
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
intranetPort: 3306
securityGroups:
- ${securityGroup.securityGroupId}
tags:
name: test
parameters:
character_set_server: utf8
max_connections: '1000'
exampleMysqlBackupPolicy:
type: tencentcloud:MysqlBackupPolicy
properties:
mysqlId: ${exampleMysqlInstance.mysqlInstanceId}
retentionPeriod: 7
backupModel: physical
backupTime: 22:00-02:00
binlogPeriod: 32
enableBinlogStandby: off
binlogStandbyDays: 31
variables:
zones:
fn::invoke:
function: tencentcloud:getAvailabilityZonesByProduct
arguments:
product: cdb
Create MysqlBackupPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlBackupPolicy(name: string, args: MysqlBackupPolicyArgs, opts?: CustomResourceOptions);
@overload
def MysqlBackupPolicy(resource_name: str,
args: MysqlBackupPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlBackupPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
mysql_id: Optional[str] = None,
backup_model: Optional[str] = None,
backup_time: Optional[str] = None,
binlog_period: Optional[float] = None,
binlog_standby_days: Optional[float] = None,
enable_binlog_standby: Optional[str] = None,
mysql_backup_policy_id: Optional[str] = None,
retention_period: Optional[float] = None)
func NewMysqlBackupPolicy(ctx *Context, name string, args MysqlBackupPolicyArgs, opts ...ResourceOption) (*MysqlBackupPolicy, error)
public MysqlBackupPolicy(string name, MysqlBackupPolicyArgs args, CustomResourceOptions? opts = null)
public MysqlBackupPolicy(String name, MysqlBackupPolicyArgs args)
public MysqlBackupPolicy(String name, MysqlBackupPolicyArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlBackupPolicy
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 MysqlBackupPolicyArgs
- 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 MysqlBackupPolicyArgs
- 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 MysqlBackupPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlBackupPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlBackupPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlBackupPolicy 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 MysqlBackupPolicy resource accepts the following input properties:
- Mysql
Id string - Instance ID to which policies will be applied.
- Backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - Backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - Binlog
Period double - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- Binlog
Standby doubleDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- Enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - Mysql
Backup stringPolicy Id - ID of the resource.
- Retention
Period double - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- Mysql
Id string - Instance ID to which policies will be applied.
- Backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - Backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - Binlog
Period float64 - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- Binlog
Standby float64Days - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- Enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - Mysql
Backup stringPolicy Id - ID of the resource.
- Retention
Period float64 - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- mysql
Id String - Instance ID to which policies will be applied.
- backup
Model String - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time String - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period Double - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby DoubleDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog StringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup StringPolicy Id - ID of the resource.
- retention
Period Double - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- mysql
Id string - Instance ID to which policies will be applied.
- backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period number - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby numberDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup stringPolicy Id - ID of the resource.
- retention
Period number - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- mysql_
id str - Instance ID to which policies will be applied.
- backup_
model str - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup_
time str - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog_
period float - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog_
standby_ floatdays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable_
binlog_ strstandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql_
backup_ strpolicy_ id - ID of the resource.
- retention_
period float - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- mysql
Id String - Instance ID to which policies will be applied.
- backup
Model String - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time String - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period Number - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby NumberDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog StringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup StringPolicy Id - ID of the resource.
- retention
Period Number - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlBackupPolicy 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 MysqlBackupPolicy Resource
Get an existing MysqlBackupPolicy 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?: MysqlBackupPolicyState, opts?: CustomResourceOptions): MysqlBackupPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
backup_model: Optional[str] = None,
backup_time: Optional[str] = None,
binlog_period: Optional[float] = None,
binlog_standby_days: Optional[float] = None,
enable_binlog_standby: Optional[str] = None,
mysql_backup_policy_id: Optional[str] = None,
mysql_id: Optional[str] = None,
retention_period: Optional[float] = None) -> MysqlBackupPolicy
func GetMysqlBackupPolicy(ctx *Context, name string, id IDInput, state *MysqlBackupPolicyState, opts ...ResourceOption) (*MysqlBackupPolicy, error)
public static MysqlBackupPolicy Get(string name, Input<string> id, MysqlBackupPolicyState? state, CustomResourceOptions? opts = null)
public static MysqlBackupPolicy get(String name, Output<String> id, MysqlBackupPolicyState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MysqlBackupPolicy 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.
- Backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - Backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - Binlog
Period double - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- Binlog
Standby doubleDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- Enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - Mysql
Backup stringPolicy Id - ID of the resource.
- Mysql
Id string - Instance ID to which policies will be applied.
- Retention
Period double - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- Backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - Backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - Binlog
Period float64 - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- Binlog
Standby float64Days - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- Enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - Mysql
Backup stringPolicy Id - ID of the resource.
- Mysql
Id string - Instance ID to which policies will be applied.
- Retention
Period float64 - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- backup
Model String - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time String - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period Double - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby DoubleDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog StringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup StringPolicy Id - ID of the resource.
- mysql
Id String - Instance ID to which policies will be applied.
- retention
Period Double - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- backup
Model string - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time string - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period number - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby numberDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog stringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup stringPolicy Id - ID of the resource.
- mysql
Id string - Instance ID to which policies will be applied.
- retention
Period number - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- backup_
model str - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup_
time str - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog_
period float - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog_
standby_ floatdays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable_
binlog_ strstandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql_
backup_ strpolicy_ id - ID of the resource.
- mysql_
id str - Instance ID to which policies will be applied.
- retention_
period float - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
- backup
Model String - Backup method. Supported values include:
physical
- physical backup;snapshot
- snapshot backup. Multi node only supportphysical
, Single node only supportsnapshot
. - backup
Time String - Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to
02:00-06:00
. The following value can be supported:02:00-06:00
,06:00-10:00
,10:00-14:00
,14:00-18:00
,18:00-22:00
, and22:00-02:00
. - binlog
Period Number - Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time.
- binlog
Standby NumberDays - The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention.
- enable
Binlog StringStandby - Whether to enable the log backup standard storage policy,
off
- close,on
- open, the default is off. - mysql
Backup StringPolicy Id - ID of the resource.
- mysql
Id String - Instance ID to which policies will be applied.
- retention
Period Number - The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is
7
.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack