1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. CdbStartCpuExpand
Viewing docs for tencentcloud 1.83.7
published on Tuesday, Jun 30, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.7
published on Tuesday, Jun 30, 2026 by tencentcloudstack

    Provides a resource to create a CDB CPU elastic expand attachment

    Example Usage

    Auto expansion type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CdbStartCpuExpand("example", {
        instanceId: "cdb-test1234",
        type: "auto",
        autoStrategy: {
            expandThreshold: 80,
            shrinkThreshold: 20,
            expandSecondPeriod: 300,
            shrinkSecondPeriod: 600,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CdbStartCpuExpand("example",
        instance_id="cdb-test1234",
        type="auto",
        auto_strategy={
            "expand_threshold": 80,
            "shrink_threshold": 20,
            "expand_second_period": 300,
            "shrink_second_period": 600,
        })
    
    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.NewCdbStartCpuExpand(ctx, "example", &tencentcloud.CdbStartCpuExpandArgs{
    			InstanceId: pulumi.String("cdb-test1234"),
    			Type:       pulumi.String("auto"),
    			AutoStrategy: &tencentcloud.CdbStartCpuExpandAutoStrategyArgs{
    				ExpandThreshold:    pulumi.Float64(80),
    				ShrinkThreshold:    pulumi.Float64(20),
    				ExpandSecondPeriod: pulumi.Float64(300),
    				ShrinkSecondPeriod: pulumi.Float64(600),
    			},
    		})
    		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 example = new Tencentcloud.CdbStartCpuExpand("example", new()
        {
            InstanceId = "cdb-test1234",
            Type = "auto",
            AutoStrategy = new Tencentcloud.Inputs.CdbStartCpuExpandAutoStrategyArgs
            {
                ExpandThreshold = 80,
                ShrinkThreshold = 20,
                ExpandSecondPeriod = 300,
                ShrinkSecondPeriod = 600,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CdbStartCpuExpand;
    import com.pulumi.tencentcloud.CdbStartCpuExpandArgs;
    import com.pulumi.tencentcloud.inputs.CdbStartCpuExpandAutoStrategyArgs;
    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 example = new CdbStartCpuExpand("example", CdbStartCpuExpandArgs.builder()
                .instanceId("cdb-test1234")
                .type("auto")
                .autoStrategy(CdbStartCpuExpandAutoStrategyArgs.builder()
                    .expandThreshold(80.0)
                    .shrinkThreshold(20.0)
                    .expandSecondPeriod(300.0)
                    .shrinkSecondPeriod(600.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CdbStartCpuExpand
        properties:
          instanceId: cdb-test1234
          type: auto
          autoStrategy:
            expandThreshold: 80
            shrinkThreshold: 20
            expandSecondPeriod: 300
            shrinkSecondPeriod: 600
    
    Example coming soon!
    

    Manual expansion type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CdbStartCpuExpand("example", {
        instanceId: "cdb-test1234",
        type: "manual",
        expandCpu: 4,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CdbStartCpuExpand("example",
        instance_id="cdb-test1234",
        type="manual",
        expand_cpu=4)
    
    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.NewCdbStartCpuExpand(ctx, "example", &tencentcloud.CdbStartCpuExpandArgs{
    			InstanceId: pulumi.String("cdb-test1234"),
    			Type:       pulumi.String("manual"),
    			ExpandCpu:  pulumi.Float64(4),
    		})
    		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 example = new Tencentcloud.CdbStartCpuExpand("example", new()
        {
            InstanceId = "cdb-test1234",
            Type = "manual",
            ExpandCpu = 4,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CdbStartCpuExpand;
    import com.pulumi.tencentcloud.CdbStartCpuExpandArgs;
    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 example = new CdbStartCpuExpand("example", CdbStartCpuExpandArgs.builder()
                .instanceId("cdb-test1234")
                .type("manual")
                .expandCpu(4.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CdbStartCpuExpand
        properties:
          instanceId: cdb-test1234
          type: manual
          expandCpu: 4
    
    Example coming soon!
    

    TimeInterval expansion type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CdbStartCpuExpand("example", {
        instanceId: "cdb-test1234",
        type: "timeInterval",
        expandCpu: 4,
        timeIntervalStrategy: {
            startTime: 1709251200,
            endTime: 1709337600,
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CdbStartCpuExpand("example",
        instance_id="cdb-test1234",
        type="timeInterval",
        expand_cpu=4,
        time_interval_strategy={
            "start_time": 1709251200,
            "end_time": 1709337600,
        })
    
    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.NewCdbStartCpuExpand(ctx, "example", &tencentcloud.CdbStartCpuExpandArgs{
    			InstanceId: pulumi.String("cdb-test1234"),
    			Type:       pulumi.String("timeInterval"),
    			ExpandCpu:  pulumi.Float64(4),
    			TimeIntervalStrategy: &tencentcloud.CdbStartCpuExpandTimeIntervalStrategyArgs{
    				StartTime: pulumi.Float64(1709251200),
    				EndTime:   pulumi.Float64(1709337600),
    			},
    		})
    		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 example = new Tencentcloud.CdbStartCpuExpand("example", new()
        {
            InstanceId = "cdb-test1234",
            Type = "timeInterval",
            ExpandCpu = 4,
            TimeIntervalStrategy = new Tencentcloud.Inputs.CdbStartCpuExpandTimeIntervalStrategyArgs
            {
                StartTime = 1709251200,
                EndTime = 1709337600,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CdbStartCpuExpand;
    import com.pulumi.tencentcloud.CdbStartCpuExpandArgs;
    import com.pulumi.tencentcloud.inputs.CdbStartCpuExpandTimeIntervalStrategyArgs;
    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 example = new CdbStartCpuExpand("example", CdbStartCpuExpandArgs.builder()
                .instanceId("cdb-test1234")
                .type("timeInterval")
                .expandCpu(4.0)
                .timeIntervalStrategy(CdbStartCpuExpandTimeIntervalStrategyArgs.builder()
                    .startTime(1709251200.0)
                    .endTime(1709337600.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CdbStartCpuExpand
        properties:
          instanceId: cdb-test1234
          type: timeInterval
          expandCpu: 4
          timeIntervalStrategy:
            startTime: 1.7092512e+09
            endTime: 1.7093376e+09
    
    Example coming soon!
    

    Period expansion type

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.CdbStartCpuExpand("example", {
        instanceId: "cdb-test1234",
        type: "period",
        expandCpu: 4,
        periodStrategy: {
            timeCycle: {
                monday: true,
                tuesday: true,
                wednesday: true,
                thursday: true,
                friday: true,
                saturday: false,
                sunday: false,
            },
            timeInterval: {
                startTime: "09:00",
                endTime: "18:00",
            },
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.CdbStartCpuExpand("example",
        instance_id="cdb-test1234",
        type="period",
        expand_cpu=4,
        period_strategy={
            "time_cycle": {
                "monday": True,
                "tuesday": True,
                "wednesday": True,
                "thursday": True,
                "friday": True,
                "saturday": False,
                "sunday": False,
            },
            "time_interval": {
                "start_time": "09:00",
                "end_time": "18:00",
            },
        })
    
    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.NewCdbStartCpuExpand(ctx, "example", &tencentcloud.CdbStartCpuExpandArgs{
    			InstanceId: pulumi.String("cdb-test1234"),
    			Type:       pulumi.String("period"),
    			ExpandCpu:  pulumi.Float64(4),
    			PeriodStrategy: &tencentcloud.CdbStartCpuExpandPeriodStrategyArgs{
    				TimeCycle: &tencentcloud.CdbStartCpuExpandPeriodStrategyTimeCycleArgs{
    					Monday:    pulumi.Bool(true),
    					Tuesday:   pulumi.Bool(true),
    					Wednesday: pulumi.Bool(true),
    					Thursday:  pulumi.Bool(true),
    					Friday:    pulumi.Bool(true),
    					Saturday:  pulumi.Bool(false),
    					Sunday:    pulumi.Bool(false),
    				},
    				TimeInterval: &tencentcloud.CdbStartCpuExpandPeriodStrategyTimeIntervalArgs{
    					StartTime: pulumi.String("09:00"),
    					EndTime:   pulumi.String("18:00"),
    				},
    			},
    		})
    		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 example = new Tencentcloud.CdbStartCpuExpand("example", new()
        {
            InstanceId = "cdb-test1234",
            Type = "period",
            ExpandCpu = 4,
            PeriodStrategy = new Tencentcloud.Inputs.CdbStartCpuExpandPeriodStrategyArgs
            {
                TimeCycle = new Tencentcloud.Inputs.CdbStartCpuExpandPeriodStrategyTimeCycleArgs
                {
                    Monday = true,
                    Tuesday = true,
                    Wednesday = true,
                    Thursday = true,
                    Friday = true,
                    Saturday = false,
                    Sunday = false,
                },
                TimeInterval = new Tencentcloud.Inputs.CdbStartCpuExpandPeriodStrategyTimeIntervalArgs
                {
                    StartTime = "09:00",
                    EndTime = "18:00",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CdbStartCpuExpand;
    import com.pulumi.tencentcloud.CdbStartCpuExpandArgs;
    import com.pulumi.tencentcloud.inputs.CdbStartCpuExpandPeriodStrategyArgs;
    import com.pulumi.tencentcloud.inputs.CdbStartCpuExpandPeriodStrategyTimeCycleArgs;
    import com.pulumi.tencentcloud.inputs.CdbStartCpuExpandPeriodStrategyTimeIntervalArgs;
    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 example = new CdbStartCpuExpand("example", CdbStartCpuExpandArgs.builder()
                .instanceId("cdb-test1234")
                .type("period")
                .expandCpu(4.0)
                .periodStrategy(CdbStartCpuExpandPeriodStrategyArgs.builder()
                    .timeCycle(CdbStartCpuExpandPeriodStrategyTimeCycleArgs.builder()
                        .monday(true)
                        .tuesday(true)
                        .wednesday(true)
                        .thursday(true)
                        .friday(true)
                        .saturday(false)
                        .sunday(false)
                        .build())
                    .timeInterval(CdbStartCpuExpandPeriodStrategyTimeIntervalArgs.builder()
                        .startTime("09:00")
                        .endTime("18:00")
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:CdbStartCpuExpand
        properties:
          instanceId: cdb-test1234
          type: period
          expandCpu: 4
          periodStrategy:
            timeCycle:
              monday: true
              tuesday: true
              wednesday: true
              thursday: true
              friday: true
              saturday: false
              sunday: false
            timeInterval:
              startTime: 09:00
              endTime: 18:00
    
    Example coming soon!
    

    Create CdbStartCpuExpand Resource

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

    Constructor syntax

    new CdbStartCpuExpand(name: string, args: CdbStartCpuExpandArgs, opts?: CustomResourceOptions);
    @overload
    def CdbStartCpuExpand(resource_name: str,
                          args: CdbStartCpuExpandArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdbStartCpuExpand(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          instance_id: Optional[str] = None,
                          type: Optional[str] = None,
                          auto_strategy: Optional[CdbStartCpuExpandAutoStrategyArgs] = None,
                          cdb_start_cpu_expand_id: Optional[str] = None,
                          expand_cpu: Optional[float] = None,
                          period_strategy: Optional[CdbStartCpuExpandPeriodStrategyArgs] = None,
                          time_interval_strategy: Optional[CdbStartCpuExpandTimeIntervalStrategyArgs] = None,
                          timeouts: Optional[CdbStartCpuExpandTimeoutsArgs] = None)
    func NewCdbStartCpuExpand(ctx *Context, name string, args CdbStartCpuExpandArgs, opts ...ResourceOption) (*CdbStartCpuExpand, error)
    public CdbStartCpuExpand(string name, CdbStartCpuExpandArgs args, CustomResourceOptions? opts = null)
    public CdbStartCpuExpand(String name, CdbStartCpuExpandArgs args)
    public CdbStartCpuExpand(String name, CdbStartCpuExpandArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CdbStartCpuExpand
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_cdbstartcpuexpand" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CdbStartCpuExpandArgs
    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 CdbStartCpuExpandArgs
    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 CdbStartCpuExpandArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdbStartCpuExpandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdbStartCpuExpandArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    InstanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    Type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    AutoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    CdbStartCpuExpandId string
    ID of the resource.
    ExpandCpu double
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    PeriodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    TimeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    Timeouts CdbStartCpuExpandTimeouts
    InstanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    Type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    AutoStrategy CdbStartCpuExpandAutoStrategyArgs
    Auto expansion strategy. Required when type is auto.
    CdbStartCpuExpandId string
    ID of the resource.
    ExpandCpu float64
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    PeriodStrategy CdbStartCpuExpandPeriodStrategyArgs
    Period expansion strategy. Required when type is period.
    TimeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategyArgs
    Time interval expansion strategy. Required when type is timeInterval.
    Timeouts CdbStartCpuExpandTimeoutsArgs
    instance_id string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    auto_strategy object
    Auto expansion strategy. Required when type is auto.
    cdb_start_cpu_expand_id string
    ID of the resource.
    expand_cpu number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    period_strategy object
    Period expansion strategy. Required when type is period.
    time_interval_strategy object
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts object
    instanceId String
    Instance ID, which can be obtained from the DescribeDBInstances API.
    type String
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId String
    ID of the resource.
    expandCpu Double
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    periodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeouts
    instanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId string
    ID of the resource.
    expandCpu number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    periodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeouts
    instance_id str
    Instance ID, which can be obtained from the DescribeDBInstances API.
    type str
    Expansion type. Valid values: auto, manual, timeInterval, period.
    auto_strategy CdbStartCpuExpandAutoStrategyArgs
    Auto expansion strategy. Required when type is auto.
    cdb_start_cpu_expand_id str
    ID of the resource.
    expand_cpu float
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    period_strategy CdbStartCpuExpandPeriodStrategyArgs
    Period expansion strategy. Required when type is period.
    time_interval_strategy CdbStartCpuExpandTimeIntervalStrategyArgs
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeoutsArgs
    instanceId String
    Instance ID, which can be obtained from the DescribeDBInstances API.
    type String
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy Property Map
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId String
    ID of the resource.
    expandCpu Number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    periodStrategy Property Map
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy Property Map
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CdbStartCpuExpand 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 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 CdbStartCpuExpand Resource

    Get an existing CdbStartCpuExpand 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?: CdbStartCpuExpandState, opts?: CustomResourceOptions): CdbStartCpuExpand
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_strategy: Optional[CdbStartCpuExpandAutoStrategyArgs] = None,
            cdb_start_cpu_expand_id: Optional[str] = None,
            expand_cpu: Optional[float] = None,
            instance_id: Optional[str] = None,
            period_strategy: Optional[CdbStartCpuExpandPeriodStrategyArgs] = None,
            time_interval_strategy: Optional[CdbStartCpuExpandTimeIntervalStrategyArgs] = None,
            timeouts: Optional[CdbStartCpuExpandTimeoutsArgs] = None,
            type: Optional[str] = None) -> CdbStartCpuExpand
    func GetCdbStartCpuExpand(ctx *Context, name string, id IDInput, state *CdbStartCpuExpandState, opts ...ResourceOption) (*CdbStartCpuExpand, error)
    public static CdbStartCpuExpand Get(string name, Input<string> id, CdbStartCpuExpandState? state, CustomResourceOptions? opts = null)
    public static CdbStartCpuExpand get(String name, Output<String> id, CdbStartCpuExpandState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CdbStartCpuExpand    get:      id: ${id}
    import {
      to = tencentcloud_cdbstartcpuexpand.example
      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.
    The following state arguments are supported:
    AutoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    CdbStartCpuExpandId string
    ID of the resource.
    ExpandCpu double
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    InstanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    PeriodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    TimeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    Timeouts CdbStartCpuExpandTimeouts
    Type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    AutoStrategy CdbStartCpuExpandAutoStrategyArgs
    Auto expansion strategy. Required when type is auto.
    CdbStartCpuExpandId string
    ID of the resource.
    ExpandCpu float64
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    InstanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    PeriodStrategy CdbStartCpuExpandPeriodStrategyArgs
    Period expansion strategy. Required when type is period.
    TimeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategyArgs
    Time interval expansion strategy. Required when type is timeInterval.
    Timeouts CdbStartCpuExpandTimeoutsArgs
    Type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    auto_strategy object
    Auto expansion strategy. Required when type is auto.
    cdb_start_cpu_expand_id string
    ID of the resource.
    expand_cpu number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    instance_id string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    period_strategy object
    Period expansion strategy. Required when type is period.
    time_interval_strategy object
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts object
    type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId String
    ID of the resource.
    expandCpu Double
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    instanceId String
    Instance ID, which can be obtained from the DescribeDBInstances API.
    periodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeouts
    type String
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy CdbStartCpuExpandAutoStrategy
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId string
    ID of the resource.
    expandCpu number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    instanceId string
    Instance ID, which can be obtained from the DescribeDBInstances API.
    periodStrategy CdbStartCpuExpandPeriodStrategy
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy CdbStartCpuExpandTimeIntervalStrategy
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeouts
    type string
    Expansion type. Valid values: auto, manual, timeInterval, period.
    auto_strategy CdbStartCpuExpandAutoStrategyArgs
    Auto expansion strategy. Required when type is auto.
    cdb_start_cpu_expand_id str
    ID of the resource.
    expand_cpu float
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    instance_id str
    Instance ID, which can be obtained from the DescribeDBInstances API.
    period_strategy CdbStartCpuExpandPeriodStrategyArgs
    Period expansion strategy. Required when type is period.
    time_interval_strategy CdbStartCpuExpandTimeIntervalStrategyArgs
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts CdbStartCpuExpandTimeoutsArgs
    type str
    Expansion type. Valid values: auto, manual, timeInterval, period.
    autoStrategy Property Map
    Auto expansion strategy. Required when type is auto.
    cdbStartCpuExpandId String
    ID of the resource.
    expandCpu Number
    CPU cores to expand. Required when type is manual, timeInterval, or period.
    instanceId String
    Instance ID, which can be obtained from the DescribeDBInstances API.
    periodStrategy Property Map
    Period expansion strategy. Required when type is period.
    timeIntervalStrategy Property Map
    Time interval expansion strategy. Required when type is timeInterval.
    timeouts Property Map
    type String
    Expansion type. Valid values: auto, manual, timeInterval, period.

    Supporting Types

    CdbStartCpuExpandAutoStrategy, CdbStartCpuExpandAutoStrategyArgs

    ExpandThreshold double
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    ShrinkThreshold double
    Auto shrink threshold. Valid values: 10, 20, 30.
    ExpandSecondPeriod double
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    ShrinkSecondPeriod double
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    ExpandThreshold float64
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    ShrinkThreshold float64
    Auto shrink threshold. Valid values: 10, 20, 30.
    ExpandSecondPeriod float64
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    ShrinkSecondPeriod float64
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    expand_threshold number
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    shrink_threshold number
    Auto shrink threshold. Valid values: 10, 20, 30.
    expand_second_period number
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    shrink_second_period number
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    expandThreshold Double
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    shrinkThreshold Double
    Auto shrink threshold. Valid values: 10, 20, 30.
    expandSecondPeriod Double
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    shrinkSecondPeriod Double
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    expandThreshold number
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    shrinkThreshold number
    Auto shrink threshold. Valid values: 10, 20, 30.
    expandSecondPeriod number
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    shrinkSecondPeriod number
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    expand_threshold float
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    shrink_threshold float
    Auto shrink threshold. Valid values: 10, 20, 30.
    expand_second_period float
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    shrink_second_period float
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.
    expandThreshold Number
    Auto expansion threshold. Valid values: 40, 50, 60, 70, 80, 90.
    shrinkThreshold Number
    Auto shrink threshold. Valid values: 10, 20, 30.
    expandSecondPeriod Number
    Expansion observation period in seconds. Valid values: 15, 30, 45, 60, 180, 300, 600, 900, 1800.
    shrinkSecondPeriod Number
    Shrink observation period in seconds. Valid values: 300, 600, 900, 1800.

    CdbStartCpuExpandPeriodStrategy, CdbStartCpuExpandPeriodStrategyArgs

    time_cycle object
    Weekly cycle configuration.
    time_interval object
    Daily time range configuration.
    timeCycle Property Map
    Weekly cycle configuration.
    timeInterval Property Map
    Daily time range configuration.

    CdbStartCpuExpandPeriodStrategyTimeCycle, CdbStartCpuExpandPeriodStrategyTimeCycleArgs

    Friday bool
    Whether to expand on Friday.
    Monday bool
    Whether to expand on Monday.
    Saturday bool
    Whether to expand on Saturday.
    Sunday bool
    Whether to expand on Sunday.
    Thursday bool
    Whether to expand on Thursday.
    Tuesday bool
    Whether to expand on Tuesday.
    Wednesday bool
    Whether to expand on Wednesday.
    Friday bool
    Whether to expand on Friday.
    Monday bool
    Whether to expand on Monday.
    Saturday bool
    Whether to expand on Saturday.
    Sunday bool
    Whether to expand on Sunday.
    Thursday bool
    Whether to expand on Thursday.
    Tuesday bool
    Whether to expand on Tuesday.
    Wednesday bool
    Whether to expand on Wednesday.
    friday bool
    Whether to expand on Friday.
    monday bool
    Whether to expand on Monday.
    saturday bool
    Whether to expand on Saturday.
    sunday bool
    Whether to expand on Sunday.
    thursday bool
    Whether to expand on Thursday.
    tuesday bool
    Whether to expand on Tuesday.
    wednesday bool
    Whether to expand on Wednesday.
    friday Boolean
    Whether to expand on Friday.
    monday Boolean
    Whether to expand on Monday.
    saturday Boolean
    Whether to expand on Saturday.
    sunday Boolean
    Whether to expand on Sunday.
    thursday Boolean
    Whether to expand on Thursday.
    tuesday Boolean
    Whether to expand on Tuesday.
    wednesday Boolean
    Whether to expand on Wednesday.
    friday boolean
    Whether to expand on Friday.
    monday boolean
    Whether to expand on Monday.
    saturday boolean
    Whether to expand on Saturday.
    sunday boolean
    Whether to expand on Sunday.
    thursday boolean
    Whether to expand on Thursday.
    tuesday boolean
    Whether to expand on Tuesday.
    wednesday boolean
    Whether to expand on Wednesday.
    friday bool
    Whether to expand on Friday.
    monday bool
    Whether to expand on Monday.
    saturday bool
    Whether to expand on Saturday.
    sunday bool
    Whether to expand on Sunday.
    thursday bool
    Whether to expand on Thursday.
    tuesday bool
    Whether to expand on Tuesday.
    wednesday bool
    Whether to expand on Wednesday.
    friday Boolean
    Whether to expand on Friday.
    monday Boolean
    Whether to expand on Monday.
    saturday Boolean
    Whether to expand on Saturday.
    sunday Boolean
    Whether to expand on Sunday.
    thursday Boolean
    Whether to expand on Thursday.
    tuesday Boolean
    Whether to expand on Tuesday.
    wednesday Boolean
    Whether to expand on Wednesday.

    CdbStartCpuExpandPeriodStrategyTimeInterval, CdbStartCpuExpandPeriodStrategyTimeIntervalArgs

    EndTime string
    End time string.
    StartTime string
    Start time string.
    EndTime string
    End time string.
    StartTime string
    Start time string.
    end_time string
    End time string.
    start_time string
    Start time string.
    endTime String
    End time string.
    startTime String
    Start time string.
    endTime string
    End time string.
    startTime string
    Start time string.
    end_time str
    End time string.
    start_time str
    Start time string.
    endTime String
    End time string.
    startTime String
    Start time string.

    CdbStartCpuExpandTimeIntervalStrategy, CdbStartCpuExpandTimeIntervalStrategyArgs

    EndTime double
    End expansion time as integer timestamp in seconds.
    StartTime double
    Start expansion time as integer timestamp in seconds.
    EndTime float64
    End expansion time as integer timestamp in seconds.
    StartTime float64
    Start expansion time as integer timestamp in seconds.
    end_time number
    End expansion time as integer timestamp in seconds.
    start_time number
    Start expansion time as integer timestamp in seconds.
    endTime Double
    End expansion time as integer timestamp in seconds.
    startTime Double
    Start expansion time as integer timestamp in seconds.
    endTime number
    End expansion time as integer timestamp in seconds.
    startTime number
    Start expansion time as integer timestamp in seconds.
    end_time float
    End expansion time as integer timestamp in seconds.
    start_time float
    Start expansion time as integer timestamp in seconds.
    endTime Number
    End expansion time as integer timestamp in seconds.
    startTime Number
    Start expansion time as integer timestamp in seconds.

    CdbStartCpuExpandTimeouts, CdbStartCpuExpandTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create string
    delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    CDB start cpu expand can be imported using the instance_id, e.g.

    $ pulumi import tencentcloud:index/cdbStartCpuExpand:CdbStartCpuExpand example cdb-test1234
    

    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.
    Viewing docs for tencentcloud 1.83.7
    published on Tuesday, Jun 30, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial