1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CynosdbBackupConfig
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CynosdbBackupConfig

Explore with Pulumi AI

Provides a resource to create a cynosdb backup_config

Example Usage

Enable logical backup configuration and cross-region logical backup

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.CynosdbBackupConfig("foo", {
    backupTimeBeg: 7200,
    backupTimeEnd: 21600,
    clusterId: "cynosdbmysql-bws8h88b",
    logicBackupConfig: {
        logicBackupEnable: "ON",
        logicBackupTimeBeg: 7200,
        logicBackupTimeEnd: 21600,
        logicCrossRegions: ["ap-shanghai"],
        logicCrossRegionsEnable: "ON",
        logicReserveDuration: 259200,
    },
    reserveDuration: 604800,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.CynosdbBackupConfig("foo",
    backup_time_beg=7200,
    backup_time_end=21600,
    cluster_id="cynosdbmysql-bws8h88b",
    logic_backup_config={
        "logic_backup_enable": "ON",
        "logic_backup_time_beg": 7200,
        "logic_backup_time_end": 21600,
        "logic_cross_regions": ["ap-shanghai"],
        "logic_cross_regions_enable": "ON",
        "logic_reserve_duration": 259200,
    },
    reserve_duration=604800)
Copy
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 {
		_, err := tencentcloud.NewCynosdbBackupConfig(ctx, "foo", &tencentcloud.CynosdbBackupConfigArgs{
			BackupTimeBeg: pulumi.Float64(7200),
			BackupTimeEnd: pulumi.Float64(21600),
			ClusterId:     pulumi.String("cynosdbmysql-bws8h88b"),
			LogicBackupConfig: &tencentcloud.CynosdbBackupConfigLogicBackupConfigArgs{
				LogicBackupEnable:  pulumi.String("ON"),
				LogicBackupTimeBeg: pulumi.Float64(7200),
				LogicBackupTimeEnd: pulumi.Float64(21600),
				LogicCrossRegions: pulumi.StringArray{
					pulumi.String("ap-shanghai"),
				},
				LogicCrossRegionsEnable: pulumi.String("ON"),
				LogicReserveDuration:    pulumi.Float64(259200),
			},
			ReserveDuration: pulumi.Float64(604800),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.CynosdbBackupConfig("foo", new()
    {
        BackupTimeBeg = 7200,
        BackupTimeEnd = 21600,
        ClusterId = "cynosdbmysql-bws8h88b",
        LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
        {
            LogicBackupEnable = "ON",
            LogicBackupTimeBeg = 7200,
            LogicBackupTimeEnd = 21600,
            LogicCrossRegions = new[]
            {
                "ap-shanghai",
            },
            LogicCrossRegionsEnable = "ON",
            LogicReserveDuration = 259200,
        },
        ReserveDuration = 604800,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbBackupConfig;
import com.pulumi.tencentcloud.CynosdbBackupConfigArgs;
import com.pulumi.tencentcloud.inputs.CynosdbBackupConfigLogicBackupConfigArgs;
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) {
        var foo = new CynosdbBackupConfig("foo", CynosdbBackupConfigArgs.builder()
            .backupTimeBeg(7200)
            .backupTimeEnd(21600)
            .clusterId("cynosdbmysql-bws8h88b")
            .logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
                .logicBackupEnable("ON")
                .logicBackupTimeBeg(7200)
                .logicBackupTimeEnd(21600)
                .logicCrossRegions("ap-shanghai")
                .logicCrossRegionsEnable("ON")
                .logicReserveDuration(259200)
                .build())
            .reserveDuration(604800)
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:CynosdbBackupConfig
    properties:
      backupTimeBeg: 7200
      backupTimeEnd: 21600
      clusterId: cynosdbmysql-bws8h88b
      logicBackupConfig:
        logicBackupEnable: ON
        logicBackupTimeBeg: 7200
        logicBackupTimeEnd: 21600
        logicCrossRegions:
          - ap-shanghai
        logicCrossRegionsEnable: ON
        logicReserveDuration: 259200
      reserveDuration: 604800
Copy

Disable logical backup configuration

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const foo = new tencentcloud.CynosdbBackupConfig("foo", {
    backupTimeBeg: 7200,
    backupTimeEnd: 21600,
    clusterId: "cynosdbmysql-bws8h88b",
    logicBackupConfig: {
        logicBackupEnable: "OFF",
    },
    reserveDuration: 604800,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

foo = tencentcloud.CynosdbBackupConfig("foo",
    backup_time_beg=7200,
    backup_time_end=21600,
    cluster_id="cynosdbmysql-bws8h88b",
    logic_backup_config={
        "logic_backup_enable": "OFF",
    },
    reserve_duration=604800)
Copy
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 {
		_, err := tencentcloud.NewCynosdbBackupConfig(ctx, "foo", &tencentcloud.CynosdbBackupConfigArgs{
			BackupTimeBeg: pulumi.Float64(7200),
			BackupTimeEnd: pulumi.Float64(21600),
			ClusterId:     pulumi.String("cynosdbmysql-bws8h88b"),
			LogicBackupConfig: &tencentcloud.CynosdbBackupConfigLogicBackupConfigArgs{
				LogicBackupEnable: pulumi.String("OFF"),
			},
			ReserveDuration: pulumi.Float64(604800),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var foo = new Tencentcloud.CynosdbBackupConfig("foo", new()
    {
        BackupTimeBeg = 7200,
        BackupTimeEnd = 21600,
        ClusterId = "cynosdbmysql-bws8h88b",
        LogicBackupConfig = new Tencentcloud.Inputs.CynosdbBackupConfigLogicBackupConfigArgs
        {
            LogicBackupEnable = "OFF",
        },
        ReserveDuration = 604800,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbBackupConfig;
import com.pulumi.tencentcloud.CynosdbBackupConfigArgs;
import com.pulumi.tencentcloud.inputs.CynosdbBackupConfigLogicBackupConfigArgs;
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) {
        var foo = new CynosdbBackupConfig("foo", CynosdbBackupConfigArgs.builder()
            .backupTimeBeg(7200)
            .backupTimeEnd(21600)
            .clusterId("cynosdbmysql-bws8h88b")
            .logicBackupConfig(CynosdbBackupConfigLogicBackupConfigArgs.builder()
                .logicBackupEnable("OFF")
                .build())
            .reserveDuration(604800)
            .build());

    }
}
Copy
resources:
  foo:
    type: tencentcloud:CynosdbBackupConfig
    properties:
      backupTimeBeg: 7200
      backupTimeEnd: 21600
      clusterId: cynosdbmysql-bws8h88b
      logicBackupConfig:
        logicBackupEnable: OFF
      reserveDuration: 604800
Copy

Create CynosdbBackupConfig Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CynosdbBackupConfig(name: string, args: CynosdbBackupConfigArgs, opts?: CustomResourceOptions);
@overload
def CynosdbBackupConfig(resource_name: str,
                        args: CynosdbBackupConfigArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def CynosdbBackupConfig(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        backup_time_beg: Optional[float] = None,
                        backup_time_end: Optional[float] = None,
                        cluster_id: Optional[str] = None,
                        reserve_duration: Optional[float] = None,
                        cynosdb_backup_config_id: Optional[str] = None,
                        logic_backup_config: Optional[CynosdbBackupConfigLogicBackupConfigArgs] = None)
func NewCynosdbBackupConfig(ctx *Context, name string, args CynosdbBackupConfigArgs, opts ...ResourceOption) (*CynosdbBackupConfig, error)
public CynosdbBackupConfig(string name, CynosdbBackupConfigArgs args, CustomResourceOptions? opts = null)
public CynosdbBackupConfig(String name, CynosdbBackupConfigArgs args)
public CynosdbBackupConfig(String name, CynosdbBackupConfigArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbBackupConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CynosdbBackupConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CynosdbBackupConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CynosdbBackupConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CynosdbBackupConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CynosdbBackupConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

CynosdbBackupConfig 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 CynosdbBackupConfig resource accepts the following input properties:

BackupTimeBeg This property is required. double
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupTimeEnd This property is required. double
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
ClusterId This property is required. string
Cluster ID.
ReserveDuration This property is required. double
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
CynosdbBackupConfigId string
ID of the resource.
LogicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
BackupTimeBeg This property is required. float64
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupTimeEnd This property is required. float64
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
ClusterId This property is required. string
Cluster ID.
ReserveDuration This property is required. float64
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
CynosdbBackupConfigId string
ID of the resource.
LogicBackupConfig CynosdbBackupConfigLogicBackupConfigArgs
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
backupTimeBeg This property is required. Double
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd This property is required. Double
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
clusterId This property is required. String
Cluster ID.
reserveDuration This property is required. Double
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
cynosdbBackupConfigId String
ID of the resource.
logicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
backupTimeBeg This property is required. number
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd This property is required. number
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
clusterId This property is required. string
Cluster ID.
reserveDuration This property is required. number
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
cynosdbBackupConfigId string
ID of the resource.
logicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
backup_time_beg This property is required. float
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backup_time_end This property is required. float
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
cluster_id This property is required. str
Cluster ID.
reserve_duration This property is required. float
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
cynosdb_backup_config_id str
ID of the resource.
logic_backup_config CynosdbBackupConfigLogicBackupConfigArgs
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
backupTimeBeg This property is required. Number
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd This property is required. Number
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
clusterId This property is required. String
Cluster ID.
reserveDuration This property is required. Number
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
cynosdbBackupConfigId String
ID of the resource.
logicBackupConfig Property Map
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].

Outputs

All input properties are implicitly available as output properties. Additionally, the CynosdbBackupConfig resource produces the following output properties:

BackupFreqs List<string>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
BackupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
Id string
The provider-assigned unique ID for this managed resource.
BackupFreqs []string
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
BackupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
Id string
The provider-assigned unique ID for this managed resource.
backupFreqs List<String>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupType String
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
id String
The provider-assigned unique ID for this managed resource.
backupFreqs string[]
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
id string
The provider-assigned unique ID for this managed resource.
backup_freqs Sequence[str]
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backup_type str
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
id str
The provider-assigned unique ID for this managed resource.
backupFreqs List<String>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupType String
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CynosdbBackupConfig Resource

Get an existing CynosdbBackupConfig 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?: CynosdbBackupConfigState, opts?: CustomResourceOptions): CynosdbBackupConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        backup_freqs: Optional[Sequence[str]] = None,
        backup_time_beg: Optional[float] = None,
        backup_time_end: Optional[float] = None,
        backup_type: Optional[str] = None,
        cluster_id: Optional[str] = None,
        cynosdb_backup_config_id: Optional[str] = None,
        logic_backup_config: Optional[CynosdbBackupConfigLogicBackupConfigArgs] = None,
        reserve_duration: Optional[float] = None) -> CynosdbBackupConfig
func GetCynosdbBackupConfig(ctx *Context, name string, id IDInput, state *CynosdbBackupConfigState, opts ...ResourceOption) (*CynosdbBackupConfig, error)
public static CynosdbBackupConfig Get(string name, Input<string> id, CynosdbBackupConfigState? state, CustomResourceOptions? opts = null)
public static CynosdbBackupConfig get(String name, Output<String> id, CynosdbBackupConfigState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CynosdbBackupConfig    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
BackupFreqs List<string>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
BackupTimeBeg double
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupTimeEnd double
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
ClusterId string
Cluster ID.
CynosdbBackupConfigId string
ID of the resource.
LogicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
ReserveDuration double
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
BackupFreqs []string
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
BackupTimeBeg float64
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupTimeEnd float64
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
BackupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
ClusterId string
Cluster ID.
CynosdbBackupConfigId string
ID of the resource.
LogicBackupConfig CynosdbBackupConfigLogicBackupConfigArgs
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
ReserveDuration float64
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
backupFreqs List<String>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupTimeBeg Double
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd Double
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupType String
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
clusterId String
Cluster ID.
cynosdbBackupConfigId String
ID of the resource.
logicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
reserveDuration Double
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
backupFreqs string[]
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupTimeBeg number
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd number
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupType string
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
clusterId string
Cluster ID.
cynosdbBackupConfigId string
ID of the resource.
logicBackupConfig CynosdbBackupConfigLogicBackupConfig
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
reserveDuration number
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
backup_freqs Sequence[str]
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backup_time_beg float
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backup_time_end float
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backup_type str
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
cluster_id str
Cluster ID.
cynosdb_backup_config_id str
ID of the resource.
logic_backup_config CynosdbBackupConfigLogicBackupConfigArgs
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
reserve_duration float
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.
backupFreqs List<String>
Backup frequency. It is an array of 7 elements corresponding to Monday through Sunday. full: full backup; increment: incremental backup. This parameter cannot be modified currently and doesn't need to be entered.
backupTimeBeg Number
Full backup start time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupTimeEnd Number
Full backup end time. Value range: [0-24*3600]. For example, 0:00 AM, 1:00 AM, and 2:00 AM are represented by 0, 3600, and 7200, respectively.
backupType String
Backup mode. logic: logic backup; snapshot: snapshot backup. This parameter cannot be modified currently and doesn't need to be entered.
clusterId String
Cluster ID.
cynosdbBackupConfigId String
ID of the resource.
logicBackupConfig Property Map
Logical backup configuration. Do not set this field if it is not enabled. Example value: [{"LogicBackupEnable": "ON","LogicBackupTimeBeg": "2023-04-24 15:06:04","LogicBackupTimeEnd": "2024-04-24 15:06:04","LogicReserveDuration": "60","LogicCrossRegionsEnable": "ON","LogicCrossRegions": ["ap-guangzhou"]}].
reserveDuration Number
Backup retention period in seconds. Backups will be cleared after this period elapses. 7 days is represented by 3600247 = 604800. Maximum value: 158112000.

Supporting Types

CynosdbBackupConfigLogicBackupConfig
, CynosdbBackupConfigLogicBackupConfigArgs

LogicBackupEnable string
Whether to enable automatic logical backup. Value: ON, OFF.
LogicBackupTimeBeg double
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
LogicBackupTimeEnd double
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
LogicCrossRegions List<string>
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
LogicCrossRegionsEnable string
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
LogicReserveDuration double
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
LogicBackupEnable string
Whether to enable automatic logical backup. Value: ON, OFF.
LogicBackupTimeBeg float64
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
LogicBackupTimeEnd float64
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
LogicCrossRegions []string
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
LogicCrossRegionsEnable string
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
LogicReserveDuration float64
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
logicBackupEnable String
Whether to enable automatic logical backup. Value: ON, OFF.
logicBackupTimeBeg Double
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
logicBackupTimeEnd Double
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
logicCrossRegions List<String>
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
logicCrossRegionsEnable String
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
logicReserveDuration Double
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
logicBackupEnable string
Whether to enable automatic logical backup. Value: ON, OFF.
logicBackupTimeBeg number
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
logicBackupTimeEnd number
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
logicCrossRegions string[]
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
logicCrossRegionsEnable string
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
logicReserveDuration number
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
logic_backup_enable str
Whether to enable automatic logical backup. Value: ON, OFF.
logic_backup_time_beg float
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
logic_backup_time_end float
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
logic_cross_regions Sequence[str]
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
logic_cross_regions_enable str
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
logic_reserve_duration float
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.
logicBackupEnable String
Whether to enable automatic logical backup. Value: ON, OFF.
logicBackupTimeBeg Number
Automatic logical backup start time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 2.
logicBackupTimeEnd Number
Automatic logical backup end time. When logic_backup_enable is OFF, it must be 0 or not entered. Example value: 6.
logicCrossRegions List<String>
Logical backup across regions. Example value: ["ap-guangzhou"]. When logic_backup_enable is OFF, it must be [] or not entered.
logicCrossRegionsEnable String
Whether to enable cross-region logical backup. Cannot be input when logic_backup_enable is OFF. When logic_backup_enable is ON, logic_cross_regions_enable setting ON will take effect. Value: ON, OFF.
logicReserveDuration Number
Automatic logical backup retention period. When logic_backup_enable is OFF, it must be 0 or not entered. Value range: [259200,158112000]. logic_backup_enable is OFF, logic_reserve_duration cannot be set when creating.

Import

cynosdb backup_config can be imported using the id, e.g.

$ pulumi import tencentcloud:index/cynosdbBackupConfig:CynosdbBackupConfig foo cynosdbmysql-bws8h88b
Copy

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.