cbs

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type DiskBackup added in v0.1.3

type DiskBackup struct {
	pulumi.CustomResourceState

	// Backup point name.
	DiskBackupName pulumi.StringPtrOutput `pulumi:"diskBackupName"`
	// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
	DiskId pulumi.StringOutput `pulumi:"diskId"`
}

Provides a resource to create a cbs disk_backup.

> **NOTE:** Backup quota must greater than 1.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewDiskBackup(ctx, "diskBackup", &Cbs.DiskBackupArgs{
			DiskBackupName: pulumi.String("xxx"),
			DiskId:         pulumi.String("disk-xxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cbs disk_backup can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/diskBackup:DiskBackup disk_backup disk_backup_id

```

func GetDiskBackup added in v0.1.3

func GetDiskBackup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DiskBackupState, opts ...pulumi.ResourceOption) (*DiskBackup, error)

GetDiskBackup gets an existing DiskBackup resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDiskBackup added in v0.1.3

func NewDiskBackup(ctx *pulumi.Context,
	name string, args *DiskBackupArgs, opts ...pulumi.ResourceOption) (*DiskBackup, error)

NewDiskBackup registers a new resource with the given unique name, arguments, and options.

func (*DiskBackup) ElementType added in v0.1.3

func (*DiskBackup) ElementType() reflect.Type

func (*DiskBackup) ToDiskBackupOutput added in v0.1.3

func (i *DiskBackup) ToDiskBackupOutput() DiskBackupOutput

func (*DiskBackup) ToDiskBackupOutputWithContext added in v0.1.3

func (i *DiskBackup) ToDiskBackupOutputWithContext(ctx context.Context) DiskBackupOutput

type DiskBackupArgs added in v0.1.3

type DiskBackupArgs struct {
	// Backup point name.
	DiskBackupName pulumi.StringPtrInput
	// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
	DiskId pulumi.StringInput
}

The set of arguments for constructing a DiskBackup resource.

func (DiskBackupArgs) ElementType added in v0.1.3

func (DiskBackupArgs) ElementType() reflect.Type

type DiskBackupArray added in v0.1.3

type DiskBackupArray []DiskBackupInput

func (DiskBackupArray) ElementType added in v0.1.3

func (DiskBackupArray) ElementType() reflect.Type

func (DiskBackupArray) ToDiskBackupArrayOutput added in v0.1.3

func (i DiskBackupArray) ToDiskBackupArrayOutput() DiskBackupArrayOutput

func (DiskBackupArray) ToDiskBackupArrayOutputWithContext added in v0.1.3

func (i DiskBackupArray) ToDiskBackupArrayOutputWithContext(ctx context.Context) DiskBackupArrayOutput

type DiskBackupArrayInput added in v0.1.3

type DiskBackupArrayInput interface {
	pulumi.Input

	ToDiskBackupArrayOutput() DiskBackupArrayOutput
	ToDiskBackupArrayOutputWithContext(context.Context) DiskBackupArrayOutput
}

DiskBackupArrayInput is an input type that accepts DiskBackupArray and DiskBackupArrayOutput values. You can construct a concrete instance of `DiskBackupArrayInput` via:

DiskBackupArray{ DiskBackupArgs{...} }

type DiskBackupArrayOutput added in v0.1.3

type DiskBackupArrayOutput struct{ *pulumi.OutputState }

func (DiskBackupArrayOutput) ElementType added in v0.1.3

func (DiskBackupArrayOutput) ElementType() reflect.Type

func (DiskBackupArrayOutput) Index added in v0.1.3

func (DiskBackupArrayOutput) ToDiskBackupArrayOutput added in v0.1.3

func (o DiskBackupArrayOutput) ToDiskBackupArrayOutput() DiskBackupArrayOutput

func (DiskBackupArrayOutput) ToDiskBackupArrayOutputWithContext added in v0.1.3

func (o DiskBackupArrayOutput) ToDiskBackupArrayOutputWithContext(ctx context.Context) DiskBackupArrayOutput

type DiskBackupInput added in v0.1.3

type DiskBackupInput interface {
	pulumi.Input

	ToDiskBackupOutput() DiskBackupOutput
	ToDiskBackupOutputWithContext(ctx context.Context) DiskBackupOutput
}

type DiskBackupMap added in v0.1.3

type DiskBackupMap map[string]DiskBackupInput

func (DiskBackupMap) ElementType added in v0.1.3

func (DiskBackupMap) ElementType() reflect.Type

func (DiskBackupMap) ToDiskBackupMapOutput added in v0.1.3

func (i DiskBackupMap) ToDiskBackupMapOutput() DiskBackupMapOutput

func (DiskBackupMap) ToDiskBackupMapOutputWithContext added in v0.1.3

func (i DiskBackupMap) ToDiskBackupMapOutputWithContext(ctx context.Context) DiskBackupMapOutput

type DiskBackupMapInput added in v0.1.3

type DiskBackupMapInput interface {
	pulumi.Input

	ToDiskBackupMapOutput() DiskBackupMapOutput
	ToDiskBackupMapOutputWithContext(context.Context) DiskBackupMapOutput
}

DiskBackupMapInput is an input type that accepts DiskBackupMap and DiskBackupMapOutput values. You can construct a concrete instance of `DiskBackupMapInput` via:

DiskBackupMap{ "key": DiskBackupArgs{...} }

type DiskBackupMapOutput added in v0.1.3

type DiskBackupMapOutput struct{ *pulumi.OutputState }

func (DiskBackupMapOutput) ElementType added in v0.1.3

func (DiskBackupMapOutput) ElementType() reflect.Type

func (DiskBackupMapOutput) MapIndex added in v0.1.3

func (DiskBackupMapOutput) ToDiskBackupMapOutput added in v0.1.3

func (o DiskBackupMapOutput) ToDiskBackupMapOutput() DiskBackupMapOutput

func (DiskBackupMapOutput) ToDiskBackupMapOutputWithContext added in v0.1.3

func (o DiskBackupMapOutput) ToDiskBackupMapOutputWithContext(ctx context.Context) DiskBackupMapOutput

type DiskBackupOutput added in v0.1.3

type DiskBackupOutput struct{ *pulumi.OutputState }

func (DiskBackupOutput) DiskBackupName added in v0.1.3

func (o DiskBackupOutput) DiskBackupName() pulumi.StringPtrOutput

Backup point name.

func (DiskBackupOutput) DiskId added in v0.1.3

ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.

func (DiskBackupOutput) ElementType added in v0.1.3

func (DiskBackupOutput) ElementType() reflect.Type

func (DiskBackupOutput) ToDiskBackupOutput added in v0.1.3

func (o DiskBackupOutput) ToDiskBackupOutput() DiskBackupOutput

func (DiskBackupOutput) ToDiskBackupOutputWithContext added in v0.1.3

func (o DiskBackupOutput) ToDiskBackupOutputWithContext(ctx context.Context) DiskBackupOutput

type DiskBackupRollbackOperation added in v0.1.3

type DiskBackupRollbackOperation struct {
	pulumi.CustomResourceState

	// Cloud disk backup point ID.
	DiskBackupId pulumi.StringOutput `pulumi:"diskBackupId"`
	// Cloud disk backup point original cloud disk ID.
	DiskId pulumi.StringOutput `pulumi:"diskId"`
	// Whether the rollback is completed. `true` meaing rollback completed, `false` meaning still rollbacking.
	IsRollbackCompleted pulumi.BoolOutput `pulumi:"isRollbackCompleted"`
}

Provides a resource to rollback cbs disk backup.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewDiskBackupRollbackOperation(ctx, "operation", &Cbs.DiskBackupRollbackOperationArgs{
			DiskBackupId: pulumi.String("dbp-xxx"),
			DiskId:       pulumi.String("disk-xxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDiskBackupRollbackOperation added in v0.1.3

func GetDiskBackupRollbackOperation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DiskBackupRollbackOperationState, opts ...pulumi.ResourceOption) (*DiskBackupRollbackOperation, error)

GetDiskBackupRollbackOperation gets an existing DiskBackupRollbackOperation resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDiskBackupRollbackOperation added in v0.1.3

func NewDiskBackupRollbackOperation(ctx *pulumi.Context,
	name string, args *DiskBackupRollbackOperationArgs, opts ...pulumi.ResourceOption) (*DiskBackupRollbackOperation, error)

NewDiskBackupRollbackOperation registers a new resource with the given unique name, arguments, and options.

func (*DiskBackupRollbackOperation) ElementType added in v0.1.3

func (*DiskBackupRollbackOperation) ElementType() reflect.Type

func (*DiskBackupRollbackOperation) ToDiskBackupRollbackOperationOutput added in v0.1.3

func (i *DiskBackupRollbackOperation) ToDiskBackupRollbackOperationOutput() DiskBackupRollbackOperationOutput

func (*DiskBackupRollbackOperation) ToDiskBackupRollbackOperationOutputWithContext added in v0.1.3

func (i *DiskBackupRollbackOperation) ToDiskBackupRollbackOperationOutputWithContext(ctx context.Context) DiskBackupRollbackOperationOutput

type DiskBackupRollbackOperationArgs added in v0.1.3

type DiskBackupRollbackOperationArgs struct {
	// Cloud disk backup point ID.
	DiskBackupId pulumi.StringInput
	// Cloud disk backup point original cloud disk ID.
	DiskId pulumi.StringInput
}

The set of arguments for constructing a DiskBackupRollbackOperation resource.

func (DiskBackupRollbackOperationArgs) ElementType added in v0.1.3

type DiskBackupRollbackOperationArray added in v0.1.3

type DiskBackupRollbackOperationArray []DiskBackupRollbackOperationInput

func (DiskBackupRollbackOperationArray) ElementType added in v0.1.3

func (DiskBackupRollbackOperationArray) ToDiskBackupRollbackOperationArrayOutput added in v0.1.3

func (i DiskBackupRollbackOperationArray) ToDiskBackupRollbackOperationArrayOutput() DiskBackupRollbackOperationArrayOutput

func (DiskBackupRollbackOperationArray) ToDiskBackupRollbackOperationArrayOutputWithContext added in v0.1.3

func (i DiskBackupRollbackOperationArray) ToDiskBackupRollbackOperationArrayOutputWithContext(ctx context.Context) DiskBackupRollbackOperationArrayOutput

type DiskBackupRollbackOperationArrayInput added in v0.1.3

type DiskBackupRollbackOperationArrayInput interface {
	pulumi.Input

	ToDiskBackupRollbackOperationArrayOutput() DiskBackupRollbackOperationArrayOutput
	ToDiskBackupRollbackOperationArrayOutputWithContext(context.Context) DiskBackupRollbackOperationArrayOutput
}

DiskBackupRollbackOperationArrayInput is an input type that accepts DiskBackupRollbackOperationArray and DiskBackupRollbackOperationArrayOutput values. You can construct a concrete instance of `DiskBackupRollbackOperationArrayInput` via:

DiskBackupRollbackOperationArray{ DiskBackupRollbackOperationArgs{...} }

type DiskBackupRollbackOperationArrayOutput added in v0.1.3

type DiskBackupRollbackOperationArrayOutput struct{ *pulumi.OutputState }

func (DiskBackupRollbackOperationArrayOutput) ElementType added in v0.1.3

func (DiskBackupRollbackOperationArrayOutput) Index added in v0.1.3

func (DiskBackupRollbackOperationArrayOutput) ToDiskBackupRollbackOperationArrayOutput added in v0.1.3

func (o DiskBackupRollbackOperationArrayOutput) ToDiskBackupRollbackOperationArrayOutput() DiskBackupRollbackOperationArrayOutput

func (DiskBackupRollbackOperationArrayOutput) ToDiskBackupRollbackOperationArrayOutputWithContext added in v0.1.3

func (o DiskBackupRollbackOperationArrayOutput) ToDiskBackupRollbackOperationArrayOutputWithContext(ctx context.Context) DiskBackupRollbackOperationArrayOutput

type DiskBackupRollbackOperationInput added in v0.1.3

type DiskBackupRollbackOperationInput interface {
	pulumi.Input

	ToDiskBackupRollbackOperationOutput() DiskBackupRollbackOperationOutput
	ToDiskBackupRollbackOperationOutputWithContext(ctx context.Context) DiskBackupRollbackOperationOutput
}

type DiskBackupRollbackOperationMap added in v0.1.3

type DiskBackupRollbackOperationMap map[string]DiskBackupRollbackOperationInput

func (DiskBackupRollbackOperationMap) ElementType added in v0.1.3

func (DiskBackupRollbackOperationMap) ToDiskBackupRollbackOperationMapOutput added in v0.1.3

func (i DiskBackupRollbackOperationMap) ToDiskBackupRollbackOperationMapOutput() DiskBackupRollbackOperationMapOutput

func (DiskBackupRollbackOperationMap) ToDiskBackupRollbackOperationMapOutputWithContext added in v0.1.3

func (i DiskBackupRollbackOperationMap) ToDiskBackupRollbackOperationMapOutputWithContext(ctx context.Context) DiskBackupRollbackOperationMapOutput

type DiskBackupRollbackOperationMapInput added in v0.1.3

type DiskBackupRollbackOperationMapInput interface {
	pulumi.Input

	ToDiskBackupRollbackOperationMapOutput() DiskBackupRollbackOperationMapOutput
	ToDiskBackupRollbackOperationMapOutputWithContext(context.Context) DiskBackupRollbackOperationMapOutput
}

DiskBackupRollbackOperationMapInput is an input type that accepts DiskBackupRollbackOperationMap and DiskBackupRollbackOperationMapOutput values. You can construct a concrete instance of `DiskBackupRollbackOperationMapInput` via:

DiskBackupRollbackOperationMap{ "key": DiskBackupRollbackOperationArgs{...} }

type DiskBackupRollbackOperationMapOutput added in v0.1.3

type DiskBackupRollbackOperationMapOutput struct{ *pulumi.OutputState }

func (DiskBackupRollbackOperationMapOutput) ElementType added in v0.1.3

func (DiskBackupRollbackOperationMapOutput) MapIndex added in v0.1.3

func (DiskBackupRollbackOperationMapOutput) ToDiskBackupRollbackOperationMapOutput added in v0.1.3

func (o DiskBackupRollbackOperationMapOutput) ToDiskBackupRollbackOperationMapOutput() DiskBackupRollbackOperationMapOutput

func (DiskBackupRollbackOperationMapOutput) ToDiskBackupRollbackOperationMapOutputWithContext added in v0.1.3

func (o DiskBackupRollbackOperationMapOutput) ToDiskBackupRollbackOperationMapOutputWithContext(ctx context.Context) DiskBackupRollbackOperationMapOutput

type DiskBackupRollbackOperationOutput added in v0.1.3

type DiskBackupRollbackOperationOutput struct{ *pulumi.OutputState }

func (DiskBackupRollbackOperationOutput) DiskBackupId added in v0.1.3

Cloud disk backup point ID.

func (DiskBackupRollbackOperationOutput) DiskId added in v0.1.3

Cloud disk backup point original cloud disk ID.

func (DiskBackupRollbackOperationOutput) ElementType added in v0.1.3

func (DiskBackupRollbackOperationOutput) IsRollbackCompleted added in v0.1.3

func (o DiskBackupRollbackOperationOutput) IsRollbackCompleted() pulumi.BoolOutput

Whether the rollback is completed. `true` meaing rollback completed, `false` meaning still rollbacking.

func (DiskBackupRollbackOperationOutput) ToDiskBackupRollbackOperationOutput added in v0.1.3

func (o DiskBackupRollbackOperationOutput) ToDiskBackupRollbackOperationOutput() DiskBackupRollbackOperationOutput

func (DiskBackupRollbackOperationOutput) ToDiskBackupRollbackOperationOutputWithContext added in v0.1.3

func (o DiskBackupRollbackOperationOutput) ToDiskBackupRollbackOperationOutputWithContext(ctx context.Context) DiskBackupRollbackOperationOutput

type DiskBackupRollbackOperationState added in v0.1.3

type DiskBackupRollbackOperationState struct {
	// Cloud disk backup point ID.
	DiskBackupId pulumi.StringPtrInput
	// Cloud disk backup point original cloud disk ID.
	DiskId pulumi.StringPtrInput
	// Whether the rollback is completed. `true` meaing rollback completed, `false` meaning still rollbacking.
	IsRollbackCompleted pulumi.BoolPtrInput
}

func (DiskBackupRollbackOperationState) ElementType added in v0.1.3

type DiskBackupState added in v0.1.3

type DiskBackupState struct {
	// Backup point name.
	DiskBackupName pulumi.StringPtrInput
	// ID of the original cloud disk of the backup point, which can be queried through the DescribeDisks API.
	DiskId pulumi.StringPtrInput
}

func (DiskBackupState) ElementType added in v0.1.3

func (DiskBackupState) ElementType() reflect.Type

type GetSnapshotPoliciesArgs

type GetSnapshotPoliciesArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the snapshot policy to be queried.
	SnapshotPolicyId *string `pulumi:"snapshotPolicyId"`
	// Name of the snapshot policy to be queried.
	SnapshotPolicyName *string `pulumi:"snapshotPolicyName"`
}

A collection of arguments for invoking getSnapshotPolicies.

type GetSnapshotPoliciesOutputArgs

type GetSnapshotPoliciesOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the snapshot policy to be queried.
	SnapshotPolicyId pulumi.StringPtrInput `pulumi:"snapshotPolicyId"`
	// Name of the snapshot policy to be queried.
	SnapshotPolicyName pulumi.StringPtrInput `pulumi:"snapshotPolicyName"`
}

A collection of arguments for invoking getSnapshotPolicies.

func (GetSnapshotPoliciesOutputArgs) ElementType

type GetSnapshotPoliciesResult

type GetSnapshotPoliciesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id               string  `pulumi:"id"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the snapshot policy.
	SnapshotPolicyId *string `pulumi:"snapshotPolicyId"`
	// A list of snapshot policy. Each element contains the following attributes:
	SnapshotPolicyLists []GetSnapshotPoliciesSnapshotPolicyList `pulumi:"snapshotPolicyLists"`
	// Name of the snapshot policy.
	SnapshotPolicyName *string `pulumi:"snapshotPolicyName"`
}

A collection of values returned by getSnapshotPolicies.

func GetSnapshotPolicies

func GetSnapshotPolicies(ctx *pulumi.Context, args *GetSnapshotPoliciesArgs, opts ...pulumi.InvokeOption) (*GetSnapshotPoliciesResult, error)

Use this data source to query detailed information of CBS snapshot policies.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.GetSnapshotPolicies(ctx, &cbs.GetSnapshotPoliciesArgs{
			SnapshotPolicyId:   pulumi.StringRef("snap-f3io7adt"),
			SnapshotPolicyName: pulumi.StringRef("test"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSnapshotPoliciesResultOutput

type GetSnapshotPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSnapshotPolicies.

func (GetSnapshotPoliciesResultOutput) ElementType

func (GetSnapshotPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSnapshotPoliciesResultOutput) ResultOutputFile

func (GetSnapshotPoliciesResultOutput) SnapshotPolicyId

ID of the snapshot policy.

func (GetSnapshotPoliciesResultOutput) SnapshotPolicyLists

A list of snapshot policy. Each element contains the following attributes:

func (GetSnapshotPoliciesResultOutput) SnapshotPolicyName

Name of the snapshot policy.

func (GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutput

func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutput() GetSnapshotPoliciesResultOutput

func (GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutputWithContext

func (o GetSnapshotPoliciesResultOutput) ToGetSnapshotPoliciesResultOutputWithContext(ctx context.Context) GetSnapshotPoliciesResultOutput

type GetSnapshotPoliciesSnapshotPolicyList

type GetSnapshotPoliciesSnapshotPolicyList struct {
	// Storage IDs that the snapshot policy attached.
	AttachedStorageIds []string `pulumi:"attachedStorageIds"`
	// Create time of the snapshot policy.
	CreateTime string `pulumi:"createTime"`
	// Trigger hours of periodic snapshot.
	RepeatHours []int `pulumi:"repeatHours"`
	// Trigger days of periodic snapshot.
	RepeatWeekdays []int `pulumi:"repeatWeekdays"`
	// Retention days of the snapshot.
	RetentionDays int `pulumi:"retentionDays"`
	// ID of the snapshot policy to be queried.
	SnapshotPolicyId string `pulumi:"snapshotPolicyId"`
	// Name of the snapshot policy to be queried.
	SnapshotPolicyName string `pulumi:"snapshotPolicyName"`
	// Status of the snapshot policy.
	Status string `pulumi:"status"`
}

type GetSnapshotPoliciesSnapshotPolicyListArgs

type GetSnapshotPoliciesSnapshotPolicyListArgs struct {
	// Storage IDs that the snapshot policy attached.
	AttachedStorageIds pulumi.StringArrayInput `pulumi:"attachedStorageIds"`
	// Create time of the snapshot policy.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Trigger hours of periodic snapshot.
	RepeatHours pulumi.IntArrayInput `pulumi:"repeatHours"`
	// Trigger days of periodic snapshot.
	RepeatWeekdays pulumi.IntArrayInput `pulumi:"repeatWeekdays"`
	// Retention days of the snapshot.
	RetentionDays pulumi.IntInput `pulumi:"retentionDays"`
	// ID of the snapshot policy to be queried.
	SnapshotPolicyId pulumi.StringInput `pulumi:"snapshotPolicyId"`
	// Name of the snapshot policy to be queried.
	SnapshotPolicyName pulumi.StringInput `pulumi:"snapshotPolicyName"`
	// Status of the snapshot policy.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetSnapshotPoliciesSnapshotPolicyListArgs) ElementType

func (GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutput

func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput

func (GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext

func (i GetSnapshotPoliciesSnapshotPolicyListArgs) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput

type GetSnapshotPoliciesSnapshotPolicyListArray

type GetSnapshotPoliciesSnapshotPolicyListArray []GetSnapshotPoliciesSnapshotPolicyListInput

func (GetSnapshotPoliciesSnapshotPolicyListArray) ElementType

func (GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput

func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput

func (GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext

func (i GetSnapshotPoliciesSnapshotPolicyListArray) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput

type GetSnapshotPoliciesSnapshotPolicyListArrayInput

type GetSnapshotPoliciesSnapshotPolicyListArrayInput interface {
	pulumi.Input

	ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput
	ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput
}

GetSnapshotPoliciesSnapshotPolicyListArrayInput is an input type that accepts GetSnapshotPoliciesSnapshotPolicyListArray and GetSnapshotPoliciesSnapshotPolicyListArrayOutput values. You can construct a concrete instance of `GetSnapshotPoliciesSnapshotPolicyListArrayInput` via:

GetSnapshotPoliciesSnapshotPolicyListArray{ GetSnapshotPoliciesSnapshotPolicyListArgs{...} }

type GetSnapshotPoliciesSnapshotPolicyListArrayOutput

type GetSnapshotPoliciesSnapshotPolicyListArrayOutput struct{ *pulumi.OutputState }

func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ElementType

func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) Index

func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput

func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutput() GetSnapshotPoliciesSnapshotPolicyListArrayOutput

func (GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext

func (o GetSnapshotPoliciesSnapshotPolicyListArrayOutput) ToGetSnapshotPoliciesSnapshotPolicyListArrayOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListArrayOutput

type GetSnapshotPoliciesSnapshotPolicyListInput

type GetSnapshotPoliciesSnapshotPolicyListInput interface {
	pulumi.Input

	ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput
	ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput
}

GetSnapshotPoliciesSnapshotPolicyListInput is an input type that accepts GetSnapshotPoliciesSnapshotPolicyListArgs and GetSnapshotPoliciesSnapshotPolicyListOutput values. You can construct a concrete instance of `GetSnapshotPoliciesSnapshotPolicyListInput` via:

GetSnapshotPoliciesSnapshotPolicyListArgs{...}

type GetSnapshotPoliciesSnapshotPolicyListOutput

type GetSnapshotPoliciesSnapshotPolicyListOutput struct{ *pulumi.OutputState }

func (GetSnapshotPoliciesSnapshotPolicyListOutput) AttachedStorageIds

Storage IDs that the snapshot policy attached.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) CreateTime

Create time of the snapshot policy.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) ElementType

func (GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatHours

Trigger hours of periodic snapshot.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) RepeatWeekdays

Trigger days of periodic snapshot.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) RetentionDays

Retention days of the snapshot.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyId

ID of the snapshot policy to be queried.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) SnapshotPolicyName

Name of the snapshot policy to be queried.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) Status

Status of the snapshot policy.

func (GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutput

func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutput() GetSnapshotPoliciesSnapshotPolicyListOutput

func (GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext

func (o GetSnapshotPoliciesSnapshotPolicyListOutput) ToGetSnapshotPoliciesSnapshotPolicyListOutputWithContext(ctx context.Context) GetSnapshotPoliciesSnapshotPolicyListOutput

type GetSnapshotsArgs

type GetSnapshotsArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// ID of the project within the snapshot.
	ProjectId *int `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the snapshot to be queried.
	SnapshotId *string `pulumi:"snapshotId"`
	// Name of the snapshot to be queried.
	SnapshotName *string `pulumi:"snapshotName"`
	// ID of the the CBS which this snapshot created from.
	StorageId *string `pulumi:"storageId"`
	// Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.
	StorageUsage *string `pulumi:"storageUsage"`
}

A collection of arguments for invoking getSnapshots.

type GetSnapshotsOutputArgs

type GetSnapshotsOutputArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"`
	// ID of the project within the snapshot.
	ProjectId pulumi.IntPtrInput `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the snapshot to be queried.
	SnapshotId pulumi.StringPtrInput `pulumi:"snapshotId"`
	// Name of the snapshot to be queried.
	SnapshotName pulumi.StringPtrInput `pulumi:"snapshotName"`
	// ID of the the CBS which this snapshot created from.
	StorageId pulumi.StringPtrInput `pulumi:"storageId"`
	// Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.
	StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"`
}

A collection of arguments for invoking getSnapshots.

func (GetSnapshotsOutputArgs) ElementType

func (GetSnapshotsOutputArgs) ElementType() reflect.Type

type GetSnapshotsResult

type GetSnapshotsResult struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the project within the snapshot.
	ProjectId        *int    `pulumi:"projectId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the snapshot.
	SnapshotId *string `pulumi:"snapshotId"`
	// A list of snapshot. Each element contains the following attributes:
	SnapshotLists []GetSnapshotsSnapshotList `pulumi:"snapshotLists"`
	// Name of the snapshot.
	SnapshotName *string `pulumi:"snapshotName"`
	// ID of the the CBS which this snapshot created from.
	StorageId *string `pulumi:"storageId"`
	// Types of CBS which this snapshot created from.
	StorageUsage *string `pulumi:"storageUsage"`
}

A collection of values returned by getSnapshots.

func GetSnapshots

func GetSnapshots(ctx *pulumi.Context, args *GetSnapshotsArgs, opts ...pulumi.InvokeOption) (*GetSnapshotsResult, error)

Use this data source to query detailed information of CBS snapshots.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.GetSnapshots(ctx, &cbs.GetSnapshotsArgs{
			ResultOutputFile: pulumi.StringRef("mytestpath"),
			SnapshotId:       pulumi.StringRef("snap-f3io7adt"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSnapshotsResultOutput

type GetSnapshotsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSnapshots.

func (GetSnapshotsResultOutput) AvailabilityZone

func (o GetSnapshotsResultOutput) AvailabilityZone() pulumi.StringPtrOutput

The available zone that the CBS instance locates at.

func (GetSnapshotsResultOutput) ElementType

func (GetSnapshotsResultOutput) ElementType() reflect.Type

func (GetSnapshotsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetSnapshotsResultOutput) ProjectId

ID of the project within the snapshot.

func (GetSnapshotsResultOutput) ResultOutputFile

func (o GetSnapshotsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetSnapshotsResultOutput) SnapshotId

ID of the snapshot.

func (GetSnapshotsResultOutput) SnapshotLists

A list of snapshot. Each element contains the following attributes:

func (GetSnapshotsResultOutput) SnapshotName

Name of the snapshot.

func (GetSnapshotsResultOutput) StorageId

ID of the the CBS which this snapshot created from.

func (GetSnapshotsResultOutput) StorageUsage

Types of CBS which this snapshot created from.

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutput

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutput() GetSnapshotsResultOutput

func (GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext

func (o GetSnapshotsResultOutput) ToGetSnapshotsResultOutputWithContext(ctx context.Context) GetSnapshotsResultOutput

type GetSnapshotsSnapshotList

type GetSnapshotsSnapshotList struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone string `pulumi:"availabilityZone"`
	// Creation time of snapshot.
	CreateTime string `pulumi:"createTime"`
	// Indicates whether the snapshot is encrypted.
	Encrypt bool `pulumi:"encrypt"`
	// Snapshot creation progress percentage.
	Percent int `pulumi:"percent"`
	// ID of the project within the snapshot.
	ProjectId int `pulumi:"projectId"`
	// ID of the snapshot to be queried.
	SnapshotId string `pulumi:"snapshotId"`
	// Name of the snapshot to be queried.
	SnapshotName string `pulumi:"snapshotName"`
	// ID of the the CBS which this snapshot created from.
	StorageId string `pulumi:"storageId"`
	// Volume of storage which this snapshot created from.
	StorageSize int `pulumi:"storageSize"`
	// Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.
	StorageUsage string `pulumi:"storageUsage"`
}

type GetSnapshotsSnapshotListArgs

type GetSnapshotsSnapshotListArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	// Creation time of snapshot.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Indicates whether the snapshot is encrypted.
	Encrypt pulumi.BoolInput `pulumi:"encrypt"`
	// Snapshot creation progress percentage.
	Percent pulumi.IntInput `pulumi:"percent"`
	// ID of the project within the snapshot.
	ProjectId pulumi.IntInput `pulumi:"projectId"`
	// ID of the snapshot to be queried.
	SnapshotId pulumi.StringInput `pulumi:"snapshotId"`
	// Name of the snapshot to be queried.
	SnapshotName pulumi.StringInput `pulumi:"snapshotName"`
	// ID of the the CBS which this snapshot created from.
	StorageId pulumi.StringInput `pulumi:"storageId"`
	// Volume of storage which this snapshot created from.
	StorageSize pulumi.IntInput `pulumi:"storageSize"`
	// Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.
	StorageUsage pulumi.StringInput `pulumi:"storageUsage"`
}

func (GetSnapshotsSnapshotListArgs) ElementType

func (GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutput

func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput

func (GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutputWithContext

func (i GetSnapshotsSnapshotListArgs) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput

type GetSnapshotsSnapshotListArray

type GetSnapshotsSnapshotListArray []GetSnapshotsSnapshotListInput

func (GetSnapshotsSnapshotListArray) ElementType

func (GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutput

func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput

func (GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutputWithContext

func (i GetSnapshotsSnapshotListArray) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput

type GetSnapshotsSnapshotListArrayInput

type GetSnapshotsSnapshotListArrayInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput
	ToGetSnapshotsSnapshotListArrayOutputWithContext(context.Context) GetSnapshotsSnapshotListArrayOutput
}

GetSnapshotsSnapshotListArrayInput is an input type that accepts GetSnapshotsSnapshotListArray and GetSnapshotsSnapshotListArrayOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotListArrayInput` via:

GetSnapshotsSnapshotListArray{ GetSnapshotsSnapshotListArgs{...} }

type GetSnapshotsSnapshotListArrayOutput

type GetSnapshotsSnapshotListArrayOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotListArrayOutput) ElementType

func (GetSnapshotsSnapshotListArrayOutput) Index

func (GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutput

func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutput() GetSnapshotsSnapshotListArrayOutput

func (GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutputWithContext

func (o GetSnapshotsSnapshotListArrayOutput) ToGetSnapshotsSnapshotListArrayOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListArrayOutput

type GetSnapshotsSnapshotListInput

type GetSnapshotsSnapshotListInput interface {
	pulumi.Input

	ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput
	ToGetSnapshotsSnapshotListOutputWithContext(context.Context) GetSnapshotsSnapshotListOutput
}

GetSnapshotsSnapshotListInput is an input type that accepts GetSnapshotsSnapshotListArgs and GetSnapshotsSnapshotListOutput values. You can construct a concrete instance of `GetSnapshotsSnapshotListInput` via:

GetSnapshotsSnapshotListArgs{...}

type GetSnapshotsSnapshotListOutput

type GetSnapshotsSnapshotListOutput struct{ *pulumi.OutputState }

func (GetSnapshotsSnapshotListOutput) AvailabilityZone

func (o GetSnapshotsSnapshotListOutput) AvailabilityZone() pulumi.StringOutput

The available zone that the CBS instance locates at.

func (GetSnapshotsSnapshotListOutput) CreateTime

Creation time of snapshot.

func (GetSnapshotsSnapshotListOutput) ElementType

func (GetSnapshotsSnapshotListOutput) Encrypt

Indicates whether the snapshot is encrypted.

func (GetSnapshotsSnapshotListOutput) Percent

Snapshot creation progress percentage.

func (GetSnapshotsSnapshotListOutput) ProjectId

ID of the project within the snapshot.

func (GetSnapshotsSnapshotListOutput) SnapshotId

ID of the snapshot to be queried.

func (GetSnapshotsSnapshotListOutput) SnapshotName

Name of the snapshot to be queried.

func (GetSnapshotsSnapshotListOutput) StorageId

ID of the the CBS which this snapshot created from.

func (GetSnapshotsSnapshotListOutput) StorageSize

Volume of storage which this snapshot created from.

func (GetSnapshotsSnapshotListOutput) StorageUsage

Types of CBS which this snapshot created from, and available values include SYSTEM_DISK and DATA_DISK.

func (GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutput

func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutput() GetSnapshotsSnapshotListOutput

func (GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutputWithContext

func (o GetSnapshotsSnapshotListOutput) ToGetSnapshotsSnapshotListOutputWithContext(ctx context.Context) GetSnapshotsSnapshotListOutput

type GetStoragesArgs

type GetStoragesArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeTypes []string `pulumi:"chargeTypes"`
	// List filter by attached instance public or private IPs.
	InstanceIps []string `pulumi:"instanceIps"`
	// List filter by attached instance name.
	InstanceNames []string `pulumi:"instanceNames"`
	// Filter by whether the disk is portable (Boolean `true` or `false`).
	Portable *bool `pulumi:"portable"`
	// ID of the project with which the CBS is associated.
	ProjectId *int `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the CBS to be queried.
	StorageId *string `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName *string `pulumi:"storageName"`
	// List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`).
	StorageStates []string `pulumi:"storageStates"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType *string `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage *string `pulumi:"storageUsage"`
	// List filter by tag keys.
	TagKeys []string `pulumi:"tagKeys"`
	// List filter by tag values.
	TagValues []string `pulumi:"tagValues"`
}

A collection of arguments for invoking getStorages.

type GetStoragesOutputArgs

type GetStoragesOutputArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeTypes pulumi.StringArrayInput `pulumi:"chargeTypes"`
	// List filter by attached instance public or private IPs.
	InstanceIps pulumi.StringArrayInput `pulumi:"instanceIps"`
	// List filter by attached instance name.
	InstanceNames pulumi.StringArrayInput `pulumi:"instanceNames"`
	// Filter by whether the disk is portable (Boolean `true` or `false`).
	Portable pulumi.BoolPtrInput `pulumi:"portable"`
	// ID of the project with which the CBS is associated.
	ProjectId pulumi.IntPtrInput `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the CBS to be queried.
	StorageId pulumi.StringPtrInput `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName pulumi.StringPtrInput `pulumi:"storageName"`
	// List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`).
	StorageStates pulumi.StringArrayInput `pulumi:"storageStates"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType pulumi.StringPtrInput `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"`
	// List filter by tag keys.
	TagKeys pulumi.StringArrayInput `pulumi:"tagKeys"`
	// List filter by tag values.
	TagValues pulumi.StringArrayInput `pulumi:"tagValues"`
}

A collection of arguments for invoking getStorages.

func (GetStoragesOutputArgs) ElementType

func (GetStoragesOutputArgs) ElementType() reflect.Type

type GetStoragesResult

type GetStoragesResult struct {
	// The zone of CBS.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// Pay type of the CBS instance.
	ChargeTypes []string `pulumi:"chargeTypes"`
	// The provider-assigned unique ID for this managed resource.
	Id            string   `pulumi:"id"`
	InstanceIps   []string `pulumi:"instanceIps"`
	InstanceNames []string `pulumi:"instanceNames"`
	Portable      *bool    `pulumi:"portable"`
	// ID of the project.
	ProjectId        *int    `pulumi:"projectId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of CBS.
	StorageId *string `pulumi:"storageId"`
	// A list of storage. Each element contains the following attributes:
	StorageLists []GetStoragesStorageList `pulumi:"storageLists"`
	// Name of CBS.
	StorageName   *string  `pulumi:"storageName"`
	StorageStates []string `pulumi:"storageStates"`
	// Types of storage medium.
	StorageType *string `pulumi:"storageType"`
	// Types of CBS.
	StorageUsage *string  `pulumi:"storageUsage"`
	TagKeys      []string `pulumi:"tagKeys"`
	TagValues    []string `pulumi:"tagValues"`
}

A collection of values returned by getStorages.

func GetStorages

func GetStorages(ctx *pulumi.Context, args *GetStoragesArgs, opts ...pulumi.InvokeOption) (*GetStoragesResult, error)

Use this data source to query detailed information of CBS storages.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.GetStorages(ctx, &cbs.GetStoragesArgs{
			ResultOutputFile: pulumi.StringRef("mytestpath"),
			StorageId:        pulumi.StringRef("disk-kdt0sq6m"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### The following snippet shows the new supported query params

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.GetStorages(ctx, &cbs.GetStoragesArgs{
			ChargeTypes: []string{
				"POSTPAID_BY_HOUR",
				"PREPAID",
			},
			InstanceIps: []string{
				"10.0.0.2",
			},
			InstanceNames: []string{
				"my-instance",
			},
			Portable: pulumi.BoolRef(true),
			StorageStates: []string{
				"ATTACHED",
			},
			TagKeys: []string{
				"foo",
			},
			TagValues: []string{
				"bar",
				"baz",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStoragesResultOutput

type GetStoragesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStorages.

func (GetStoragesResultOutput) AvailabilityZone

func (o GetStoragesResultOutput) AvailabilityZone() pulumi.StringPtrOutput

The zone of CBS.

func (GetStoragesResultOutput) ChargeTypes

Pay type of the CBS instance.

func (GetStoragesResultOutput) ElementType

func (GetStoragesResultOutput) ElementType() reflect.Type

func (GetStoragesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetStoragesResultOutput) InstanceIps

func (GetStoragesResultOutput) InstanceNames

func (GetStoragesResultOutput) Portable

func (GetStoragesResultOutput) ProjectId

ID of the project.

func (GetStoragesResultOutput) ResultOutputFile

func (o GetStoragesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetStoragesResultOutput) StorageId

ID of CBS.

func (GetStoragesResultOutput) StorageLists

A list of storage. Each element contains the following attributes:

func (GetStoragesResultOutput) StorageName

Name of CBS.

func (GetStoragesResultOutput) StorageStates

func (GetStoragesResultOutput) StorageType

Types of storage medium.

func (GetStoragesResultOutput) StorageUsage

Types of CBS.

func (GetStoragesResultOutput) TagKeys

func (GetStoragesResultOutput) TagValues

func (GetStoragesResultOutput) ToGetStoragesResultOutput

func (o GetStoragesResultOutput) ToGetStoragesResultOutput() GetStoragesResultOutput

func (GetStoragesResultOutput) ToGetStoragesResultOutputWithContext

func (o GetStoragesResultOutput) ToGetStoragesResultOutputWithContext(ctx context.Context) GetStoragesResultOutput

type GetStoragesSetArgs

type GetStoragesSetArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeTypes []string `pulumi:"chargeTypes"`
	// List filter by attached instance public or private IPs.
	InstanceIps []string `pulumi:"instanceIps"`
	// List filter by attached instance name.
	InstanceNames []string `pulumi:"instanceNames"`
	// Filter by whether the disk is portable (Boolean `true` or `false`).
	Portable *bool `pulumi:"portable"`
	// ID of the project with which the CBS is associated.
	ProjectId *int `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the CBS to be queried.
	StorageId *string `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName *string `pulumi:"storageName"`
	// List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`).
	StorageStates []string `pulumi:"storageStates"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType *string `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage *string `pulumi:"storageUsage"`
	// List filter by tag keys.
	TagKeys []string `pulumi:"tagKeys"`
	// List filter by tag values.
	TagValues []string `pulumi:"tagValues"`
}

A collection of arguments for invoking getStoragesSet.

type GetStoragesSetOutputArgs

type GetStoragesSetOutputArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeTypes pulumi.StringArrayInput `pulumi:"chargeTypes"`
	// List filter by attached instance public or private IPs.
	InstanceIps pulumi.StringArrayInput `pulumi:"instanceIps"`
	// List filter by attached instance name.
	InstanceNames pulumi.StringArrayInput `pulumi:"instanceNames"`
	// Filter by whether the disk is portable (Boolean `true` or `false`).
	Portable pulumi.BoolPtrInput `pulumi:"portable"`
	// ID of the project with which the CBS is associated.
	ProjectId pulumi.IntPtrInput `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the CBS to be queried.
	StorageId pulumi.StringPtrInput `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName pulumi.StringPtrInput `pulumi:"storageName"`
	// List filter by disk state (`UNATTACHED` | `ATTACHING` | `ATTACHED` | `DETACHING` | `EXPANDING` | `ROLLBACKING` | `TORECYCLE`).
	StorageStates pulumi.StringArrayInput `pulumi:"storageStates"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType pulumi.StringPtrInput `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage pulumi.StringPtrInput `pulumi:"storageUsage"`
	// List filter by tag keys.
	TagKeys pulumi.StringArrayInput `pulumi:"tagKeys"`
	// List filter by tag values.
	TagValues pulumi.StringArrayInput `pulumi:"tagValues"`
}

A collection of arguments for invoking getStoragesSet.

func (GetStoragesSetOutputArgs) ElementType

func (GetStoragesSetOutputArgs) ElementType() reflect.Type

type GetStoragesSetResult

type GetStoragesSetResult struct {
	// The zone of CBS.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// Pay type of the CBS instance.
	ChargeTypes []string `pulumi:"chargeTypes"`
	// The provider-assigned unique ID for this managed resource.
	Id            string   `pulumi:"id"`
	InstanceIps   []string `pulumi:"instanceIps"`
	InstanceNames []string `pulumi:"instanceNames"`
	Portable      *bool    `pulumi:"portable"`
	// ID of the project.
	ProjectId        *int    `pulumi:"projectId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of CBS.
	StorageId *string `pulumi:"storageId"`
	// A list of storage. Each element contains the following attributes:
	StorageLists []GetStoragesSetStorageList `pulumi:"storageLists"`
	// Name of CBS.
	StorageName   *string  `pulumi:"storageName"`
	StorageStates []string `pulumi:"storageStates"`
	// Types of storage medium.
	StorageType *string `pulumi:"storageType"`
	// Types of CBS.
	StorageUsage *string  `pulumi:"storageUsage"`
	TagKeys      []string `pulumi:"tagKeys"`
	TagValues    []string `pulumi:"tagValues"`
}

A collection of values returned by getStoragesSet.

func GetStoragesSet

func GetStoragesSet(ctx *pulumi.Context, args *GetStoragesSetArgs, opts ...pulumi.InvokeOption) (*GetStoragesSetResult, error)

Use this data source to query detailed information of CBS storages in parallel.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.GetStoragesSet(ctx, &cbs.GetStoragesSetArgs{
			AvailabilityZone: pulumi.StringRef("ap-guangzhou-3"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetStoragesSetResultOutput

type GetStoragesSetResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getStoragesSet.

func (GetStoragesSetResultOutput) AvailabilityZone

func (o GetStoragesSetResultOutput) AvailabilityZone() pulumi.StringPtrOutput

The zone of CBS.

func (GetStoragesSetResultOutput) ChargeTypes

Pay type of the CBS instance.

func (GetStoragesSetResultOutput) ElementType

func (GetStoragesSetResultOutput) ElementType() reflect.Type

func (GetStoragesSetResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetStoragesSetResultOutput) InstanceIps

func (GetStoragesSetResultOutput) InstanceNames

func (GetStoragesSetResultOutput) Portable

func (GetStoragesSetResultOutput) ProjectId

ID of the project.

func (GetStoragesSetResultOutput) ResultOutputFile

func (o GetStoragesSetResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetStoragesSetResultOutput) StorageId

ID of CBS.

func (GetStoragesSetResultOutput) StorageLists

A list of storage. Each element contains the following attributes:

func (GetStoragesSetResultOutput) StorageName

Name of CBS.

func (GetStoragesSetResultOutput) StorageStates

func (GetStoragesSetResultOutput) StorageType

Types of storage medium.

func (GetStoragesSetResultOutput) StorageUsage

Types of CBS.

func (GetStoragesSetResultOutput) TagKeys

func (GetStoragesSetResultOutput) TagValues

func (GetStoragesSetResultOutput) ToGetStoragesSetResultOutput

func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutput() GetStoragesSetResultOutput

func (GetStoragesSetResultOutput) ToGetStoragesSetResultOutputWithContext

func (o GetStoragesSetResultOutput) ToGetStoragesSetResultOutputWithContext(ctx context.Context) GetStoragesSetResultOutput

type GetStoragesSetStorageList

type GetStoragesSetStorageList struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached bool `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone string `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeType string `pulumi:"chargeType"`
	// Creation time of CBS.
	CreateTime string `pulumi:"createTime"`
	// Indicates whether CBS is encrypted.
	Encrypt bool `pulumi:"encrypt"`
	// ID of the CVM instance that be mounted by this CBS.
	InstanceId string `pulumi:"instanceId"`
	// The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
	PrepaidRenewFlag string `pulumi:"prepaidRenewFlag"`
	// ID of the project with which the CBS is associated.
	ProjectId int `pulumi:"projectId"`
	// Status of CBS.
	Status string `pulumi:"status"`
	// ID of the CBS to be queried.
	StorageId string `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName string `pulumi:"storageName"`
	// Volume of CBS.
	StorageSize int `pulumi:"storageSize"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType string `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage string `pulumi:"storageUsage"`
	// The available tags within this CBS.
	Tags map[string]interface{} `pulumi:"tags"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance int `pulumi:"throughputPerformance"`
}

type GetStoragesSetStorageListArgs

type GetStoragesSetStorageListArgs struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolInput `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeType pulumi.StringInput `pulumi:"chargeType"`
	// Creation time of CBS.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolInput `pulumi:"encrypt"`
	// ID of the CVM instance that be mounted by this CBS.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
	PrepaidRenewFlag pulumi.StringInput `pulumi:"prepaidRenewFlag"`
	// ID of the project with which the CBS is associated.
	ProjectId pulumi.IntInput `pulumi:"projectId"`
	// Status of CBS.
	Status pulumi.StringInput `pulumi:"status"`
	// ID of the CBS to be queried.
	StorageId pulumi.StringInput `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName pulumi.StringInput `pulumi:"storageName"`
	// Volume of CBS.
	StorageSize pulumi.IntInput `pulumi:"storageSize"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType pulumi.StringInput `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage pulumi.StringInput `pulumi:"storageUsage"`
	// The available tags within this CBS.
	Tags pulumi.MapInput `pulumi:"tags"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntInput `pulumi:"throughputPerformance"`
}

func (GetStoragesSetStorageListArgs) ElementType

func (GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutput

func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput

func (GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutputWithContext

func (i GetStoragesSetStorageListArgs) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput

type GetStoragesSetStorageListArray

type GetStoragesSetStorageListArray []GetStoragesSetStorageListInput

func (GetStoragesSetStorageListArray) ElementType

func (GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutput

func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput

func (GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutputWithContext

func (i GetStoragesSetStorageListArray) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput

type GetStoragesSetStorageListArrayInput

type GetStoragesSetStorageListArrayInput interface {
	pulumi.Input

	ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput
	ToGetStoragesSetStorageListArrayOutputWithContext(context.Context) GetStoragesSetStorageListArrayOutput
}

GetStoragesSetStorageListArrayInput is an input type that accepts GetStoragesSetStorageListArray and GetStoragesSetStorageListArrayOutput values. You can construct a concrete instance of `GetStoragesSetStorageListArrayInput` via:

GetStoragesSetStorageListArray{ GetStoragesSetStorageListArgs{...} }

type GetStoragesSetStorageListArrayOutput

type GetStoragesSetStorageListArrayOutput struct{ *pulumi.OutputState }

func (GetStoragesSetStorageListArrayOutput) ElementType

func (GetStoragesSetStorageListArrayOutput) Index

func (GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutput

func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutput() GetStoragesSetStorageListArrayOutput

func (GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutputWithContext

func (o GetStoragesSetStorageListArrayOutput) ToGetStoragesSetStorageListArrayOutputWithContext(ctx context.Context) GetStoragesSetStorageListArrayOutput

type GetStoragesSetStorageListInput

type GetStoragesSetStorageListInput interface {
	pulumi.Input

	ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput
	ToGetStoragesSetStorageListOutputWithContext(context.Context) GetStoragesSetStorageListOutput
}

GetStoragesSetStorageListInput is an input type that accepts GetStoragesSetStorageListArgs and GetStoragesSetStorageListOutput values. You can construct a concrete instance of `GetStoragesSetStorageListInput` via:

GetStoragesSetStorageListArgs{...}

type GetStoragesSetStorageListOutput

type GetStoragesSetStorageListOutput struct{ *pulumi.OutputState }

func (GetStoragesSetStorageListOutput) Attached

Indicates whether the CBS is mounted the CVM.

func (GetStoragesSetStorageListOutput) AvailabilityZone

The available zone that the CBS instance locates at.

func (GetStoragesSetStorageListOutput) ChargeType

List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).

func (GetStoragesSetStorageListOutput) CreateTime

Creation time of CBS.

func (GetStoragesSetStorageListOutput) ElementType

func (GetStoragesSetStorageListOutput) Encrypt

Indicates whether CBS is encrypted.

func (GetStoragesSetStorageListOutput) InstanceId

ID of the CVM instance that be mounted by this CBS.

func (GetStoragesSetStorageListOutput) PrepaidRenewFlag

The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.

func (GetStoragesSetStorageListOutput) ProjectId

ID of the project with which the CBS is associated.

func (GetStoragesSetStorageListOutput) Status

Status of CBS.

func (GetStoragesSetStorageListOutput) StorageId

ID of the CBS to be queried.

func (GetStoragesSetStorageListOutput) StorageName

Name of the CBS to be queried.

func (GetStoragesSetStorageListOutput) StorageSize

Volume of CBS.

func (GetStoragesSetStorageListOutput) StorageType

Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).

func (GetStoragesSetStorageListOutput) StorageUsage

Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).

func (GetStoragesSetStorageListOutput) Tags

The available tags within this CBS.

func (GetStoragesSetStorageListOutput) ThroughputPerformance

func (o GetStoragesSetStorageListOutput) ThroughputPerformance() pulumi.IntOutput

Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.

func (GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutput

func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutput() GetStoragesSetStorageListOutput

func (GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutputWithContext

func (o GetStoragesSetStorageListOutput) ToGetStoragesSetStorageListOutputWithContext(ctx context.Context) GetStoragesSetStorageListOutput

type GetStoragesStorageList

type GetStoragesStorageList struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached bool `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone string `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeType string `pulumi:"chargeType"`
	// Creation time of CBS.
	CreateTime string `pulumi:"createTime"`
	// Indicates whether CBS is encrypted.
	Encrypt bool `pulumi:"encrypt"`
	// ID of the CVM instance that be mounted by this CBS.
	InstanceId string `pulumi:"instanceId"`
	// The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
	PrepaidRenewFlag string `pulumi:"prepaidRenewFlag"`
	// ID of the project with which the CBS is associated.
	ProjectId int `pulumi:"projectId"`
	// Status of CBS.
	Status string `pulumi:"status"`
	// ID of the CBS to be queried.
	StorageId string `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName string `pulumi:"storageName"`
	// Volume of CBS.
	StorageSize int `pulumi:"storageSize"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType string `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage string `pulumi:"storageUsage"`
	// The available tags within this CBS.
	Tags map[string]interface{} `pulumi:"tags"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance int `pulumi:"throughputPerformance"`
}

type GetStoragesStorageListArgs

type GetStoragesStorageListArgs struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolInput `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	// List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).
	ChargeType pulumi.StringInput `pulumi:"chargeType"`
	// Creation time of CBS.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolInput `pulumi:"encrypt"`
	// ID of the CVM instance that be mounted by this CBS.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.
	PrepaidRenewFlag pulumi.StringInput `pulumi:"prepaidRenewFlag"`
	// ID of the project with which the CBS is associated.
	ProjectId pulumi.IntInput `pulumi:"projectId"`
	// Status of CBS.
	Status pulumi.StringInput `pulumi:"status"`
	// ID of the CBS to be queried.
	StorageId pulumi.StringInput `pulumi:"storageId"`
	// Name of the CBS to be queried.
	StorageName pulumi.StringInput `pulumi:"storageName"`
	// Volume of CBS.
	StorageSize pulumi.IntInput `pulumi:"storageSize"`
	// Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).
	StorageType pulumi.StringInput `pulumi:"storageType"`
	// Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).
	StorageUsage pulumi.StringInput `pulumi:"storageUsage"`
	// The available tags within this CBS.
	Tags pulumi.MapInput `pulumi:"tags"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntInput `pulumi:"throughputPerformance"`
}

func (GetStoragesStorageListArgs) ElementType

func (GetStoragesStorageListArgs) ElementType() reflect.Type

func (GetStoragesStorageListArgs) ToGetStoragesStorageListOutput

func (i GetStoragesStorageListArgs) ToGetStoragesStorageListOutput() GetStoragesStorageListOutput

func (GetStoragesStorageListArgs) ToGetStoragesStorageListOutputWithContext

func (i GetStoragesStorageListArgs) ToGetStoragesStorageListOutputWithContext(ctx context.Context) GetStoragesStorageListOutput

type GetStoragesStorageListArray

type GetStoragesStorageListArray []GetStoragesStorageListInput

func (GetStoragesStorageListArray) ElementType

func (GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutput

func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput

func (GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutputWithContext

func (i GetStoragesStorageListArray) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput

type GetStoragesStorageListArrayInput

type GetStoragesStorageListArrayInput interface {
	pulumi.Input

	ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput
	ToGetStoragesStorageListArrayOutputWithContext(context.Context) GetStoragesStorageListArrayOutput
}

GetStoragesStorageListArrayInput is an input type that accepts GetStoragesStorageListArray and GetStoragesStorageListArrayOutput values. You can construct a concrete instance of `GetStoragesStorageListArrayInput` via:

GetStoragesStorageListArray{ GetStoragesStorageListArgs{...} }

type GetStoragesStorageListArrayOutput

type GetStoragesStorageListArrayOutput struct{ *pulumi.OutputState }

func (GetStoragesStorageListArrayOutput) ElementType

func (GetStoragesStorageListArrayOutput) Index

func (GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutput

func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutput() GetStoragesStorageListArrayOutput

func (GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutputWithContext

func (o GetStoragesStorageListArrayOutput) ToGetStoragesStorageListArrayOutputWithContext(ctx context.Context) GetStoragesStorageListArrayOutput

type GetStoragesStorageListInput

type GetStoragesStorageListInput interface {
	pulumi.Input

	ToGetStoragesStorageListOutput() GetStoragesStorageListOutput
	ToGetStoragesStorageListOutputWithContext(context.Context) GetStoragesStorageListOutput
}

GetStoragesStorageListInput is an input type that accepts GetStoragesStorageListArgs and GetStoragesStorageListOutput values. You can construct a concrete instance of `GetStoragesStorageListInput` via:

GetStoragesStorageListArgs{...}

type GetStoragesStorageListOutput

type GetStoragesStorageListOutput struct{ *pulumi.OutputState }

func (GetStoragesStorageListOutput) Attached

Indicates whether the CBS is mounted the CVM.

func (GetStoragesStorageListOutput) AvailabilityZone

func (o GetStoragesStorageListOutput) AvailabilityZone() pulumi.StringOutput

The available zone that the CBS instance locates at.

func (GetStoragesStorageListOutput) ChargeType

List filter by disk charge type (`POSTPAID_BY_HOUR` | `PREPAID`).

func (GetStoragesStorageListOutput) CreateTime

Creation time of CBS.

func (GetStoragesStorageListOutput) ElementType

func (GetStoragesStorageListOutput) Encrypt

Indicates whether CBS is encrypted.

func (GetStoragesStorageListOutput) InstanceId

ID of the CVM instance that be mounted by this CBS.

func (GetStoragesStorageListOutput) PrepaidRenewFlag

func (o GetStoragesStorageListOutput) PrepaidRenewFlag() pulumi.StringOutput

The way that CBS instance will be renew automatically or not when it reach the end of the prepaid tenancy.

func (GetStoragesStorageListOutput) ProjectId

ID of the project with which the CBS is associated.

func (GetStoragesStorageListOutput) Status

Status of CBS.

func (GetStoragesStorageListOutput) StorageId

ID of the CBS to be queried.

func (GetStoragesStorageListOutput) StorageName

Name of the CBS to be queried.

func (GetStoragesStorageListOutput) StorageSize

Volume of CBS.

func (GetStoragesStorageListOutput) StorageType

Filter by cloud disk media type (`CLOUD_BASIC`: HDD cloud disk | `CLOUD_PREMIUM`: Premium Cloud Storage | `CLOUD_SSD`: SSD cloud disk).

func (GetStoragesStorageListOutput) StorageUsage

Filter by cloud disk type (`SYSTEM_DISK`: system disk | `DATA_DISK`: data disk).

func (GetStoragesStorageListOutput) Tags

The available tags within this CBS.

func (GetStoragesStorageListOutput) ThroughputPerformance

func (o GetStoragesStorageListOutput) ThroughputPerformance() pulumi.IntOutput

Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.

func (GetStoragesStorageListOutput) ToGetStoragesStorageListOutput

func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutput() GetStoragesStorageListOutput

func (GetStoragesStorageListOutput) ToGetStoragesStorageListOutputWithContext

func (o GetStoragesStorageListOutput) ToGetStoragesStorageListOutputWithContext(ctx context.Context) GetStoragesStorageListOutput

type Snapshot

type Snapshot struct {
	pulumi.CustomResourceState

	// Creation time of snapshot.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Types of CBS which this snapshot created from.
	DiskType pulumi.StringOutput `pulumi:"diskType"`
	// Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100.
	Percent pulumi.IntOutput `pulumi:"percent"`
	// Name of the snapshot.
	SnapshotName pulumi.StringOutput `pulumi:"snapshotName"`
	// Status of the snapshot.
	SnapshotStatus pulumi.StringOutput `pulumi:"snapshotStatus"`
	// ID of the the CBS which this snapshot created from.
	StorageId pulumi.StringOutput `pulumi:"storageId"`
	// Volume of storage which this snapshot created from.
	StorageSize pulumi.IntOutput `pulumi:"storageSize"`
	// cbs snapshot do not support tag now. The available tags within this CBS Snapshot.
	//
	// Deprecated: cbs snapshot do not support tag now.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a resource to create a CBS snapshot.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewSnapshot(ctx, "snapshot", &Cbs.SnapshotArgs{
			SnapshotName: pulumi.String("unnamed"),
			StorageId:    pulumi.String("disk-kdt0sq6m"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CBS snapshot can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/snapshot:Snapshot snapshot snap-3sa3f39b

```

func GetSnapshot

func GetSnapshot(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotState, opts ...pulumi.ResourceOption) (*Snapshot, error)

GetSnapshot gets an existing Snapshot resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshot

func NewSnapshot(ctx *pulumi.Context,
	name string, args *SnapshotArgs, opts ...pulumi.ResourceOption) (*Snapshot, error)

NewSnapshot registers a new resource with the given unique name, arguments, and options.

func (*Snapshot) ElementType

func (*Snapshot) ElementType() reflect.Type

func (*Snapshot) ToSnapshotOutput

func (i *Snapshot) ToSnapshotOutput() SnapshotOutput

func (*Snapshot) ToSnapshotOutputWithContext

func (i *Snapshot) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotArgs

type SnapshotArgs struct {
	// Name of the snapshot.
	SnapshotName pulumi.StringInput
	// ID of the the CBS which this snapshot created from.
	StorageId pulumi.StringInput
	// cbs snapshot do not support tag now. The available tags within this CBS Snapshot.
	//
	// Deprecated: cbs snapshot do not support tag now.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Snapshot resource.

func (SnapshotArgs) ElementType

func (SnapshotArgs) ElementType() reflect.Type

type SnapshotArray

type SnapshotArray []SnapshotInput

func (SnapshotArray) ElementType

func (SnapshotArray) ElementType() reflect.Type

func (SnapshotArray) ToSnapshotArrayOutput

func (i SnapshotArray) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArray) ToSnapshotArrayOutputWithContext

func (i SnapshotArray) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotArrayInput

type SnapshotArrayInput interface {
	pulumi.Input

	ToSnapshotArrayOutput() SnapshotArrayOutput
	ToSnapshotArrayOutputWithContext(context.Context) SnapshotArrayOutput
}

SnapshotArrayInput is an input type that accepts SnapshotArray and SnapshotArrayOutput values. You can construct a concrete instance of `SnapshotArrayInput` via:

SnapshotArray{ SnapshotArgs{...} }

type SnapshotArrayOutput

type SnapshotArrayOutput struct{ *pulumi.OutputState }

func (SnapshotArrayOutput) ElementType

func (SnapshotArrayOutput) ElementType() reflect.Type

func (SnapshotArrayOutput) Index

func (SnapshotArrayOutput) ToSnapshotArrayOutput

func (o SnapshotArrayOutput) ToSnapshotArrayOutput() SnapshotArrayOutput

func (SnapshotArrayOutput) ToSnapshotArrayOutputWithContext

func (o SnapshotArrayOutput) ToSnapshotArrayOutputWithContext(ctx context.Context) SnapshotArrayOutput

type SnapshotInput

type SnapshotInput interface {
	pulumi.Input

	ToSnapshotOutput() SnapshotOutput
	ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput
}

type SnapshotMap

type SnapshotMap map[string]SnapshotInput

func (SnapshotMap) ElementType

func (SnapshotMap) ElementType() reflect.Type

func (SnapshotMap) ToSnapshotMapOutput

func (i SnapshotMap) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMap) ToSnapshotMapOutputWithContext

func (i SnapshotMap) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotMapInput

type SnapshotMapInput interface {
	pulumi.Input

	ToSnapshotMapOutput() SnapshotMapOutput
	ToSnapshotMapOutputWithContext(context.Context) SnapshotMapOutput
}

SnapshotMapInput is an input type that accepts SnapshotMap and SnapshotMapOutput values. You can construct a concrete instance of `SnapshotMapInput` via:

SnapshotMap{ "key": SnapshotArgs{...} }

type SnapshotMapOutput

type SnapshotMapOutput struct{ *pulumi.OutputState }

func (SnapshotMapOutput) ElementType

func (SnapshotMapOutput) ElementType() reflect.Type

func (SnapshotMapOutput) MapIndex

func (SnapshotMapOutput) ToSnapshotMapOutput

func (o SnapshotMapOutput) ToSnapshotMapOutput() SnapshotMapOutput

func (SnapshotMapOutput) ToSnapshotMapOutputWithContext

func (o SnapshotMapOutput) ToSnapshotMapOutputWithContext(ctx context.Context) SnapshotMapOutput

type SnapshotOutput

type SnapshotOutput struct{ *pulumi.OutputState }

func (SnapshotOutput) CreateTime

func (o SnapshotOutput) CreateTime() pulumi.StringOutput

Creation time of snapshot.

func (SnapshotOutput) DiskType

func (o SnapshotOutput) DiskType() pulumi.StringOutput

Types of CBS which this snapshot created from.

func (SnapshotOutput) ElementType

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) Percent

func (o SnapshotOutput) Percent() pulumi.IntOutput

Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100.

func (SnapshotOutput) SnapshotName

func (o SnapshotOutput) SnapshotName() pulumi.StringOutput

Name of the snapshot.

func (SnapshotOutput) SnapshotStatus

func (o SnapshotOutput) SnapshotStatus() pulumi.StringOutput

Status of the snapshot.

func (SnapshotOutput) StorageId

func (o SnapshotOutput) StorageId() pulumi.StringOutput

ID of the the CBS which this snapshot created from.

func (SnapshotOutput) StorageSize

func (o SnapshotOutput) StorageSize() pulumi.IntOutput

Volume of storage which this snapshot created from.

func (SnapshotOutput) Tags deprecated added in v0.1.3

func (o SnapshotOutput) Tags() pulumi.MapOutput

cbs snapshot do not support tag now. The available tags within this CBS Snapshot.

Deprecated: cbs snapshot do not support tag now.

func (SnapshotOutput) ToSnapshotOutput

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext

func (o SnapshotOutput) ToSnapshotOutputWithContext(ctx context.Context) SnapshotOutput

type SnapshotPolicy

type SnapshotPolicy struct {
	pulumi.CustomResourceState

	// Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on.
	RepeatHours pulumi.IntArrayOutput `pulumi:"repeatHours"`
	// Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday.
	RepeatWeekdays pulumi.IntArrayOutput `pulumi:"repeatWeekdays"`
	// Retention days of the snapshot, and the default value is 7.
	RetentionDays pulumi.IntPtrOutput `pulumi:"retentionDays"`
	// Name of snapshot policy. The maximum length can not exceed 60 bytes.
	SnapshotPolicyName pulumi.StringOutput `pulumi:"snapshotPolicyName"`
}

Provides a snapshot policy resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewSnapshotPolicy(ctx, "snapshotPolicy", &Cbs.SnapshotPolicyArgs{
			RepeatHours: pulumi.IntArray{
				pulumi.Int(1),
			},
			RepeatWeekdays: pulumi.IntArray{
				pulumi.Int(1),
				pulumi.Int(4),
			},
			RetentionDays:      pulumi.Int(7),
			SnapshotPolicyName: pulumi.String("mysnapshotpolicyname"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CBS snapshot policy can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/snapshotPolicy:SnapshotPolicy snapshot_policy asp-jliex1tn

```

func GetSnapshotPolicy

func GetSnapshotPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotPolicyState, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error)

GetSnapshotPolicy gets an existing SnapshotPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshotPolicy

func NewSnapshotPolicy(ctx *pulumi.Context,
	name string, args *SnapshotPolicyArgs, opts ...pulumi.ResourceOption) (*SnapshotPolicy, error)

NewSnapshotPolicy registers a new resource with the given unique name, arguments, and options.

func (*SnapshotPolicy) ElementType

func (*SnapshotPolicy) ElementType() reflect.Type

func (*SnapshotPolicy) ToSnapshotPolicyOutput

func (i *SnapshotPolicy) ToSnapshotPolicyOutput() SnapshotPolicyOutput

func (*SnapshotPolicy) ToSnapshotPolicyOutputWithContext

func (i *SnapshotPolicy) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput

type SnapshotPolicyArgs

type SnapshotPolicyArgs struct {
	// Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on.
	RepeatHours pulumi.IntArrayInput
	// Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday.
	RepeatWeekdays pulumi.IntArrayInput
	// Retention days of the snapshot, and the default value is 7.
	RetentionDays pulumi.IntPtrInput
	// Name of snapshot policy. The maximum length can not exceed 60 bytes.
	SnapshotPolicyName pulumi.StringInput
}

The set of arguments for constructing a SnapshotPolicy resource.

func (SnapshotPolicyArgs) ElementType

func (SnapshotPolicyArgs) ElementType() reflect.Type

type SnapshotPolicyArray

type SnapshotPolicyArray []SnapshotPolicyInput

func (SnapshotPolicyArray) ElementType

func (SnapshotPolicyArray) ElementType() reflect.Type

func (SnapshotPolicyArray) ToSnapshotPolicyArrayOutput

func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput

func (SnapshotPolicyArray) ToSnapshotPolicyArrayOutputWithContext

func (i SnapshotPolicyArray) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput

type SnapshotPolicyArrayInput

type SnapshotPolicyArrayInput interface {
	pulumi.Input

	ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput
	ToSnapshotPolicyArrayOutputWithContext(context.Context) SnapshotPolicyArrayOutput
}

SnapshotPolicyArrayInput is an input type that accepts SnapshotPolicyArray and SnapshotPolicyArrayOutput values. You can construct a concrete instance of `SnapshotPolicyArrayInput` via:

SnapshotPolicyArray{ SnapshotPolicyArgs{...} }

type SnapshotPolicyArrayOutput

type SnapshotPolicyArrayOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyArrayOutput) ElementType

func (SnapshotPolicyArrayOutput) ElementType() reflect.Type

func (SnapshotPolicyArrayOutput) Index

func (SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput

func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutput() SnapshotPolicyArrayOutput

func (SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext

func (o SnapshotPolicyArrayOutput) ToSnapshotPolicyArrayOutputWithContext(ctx context.Context) SnapshotPolicyArrayOutput

type SnapshotPolicyAttachment

type SnapshotPolicyAttachment struct {
	pulumi.CustomResourceState

	// ID of CBS snapshot policy.
	SnapshotPolicyId pulumi.StringOutput `pulumi:"snapshotPolicyId"`
	// ID of CBS.
	StorageId pulumi.StringOutput `pulumi:"storageId"`
}

Provides a CBS snapshot policy attachment resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewSnapshotPolicyAttachment(ctx, "foo", &Cbs.SnapshotPolicyAttachmentArgs{
			StorageId:        pulumi.Any(tencentcloud_cbs_storage.Foo.Id),
			SnapshotPolicyId: pulumi.Any(tencentcloud_cbs_snapshot_policy.Policy.Id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetSnapshotPolicyAttachment

func GetSnapshotPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotPolicyAttachmentState, opts ...pulumi.ResourceOption) (*SnapshotPolicyAttachment, error)

GetSnapshotPolicyAttachment gets an existing SnapshotPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshotPolicyAttachment

func NewSnapshotPolicyAttachment(ctx *pulumi.Context,
	name string, args *SnapshotPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*SnapshotPolicyAttachment, error)

NewSnapshotPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*SnapshotPolicyAttachment) ElementType

func (*SnapshotPolicyAttachment) ElementType() reflect.Type

func (*SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutput

func (i *SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput

func (*SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutputWithContext

func (i *SnapshotPolicyAttachment) ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput

type SnapshotPolicyAttachmentArgs

type SnapshotPolicyAttachmentArgs struct {
	// ID of CBS snapshot policy.
	SnapshotPolicyId pulumi.StringInput
	// ID of CBS.
	StorageId pulumi.StringInput
}

The set of arguments for constructing a SnapshotPolicyAttachment resource.

func (SnapshotPolicyAttachmentArgs) ElementType

type SnapshotPolicyAttachmentArray

type SnapshotPolicyAttachmentArray []SnapshotPolicyAttachmentInput

func (SnapshotPolicyAttachmentArray) ElementType

func (SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutput

func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput

func (SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutputWithContext

func (i SnapshotPolicyAttachmentArray) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput

type SnapshotPolicyAttachmentArrayInput

type SnapshotPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput
	ToSnapshotPolicyAttachmentArrayOutputWithContext(context.Context) SnapshotPolicyAttachmentArrayOutput
}

SnapshotPolicyAttachmentArrayInput is an input type that accepts SnapshotPolicyAttachmentArray and SnapshotPolicyAttachmentArrayOutput values. You can construct a concrete instance of `SnapshotPolicyAttachmentArrayInput` via:

SnapshotPolicyAttachmentArray{ SnapshotPolicyAttachmentArgs{...} }

type SnapshotPolicyAttachmentArrayOutput

type SnapshotPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyAttachmentArrayOutput) ElementType

func (SnapshotPolicyAttachmentArrayOutput) Index

func (SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutput

func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutput() SnapshotPolicyAttachmentArrayOutput

func (SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutputWithContext

func (o SnapshotPolicyAttachmentArrayOutput) ToSnapshotPolicyAttachmentArrayOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentArrayOutput

type SnapshotPolicyAttachmentInput

type SnapshotPolicyAttachmentInput interface {
	pulumi.Input

	ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput
	ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput
}

type SnapshotPolicyAttachmentMap

type SnapshotPolicyAttachmentMap map[string]SnapshotPolicyAttachmentInput

func (SnapshotPolicyAttachmentMap) ElementType

func (SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutput

func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput

func (SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutputWithContext

func (i SnapshotPolicyAttachmentMap) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput

type SnapshotPolicyAttachmentMapInput

type SnapshotPolicyAttachmentMapInput interface {
	pulumi.Input

	ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput
	ToSnapshotPolicyAttachmentMapOutputWithContext(context.Context) SnapshotPolicyAttachmentMapOutput
}

SnapshotPolicyAttachmentMapInput is an input type that accepts SnapshotPolicyAttachmentMap and SnapshotPolicyAttachmentMapOutput values. You can construct a concrete instance of `SnapshotPolicyAttachmentMapInput` via:

SnapshotPolicyAttachmentMap{ "key": SnapshotPolicyAttachmentArgs{...} }

type SnapshotPolicyAttachmentMapOutput

type SnapshotPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyAttachmentMapOutput) ElementType

func (SnapshotPolicyAttachmentMapOutput) MapIndex

func (SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutput

func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutput() SnapshotPolicyAttachmentMapOutput

func (SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutputWithContext

func (o SnapshotPolicyAttachmentMapOutput) ToSnapshotPolicyAttachmentMapOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentMapOutput

type SnapshotPolicyAttachmentOutput

type SnapshotPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyAttachmentOutput) ElementType

func (SnapshotPolicyAttachmentOutput) SnapshotPolicyId

func (o SnapshotPolicyAttachmentOutput) SnapshotPolicyId() pulumi.StringOutput

ID of CBS snapshot policy.

func (SnapshotPolicyAttachmentOutput) StorageId

ID of CBS.

func (SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutput

func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutput() SnapshotPolicyAttachmentOutput

func (SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutputWithContext

func (o SnapshotPolicyAttachmentOutput) ToSnapshotPolicyAttachmentOutputWithContext(ctx context.Context) SnapshotPolicyAttachmentOutput

type SnapshotPolicyAttachmentState

type SnapshotPolicyAttachmentState struct {
	// ID of CBS snapshot policy.
	SnapshotPolicyId pulumi.StringPtrInput
	// ID of CBS.
	StorageId pulumi.StringPtrInput
}

func (SnapshotPolicyAttachmentState) ElementType

type SnapshotPolicyInput

type SnapshotPolicyInput interface {
	pulumi.Input

	ToSnapshotPolicyOutput() SnapshotPolicyOutput
	ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput
}

type SnapshotPolicyMap

type SnapshotPolicyMap map[string]SnapshotPolicyInput

func (SnapshotPolicyMap) ElementType

func (SnapshotPolicyMap) ElementType() reflect.Type

func (SnapshotPolicyMap) ToSnapshotPolicyMapOutput

func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput

func (SnapshotPolicyMap) ToSnapshotPolicyMapOutputWithContext

func (i SnapshotPolicyMap) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput

type SnapshotPolicyMapInput

type SnapshotPolicyMapInput interface {
	pulumi.Input

	ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput
	ToSnapshotPolicyMapOutputWithContext(context.Context) SnapshotPolicyMapOutput
}

SnapshotPolicyMapInput is an input type that accepts SnapshotPolicyMap and SnapshotPolicyMapOutput values. You can construct a concrete instance of `SnapshotPolicyMapInput` via:

SnapshotPolicyMap{ "key": SnapshotPolicyArgs{...} }

type SnapshotPolicyMapOutput

type SnapshotPolicyMapOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyMapOutput) ElementType

func (SnapshotPolicyMapOutput) ElementType() reflect.Type

func (SnapshotPolicyMapOutput) MapIndex

func (SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput

func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutput() SnapshotPolicyMapOutput

func (SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext

func (o SnapshotPolicyMapOutput) ToSnapshotPolicyMapOutputWithContext(ctx context.Context) SnapshotPolicyMapOutput

type SnapshotPolicyOutput

type SnapshotPolicyOutput struct{ *pulumi.OutputState }

func (SnapshotPolicyOutput) ElementType

func (SnapshotPolicyOutput) ElementType() reflect.Type

func (SnapshotPolicyOutput) RepeatHours

func (o SnapshotPolicyOutput) RepeatHours() pulumi.IntArrayOutput

Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on.

func (SnapshotPolicyOutput) RepeatWeekdays

func (o SnapshotPolicyOutput) RepeatWeekdays() pulumi.IntArrayOutput

Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday.

func (SnapshotPolicyOutput) RetentionDays

func (o SnapshotPolicyOutput) RetentionDays() pulumi.IntPtrOutput

Retention days of the snapshot, and the default value is 7.

func (SnapshotPolicyOutput) SnapshotPolicyName

func (o SnapshotPolicyOutput) SnapshotPolicyName() pulumi.StringOutput

Name of snapshot policy. The maximum length can not exceed 60 bytes.

func (SnapshotPolicyOutput) ToSnapshotPolicyOutput

func (o SnapshotPolicyOutput) ToSnapshotPolicyOutput() SnapshotPolicyOutput

func (SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext

func (o SnapshotPolicyOutput) ToSnapshotPolicyOutputWithContext(ctx context.Context) SnapshotPolicyOutput

type SnapshotPolicyState

type SnapshotPolicyState struct {
	// Trigger times of periodic snapshot. Valid value ranges: (0~23). The 0 means 00:00, and so on.
	RepeatHours pulumi.IntArrayInput
	// Periodic snapshot is enabled. Valid values: [0, 1, 2, 3, 4, 5, 6]. 0 means Sunday, 1-6 means Monday to Saturday.
	RepeatWeekdays pulumi.IntArrayInput
	// Retention days of the snapshot, and the default value is 7.
	RetentionDays pulumi.IntPtrInput
	// Name of snapshot policy. The maximum length can not exceed 60 bytes.
	SnapshotPolicyName pulumi.StringPtrInput
}

func (SnapshotPolicyState) ElementType

func (SnapshotPolicyState) ElementType() reflect.Type

type SnapshotSharePermission added in v0.1.3

type SnapshotSharePermission struct {
	pulumi.CustomResourceState

	// List of account IDs with which a snapshot is shared. For the format of array-type parameters, see[API Introduction](https://cloud.tencent.com/document/api/213/568). You can find the account ID in[Account Information](https://console.cloud.tencent.com/developer).
	AccountIds pulumi.StringArrayOutput `pulumi:"accountIds"`
	// The ID of the snapshot to be queried. You can obtain this by using [DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647).
	SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
}

Provides a resource to create a cbs snapshotSharePermission

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewSnapshotSharePermission(ctx, "snapshotSharePermission", &Cbs.SnapshotSharePermissionArgs{
			AccountIds: pulumi.StringArray{
				pulumi.String("1xxxxxx"),
				pulumi.String("2xxxxxx"),
			},
			SnapshotId: pulumi.String("snap-xxxxxx"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

cbs snapshot_share_permission can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/snapshotSharePermission:SnapshotSharePermission snapshot_share_permission snap-xxxxxx

```

func GetSnapshotSharePermission added in v0.1.3

func GetSnapshotSharePermission(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnapshotSharePermissionState, opts ...pulumi.ResourceOption) (*SnapshotSharePermission, error)

GetSnapshotSharePermission gets an existing SnapshotSharePermission resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSnapshotSharePermission added in v0.1.3

func NewSnapshotSharePermission(ctx *pulumi.Context,
	name string, args *SnapshotSharePermissionArgs, opts ...pulumi.ResourceOption) (*SnapshotSharePermission, error)

NewSnapshotSharePermission registers a new resource with the given unique name, arguments, and options.

func (*SnapshotSharePermission) ElementType added in v0.1.3

func (*SnapshotSharePermission) ElementType() reflect.Type

func (*SnapshotSharePermission) ToSnapshotSharePermissionOutput added in v0.1.3

func (i *SnapshotSharePermission) ToSnapshotSharePermissionOutput() SnapshotSharePermissionOutput

func (*SnapshotSharePermission) ToSnapshotSharePermissionOutputWithContext added in v0.1.3

func (i *SnapshotSharePermission) ToSnapshotSharePermissionOutputWithContext(ctx context.Context) SnapshotSharePermissionOutput

type SnapshotSharePermissionArgs added in v0.1.3

type SnapshotSharePermissionArgs struct {
	// List of account IDs with which a snapshot is shared. For the format of array-type parameters, see[API Introduction](https://cloud.tencent.com/document/api/213/568). You can find the account ID in[Account Information](https://console.cloud.tencent.com/developer).
	AccountIds pulumi.StringArrayInput
	// The ID of the snapshot to be queried. You can obtain this by using [DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647).
	SnapshotId pulumi.StringInput
}

The set of arguments for constructing a SnapshotSharePermission resource.

func (SnapshotSharePermissionArgs) ElementType added in v0.1.3

type SnapshotSharePermissionArray added in v0.1.3

type SnapshotSharePermissionArray []SnapshotSharePermissionInput

func (SnapshotSharePermissionArray) ElementType added in v0.1.3

func (SnapshotSharePermissionArray) ToSnapshotSharePermissionArrayOutput added in v0.1.3

func (i SnapshotSharePermissionArray) ToSnapshotSharePermissionArrayOutput() SnapshotSharePermissionArrayOutput

func (SnapshotSharePermissionArray) ToSnapshotSharePermissionArrayOutputWithContext added in v0.1.3

func (i SnapshotSharePermissionArray) ToSnapshotSharePermissionArrayOutputWithContext(ctx context.Context) SnapshotSharePermissionArrayOutput

type SnapshotSharePermissionArrayInput added in v0.1.3

type SnapshotSharePermissionArrayInput interface {
	pulumi.Input

	ToSnapshotSharePermissionArrayOutput() SnapshotSharePermissionArrayOutput
	ToSnapshotSharePermissionArrayOutputWithContext(context.Context) SnapshotSharePermissionArrayOutput
}

SnapshotSharePermissionArrayInput is an input type that accepts SnapshotSharePermissionArray and SnapshotSharePermissionArrayOutput values. You can construct a concrete instance of `SnapshotSharePermissionArrayInput` via:

SnapshotSharePermissionArray{ SnapshotSharePermissionArgs{...} }

type SnapshotSharePermissionArrayOutput added in v0.1.3

type SnapshotSharePermissionArrayOutput struct{ *pulumi.OutputState }

func (SnapshotSharePermissionArrayOutput) ElementType added in v0.1.3

func (SnapshotSharePermissionArrayOutput) Index added in v0.1.3

func (SnapshotSharePermissionArrayOutput) ToSnapshotSharePermissionArrayOutput added in v0.1.3

func (o SnapshotSharePermissionArrayOutput) ToSnapshotSharePermissionArrayOutput() SnapshotSharePermissionArrayOutput

func (SnapshotSharePermissionArrayOutput) ToSnapshotSharePermissionArrayOutputWithContext added in v0.1.3

func (o SnapshotSharePermissionArrayOutput) ToSnapshotSharePermissionArrayOutputWithContext(ctx context.Context) SnapshotSharePermissionArrayOutput

type SnapshotSharePermissionInput added in v0.1.3

type SnapshotSharePermissionInput interface {
	pulumi.Input

	ToSnapshotSharePermissionOutput() SnapshotSharePermissionOutput
	ToSnapshotSharePermissionOutputWithContext(ctx context.Context) SnapshotSharePermissionOutput
}

type SnapshotSharePermissionMap added in v0.1.3

type SnapshotSharePermissionMap map[string]SnapshotSharePermissionInput

func (SnapshotSharePermissionMap) ElementType added in v0.1.3

func (SnapshotSharePermissionMap) ElementType() reflect.Type

func (SnapshotSharePermissionMap) ToSnapshotSharePermissionMapOutput added in v0.1.3

func (i SnapshotSharePermissionMap) ToSnapshotSharePermissionMapOutput() SnapshotSharePermissionMapOutput

func (SnapshotSharePermissionMap) ToSnapshotSharePermissionMapOutputWithContext added in v0.1.3

func (i SnapshotSharePermissionMap) ToSnapshotSharePermissionMapOutputWithContext(ctx context.Context) SnapshotSharePermissionMapOutput

type SnapshotSharePermissionMapInput added in v0.1.3

type SnapshotSharePermissionMapInput interface {
	pulumi.Input

	ToSnapshotSharePermissionMapOutput() SnapshotSharePermissionMapOutput
	ToSnapshotSharePermissionMapOutputWithContext(context.Context) SnapshotSharePermissionMapOutput
}

SnapshotSharePermissionMapInput is an input type that accepts SnapshotSharePermissionMap and SnapshotSharePermissionMapOutput values. You can construct a concrete instance of `SnapshotSharePermissionMapInput` via:

SnapshotSharePermissionMap{ "key": SnapshotSharePermissionArgs{...} }

type SnapshotSharePermissionMapOutput added in v0.1.3

type SnapshotSharePermissionMapOutput struct{ *pulumi.OutputState }

func (SnapshotSharePermissionMapOutput) ElementType added in v0.1.3

func (SnapshotSharePermissionMapOutput) MapIndex added in v0.1.3

func (SnapshotSharePermissionMapOutput) ToSnapshotSharePermissionMapOutput added in v0.1.3

func (o SnapshotSharePermissionMapOutput) ToSnapshotSharePermissionMapOutput() SnapshotSharePermissionMapOutput

func (SnapshotSharePermissionMapOutput) ToSnapshotSharePermissionMapOutputWithContext added in v0.1.3

func (o SnapshotSharePermissionMapOutput) ToSnapshotSharePermissionMapOutputWithContext(ctx context.Context) SnapshotSharePermissionMapOutput

type SnapshotSharePermissionOutput added in v0.1.3

type SnapshotSharePermissionOutput struct{ *pulumi.OutputState }

func (SnapshotSharePermissionOutput) AccountIds added in v0.1.3

List of account IDs with which a snapshot is shared. For the format of array-type parameters, see[API Introduction](https://cloud.tencent.com/document/api/213/568). You can find the account ID in[Account Information](https://console.cloud.tencent.com/developer).

func (SnapshotSharePermissionOutput) ElementType added in v0.1.3

func (SnapshotSharePermissionOutput) SnapshotId added in v0.1.3

The ID of the snapshot to be queried. You can obtain this by using [DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647).

func (SnapshotSharePermissionOutput) ToSnapshotSharePermissionOutput added in v0.1.3

func (o SnapshotSharePermissionOutput) ToSnapshotSharePermissionOutput() SnapshotSharePermissionOutput

func (SnapshotSharePermissionOutput) ToSnapshotSharePermissionOutputWithContext added in v0.1.3

func (o SnapshotSharePermissionOutput) ToSnapshotSharePermissionOutputWithContext(ctx context.Context) SnapshotSharePermissionOutput

type SnapshotSharePermissionState added in v0.1.3

type SnapshotSharePermissionState struct {
	// List of account IDs with which a snapshot is shared. For the format of array-type parameters, see[API Introduction](https://cloud.tencent.com/document/api/213/568). You can find the account ID in[Account Information](https://console.cloud.tencent.com/developer).
	AccountIds pulumi.StringArrayInput
	// The ID of the snapshot to be queried. You can obtain this by using [DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647).
	SnapshotId pulumi.StringPtrInput
}

func (SnapshotSharePermissionState) ElementType added in v0.1.3

type SnapshotState

type SnapshotState struct {
	// Creation time of snapshot.
	CreateTime pulumi.StringPtrInput
	// Types of CBS which this snapshot created from.
	DiskType pulumi.StringPtrInput
	// Snapshot creation progress percentage. If the snapshot has created successfully, the constant value is 100.
	Percent pulumi.IntPtrInput
	// Name of the snapshot.
	SnapshotName pulumi.StringPtrInput
	// Status of the snapshot.
	SnapshotStatus pulumi.StringPtrInput
	// ID of the the CBS which this snapshot created from.
	StorageId pulumi.StringPtrInput
	// Volume of storage which this snapshot created from.
	StorageSize pulumi.IntPtrInput
	// cbs snapshot do not support tag now. The available tags within this CBS Snapshot.
	//
	// Deprecated: cbs snapshot do not support tag now.
	Tags pulumi.MapInput
}

func (SnapshotState) ElementType

func (SnapshotState) ElementType() reflect.Type

type Storage

type Storage struct {
	pulumi.CustomResourceState

	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolOutput `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// The quota of backup points of cloud disk.
	DiskBackupQuota pulumi.IntOutput `pulumi:"diskBackupQuota"`
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrOutput `pulumi:"encrypt"`
	// 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.
	ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"`
	// It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].
	//
	// Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	PrepaidPeriod pulumi.IntOutput `pulumi:"prepaidPeriod"`
	// 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 chargeType is set to `PREPAID`.
	PrepaidRenewFlag pulumi.StringOutput `pulumi:"prepaidRenewFlag"`
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringOutput `pulumi:"storageName"`
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntOutput `pulumi:"storageSize"`
	// Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
	StorageStatus pulumi.StringOutput `pulumi:"storageStatus"`
	// 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.
	StorageType pulumi.StringOutput `pulumi:"storageType"`
	// The available tags within this CBS.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrOutput `pulumi:"throughputPerformance"`
}

Provides a resource to create a CBS.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewStorage(ctx, "storage", &Cbs.StorageArgs{
			AvailabilityZone: pulumi.String("ap-guangzhou-3"),
			Encrypt:          pulumi.Bool(false),
			ProjectId:        pulumi.Int(0),
			StorageName:      pulumi.String("mystorage"),
			StorageSize:      pulumi.Int(100),
			StorageType:      pulumi.String("CLOUD_SSD"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CBS storage can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/storage:Storage storage disk-41s6jwy4

```

func GetStorage

func GetStorage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageState, opts ...pulumi.ResourceOption) (*Storage, error)

GetStorage gets an existing Storage resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorage

func NewStorage(ctx *pulumi.Context,
	name string, args *StorageArgs, opts ...pulumi.ResourceOption) (*Storage, error)

NewStorage registers a new resource with the given unique name, arguments, and options.

func (*Storage) ElementType

func (*Storage) ElementType() reflect.Type

func (*Storage) ToStorageOutput

func (i *Storage) ToStorageOutput() StorageOutput

func (*Storage) ToStorageOutputWithContext

func (i *Storage) ToStorageOutputWithContext(ctx context.Context) StorageOutput

type StorageArgs

type StorageArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringInput
	// The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrInput
	// The quota of backup points of cloud disk.
	DiskBackupQuota pulumi.IntPtrInput
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrInput
	// 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.
	ForceDelete pulumi.BoolPtrInput
	// It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].
	//
	// Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead.
	Period pulumi.IntPtrInput
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	PrepaidPeriod pulumi.IntPtrInput
	// 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 chargeType is set to `PREPAID`.
	PrepaidRenewFlag pulumi.StringPtrInput
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringPtrInput
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringInput
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntInput
	// 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.
	StorageType pulumi.StringInput
	// The available tags within this CBS.
	Tags pulumi.MapInput
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrInput
}

The set of arguments for constructing a Storage resource.

func (StorageArgs) ElementType

func (StorageArgs) ElementType() reflect.Type

type StorageArray

type StorageArray []StorageInput

func (StorageArray) ElementType

func (StorageArray) ElementType() reflect.Type

func (StorageArray) ToStorageArrayOutput

func (i StorageArray) ToStorageArrayOutput() StorageArrayOutput

func (StorageArray) ToStorageArrayOutputWithContext

func (i StorageArray) ToStorageArrayOutputWithContext(ctx context.Context) StorageArrayOutput

type StorageArrayInput

type StorageArrayInput interface {
	pulumi.Input

	ToStorageArrayOutput() StorageArrayOutput
	ToStorageArrayOutputWithContext(context.Context) StorageArrayOutput
}

StorageArrayInput is an input type that accepts StorageArray and StorageArrayOutput values. You can construct a concrete instance of `StorageArrayInput` via:

StorageArray{ StorageArgs{...} }

type StorageArrayOutput

type StorageArrayOutput struct{ *pulumi.OutputState }

func (StorageArrayOutput) ElementType

func (StorageArrayOutput) ElementType() reflect.Type

func (StorageArrayOutput) Index

func (StorageArrayOutput) ToStorageArrayOutput

func (o StorageArrayOutput) ToStorageArrayOutput() StorageArrayOutput

func (StorageArrayOutput) ToStorageArrayOutputWithContext

func (o StorageArrayOutput) ToStorageArrayOutputWithContext(ctx context.Context) StorageArrayOutput

type StorageAttachment

type StorageAttachment struct {
	pulumi.CustomResourceState

	// ID of the CVM instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// ID of the mounted CBS.
	StorageId pulumi.StringOutput `pulumi:"storageId"`
}

Provides a CBS storage attachment resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewStorageAttachment(ctx, "attachment", &Cbs.StorageAttachmentArgs{
			InstanceId: pulumi.String("ins-jqlegd42"),
			StorageId:  pulumi.String("disk-kdt0sq6m"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CBS storage attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Cbs/storageAttachment:StorageAttachment attachment disk-41s6jwy4

```

func GetStorageAttachment

func GetStorageAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageAttachmentState, opts ...pulumi.ResourceOption) (*StorageAttachment, error)

GetStorageAttachment gets an existing StorageAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageAttachment

func NewStorageAttachment(ctx *pulumi.Context,
	name string, args *StorageAttachmentArgs, opts ...pulumi.ResourceOption) (*StorageAttachment, error)

NewStorageAttachment registers a new resource with the given unique name, arguments, and options.

func (*StorageAttachment) ElementType

func (*StorageAttachment) ElementType() reflect.Type

func (*StorageAttachment) ToStorageAttachmentOutput

func (i *StorageAttachment) ToStorageAttachmentOutput() StorageAttachmentOutput

func (*StorageAttachment) ToStorageAttachmentOutputWithContext

func (i *StorageAttachment) ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput

type StorageAttachmentArgs

type StorageAttachmentArgs struct {
	// ID of the CVM instance.
	InstanceId pulumi.StringInput
	// ID of the mounted CBS.
	StorageId pulumi.StringInput
}

The set of arguments for constructing a StorageAttachment resource.

func (StorageAttachmentArgs) ElementType

func (StorageAttachmentArgs) ElementType() reflect.Type

type StorageAttachmentArray

type StorageAttachmentArray []StorageAttachmentInput

func (StorageAttachmentArray) ElementType

func (StorageAttachmentArray) ElementType() reflect.Type

func (StorageAttachmentArray) ToStorageAttachmentArrayOutput

func (i StorageAttachmentArray) ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput

func (StorageAttachmentArray) ToStorageAttachmentArrayOutputWithContext

func (i StorageAttachmentArray) ToStorageAttachmentArrayOutputWithContext(ctx context.Context) StorageAttachmentArrayOutput

type StorageAttachmentArrayInput

type StorageAttachmentArrayInput interface {
	pulumi.Input

	ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput
	ToStorageAttachmentArrayOutputWithContext(context.Context) StorageAttachmentArrayOutput
}

StorageAttachmentArrayInput is an input type that accepts StorageAttachmentArray and StorageAttachmentArrayOutput values. You can construct a concrete instance of `StorageAttachmentArrayInput` via:

StorageAttachmentArray{ StorageAttachmentArgs{...} }

type StorageAttachmentArrayOutput

type StorageAttachmentArrayOutput struct{ *pulumi.OutputState }

func (StorageAttachmentArrayOutput) ElementType

func (StorageAttachmentArrayOutput) Index

func (StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutput

func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutput() StorageAttachmentArrayOutput

func (StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutputWithContext

func (o StorageAttachmentArrayOutput) ToStorageAttachmentArrayOutputWithContext(ctx context.Context) StorageAttachmentArrayOutput

type StorageAttachmentInput

type StorageAttachmentInput interface {
	pulumi.Input

	ToStorageAttachmentOutput() StorageAttachmentOutput
	ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput
}

type StorageAttachmentMap

type StorageAttachmentMap map[string]StorageAttachmentInput

func (StorageAttachmentMap) ElementType

func (StorageAttachmentMap) ElementType() reflect.Type

func (StorageAttachmentMap) ToStorageAttachmentMapOutput

func (i StorageAttachmentMap) ToStorageAttachmentMapOutput() StorageAttachmentMapOutput

func (StorageAttachmentMap) ToStorageAttachmentMapOutputWithContext

func (i StorageAttachmentMap) ToStorageAttachmentMapOutputWithContext(ctx context.Context) StorageAttachmentMapOutput

type StorageAttachmentMapInput

type StorageAttachmentMapInput interface {
	pulumi.Input

	ToStorageAttachmentMapOutput() StorageAttachmentMapOutput
	ToStorageAttachmentMapOutputWithContext(context.Context) StorageAttachmentMapOutput
}

StorageAttachmentMapInput is an input type that accepts StorageAttachmentMap and StorageAttachmentMapOutput values. You can construct a concrete instance of `StorageAttachmentMapInput` via:

StorageAttachmentMap{ "key": StorageAttachmentArgs{...} }

type StorageAttachmentMapOutput

type StorageAttachmentMapOutput struct{ *pulumi.OutputState }

func (StorageAttachmentMapOutput) ElementType

func (StorageAttachmentMapOutput) ElementType() reflect.Type

func (StorageAttachmentMapOutput) MapIndex

func (StorageAttachmentMapOutput) ToStorageAttachmentMapOutput

func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutput() StorageAttachmentMapOutput

func (StorageAttachmentMapOutput) ToStorageAttachmentMapOutputWithContext

func (o StorageAttachmentMapOutput) ToStorageAttachmentMapOutputWithContext(ctx context.Context) StorageAttachmentMapOutput

type StorageAttachmentOutput

type StorageAttachmentOutput struct{ *pulumi.OutputState }

func (StorageAttachmentOutput) ElementType

func (StorageAttachmentOutput) ElementType() reflect.Type

func (StorageAttachmentOutput) InstanceId

ID of the CVM instance.

func (StorageAttachmentOutput) StorageId

ID of the mounted CBS.

func (StorageAttachmentOutput) ToStorageAttachmentOutput

func (o StorageAttachmentOutput) ToStorageAttachmentOutput() StorageAttachmentOutput

func (StorageAttachmentOutput) ToStorageAttachmentOutputWithContext

func (o StorageAttachmentOutput) ToStorageAttachmentOutputWithContext(ctx context.Context) StorageAttachmentOutput

type StorageAttachmentState

type StorageAttachmentState struct {
	// ID of the CVM instance.
	InstanceId pulumi.StringPtrInput
	// ID of the mounted CBS.
	StorageId pulumi.StringPtrInput
}

func (StorageAttachmentState) ElementType

func (StorageAttachmentState) ElementType() reflect.Type

type StorageInput

type StorageInput interface {
	pulumi.Input

	ToStorageOutput() StorageOutput
	ToStorageOutputWithContext(ctx context.Context) StorageOutput
}

type StorageMap

type StorageMap map[string]StorageInput

func (StorageMap) ElementType

func (StorageMap) ElementType() reflect.Type

func (StorageMap) ToStorageMapOutput

func (i StorageMap) ToStorageMapOutput() StorageMapOutput

func (StorageMap) ToStorageMapOutputWithContext

func (i StorageMap) ToStorageMapOutputWithContext(ctx context.Context) StorageMapOutput

type StorageMapInput

type StorageMapInput interface {
	pulumi.Input

	ToStorageMapOutput() StorageMapOutput
	ToStorageMapOutputWithContext(context.Context) StorageMapOutput
}

StorageMapInput is an input type that accepts StorageMap and StorageMapOutput values. You can construct a concrete instance of `StorageMapInput` via:

StorageMap{ "key": StorageArgs{...} }

type StorageMapOutput

type StorageMapOutput struct{ *pulumi.OutputState }

func (StorageMapOutput) ElementType

func (StorageMapOutput) ElementType() reflect.Type

func (StorageMapOutput) MapIndex

func (StorageMapOutput) ToStorageMapOutput

func (o StorageMapOutput) ToStorageMapOutput() StorageMapOutput

func (StorageMapOutput) ToStorageMapOutputWithContext

func (o StorageMapOutput) ToStorageMapOutputWithContext(ctx context.Context) StorageMapOutput

type StorageOutput

type StorageOutput struct{ *pulumi.OutputState }

func (StorageOutput) Attached

func (o StorageOutput) Attached() pulumi.BoolOutput

Indicates whether the CBS is mounted the CVM.

func (StorageOutput) AvailabilityZone

func (o StorageOutput) AvailabilityZone() pulumi.StringOutput

The available zone that the CBS instance locates at.

func (StorageOutput) ChargeType

func (o StorageOutput) ChargeType() pulumi.StringPtrOutput

The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`.

func (StorageOutput) DiskBackupQuota added in v0.1.3

func (o StorageOutput) DiskBackupQuota() pulumi.IntOutput

The quota of backup points of cloud disk.

func (StorageOutput) ElementType

func (StorageOutput) ElementType() reflect.Type

func (StorageOutput) Encrypt

func (o StorageOutput) Encrypt() pulumi.BoolPtrOutput

Indicates whether CBS is encrypted.

func (StorageOutput) ForceDelete

func (o StorageOutput) ForceDelete() pulumi.BoolPtrOutput

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.

func (StorageOutput) Period deprecated

func (o StorageOutput) Period() pulumi.IntPtrOutput

It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].

Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead.

func (StorageOutput) PrepaidPeriod

func (o StorageOutput) PrepaidPeriod() pulumi.IntOutput

The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.

func (StorageOutput) PrepaidRenewFlag

func (o StorageOutput) PrepaidRenewFlag() pulumi.StringOutput

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 chargeType is set to `PREPAID`.

func (StorageOutput) ProjectId

func (o StorageOutput) ProjectId() pulumi.IntPtrOutput

ID of the project to which the instance belongs.

func (StorageOutput) SnapshotId

func (o StorageOutput) SnapshotId() pulumi.StringOutput

ID of the snapshot. If specified, created the CBS by this snapshot.

func (StorageOutput) StorageName

func (o StorageOutput) StorageName() pulumi.StringOutput

Name of CBS. The maximum length can not exceed 60 bytes.

func (StorageOutput) StorageSize

func (o StorageOutput) StorageSize() pulumi.IntOutput

Volume of CBS, and unit is GB.

func (StorageOutput) StorageStatus

func (o StorageOutput) StorageStatus() pulumi.StringOutput

Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.

func (StorageOutput) StorageType

func (o StorageOutput) StorageType() pulumi.StringOutput

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.

func (StorageOutput) Tags

func (o StorageOutput) Tags() pulumi.MapOutput

The available tags within this CBS.

func (StorageOutput) ThroughputPerformance

func (o StorageOutput) ThroughputPerformance() pulumi.IntPtrOutput

Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.

func (StorageOutput) ToStorageOutput

func (o StorageOutput) ToStorageOutput() StorageOutput

func (StorageOutput) ToStorageOutputWithContext

func (o StorageOutput) ToStorageOutputWithContext(ctx context.Context) StorageOutput

type StorageSet

type StorageSet struct {
	pulumi.CustomResourceState

	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolOutput `pulumi:"attached"`
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// The number of disks to be purchased. Default 1.
	DiskCount pulumi.IntPtrOutput `pulumi:"diskCount"`
	// disk id list.
	DiskIds pulumi.StringArrayOutput `pulumi:"diskIds"`
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrOutput `pulumi:"encrypt"`
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringOutput `pulumi:"storageName"`
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntOutput `pulumi:"storageSize"`
	// Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
	StorageStatus pulumi.StringOutput `pulumi:"storageStatus"`
	// 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.
	StorageType pulumi.StringOutput `pulumi:"storageType"`
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrOutput `pulumi:"throughputPerformance"`
}

Provides a resource to create CBS set.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewStorageSet(ctx, "storage", &Cbs.StorageSetArgs{
			AvailabilityZone: pulumi.String("ap-guangzhou-3"),
			DiskCount:        pulumi.Int(10),
			Encrypt:          pulumi.Bool(false),
			ProjectId:        pulumi.Int(0),
			StorageName:      pulumi.String("mystorage"),
			StorageSize:      pulumi.Int(100),
			StorageType:      pulumi.String("CLOUD_SSD"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetStorageSet

func GetStorageSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageSetState, opts ...pulumi.ResourceOption) (*StorageSet, error)

GetStorageSet gets an existing StorageSet resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageSet

func NewStorageSet(ctx *pulumi.Context,
	name string, args *StorageSetArgs, opts ...pulumi.ResourceOption) (*StorageSet, error)

NewStorageSet registers a new resource with the given unique name, arguments, and options.

func (*StorageSet) ElementType

func (*StorageSet) ElementType() reflect.Type

func (*StorageSet) ToStorageSetOutput

func (i *StorageSet) ToStorageSetOutput() StorageSetOutput

func (*StorageSet) ToStorageSetOutputWithContext

func (i *StorageSet) ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput

type StorageSetArgs

type StorageSetArgs struct {
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringInput
	// The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrInput
	// The number of disks to be purchased. Default 1.
	DiskCount pulumi.IntPtrInput
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrInput
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringPtrInput
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringInput
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntInput
	// 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.
	StorageType pulumi.StringInput
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrInput
}

The set of arguments for constructing a StorageSet resource.

func (StorageSetArgs) ElementType

func (StorageSetArgs) ElementType() reflect.Type

type StorageSetArray

type StorageSetArray []StorageSetInput

func (StorageSetArray) ElementType

func (StorageSetArray) ElementType() reflect.Type

func (StorageSetArray) ToStorageSetArrayOutput

func (i StorageSetArray) ToStorageSetArrayOutput() StorageSetArrayOutput

func (StorageSetArray) ToStorageSetArrayOutputWithContext

func (i StorageSetArray) ToStorageSetArrayOutputWithContext(ctx context.Context) StorageSetArrayOutput

type StorageSetArrayInput

type StorageSetArrayInput interface {
	pulumi.Input

	ToStorageSetArrayOutput() StorageSetArrayOutput
	ToStorageSetArrayOutputWithContext(context.Context) StorageSetArrayOutput
}

StorageSetArrayInput is an input type that accepts StorageSetArray and StorageSetArrayOutput values. You can construct a concrete instance of `StorageSetArrayInput` via:

StorageSetArray{ StorageSetArgs{...} }

type StorageSetArrayOutput

type StorageSetArrayOutput struct{ *pulumi.OutputState }

func (StorageSetArrayOutput) ElementType

func (StorageSetArrayOutput) ElementType() reflect.Type

func (StorageSetArrayOutput) Index

func (StorageSetArrayOutput) ToStorageSetArrayOutput

func (o StorageSetArrayOutput) ToStorageSetArrayOutput() StorageSetArrayOutput

func (StorageSetArrayOutput) ToStorageSetArrayOutputWithContext

func (o StorageSetArrayOutput) ToStorageSetArrayOutputWithContext(ctx context.Context) StorageSetArrayOutput

type StorageSetAttachment

type StorageSetAttachment struct {
	pulumi.CustomResourceState

	// ID of the CVM instance.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// ID of the mounted CBS.
	StorageId pulumi.StringOutput `pulumi:"storageId"`
}

Provides a CBS storage set attachment resource.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Cbs"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Cbs.NewStorageSetAttachment(ctx, "attachment", &Cbs.StorageSetAttachmentArgs{
			InstanceId: pulumi.String("ins-jqlegd42"),
			StorageId:  pulumi.String("disk-kdt0sq6m"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetStorageSetAttachment

func GetStorageSetAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *StorageSetAttachmentState, opts ...pulumi.ResourceOption) (*StorageSetAttachment, error)

GetStorageSetAttachment gets an existing StorageSetAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewStorageSetAttachment

func NewStorageSetAttachment(ctx *pulumi.Context,
	name string, args *StorageSetAttachmentArgs, opts ...pulumi.ResourceOption) (*StorageSetAttachment, error)

NewStorageSetAttachment registers a new resource with the given unique name, arguments, and options.

func (*StorageSetAttachment) ElementType

func (*StorageSetAttachment) ElementType() reflect.Type

func (*StorageSetAttachment) ToStorageSetAttachmentOutput

func (i *StorageSetAttachment) ToStorageSetAttachmentOutput() StorageSetAttachmentOutput

func (*StorageSetAttachment) ToStorageSetAttachmentOutputWithContext

func (i *StorageSetAttachment) ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput

type StorageSetAttachmentArgs

type StorageSetAttachmentArgs struct {
	// ID of the CVM instance.
	InstanceId pulumi.StringInput
	// ID of the mounted CBS.
	StorageId pulumi.StringInput
}

The set of arguments for constructing a StorageSetAttachment resource.

func (StorageSetAttachmentArgs) ElementType

func (StorageSetAttachmentArgs) ElementType() reflect.Type

type StorageSetAttachmentArray

type StorageSetAttachmentArray []StorageSetAttachmentInput

func (StorageSetAttachmentArray) ElementType

func (StorageSetAttachmentArray) ElementType() reflect.Type

func (StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutput

func (i StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput

func (StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutputWithContext

func (i StorageSetAttachmentArray) ToStorageSetAttachmentArrayOutputWithContext(ctx context.Context) StorageSetAttachmentArrayOutput

type StorageSetAttachmentArrayInput

type StorageSetAttachmentArrayInput interface {
	pulumi.Input

	ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput
	ToStorageSetAttachmentArrayOutputWithContext(context.Context) StorageSetAttachmentArrayOutput
}

StorageSetAttachmentArrayInput is an input type that accepts StorageSetAttachmentArray and StorageSetAttachmentArrayOutput values. You can construct a concrete instance of `StorageSetAttachmentArrayInput` via:

StorageSetAttachmentArray{ StorageSetAttachmentArgs{...} }

type StorageSetAttachmentArrayOutput

type StorageSetAttachmentArrayOutput struct{ *pulumi.OutputState }

func (StorageSetAttachmentArrayOutput) ElementType

func (StorageSetAttachmentArrayOutput) Index

func (StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutput

func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutput() StorageSetAttachmentArrayOutput

func (StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutputWithContext

func (o StorageSetAttachmentArrayOutput) ToStorageSetAttachmentArrayOutputWithContext(ctx context.Context) StorageSetAttachmentArrayOutput

type StorageSetAttachmentInput

type StorageSetAttachmentInput interface {
	pulumi.Input

	ToStorageSetAttachmentOutput() StorageSetAttachmentOutput
	ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput
}

type StorageSetAttachmentMap

type StorageSetAttachmentMap map[string]StorageSetAttachmentInput

func (StorageSetAttachmentMap) ElementType

func (StorageSetAttachmentMap) ElementType() reflect.Type

func (StorageSetAttachmentMap) ToStorageSetAttachmentMapOutput

func (i StorageSetAttachmentMap) ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput

func (StorageSetAttachmentMap) ToStorageSetAttachmentMapOutputWithContext

func (i StorageSetAttachmentMap) ToStorageSetAttachmentMapOutputWithContext(ctx context.Context) StorageSetAttachmentMapOutput

type StorageSetAttachmentMapInput

type StorageSetAttachmentMapInput interface {
	pulumi.Input

	ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput
	ToStorageSetAttachmentMapOutputWithContext(context.Context) StorageSetAttachmentMapOutput
}

StorageSetAttachmentMapInput is an input type that accepts StorageSetAttachmentMap and StorageSetAttachmentMapOutput values. You can construct a concrete instance of `StorageSetAttachmentMapInput` via:

StorageSetAttachmentMap{ "key": StorageSetAttachmentArgs{...} }

type StorageSetAttachmentMapOutput

type StorageSetAttachmentMapOutput struct{ *pulumi.OutputState }

func (StorageSetAttachmentMapOutput) ElementType

func (StorageSetAttachmentMapOutput) MapIndex

func (StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutput

func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutput() StorageSetAttachmentMapOutput

func (StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutputWithContext

func (o StorageSetAttachmentMapOutput) ToStorageSetAttachmentMapOutputWithContext(ctx context.Context) StorageSetAttachmentMapOutput

type StorageSetAttachmentOutput

type StorageSetAttachmentOutput struct{ *pulumi.OutputState }

func (StorageSetAttachmentOutput) ElementType

func (StorageSetAttachmentOutput) ElementType() reflect.Type

func (StorageSetAttachmentOutput) InstanceId

ID of the CVM instance.

func (StorageSetAttachmentOutput) StorageId

ID of the mounted CBS.

func (StorageSetAttachmentOutput) ToStorageSetAttachmentOutput

func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutput() StorageSetAttachmentOutput

func (StorageSetAttachmentOutput) ToStorageSetAttachmentOutputWithContext

func (o StorageSetAttachmentOutput) ToStorageSetAttachmentOutputWithContext(ctx context.Context) StorageSetAttachmentOutput

type StorageSetAttachmentState

type StorageSetAttachmentState struct {
	// ID of the CVM instance.
	InstanceId pulumi.StringPtrInput
	// ID of the mounted CBS.
	StorageId pulumi.StringPtrInput
}

func (StorageSetAttachmentState) ElementType

func (StorageSetAttachmentState) ElementType() reflect.Type

type StorageSetInput

type StorageSetInput interface {
	pulumi.Input

	ToStorageSetOutput() StorageSetOutput
	ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput
}

type StorageSetMap

type StorageSetMap map[string]StorageSetInput

func (StorageSetMap) ElementType

func (StorageSetMap) ElementType() reflect.Type

func (StorageSetMap) ToStorageSetMapOutput

func (i StorageSetMap) ToStorageSetMapOutput() StorageSetMapOutput

func (StorageSetMap) ToStorageSetMapOutputWithContext

func (i StorageSetMap) ToStorageSetMapOutputWithContext(ctx context.Context) StorageSetMapOutput

type StorageSetMapInput

type StorageSetMapInput interface {
	pulumi.Input

	ToStorageSetMapOutput() StorageSetMapOutput
	ToStorageSetMapOutputWithContext(context.Context) StorageSetMapOutput
}

StorageSetMapInput is an input type that accepts StorageSetMap and StorageSetMapOutput values. You can construct a concrete instance of `StorageSetMapInput` via:

StorageSetMap{ "key": StorageSetArgs{...} }

type StorageSetMapOutput

type StorageSetMapOutput struct{ *pulumi.OutputState }

func (StorageSetMapOutput) ElementType

func (StorageSetMapOutput) ElementType() reflect.Type

func (StorageSetMapOutput) MapIndex

func (StorageSetMapOutput) ToStorageSetMapOutput

func (o StorageSetMapOutput) ToStorageSetMapOutput() StorageSetMapOutput

func (StorageSetMapOutput) ToStorageSetMapOutputWithContext

func (o StorageSetMapOutput) ToStorageSetMapOutputWithContext(ctx context.Context) StorageSetMapOutput

type StorageSetOutput

type StorageSetOutput struct{ *pulumi.OutputState }

func (StorageSetOutput) Attached

func (o StorageSetOutput) Attached() pulumi.BoolOutput

Indicates whether the CBS is mounted the CVM.

func (StorageSetOutput) AvailabilityZone

func (o StorageSetOutput) AvailabilityZone() pulumi.StringOutput

The available zone that the CBS instance locates at.

func (StorageSetOutput) ChargeType

func (o StorageSetOutput) ChargeType() pulumi.StringPtrOutput

The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`.

func (StorageSetOutput) DiskCount

func (o StorageSetOutput) DiskCount() pulumi.IntPtrOutput

The number of disks to be purchased. Default 1.

func (StorageSetOutput) DiskIds

disk id list.

func (StorageSetOutput) ElementType

func (StorageSetOutput) ElementType() reflect.Type

func (StorageSetOutput) Encrypt

Indicates whether CBS is encrypted.

func (StorageSetOutput) ProjectId

func (o StorageSetOutput) ProjectId() pulumi.IntPtrOutput

ID of the project to which the instance belongs.

func (StorageSetOutput) SnapshotId

func (o StorageSetOutput) SnapshotId() pulumi.StringOutput

ID of the snapshot. If specified, created the CBS by this snapshot.

func (StorageSetOutput) StorageName

func (o StorageSetOutput) StorageName() pulumi.StringOutput

Name of CBS. The maximum length can not exceed 60 bytes.

func (StorageSetOutput) StorageSize

func (o StorageSetOutput) StorageSize() pulumi.IntOutput

Volume of CBS, and unit is GB.

func (StorageSetOutput) StorageStatus

func (o StorageSetOutput) StorageStatus() pulumi.StringOutput

Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.

func (StorageSetOutput) StorageType

func (o StorageSetOutput) StorageType() pulumi.StringOutput

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.

func (StorageSetOutput) ThroughputPerformance

func (o StorageSetOutput) ThroughputPerformance() pulumi.IntPtrOutput

Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.

func (StorageSetOutput) ToStorageSetOutput

func (o StorageSetOutput) ToStorageSetOutput() StorageSetOutput

func (StorageSetOutput) ToStorageSetOutputWithContext

func (o StorageSetOutput) ToStorageSetOutputWithContext(ctx context.Context) StorageSetOutput

type StorageSetState

type StorageSetState struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolPtrInput
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringPtrInput
	// The charge type of CBS instance. Only support `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrInput
	// The number of disks to be purchased. Default 1.
	DiskCount pulumi.IntPtrInput
	// disk id list.
	DiskIds pulumi.StringArrayInput
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrInput
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringPtrInput
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringPtrInput
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntPtrInput
	// Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
	StorageStatus pulumi.StringPtrInput
	// 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.
	StorageType pulumi.StringPtrInput
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrInput
}

func (StorageSetState) ElementType

func (StorageSetState) ElementType() reflect.Type

type StorageState

type StorageState struct {
	// Indicates whether the CBS is mounted the CVM.
	Attached pulumi.BoolPtrInput
	// The available zone that the CBS instance locates at.
	AvailabilityZone pulumi.StringPtrInput
	// The charge type of CBS instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`. The default is `POSTPAID_BY_HOUR`.
	ChargeType pulumi.StringPtrInput
	// The quota of backup points of cloud disk.
	DiskBackupQuota pulumi.IntPtrInput
	// Indicates whether CBS is encrypted.
	Encrypt pulumi.BoolPtrInput
	// 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.
	ForceDelete pulumi.BoolPtrInput
	// It has been deprecated from version 1.33.0. Set `prepaidPeriod` instead. The purchased usage period of CBS. Valid values: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36].
	//
	// Deprecated: It has been deprecated from version 1.33.0. Set `prepaid_period` instead.
	Period pulumi.IntPtrInput
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when chargeType is set to `PREPAID`. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
	PrepaidPeriod pulumi.IntPtrInput
	// 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 chargeType is set to `PREPAID`.
	PrepaidRenewFlag pulumi.StringPtrInput
	// ID of the project to which the instance belongs.
	ProjectId pulumi.IntPtrInput
	// ID of the snapshot. If specified, created the CBS by this snapshot.
	SnapshotId pulumi.StringPtrInput
	// Name of CBS. The maximum length can not exceed 60 bytes.
	StorageName pulumi.StringPtrInput
	// Volume of CBS, and unit is GB.
	StorageSize pulumi.IntPtrInput
	// Status of CBS. Valid values: UNATTACHED, ATTACHING, ATTACHED, DETACHING, EXPANDING, ROLLBACKING, TORECYCLE and DUMPING.
	StorageStatus pulumi.StringPtrInput
	// 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.
	StorageType pulumi.StringPtrInput
	// The available tags within this CBS.
	Tags pulumi.MapInput
	// Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
	ThroughputPerformance pulumi.IntPtrInput
}

func (StorageState) ElementType

func (StorageState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL