tencentcloud.CbsStorage
Explore with Pulumi AI
Provides a resource to create a CBS storage.
NOTE: When creating an encrypted disk, if
kms_key_id
is not entered, the product side will generate a key by default.
NOTE: When using CBS encrypted disk, it is necessary to add
CVM_QcsRole
role andQcloudKMSAccessForCVMRole
strategy to the account.
Example Usage
Create a standard CBS storage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CbsStorage("example", {
availabilityZone: "ap-guangzhou-3",
encrypt: false,
projectId: 0,
storageName: "tf-example",
storageSize: 100,
storageType: "CLOUD_SSD",
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CbsStorage("example",
availability_zone="ap-guangzhou-3",
encrypt=False,
project_id=0,
storage_name="tf-example",
storage_size=100,
storage_type="CLOUD_SSD",
tags={
"createBy": "Terraform",
})
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.NewCbsStorage(ctx, "example", &tencentcloud.CbsStorageArgs{
AvailabilityZone: pulumi.String("ap-guangzhou-3"),
Encrypt: pulumi.Bool(false),
ProjectId: pulumi.Float64(0),
StorageName: pulumi.String("tf-example"),
StorageSize: pulumi.Float64(100),
StorageType: pulumi.String("CLOUD_SSD"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
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.CbsStorage("example", new()
{
AvailabilityZone = "ap-guangzhou-3",
Encrypt = false,
ProjectId = 0,
StorageName = "tf-example",
StorageSize = 100,
StorageType = "CLOUD_SSD",
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CbsStorage;
import com.pulumi.tencentcloud.CbsStorageArgs;
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 CbsStorage("example", CbsStorageArgs.builder()
.availabilityZone("ap-guangzhou-3")
.encrypt(false)
.projectId(0)
.storageName("tf-example")
.storageSize(100)
.storageType("CLOUD_SSD")
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CbsStorage
properties:
availabilityZone: ap-guangzhou-3
encrypt: false
projectId: 0
storageName: tf-example
storageSize: 100
storageType: CLOUD_SSD
tags:
createBy: Terraform
Create an encrypted CBS storage with customize kms_key_id
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CbsStorage("example", {
availabilityZone: "ap-guangzhou-3",
encrypt: true,
kmsKeyId: "2e860789-7ef0-11ef-8d1c-5254001955d1",
projectId: 0,
storageName: "tf-example",
storageSize: 100,
storageType: "CLOUD_SSD",
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CbsStorage("example",
availability_zone="ap-guangzhou-3",
encrypt=True,
kms_key_id="2e860789-7ef0-11ef-8d1c-5254001955d1",
project_id=0,
storage_name="tf-example",
storage_size=100,
storage_type="CLOUD_SSD",
tags={
"createBy": "Terraform",
})
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.NewCbsStorage(ctx, "example", &tencentcloud.CbsStorageArgs{
AvailabilityZone: pulumi.String("ap-guangzhou-3"),
Encrypt: pulumi.Bool(true),
KmsKeyId: pulumi.String("2e860789-7ef0-11ef-8d1c-5254001955d1"),
ProjectId: pulumi.Float64(0),
StorageName: pulumi.String("tf-example"),
StorageSize: pulumi.Float64(100),
StorageType: pulumi.String("CLOUD_SSD"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
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.CbsStorage("example", new()
{
AvailabilityZone = "ap-guangzhou-3",
Encrypt = true,
KmsKeyId = "2e860789-7ef0-11ef-8d1c-5254001955d1",
ProjectId = 0,
StorageName = "tf-example",
StorageSize = 100,
StorageType = "CLOUD_SSD",
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CbsStorage;
import com.pulumi.tencentcloud.CbsStorageArgs;
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 CbsStorage("example", CbsStorageArgs.builder()
.availabilityZone("ap-guangzhou-3")
.encrypt(true)
.kmsKeyId("2e860789-7ef0-11ef-8d1c-5254001955d1")
.projectId(0)
.storageName("tf-example")
.storageSize(100)
.storageType("CLOUD_SSD")
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CbsStorage
properties:
availabilityZone: ap-guangzhou-3
encrypt: true
kmsKeyId: 2e860789-7ef0-11ef-8d1c-5254001955d1
projectId: 0
storageName: tf-example
storageSize: 100
storageType: CLOUD_SSD
tags:
createBy: Terraform
Create an encrypted CBS storage with default generated kms_key_id
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CbsStorage("example", {
availabilityZone: "ap-guangzhou-3",
encrypt: true,
projectId: 0,
storageName: "tf-example",
storageSize: 100,
storageType: "CLOUD_SSD",
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CbsStorage("example",
availability_zone="ap-guangzhou-3",
encrypt=True,
project_id=0,
storage_name="tf-example",
storage_size=100,
storage_type="CLOUD_SSD",
tags={
"createBy": "Terraform",
})
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.NewCbsStorage(ctx, "example", &tencentcloud.CbsStorageArgs{
AvailabilityZone: pulumi.String("ap-guangzhou-3"),
Encrypt: pulumi.Bool(true),
ProjectId: pulumi.Float64(0),
StorageName: pulumi.String("tf-example"),
StorageSize: pulumi.Float64(100),
StorageType: pulumi.String("CLOUD_SSD"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
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.CbsStorage("example", new()
{
AvailabilityZone = "ap-guangzhou-3",
Encrypt = true,
ProjectId = 0,
StorageName = "tf-example",
StorageSize = 100,
StorageType = "CLOUD_SSD",
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CbsStorage;
import com.pulumi.tencentcloud.CbsStorageArgs;
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 CbsStorage("example", CbsStorageArgs.builder()
.availabilityZone("ap-guangzhou-3")
.encrypt(true)
.projectId(0)
.storageName("tf-example")
.storageSize(100)
.storageType("CLOUD_SSD")
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CbsStorage
properties:
availabilityZone: ap-guangzhou-3
encrypt: true
projectId: 0
storageName: tf-example
storageSize: 100
storageType: CLOUD_SSD
tags:
createBy: Terraform
Create a dedicated cluster CBS storage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CbsStorage("example", {
availabilityZone: "ap-guangzhou-4",
chargeType: "DEDICATED_CLUSTER_PAID",
dedicatedClusterId: "cluster-262n63e8",
encrypt: false,
projectId: 0,
storageName: "tf-example",
storageSize: 100,
storageType: "CLOUD_SSD",
tags: {
createBy: "Terraform",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CbsStorage("example",
availability_zone="ap-guangzhou-4",
charge_type="DEDICATED_CLUSTER_PAID",
dedicated_cluster_id="cluster-262n63e8",
encrypt=False,
project_id=0,
storage_name="tf-example",
storage_size=100,
storage_type="CLOUD_SSD",
tags={
"createBy": "Terraform",
})
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.NewCbsStorage(ctx, "example", &tencentcloud.CbsStorageArgs{
AvailabilityZone: pulumi.String("ap-guangzhou-4"),
ChargeType: pulumi.String("DEDICATED_CLUSTER_PAID"),
DedicatedClusterId: pulumi.String("cluster-262n63e8"),
Encrypt: pulumi.Bool(false),
ProjectId: pulumi.Float64(0),
StorageName: pulumi.String("tf-example"),
StorageSize: pulumi.Float64(100),
StorageType: pulumi.String("CLOUD_SSD"),
Tags: pulumi.StringMap{
"createBy": pulumi.String("Terraform"),
},
})
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.CbsStorage("example", new()
{
AvailabilityZone = "ap-guangzhou-4",
ChargeType = "DEDICATED_CLUSTER_PAID",
DedicatedClusterId = "cluster-262n63e8",
Encrypt = false,
ProjectId = 0,
StorageName = "tf-example",
StorageSize = 100,
StorageType = "CLOUD_SSD",
Tags =
{
{ "createBy", "Terraform" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CbsStorage;
import com.pulumi.tencentcloud.CbsStorageArgs;
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 CbsStorage("example", CbsStorageArgs.builder()
.availabilityZone("ap-guangzhou-4")
.chargeType("DEDICATED_CLUSTER_PAID")
.dedicatedClusterId("cluster-262n63e8")
.encrypt(false)
.projectId(0)
.storageName("tf-example")
.storageSize(100)
.storageType("CLOUD_SSD")
.tags(Map.of("createBy", "Terraform"))
.build());
}
}
resources:
example:
type: tencentcloud:CbsStorage
properties:
availabilityZone: ap-guangzhou-4
chargeType: DEDICATED_CLUSTER_PAID
dedicatedClusterId: cluster-262n63e8
encrypt: false
projectId: 0
storageName: tf-example
storageSize: 100
storageType: CLOUD_SSD
tags:
createBy: Terraform
Create CbsStorage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CbsStorage(name: string, args: CbsStorageArgs, opts?: CustomResourceOptions);
@overload
def CbsStorage(resource_name: str,
args: CbsStorageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CbsStorage(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone: Optional[str] = None,
storage_type: Optional[str] = None,
storage_size: Optional[float] = None,
storage_name: Optional[str] = None,
period: Optional[float] = None,
project_id: Optional[float] = None,
force_delete: Optional[bool] = None,
kms_key_id: Optional[str] = None,
disk_backup_quota: Optional[float] = None,
prepaid_period: Optional[float] = None,
prepaid_renew_flag: Optional[str] = None,
encrypt: Optional[bool] = None,
snapshot_id: Optional[str] = None,
dedicated_cluster_id: Optional[str] = None,
charge_type: Optional[str] = None,
cbs_storage_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
throughput_performance: Optional[float] = None)
func NewCbsStorage(ctx *Context, name string, args CbsStorageArgs, opts ...ResourceOption) (*CbsStorage, error)
public CbsStorage(string name, CbsStorageArgs args, CustomResourceOptions? opts = null)
public CbsStorage(String name, CbsStorageArgs args)
public CbsStorage(String name, CbsStorageArgs args, CustomResourceOptions options)
type: tencentcloud:CbsStorage
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 CbsStorageArgs
- 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 CbsStorageArgs
- 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 CbsStorageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CbsStorageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CbsStorageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CbsStorage 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 CbsStorage resource accepts the following input properties:
- Availability
Zone string - The available zone that the CBS instance locates at.
- Storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- Storage
Size double - Volume of CBS, and unit is GB.
- Storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Cbs
Storage stringId - ID of the resource.
- Charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - Dedicated
Cluster stringId - Exclusive cluster id.
- Disk
Backup doubleQuota - The quota of backup points of cloud disk.
- Encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- Force
Delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - Period double
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - Prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - Project
Id double - ID of the project to which the instance belongs.
- Snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- Dictionary<string, string>
- The available tags within this CBS.
- Throughput
Performance double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- Availability
Zone string - The available zone that the CBS instance locates at.
- Storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- Storage
Size float64 - Volume of CBS, and unit is GB.
- Storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Cbs
Storage stringId - ID of the resource.
- Charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - Dedicated
Cluster stringId - Exclusive cluster id.
- Disk
Backup float64Quota - The quota of backup points of cloud disk.
- Encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- Force
Delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - Period float64
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - Prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - Project
Id float64 - ID of the project to which the instance belongs.
- Snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- map[string]string
- The available tags within this CBS.
- Throughput
Performance float64 - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- availability
Zone String - The available zone that the CBS instance locates at.
- storage
Name String - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size Double - Volume of CBS, and unit is GB.
- storage
Type String - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- cbs
Storage StringId - ID of the resource.
- charge
Type String - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster StringId - Exclusive cluster id.
- disk
Backup DoubleQuota - The quota of backup points of cloud disk.
- encrypt Boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete Boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key StringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period Double
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew StringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id Double - ID of the project to which the instance belongs.
- snapshot
Id String - ID of the snapshot. If specified, created the CBS by this snapshot.
- Map<String,String>
- The available tags within this CBS.
- throughput
Performance Double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- availability
Zone string - The available zone that the CBS instance locates at.
- storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size number - Volume of CBS, and unit is GB.
- storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- cbs
Storage stringId - ID of the resource.
- charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster stringId - Exclusive cluster id.
- disk
Backup numberQuota - The quota of backup points of cloud disk.
- encrypt boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period number
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id number - ID of the project to which the instance belongs.
- snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- {[key: string]: string}
- The available tags within this CBS.
- throughput
Performance number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- availability_
zone str - The available zone that the CBS instance locates at.
- storage_
name str - Name of CBS. The maximum length can not exceed 60 bytes.
- storage_
size float - Volume of CBS, and unit is GB.
- storage_
type str - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- cbs_
storage_ strid - ID of the resource.
- charge_
type str - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated_
cluster_ strid - Exclusive cluster id.
- disk_
backup_ floatquota - The quota of backup points of cloud disk.
- encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- force_
delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms_
key_ strid - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period float
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid_
renew_ strflag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project_
id float - ID of the project to which the instance belongs.
- snapshot_
id str - ID of the snapshot. If specified, created the CBS by this snapshot.
- Mapping[str, str]
- The available tags within this CBS.
- throughput_
performance float - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- availability
Zone String - The available zone that the CBS instance locates at.
- storage
Name String - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size Number - Volume of CBS, and unit is GB.
- storage
Type String - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- cbs
Storage StringId - ID of the resource.
- charge
Type String - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster StringId - Exclusive cluster id.
- disk
Backup NumberQuota - The quota of backup points of cloud disk.
- encrypt Boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete Boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key StringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period Number
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew StringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id Number - ID of the project to which the instance belongs.
- snapshot
Id String - ID of the snapshot. If specified, created the CBS by this snapshot.
- Map<String>
- The available tags within this CBS.
- throughput
Performance Number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CbsStorage resource produces the following output properties:
- Attached bool
- Indicates whether the CBS is mounted the CVM.
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- Attached bool
- Indicates whether the CBS is mounted the CVM.
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- attached Boolean
- Indicates whether the CBS is mounted the CVM.
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Status String - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- attached boolean
- Indicates whether the CBS is mounted the CVM.
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- attached bool
- Indicates whether the CBS is mounted the CVM.
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
status str - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- attached Boolean
- Indicates whether the CBS is mounted the CVM.
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Status String - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
Look up Existing CbsStorage Resource
Get an existing CbsStorage 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?: CbsStorageState, opts?: CustomResourceOptions): CbsStorage
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
attached: Optional[bool] = None,
availability_zone: Optional[str] = None,
cbs_storage_id: Optional[str] = None,
charge_type: Optional[str] = None,
dedicated_cluster_id: Optional[str] = None,
disk_backup_quota: Optional[float] = None,
encrypt: Optional[bool] = None,
force_delete: Optional[bool] = None,
kms_key_id: Optional[str] = None,
period: Optional[float] = None,
prepaid_period: Optional[float] = None,
prepaid_renew_flag: Optional[str] = None,
project_id: Optional[float] = None,
snapshot_id: Optional[str] = None,
storage_name: Optional[str] = None,
storage_size: Optional[float] = None,
storage_status: Optional[str] = None,
storage_type: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
throughput_performance: Optional[float] = None) -> CbsStorage
func GetCbsStorage(ctx *Context, name string, id IDInput, state *CbsStorageState, opts ...ResourceOption) (*CbsStorage, error)
public static CbsStorage Get(string name, Input<string> id, CbsStorageState? state, CustomResourceOptions? opts = null)
public static CbsStorage get(String name, Output<String> id, CbsStorageState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CbsStorage 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.
- Attached bool
- Indicates whether the CBS is mounted the CVM.
- Availability
Zone string - The available zone that the CBS instance locates at.
- Cbs
Storage stringId - ID of the resource.
- Charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - Dedicated
Cluster stringId - Exclusive cluster id.
- Disk
Backup doubleQuota - The quota of backup points of cloud disk.
- Encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- Force
Delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - Period double
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - Prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - Project
Id double - ID of the project to which the instance belongs.
- Snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- Storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- Storage
Size double - Volume of CBS, and unit is GB.
- Storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- Storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Dictionary<string, string>
- The available tags within this CBS.
- Throughput
Performance double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- Attached bool
- Indicates whether the CBS is mounted the CVM.
- Availability
Zone string - The available zone that the CBS instance locates at.
- Cbs
Storage stringId - ID of the resource.
- Charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - Dedicated
Cluster stringId - Exclusive cluster id.
- Disk
Backup float64Quota - The quota of backup points of cloud disk.
- Encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- Force
Delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- Kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - Period float64
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - Prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - Project
Id float64 - ID of the project to which the instance belongs.
- Snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- Storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- Storage
Size float64 - Volume of CBS, and unit is GB.
- Storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- Storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- map[string]string
- The available tags within this CBS.
- Throughput
Performance float64 - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- attached Boolean
- Indicates whether the CBS is mounted the CVM.
- availability
Zone String - The available zone that the CBS instance locates at.
- cbs
Storage StringId - ID of the resource.
- charge
Type String - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster StringId - Exclusive cluster id.
- disk
Backup DoubleQuota - The quota of backup points of cloud disk.
- encrypt Boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete Boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key StringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period Double
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew StringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id Double - ID of the project to which the instance belongs.
- snapshot
Id String - ID of the snapshot. If specified, created the CBS by this snapshot.
- storage
Name String - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size Double - Volume of CBS, and unit is GB.
- storage
Status String - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- storage
Type String - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Map<String,String>
- The available tags within this CBS.
- throughput
Performance Double - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- attached boolean
- Indicates whether the CBS is mounted the CVM.
- availability
Zone string - The available zone that the CBS instance locates at.
- cbs
Storage stringId - ID of the resource.
- charge
Type string - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster stringId - Exclusive cluster id.
- disk
Backup numberQuota - The quota of backup points of cloud disk.
- encrypt boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key stringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period number
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew stringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id number - ID of the project to which the instance belongs.
- snapshot
Id string - ID of the snapshot. If specified, created the CBS by this snapshot.
- storage
Name string - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size number - Volume of CBS, and unit is GB.
- storage
Status string - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- storage
Type string - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- {[key: string]: string}
- The available tags within this CBS.
- throughput
Performance number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- attached bool
- Indicates whether the CBS is mounted the CVM.
- availability_
zone str - The available zone that the CBS instance locates at.
- cbs_
storage_ strid - ID of the resource.
- charge_
type str - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated_
cluster_ strid - Exclusive cluster id.
- disk_
backup_ floatquota - The quota of backup points of cloud disk.
- encrypt bool
- Pass in this parameter to create an encrypted cloud disk.
- force_
delete bool - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms_
key_ strid - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period float
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid_
period float - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid_
renew_ strflag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project_
id float - ID of the project to which the instance belongs.
- snapshot_
id str - ID of the snapshot. If specified, created the CBS by this snapshot.
- storage_
name str - Name of CBS. The maximum length can not exceed 60 bytes.
- storage_
size float - Volume of CBS, and unit is GB.
- storage_
status str - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- storage_
type str - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Mapping[str, str]
- The available tags within this CBS.
- throughput_
performance float - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
- attached Boolean
- Indicates whether the CBS is mounted the CVM.
- availability
Zone String - The available zone that the CBS instance locates at.
- cbs
Storage StringId - ID of the resource.
- charge
Type String - The charge type of CBS instance. Valid values are
PREPAID
,POSTPAID_BY_HOUR
,CDCPAID
andDEDICATED_CLUSTER_PAID
. The default isPOSTPAID_BY_HOUR
. - dedicated
Cluster StringId - Exclusive cluster id.
- disk
Backup NumberQuota - The quota of backup points of cloud disk.
- encrypt Boolean
- Pass in this parameter to create an encrypted cloud disk.
- force
Delete Boolean - Indicate whether to delete CBS instance directly or not. Default is false. If set true, the instance will be deleted instead of staying recycle bin.
- kms
Key StringId - Optional parameters. When purchasing an encryption disk, customize the key. When this parameter is passed in, the
encrypt
parameter need be set. - period Number
- It has been deprecated from version 1.33.0. Set
prepaid_period
instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]. - prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36. - prepaid
Renew StringFlag - Auto Renewal flag. Value range:
NOTIFY_AND_AUTO_RENEW
: Notify expiry and renew automatically,NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically,DISABLE_NOTIFY_AND_MANUAL_RENEW
: Neither notify expiry nor renew automatically. Default value range:NOTIFY_AND_MANUAL_RENEW
: Notify expiry but do not renew automatically. NOTE: it only works when charge_type is set toPREPAID
. - project
Id Number - ID of the project to which the instance belongs.
- snapshot
Id String - ID of the snapshot. If specified, created the CBS by this snapshot.
- storage
Name String - Name of CBS. The maximum length can not exceed 60 bytes.
- storage
Size Number - Volume of CBS, and unit is GB.
- storage
Status String - Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
- storage
Type String - Type of CBS medium. Valid values: CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_BSSD: General Purpose SSD, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD.
- Map<String>
- The available tags within this CBS.
- throughput
Performance Number - Add extra performance to the data disk. Only works when disk type is
CLOUD_TSSD
orCLOUD_HSSD
.
Import
CBS storage can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cbsStorage:CbsStorage example disk-41s6jwy4
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.