1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PostgresqlDisisolateDbInstanceOperation
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.PostgresqlDisisolateDbInstanceOperation

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a postgresql disisolate_db_instance_operation

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const disisolateDbInstanceOperation = new tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", {
        dbInstanceIdSets: [local.pgsql_id],
        period: 1,
        autoVoucher: false,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    disisolate_db_instance_operation = tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation",
        db_instance_id_sets=[local["pgsql_id"]],
        period=1,
        auto_voucher=False)
    
    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.NewPostgresqlDisisolateDbInstanceOperation(ctx, "disisolateDbInstanceOperation", &tencentcloud.PostgresqlDisisolateDbInstanceOperationArgs{
    			DbInstanceIdSets: pulumi.StringArray{
    				local.Pgsql_id,
    			},
    			Period:      pulumi.Float64(1),
    			AutoVoucher: pulumi.Bool(false),
    		})
    		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 disisolateDbInstanceOperation = new Tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", new()
        {
            DbInstanceIdSets = new[]
            {
                local.Pgsql_id,
            },
            Period = 1,
            AutoVoucher = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PostgresqlDisisolateDbInstanceOperation;
    import com.pulumi.tencentcloud.PostgresqlDisisolateDbInstanceOperationArgs;
    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 disisolateDbInstanceOperation = new PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", PostgresqlDisisolateDbInstanceOperationArgs.builder()
                .dbInstanceIdSets(local.pgsql_id())
                .period(1)
                .autoVoucher(false)
                .build());
    
        }
    }
    
    resources:
      disisolateDbInstanceOperation:
        type: tencentcloud:PostgresqlDisisolateDbInstanceOperation
        properties:
          dbInstanceIdSets:
            - ${local.pgsql_id}
          period: 1
          autoVoucher: false
    

    Create PostgresqlDisisolateDbInstanceOperation Resource

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

    Constructor syntax

    new PostgresqlDisisolateDbInstanceOperation(name: string, args: PostgresqlDisisolateDbInstanceOperationArgs, opts?: CustomResourceOptions);
    @overload
    def PostgresqlDisisolateDbInstanceOperation(resource_name: str,
                                                args: PostgresqlDisisolateDbInstanceOperationArgs,
                                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def PostgresqlDisisolateDbInstanceOperation(resource_name: str,
                                                opts: Optional[ResourceOptions] = None,
                                                db_instance_id_sets: Optional[Sequence[str]] = None,
                                                auto_voucher: Optional[bool] = None,
                                                period: Optional[float] = None,
                                                postgresql_disisolate_db_instance_operation_id: Optional[str] = None,
                                                voucher_ids: Optional[Sequence[str]] = None)
    func NewPostgresqlDisisolateDbInstanceOperation(ctx *Context, name string, args PostgresqlDisisolateDbInstanceOperationArgs, opts ...ResourceOption) (*PostgresqlDisisolateDbInstanceOperation, error)
    public PostgresqlDisisolateDbInstanceOperation(string name, PostgresqlDisisolateDbInstanceOperationArgs args, CustomResourceOptions? opts = null)
    public PostgresqlDisisolateDbInstanceOperation(String name, PostgresqlDisisolateDbInstanceOperationArgs args)
    public PostgresqlDisisolateDbInstanceOperation(String name, PostgresqlDisisolateDbInstanceOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PostgresqlDisisolateDbInstanceOperation
    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 PostgresqlDisisolateDbInstanceOperationArgs
    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 PostgresqlDisisolateDbInstanceOperationArgs
    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 PostgresqlDisisolateDbInstanceOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostgresqlDisisolateDbInstanceOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostgresqlDisisolateDbInstanceOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    DbInstanceIdSets List<string>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    AutoVoucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    Period double
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    PostgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    VoucherIds List<string>
    Voucher ID list.
    DbInstanceIdSets []string
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    AutoVoucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    Period float64
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    PostgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    VoucherIds []string
    Voucher ID list.
    dbInstanceIdSets List<String>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    autoVoucher Boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    period Double
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId String
    ID of the resource.
    voucherIds List<String>
    Voucher ID list.
    dbInstanceIdSets string[]
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    autoVoucher boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    period number
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    voucherIds string[]
    Voucher ID list.
    db_instance_id_sets Sequence[str]
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    auto_voucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    period float
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresql_disisolate_db_instance_operation_id str
    ID of the resource.
    voucher_ids Sequence[str]
    Voucher ID list.
    dbInstanceIdSets List<String>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    autoVoucher Boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    period Number
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId String
    ID of the resource.
    voucherIds List<String>
    Voucher ID list.

    Outputs

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

    Get an existing PostgresqlDisisolateDbInstanceOperation 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?: PostgresqlDisisolateDbInstanceOperationState, opts?: CustomResourceOptions): PostgresqlDisisolateDbInstanceOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_voucher: Optional[bool] = None,
            db_instance_id_sets: Optional[Sequence[str]] = None,
            period: Optional[float] = None,
            postgresql_disisolate_db_instance_operation_id: Optional[str] = None,
            voucher_ids: Optional[Sequence[str]] = None) -> PostgresqlDisisolateDbInstanceOperation
    func GetPostgresqlDisisolateDbInstanceOperation(ctx *Context, name string, id IDInput, state *PostgresqlDisisolateDbInstanceOperationState, opts ...ResourceOption) (*PostgresqlDisisolateDbInstanceOperation, error)
    public static PostgresqlDisisolateDbInstanceOperation Get(string name, Input<string> id, PostgresqlDisisolateDbInstanceOperationState? state, CustomResourceOptions? opts = null)
    public static PostgresqlDisisolateDbInstanceOperation get(String name, Output<String> id, PostgresqlDisisolateDbInstanceOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PostgresqlDisisolateDbInstanceOperation    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.
    The following state arguments are supported:
    AutoVoucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    DbInstanceIdSets List<string>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    Period double
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    PostgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    VoucherIds List<string>
    Voucher ID list.
    AutoVoucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    DbInstanceIdSets []string
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    Period float64
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    PostgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    VoucherIds []string
    Voucher ID list.
    autoVoucher Boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    dbInstanceIdSets List<String>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    period Double
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId String
    ID of the resource.
    voucherIds List<String>
    Voucher ID list.
    autoVoucher boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    dbInstanceIdSets string[]
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    period number
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId string
    ID of the resource.
    voucherIds string[]
    Voucher ID list.
    auto_voucher bool
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    db_instance_id_sets Sequence[str]
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    period float
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresql_disisolate_db_instance_operation_id str
    ID of the resource.
    voucher_ids Sequence[str]
    Voucher ID list.
    autoVoucher Boolean
    Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
    dbInstanceIdSets List<String>
    List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
    period Number
    The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
    postgresqlDisisolateDbInstanceOperationId String
    ID of the resource.
    voucherIds List<String>
    Voucher ID list.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack