evs

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 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.2

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 GetVolumesArgs

type GetVolumesArgs struct {
	// Specifies the availability zone for the disks.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// Specifies the enterprise project ID for filtering.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// Specifies the region in which to query the disk list.
	// If omitted, the provider-level region will be used.
	Region *string `pulumi:"region"`
	// Specifies the server ID to which the disks are attached.
	ServerId *string `pulumi:"serverId"`
	// Specifies whether the disk is shareable.
	Shareable *bool `pulumi:"shareable"`
	// Specifies the disk status. The valid values are as following:
	// + **FREEZED**
	// + **BIND_ERROR**
	// + **BINDING**
	// + **PENDING_DELETE**
	// + **PENDING_CREATE**
	// + **NOTIFYING**
	// + **NOTIFY_DELETE**
	// + **PENDING_UPDATE**
	// + **DOWN**
	// + **ACTIVE**
	// + **ELB**
	// + **ERROR**
	// + **VPN**
	Status *string `pulumi:"status"`
	// Specifies the included key/value pairs which associated with the desired disk.
	Tags map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getVolumes.

type GetVolumesOutputArgs

type GetVolumesOutputArgs struct {
	// Specifies the availability zone for the disks.
	AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"`
	// Specifies the enterprise project ID for filtering.
	EnterpriseProjectId pulumi.StringPtrInput `pulumi:"enterpriseProjectId"`
	// Specifies the region in which to query the disk list.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringPtrInput `pulumi:"region"`
	// Specifies the server ID to which the disks are attached.
	ServerId pulumi.StringPtrInput `pulumi:"serverId"`
	// Specifies whether the disk is shareable.
	Shareable pulumi.BoolPtrInput `pulumi:"shareable"`
	// Specifies the disk status. The valid values are as following:
	// + **FREEZED**
	// + **BIND_ERROR**
	// + **BINDING**
	// + **PENDING_DELETE**
	// + **PENDING_CREATE**
	// + **NOTIFYING**
	// + **NOTIFY_DELETE**
	// + **PENDING_UPDATE**
	// + **DOWN**
	// + **ACTIVE**
	// + **ELB**
	// + **ERROR**
	// + **VPN**
	Status pulumi.StringPtrInput `pulumi:"status"`
	// Specifies the included key/value pairs which associated with the desired disk.
	Tags pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getVolumes.

func (GetVolumesOutputArgs) ElementType

func (GetVolumesOutputArgs) ElementType() reflect.Type

type GetVolumesResult

type GetVolumesResult struct {
	// The availability zone of the disk.
	AvailabilityZone *string `pulumi:"availabilityZone"`
	// The ID of the enterprise project associated with the disk.
	EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
	// The provider-assigned unique ID for this managed resource.
	Id     string  `pulumi:"id"`
	Region *string `pulumi:"region"`
	// The ID of the server to which the disk is attached.
	ServerId *string `pulumi:"serverId"`
	// Whether the disk is shareable.
	Shareable *bool `pulumi:"shareable"`
	// The disk status.
	Status *string `pulumi:"status"`
	// The disk tags.
	Tags map[string]string `pulumi:"tags"`
	// The detailed information of the disks. Structure is documented below.
	Volumes []GetVolumesVolume `pulumi:"volumes"`
}

A collection of values returned by getVolumes.

func GetVolumes

func GetVolumes(ctx *pulumi.Context, args *GetVolumesArgs, opts ...pulumi.InvokeOption) (*GetVolumesResult, error)

Use this data source to query the detailed information list of the EVS disks within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Evs"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Evs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		targetServer := cfg.RequireObject("targetServer")
		_, err := Evs.GetVolumes(ctx, &evs.GetVolumesArgs{
			ServerId: pulumi.StringRef(targetServer),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetVolumesResultOutput

type GetVolumesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVolumes.

func (GetVolumesResultOutput) AvailabilityZone

func (o GetVolumesResultOutput) AvailabilityZone() pulumi.StringPtrOutput

The availability zone of the disk.

func (GetVolumesResultOutput) ElementType

func (GetVolumesResultOutput) ElementType() reflect.Type

func (GetVolumesResultOutput) EnterpriseProjectId

func (o GetVolumesResultOutput) EnterpriseProjectId() pulumi.StringPtrOutput

The ID of the enterprise project associated with the disk.

func (GetVolumesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVolumesResultOutput) Region

func (GetVolumesResultOutput) ServerId

The ID of the server to which the disk is attached.

func (GetVolumesResultOutput) Shareable

Whether the disk is shareable.

func (GetVolumesResultOutput) Status

The disk status.

func (GetVolumesResultOutput) Tags

The disk tags.

func (GetVolumesResultOutput) ToGetVolumesResultOutput

func (o GetVolumesResultOutput) ToGetVolumesResultOutput() GetVolumesResultOutput

func (GetVolumesResultOutput) ToGetVolumesResultOutputWithContext

func (o GetVolumesResultOutput) ToGetVolumesResultOutputWithContext(ctx context.Context) GetVolumesResultOutput

func (GetVolumesResultOutput) Volumes

The detailed information of the disks. Structure is documented below.

type GetVolumesVolume

type GetVolumesVolume struct {
	// The disk attachment information. Structure is documented below.
	Attachments []GetVolumesVolumeAttachment `pulumi:"attachments"`
	// Specifies the availability zone for the disks.
	AvailabilityZone string `pulumi:"availabilityZone"`
	// Whether the disk is bootable.
	Bootable bool `pulumi:"bootable"`
	// The time when the disk was created.
	CreateAt string `pulumi:"createAt"`
	// The disk description.
	Description string `pulumi:"description"`
	// Specifies the enterprise project ID for filtering.
	EnterpriseProjectId string `pulumi:"enterpriseProjectId"`
	// The ID of the attached resource in UUID format.
	Id string `pulumi:"id"`
	// The disk name.
	Name string `pulumi:"name"`
	// The service type, such as EVS, DSS or DESS.
	ServiceType string `pulumi:"serviceType"`
	// Specifies whether the disk is shareable.
	Shareable bool `pulumi:"shareable"`
	// The disk size, in GB.
	Size int `pulumi:"size"`
	// Specifies the disk status. The valid values are as following:
	// + **FREEZED**
	// + **BIND_ERROR**
	// + **BINDING**
	// + **PENDING_DELETE**
	// + **PENDING_CREATE**
	// + **NOTIFYING**
	// + **NOTIFY_DELETE**
	// + **PENDING_UPDATE**
	// + **DOWN**
	// + **ACTIVE**
	// + **ELB**
	// + **ERROR**
	// + **VPN**
	Status string `pulumi:"status"`
	// Specifies the included key/value pairs which associated with the desired disk.
	Tags map[string]string `pulumi:"tags"`
	// The time when the disk was updated.
	UpdateAt string `pulumi:"updateAt"`
	// The unique identifier used when attaching the disk.
	Wwn string `pulumi:"wwn"`
}

type GetVolumesVolumeArgs

type GetVolumesVolumeArgs struct {
	// The disk attachment information. Structure is documented below.
	Attachments GetVolumesVolumeAttachmentArrayInput `pulumi:"attachments"`
	// Specifies the availability zone for the disks.
	AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"`
	// Whether the disk is bootable.
	Bootable pulumi.BoolInput `pulumi:"bootable"`
	// The time when the disk was created.
	CreateAt pulumi.StringInput `pulumi:"createAt"`
	// The disk description.
	Description pulumi.StringInput `pulumi:"description"`
	// Specifies the enterprise project ID for filtering.
	EnterpriseProjectId pulumi.StringInput `pulumi:"enterpriseProjectId"`
	// The ID of the attached resource in UUID format.
	Id pulumi.StringInput `pulumi:"id"`
	// The disk name.
	Name pulumi.StringInput `pulumi:"name"`
	// The service type, such as EVS, DSS or DESS.
	ServiceType pulumi.StringInput `pulumi:"serviceType"`
	// Specifies whether the disk is shareable.
	Shareable pulumi.BoolInput `pulumi:"shareable"`
	// The disk size, in GB.
	Size pulumi.IntInput `pulumi:"size"`
	// Specifies the disk status. The valid values are as following:
	// + **FREEZED**
	// + **BIND_ERROR**
	// + **BINDING**
	// + **PENDING_DELETE**
	// + **PENDING_CREATE**
	// + **NOTIFYING**
	// + **NOTIFY_DELETE**
	// + **PENDING_UPDATE**
	// + **DOWN**
	// + **ACTIVE**
	// + **ELB**
	// + **ERROR**
	// + **VPN**
	Status pulumi.StringInput `pulumi:"status"`
	// Specifies the included key/value pairs which associated with the desired disk.
	Tags pulumi.StringMapInput `pulumi:"tags"`
	// The time when the disk was updated.
	UpdateAt pulumi.StringInput `pulumi:"updateAt"`
	// The unique identifier used when attaching the disk.
	Wwn pulumi.StringInput `pulumi:"wwn"`
}

func (GetVolumesVolumeArgs) ElementType

func (GetVolumesVolumeArgs) ElementType() reflect.Type

func (GetVolumesVolumeArgs) ToGetVolumesVolumeOutput

func (i GetVolumesVolumeArgs) ToGetVolumesVolumeOutput() GetVolumesVolumeOutput

func (GetVolumesVolumeArgs) ToGetVolumesVolumeOutputWithContext

func (i GetVolumesVolumeArgs) ToGetVolumesVolumeOutputWithContext(ctx context.Context) GetVolumesVolumeOutput

type GetVolumesVolumeArray

type GetVolumesVolumeArray []GetVolumesVolumeInput

func (GetVolumesVolumeArray) ElementType

func (GetVolumesVolumeArray) ElementType() reflect.Type

func (GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutput

func (i GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput

func (GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutputWithContext

func (i GetVolumesVolumeArray) ToGetVolumesVolumeArrayOutputWithContext(ctx context.Context) GetVolumesVolumeArrayOutput

type GetVolumesVolumeArrayInput

type GetVolumesVolumeArrayInput interface {
	pulumi.Input

	ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput
	ToGetVolumesVolumeArrayOutputWithContext(context.Context) GetVolumesVolumeArrayOutput
}

GetVolumesVolumeArrayInput is an input type that accepts GetVolumesVolumeArray and GetVolumesVolumeArrayOutput values. You can construct a concrete instance of `GetVolumesVolumeArrayInput` via:

GetVolumesVolumeArray{ GetVolumesVolumeArgs{...} }

type GetVolumesVolumeArrayOutput

type GetVolumesVolumeArrayOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeArrayOutput) ElementType

func (GetVolumesVolumeArrayOutput) Index

func (GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutput

func (o GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutput() GetVolumesVolumeArrayOutput

func (GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutputWithContext

func (o GetVolumesVolumeArrayOutput) ToGetVolumesVolumeArrayOutputWithContext(ctx context.Context) GetVolumesVolumeArrayOutput

type GetVolumesVolumeAttachment

type GetVolumesVolumeAttachment struct {
	// The time when the disk was attached.
	AttachedAt string `pulumi:"attachedAt"`
	// The ID of the attachment information.
	AttachedMode string `pulumi:"attachedMode"`
	// The device name to which the disk is attached.
	DeviceName string `pulumi:"deviceName"`
	// The ID of the attached resource in UUID format.
	Id string `pulumi:"id"`
	// Specifies the server ID to which the disks are attached.
	ServerId string `pulumi:"serverId"`
}

type GetVolumesVolumeAttachmentArgs

type GetVolumesVolumeAttachmentArgs struct {
	// The time when the disk was attached.
	AttachedAt pulumi.StringInput `pulumi:"attachedAt"`
	// The ID of the attachment information.
	AttachedMode pulumi.StringInput `pulumi:"attachedMode"`
	// The device name to which the disk is attached.
	DeviceName pulumi.StringInput `pulumi:"deviceName"`
	// The ID of the attached resource in UUID format.
	Id pulumi.StringInput `pulumi:"id"`
	// Specifies the server ID to which the disks are attached.
	ServerId pulumi.StringInput `pulumi:"serverId"`
}

func (GetVolumesVolumeAttachmentArgs) ElementType

func (GetVolumesVolumeAttachmentArgs) ToGetVolumesVolumeAttachmentOutput

func (i GetVolumesVolumeAttachmentArgs) ToGetVolumesVolumeAttachmentOutput() GetVolumesVolumeAttachmentOutput

func (GetVolumesVolumeAttachmentArgs) ToGetVolumesVolumeAttachmentOutputWithContext

func (i GetVolumesVolumeAttachmentArgs) ToGetVolumesVolumeAttachmentOutputWithContext(ctx context.Context) GetVolumesVolumeAttachmentOutput

type GetVolumesVolumeAttachmentArray

type GetVolumesVolumeAttachmentArray []GetVolumesVolumeAttachmentInput

func (GetVolumesVolumeAttachmentArray) ElementType

func (GetVolumesVolumeAttachmentArray) ToGetVolumesVolumeAttachmentArrayOutput

func (i GetVolumesVolumeAttachmentArray) ToGetVolumesVolumeAttachmentArrayOutput() GetVolumesVolumeAttachmentArrayOutput

func (GetVolumesVolumeAttachmentArray) ToGetVolumesVolumeAttachmentArrayOutputWithContext

func (i GetVolumesVolumeAttachmentArray) ToGetVolumesVolumeAttachmentArrayOutputWithContext(ctx context.Context) GetVolumesVolumeAttachmentArrayOutput

type GetVolumesVolumeAttachmentArrayInput

type GetVolumesVolumeAttachmentArrayInput interface {
	pulumi.Input

	ToGetVolumesVolumeAttachmentArrayOutput() GetVolumesVolumeAttachmentArrayOutput
	ToGetVolumesVolumeAttachmentArrayOutputWithContext(context.Context) GetVolumesVolumeAttachmentArrayOutput
}

GetVolumesVolumeAttachmentArrayInput is an input type that accepts GetVolumesVolumeAttachmentArray and GetVolumesVolumeAttachmentArrayOutput values. You can construct a concrete instance of `GetVolumesVolumeAttachmentArrayInput` via:

GetVolumesVolumeAttachmentArray{ GetVolumesVolumeAttachmentArgs{...} }

type GetVolumesVolumeAttachmentArrayOutput

type GetVolumesVolumeAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeAttachmentArrayOutput) ElementType

func (GetVolumesVolumeAttachmentArrayOutput) Index

func (GetVolumesVolumeAttachmentArrayOutput) ToGetVolumesVolumeAttachmentArrayOutput

func (o GetVolumesVolumeAttachmentArrayOutput) ToGetVolumesVolumeAttachmentArrayOutput() GetVolumesVolumeAttachmentArrayOutput

func (GetVolumesVolumeAttachmentArrayOutput) ToGetVolumesVolumeAttachmentArrayOutputWithContext

func (o GetVolumesVolumeAttachmentArrayOutput) ToGetVolumesVolumeAttachmentArrayOutputWithContext(ctx context.Context) GetVolumesVolumeAttachmentArrayOutput

type GetVolumesVolumeAttachmentInput

type GetVolumesVolumeAttachmentInput interface {
	pulumi.Input

	ToGetVolumesVolumeAttachmentOutput() GetVolumesVolumeAttachmentOutput
	ToGetVolumesVolumeAttachmentOutputWithContext(context.Context) GetVolumesVolumeAttachmentOutput
}

GetVolumesVolumeAttachmentInput is an input type that accepts GetVolumesVolumeAttachmentArgs and GetVolumesVolumeAttachmentOutput values. You can construct a concrete instance of `GetVolumesVolumeAttachmentInput` via:

GetVolumesVolumeAttachmentArgs{...}

type GetVolumesVolumeAttachmentOutput

type GetVolumesVolumeAttachmentOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeAttachmentOutput) AttachedAt

The time when the disk was attached.

func (GetVolumesVolumeAttachmentOutput) AttachedMode

The ID of the attachment information.

func (GetVolumesVolumeAttachmentOutput) DeviceName

The device name to which the disk is attached.

func (GetVolumesVolumeAttachmentOutput) ElementType

func (GetVolumesVolumeAttachmentOutput) Id

The ID of the attached resource in UUID format.

func (GetVolumesVolumeAttachmentOutput) ServerId

Specifies the server ID to which the disks are attached.

func (GetVolumesVolumeAttachmentOutput) ToGetVolumesVolumeAttachmentOutput

func (o GetVolumesVolumeAttachmentOutput) ToGetVolumesVolumeAttachmentOutput() GetVolumesVolumeAttachmentOutput

func (GetVolumesVolumeAttachmentOutput) ToGetVolumesVolumeAttachmentOutputWithContext

func (o GetVolumesVolumeAttachmentOutput) ToGetVolumesVolumeAttachmentOutputWithContext(ctx context.Context) GetVolumesVolumeAttachmentOutput

type GetVolumesVolumeInput

type GetVolumesVolumeInput interface {
	pulumi.Input

	ToGetVolumesVolumeOutput() GetVolumesVolumeOutput
	ToGetVolumesVolumeOutputWithContext(context.Context) GetVolumesVolumeOutput
}

GetVolumesVolumeInput is an input type that accepts GetVolumesVolumeArgs and GetVolumesVolumeOutput values. You can construct a concrete instance of `GetVolumesVolumeInput` via:

GetVolumesVolumeArgs{...}

type GetVolumesVolumeOutput

type GetVolumesVolumeOutput struct{ *pulumi.OutputState }

func (GetVolumesVolumeOutput) Attachments

The disk attachment information. Structure is documented below.

func (GetVolumesVolumeOutput) AvailabilityZone

func (o GetVolumesVolumeOutput) AvailabilityZone() pulumi.StringOutput

Specifies the availability zone for the disks.

func (GetVolumesVolumeOutput) Bootable

Whether the disk is bootable.

func (GetVolumesVolumeOutput) CreateAt

The time when the disk was created.

func (GetVolumesVolumeOutput) Description

func (o GetVolumesVolumeOutput) Description() pulumi.StringOutput

The disk description.

func (GetVolumesVolumeOutput) ElementType

func (GetVolumesVolumeOutput) ElementType() reflect.Type

func (GetVolumesVolumeOutput) EnterpriseProjectId

func (o GetVolumesVolumeOutput) EnterpriseProjectId() pulumi.StringOutput

Specifies the enterprise project ID for filtering.

func (GetVolumesVolumeOutput) Id

The ID of the attached resource in UUID format.

func (GetVolumesVolumeOutput) Name

The disk name.

func (GetVolumesVolumeOutput) ServiceType

func (o GetVolumesVolumeOutput) ServiceType() pulumi.StringOutput

The service type, such as EVS, DSS or DESS.

func (GetVolumesVolumeOutput) Shareable

Specifies whether the disk is shareable.

func (GetVolumesVolumeOutput) Size

The disk size, in GB.

func (GetVolumesVolumeOutput) Status

Specifies the disk status. The valid values are as following: + **FREEZED** + **BIND_ERROR** + **BINDING** + **PENDING_DELETE** + **PENDING_CREATE** + **NOTIFYING** + **NOTIFY_DELETE** + **PENDING_UPDATE** + **DOWN** + **ACTIVE** + **ELB** + **ERROR** + **VPN**

func (GetVolumesVolumeOutput) Tags

Specifies the included key/value pairs which associated with the desired disk.

func (GetVolumesVolumeOutput) ToGetVolumesVolumeOutput

func (o GetVolumesVolumeOutput) ToGetVolumesVolumeOutput() GetVolumesVolumeOutput

func (GetVolumesVolumeOutput) ToGetVolumesVolumeOutputWithContext

func (o GetVolumesVolumeOutput) ToGetVolumesVolumeOutputWithContext(ctx context.Context) GetVolumesVolumeOutput

func (GetVolumesVolumeOutput) UpdateAt

The time when the disk was updated.

func (GetVolumesVolumeOutput) Wwn

The unique identifier used when attaching the disk.

type Snapshot

type Snapshot struct {
	pulumi.CustomResourceState

	// The description of the snapshot. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the flag for forcibly creating a snapshot. Default to false.
	Force pulumi.BoolPtrOutput `pulumi:"force"`
	// The name of the snapshot. The value can contain a maximum of 255 bytes.
	Name pulumi.StringOutput `pulumi:"name"`
	// The region in which to create the evs snapshot resource. If omitted, the
	// provider-level region will be used. Changing this creates a new EVS snapshot resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// The size of the snapshot in GB.
	Size pulumi.IntOutput `pulumi:"size"`
	// The status of the snapshot.
	Status pulumi.StringOutput `pulumi:"status"`
	// The id of the snapshot's source disk. Changing the parameter creates a new
	// snapshot.
	VolumeId pulumi.StringOutput `pulumi:"volumeId"`
}

Provides an EVS snapshot resource.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Evs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		myvolume, err := Evs.NewVolume(ctx, "myvolume", &Evs.VolumeArgs{
			Description:      pulumi.String("my volume"),
			VolumeType:       pulumi.String("SATA"),
			Size:             pulumi.Int(20),
			AvailabilityZone: pulumi.String("cn-north-4a"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		_, err = Evs.NewSnapshot(ctx, "snapshot1", &Evs.SnapshotArgs{
			Description: pulumi.String("Daily backup"),
			VolumeId:    myvolume.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

EVS snapshot can be imported using the `snapshot id`, e.g.

```sh

$ pulumi import huaweicloud:Evs/snapshot:Snapshot huaweicloud_evs_snapshot.snapshot_1 3a11b255-3bb6-46f3-91e4-3338baa92dd6

```

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 {
	// The description of the snapshot. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrInput
	// Specifies the flag for forcibly creating a snapshot. Default to false.
	Force pulumi.BoolPtrInput
	// The name of the snapshot. The value can contain a maximum of 255 bytes.
	Name pulumi.StringPtrInput
	// The region in which to create the evs snapshot resource. If omitted, the
	// provider-level region will be used. Changing this creates a new EVS snapshot resource.
	Region pulumi.StringPtrInput
	// The id of the snapshot's source disk. Changing the parameter creates a new
	// snapshot.
	VolumeId pulumi.StringInput
}

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) Description

func (o SnapshotOutput) Description() pulumi.StringPtrOutput

The description of the snapshot. The value can contain a maximum of 255 bytes.

func (SnapshotOutput) ElementType

func (SnapshotOutput) ElementType() reflect.Type

func (SnapshotOutput) Force

Specifies the flag for forcibly creating a snapshot. Default to false.

func (SnapshotOutput) Name

The name of the snapshot. The value can contain a maximum of 255 bytes.

func (SnapshotOutput) Region

func (o SnapshotOutput) Region() pulumi.StringOutput

The region in which to create the evs snapshot resource. If omitted, the provider-level region will be used. Changing this creates a new EVS snapshot resource.

func (SnapshotOutput) Size

func (o SnapshotOutput) Size() pulumi.IntOutput

The size of the snapshot in GB.

func (SnapshotOutput) Status

func (o SnapshotOutput) Status() pulumi.StringOutput

The status of the snapshot.

func (SnapshotOutput) ToSnapshotOutput

func (o SnapshotOutput) ToSnapshotOutput() SnapshotOutput

func (SnapshotOutput) ToSnapshotOutputWithContext

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

func (SnapshotOutput) VolumeId

func (o SnapshotOutput) VolumeId() pulumi.StringOutput

The id of the snapshot's source disk. Changing the parameter creates a new snapshot.

type SnapshotState

type SnapshotState struct {
	// The description of the snapshot. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrInput
	// Specifies the flag for forcibly creating a snapshot. Default to false.
	Force pulumi.BoolPtrInput
	// The name of the snapshot. The value can contain a maximum of 255 bytes.
	Name pulumi.StringPtrInput
	// The region in which to create the evs snapshot resource. If omitted, the
	// provider-level region will be used. Changing this creates a new EVS snapshot resource.
	Region pulumi.StringPtrInput
	// The size of the snapshot in GB.
	Size pulumi.IntPtrInput
	// The status of the snapshot.
	Status pulumi.StringPtrInput
	// The id of the snapshot's source disk. Changing the parameter creates a new
	// snapshot.
	VolumeId pulumi.StringPtrInput
}

func (SnapshotState) ElementType

func (SnapshotState) ElementType() reflect.Type

type Volume

type Volume struct {
	pulumi.CustomResourceState

	// If a disk is attached to an instance, this attribute will display the Attachment ID, Instance ID, and
	// the Device as the Instance sees it. The object structure is documented below.
	Attachments VolumeAttachmentArrayOutput `pulumi:"attachments"`
	// Deprecated: Deprecated
	AutoPay pulumi.StringPtrOutput `pulumi:"autoPay"`
	// Specifies whether auto renew is enabled.
	// Valid values are **true** and **false**.
	AutoRenew pulumi.StringPtrOutput `pulumi:"autoRenew"`
	// Specifies the availability zone for the disk. Changing this creates
	// a new disk.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Specifies the backup ID from which to create the disk. Changing this
	// creates a new disk.
	BackupId pulumi.StringPtrOutput `pulumi:"backupId"`
	// Specifies the delete mode of snapshot. The default value is false. All snapshot
	// associated with the disk will also be deleted when the parameter is set to true.
	Cascade pulumi.BoolPtrOutput `pulumi:"cascade"`
	// Specifies the charging mode of the disk.
	// The valid values are as follows:
	// + **prePaid**: the yearly/monthly billing mode.
	// + **postPaid**: the pay-per-use billing mode.
	//   Changing this creates a new disk.
	ChargingMode pulumi.StringOutput `pulumi:"chargingMode"`
	// Specifies the ID of the DSS storage pool accommodating the disk.
	DedicatedStorageId pulumi.StringPtrOutput `pulumi:"dedicatedStorageId"`
	// The name of the DSS storage pool accommodating the disk.
	DedicatedStorageName pulumi.StringOutput `pulumi:"dedicatedStorageName"`
	// Specifies the disk description. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Specifies the device type of disk to create. Valid options are VBD and
	// SCSI. Defaults to VBD. Changing this creates a new disk.
	DeviceType pulumi.StringPtrOutput `pulumi:"deviceType"`
	// Specifies the enterprise project id of the disk. Changing this
	// creates a new disk.
	EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
	// Specifies the image ID from which to create the disk. Changing this creates
	// a new disk.
	ImageId pulumi.StringPtrOutput `pulumi:"imageId"`
	// Specifies the Encryption KMS ID to create the disk. Changing this creates a
	// new disk.
	KmsId pulumi.StringPtrOutput `pulumi:"kmsId"`
	// Specifies whether the disk is shareable. The default value is false.
	// Changing this creates a new disk.
	Multiattach pulumi.BoolPtrOutput `pulumi:"multiattach"`
	// Specifies the disk name. The value can contain a maximum of 255 bytes.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the charging period of the disk.
	// If `periodUnit` is set to **month**, the value ranges from 1 to 9.
	// If `periodUnit` is set to **year**, the valid value is 1.
	// This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// Specifies the charging period unit of the disk.
	// Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	PeriodUnit pulumi.StringPtrOutput `pulumi:"periodUnit"`
	// Specifies the region in which to create the disk. If omitted, the
	// provider-level region will be used. Changing this creates a new disk.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the disk size, in GB. The valid value is range from:
	// + System disk: 1 GB to 1024 GB
	// + Data disk: 10 GB to 32768 GB
	Size pulumi.IntOutput `pulumi:"size"`
	// Specifies the snapshot ID from which to create the disk. Changing this
	// creates a new disk.
	SnapshotId pulumi.StringPtrOutput `pulumi:"snapshotId"`
	// Specifies the key/value pairs to associate with the disk.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// Specifies the disk type. Currently, the value can be SAS, SSD, GPSSD or
	// ESSD.
	// + SAS: specifies the high I/O disk type.
	// + SSD: specifies the ultra-high I/O disk type.
	// + GPSSD: specifies the general purpose SSD disk type.
	// + ESSD: Extreme SSD type.
	VolumeType pulumi.StringOutput `pulumi:"volumeType"`
	// The unique identifier used for mounting the EVS disk.
	Wwn pulumi.StringOutput `pulumi:"wwn"`
}

Manages a volume resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Evs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Evs.NewVolume(ctx, "volume", &Evs.VolumeArgs{
			AvailabilityZone: pulumi.String("cn-north-4a"),
			Description:      pulumi.String("my volume"),
			Size:             pulumi.Int(20),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"key": pulumi.String("value"),
			},
			VolumeType: pulumi.String("SAS"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### With KMS Encryption

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Evs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Evs.NewVolume(ctx, "volume", &Evs.VolumeArgs{
			Description:      pulumi.String("my volume"),
			VolumeType:       pulumi.String("SAS"),
			Size:             pulumi.Int(20),
			KmsId:            pulumi.Any(_var.Kms_id),
			AvailabilityZone: pulumi.String("cn-north-4a"),
			Tags: pulumi.StringMap{
				"foo": pulumi.String("bar"),
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Volumes can be imported using the `id`, e.g.

```sh

$ pulumi import huaweicloud:Evs/volume:Volume volume_1 14a80bc7-c12c-4fe0-a38a-cb77eeac9bd6

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include**cascade**, **period_unit**, **period** and **auto_renew**. It is generally recommended running terraform plan after importing an disk. You can then decide if changes should be applied to the disk, or the resource definition should be updated to align with the disk. Also you can ignore changes as below. resource "huaweicloud_evs_volume" "volume_1" {

...

lifecycle {

ignore_changes = [

cascade,

]

} }

func GetVolume

func GetVolume(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VolumeState, opts ...pulumi.ResourceOption) (*Volume, error)

GetVolume gets an existing Volume 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 NewVolume

func NewVolume(ctx *pulumi.Context,
	name string, args *VolumeArgs, opts ...pulumi.ResourceOption) (*Volume, error)

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

func (*Volume) ElementType

func (*Volume) ElementType() reflect.Type

func (*Volume) ToVolumeOutput

func (i *Volume) ToVolumeOutput() VolumeOutput

func (*Volume) ToVolumeOutputWithContext

func (i *Volume) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

type VolumeArgs

type VolumeArgs struct {
	// Deprecated: Deprecated
	AutoPay pulumi.StringPtrInput
	// Specifies whether auto renew is enabled.
	// Valid values are **true** and **false**.
	AutoRenew pulumi.StringPtrInput
	// Specifies the availability zone for the disk. Changing this creates
	// a new disk.
	AvailabilityZone pulumi.StringInput
	// Specifies the backup ID from which to create the disk. Changing this
	// creates a new disk.
	BackupId pulumi.StringPtrInput
	// Specifies the delete mode of snapshot. The default value is false. All snapshot
	// associated with the disk will also be deleted when the parameter is set to true.
	Cascade pulumi.BoolPtrInput
	// Specifies the charging mode of the disk.
	// The valid values are as follows:
	// + **prePaid**: the yearly/monthly billing mode.
	// + **postPaid**: the pay-per-use billing mode.
	//   Changing this creates a new disk.
	ChargingMode pulumi.StringPtrInput
	// Specifies the ID of the DSS storage pool accommodating the disk.
	DedicatedStorageId pulumi.StringPtrInput
	// Specifies the disk description. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrInput
	// Specifies the device type of disk to create. Valid options are VBD and
	// SCSI. Defaults to VBD. Changing this creates a new disk.
	DeviceType pulumi.StringPtrInput
	// Specifies the enterprise project id of the disk. Changing this
	// creates a new disk.
	EnterpriseProjectId pulumi.StringPtrInput
	// Specifies the image ID from which to create the disk. Changing this creates
	// a new disk.
	ImageId pulumi.StringPtrInput
	// Specifies the Encryption KMS ID to create the disk. Changing this creates a
	// new disk.
	KmsId pulumi.StringPtrInput
	// Specifies whether the disk is shareable. The default value is false.
	// Changing this creates a new disk.
	Multiattach pulumi.BoolPtrInput
	// Specifies the disk name. The value can contain a maximum of 255 bytes.
	Name pulumi.StringPtrInput
	// Specifies the charging period of the disk.
	// If `periodUnit` is set to **month**, the value ranges from 1 to 9.
	// If `periodUnit` is set to **year**, the valid value is 1.
	// This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	Period pulumi.IntPtrInput
	// Specifies the charging period unit of the disk.
	// Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	PeriodUnit pulumi.StringPtrInput
	// Specifies the region in which to create the disk. If omitted, the
	// provider-level region will be used. Changing this creates a new disk.
	Region pulumi.StringPtrInput
	// Specifies the disk size, in GB. The valid value is range from:
	// + System disk: 1 GB to 1024 GB
	// + Data disk: 10 GB to 32768 GB
	Size pulumi.IntPtrInput
	// Specifies the snapshot ID from which to create the disk. Changing this
	// creates a new disk.
	SnapshotId pulumi.StringPtrInput
	// Specifies the key/value pairs to associate with the disk.
	Tags pulumi.StringMapInput
	// Specifies the disk type. Currently, the value can be SAS, SSD, GPSSD or
	// ESSD.
	// + SAS: specifies the high I/O disk type.
	// + SSD: specifies the ultra-high I/O disk type.
	// + GPSSD: specifies the general purpose SSD disk type.
	// + ESSD: Extreme SSD type.
	VolumeType pulumi.StringInput
}

The set of arguments for constructing a Volume resource.

func (VolumeArgs) ElementType

func (VolumeArgs) ElementType() reflect.Type

type VolumeArray

type VolumeArray []VolumeInput

func (VolumeArray) ElementType

func (VolumeArray) ElementType() reflect.Type

func (VolumeArray) ToVolumeArrayOutput

func (i VolumeArray) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArray) ToVolumeArrayOutputWithContext

func (i VolumeArray) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeArrayInput

type VolumeArrayInput interface {
	pulumi.Input

	ToVolumeArrayOutput() VolumeArrayOutput
	ToVolumeArrayOutputWithContext(context.Context) VolumeArrayOutput
}

VolumeArrayInput is an input type that accepts VolumeArray and VolumeArrayOutput values. You can construct a concrete instance of `VolumeArrayInput` via:

VolumeArray{ VolumeArgs{...} }

type VolumeArrayOutput

type VolumeArrayOutput struct{ *pulumi.OutputState }

func (VolumeArrayOutput) ElementType

func (VolumeArrayOutput) ElementType() reflect.Type

func (VolumeArrayOutput) Index

func (VolumeArrayOutput) ToVolumeArrayOutput

func (o VolumeArrayOutput) ToVolumeArrayOutput() VolumeArrayOutput

func (VolumeArrayOutput) ToVolumeArrayOutputWithContext

func (o VolumeArrayOutput) ToVolumeArrayOutputWithContext(ctx context.Context) VolumeArrayOutput

type VolumeAttachment

type VolumeAttachment struct {
	// The device name.
	Device *string `pulumi:"device"`
	// The ID of the attachment information.
	Id *string `pulumi:"id"`
	// The ID of the server to which the disk is attached.
	InstanceId *string `pulumi:"instanceId"`
}

type VolumeAttachmentArgs

type VolumeAttachmentArgs struct {
	// The device name.
	Device pulumi.StringPtrInput `pulumi:"device"`
	// The ID of the attachment information.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The ID of the server to which the disk is attached.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
}

func (VolumeAttachmentArgs) ElementType

func (VolumeAttachmentArgs) ElementType() reflect.Type

func (VolumeAttachmentArgs) ToVolumeAttachmentOutput

func (i VolumeAttachmentArgs) ToVolumeAttachmentOutput() VolumeAttachmentOutput

func (VolumeAttachmentArgs) ToVolumeAttachmentOutputWithContext

func (i VolumeAttachmentArgs) ToVolumeAttachmentOutputWithContext(ctx context.Context) VolumeAttachmentOutput

type VolumeAttachmentArray

type VolumeAttachmentArray []VolumeAttachmentInput

func (VolumeAttachmentArray) ElementType

func (VolumeAttachmentArray) ElementType() reflect.Type

func (VolumeAttachmentArray) ToVolumeAttachmentArrayOutput

func (i VolumeAttachmentArray) ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput

func (VolumeAttachmentArray) ToVolumeAttachmentArrayOutputWithContext

func (i VolumeAttachmentArray) ToVolumeAttachmentArrayOutputWithContext(ctx context.Context) VolumeAttachmentArrayOutput

type VolumeAttachmentArrayInput

type VolumeAttachmentArrayInput interface {
	pulumi.Input

	ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput
	ToVolumeAttachmentArrayOutputWithContext(context.Context) VolumeAttachmentArrayOutput
}

VolumeAttachmentArrayInput is an input type that accepts VolumeAttachmentArray and VolumeAttachmentArrayOutput values. You can construct a concrete instance of `VolumeAttachmentArrayInput` via:

VolumeAttachmentArray{ VolumeAttachmentArgs{...} }

type VolumeAttachmentArrayOutput

type VolumeAttachmentArrayOutput struct{ *pulumi.OutputState }

func (VolumeAttachmentArrayOutput) ElementType

func (VolumeAttachmentArrayOutput) Index

func (VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutput

func (o VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutput() VolumeAttachmentArrayOutput

func (VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutputWithContext

func (o VolumeAttachmentArrayOutput) ToVolumeAttachmentArrayOutputWithContext(ctx context.Context) VolumeAttachmentArrayOutput

type VolumeAttachmentInput

type VolumeAttachmentInput interface {
	pulumi.Input

	ToVolumeAttachmentOutput() VolumeAttachmentOutput
	ToVolumeAttachmentOutputWithContext(context.Context) VolumeAttachmentOutput
}

VolumeAttachmentInput is an input type that accepts VolumeAttachmentArgs and VolumeAttachmentOutput values. You can construct a concrete instance of `VolumeAttachmentInput` via:

VolumeAttachmentArgs{...}

type VolumeAttachmentOutput

type VolumeAttachmentOutput struct{ *pulumi.OutputState }

func (VolumeAttachmentOutput) Device

The device name.

func (VolumeAttachmentOutput) ElementType

func (VolumeAttachmentOutput) ElementType() reflect.Type

func (VolumeAttachmentOutput) Id

The ID of the attachment information.

func (VolumeAttachmentOutput) InstanceId

The ID of the server to which the disk is attached.

func (VolumeAttachmentOutput) ToVolumeAttachmentOutput

func (o VolumeAttachmentOutput) ToVolumeAttachmentOutput() VolumeAttachmentOutput

func (VolumeAttachmentOutput) ToVolumeAttachmentOutputWithContext

func (o VolumeAttachmentOutput) ToVolumeAttachmentOutputWithContext(ctx context.Context) VolumeAttachmentOutput

type VolumeInput

type VolumeInput interface {
	pulumi.Input

	ToVolumeOutput() VolumeOutput
	ToVolumeOutputWithContext(ctx context.Context) VolumeOutput
}

type VolumeMap

type VolumeMap map[string]VolumeInput

func (VolumeMap) ElementType

func (VolumeMap) ElementType() reflect.Type

func (VolumeMap) ToVolumeMapOutput

func (i VolumeMap) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMap) ToVolumeMapOutputWithContext

func (i VolumeMap) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeMapInput

type VolumeMapInput interface {
	pulumi.Input

	ToVolumeMapOutput() VolumeMapOutput
	ToVolumeMapOutputWithContext(context.Context) VolumeMapOutput
}

VolumeMapInput is an input type that accepts VolumeMap and VolumeMapOutput values. You can construct a concrete instance of `VolumeMapInput` via:

VolumeMap{ "key": VolumeArgs{...} }

type VolumeMapOutput

type VolumeMapOutput struct{ *pulumi.OutputState }

func (VolumeMapOutput) ElementType

func (VolumeMapOutput) ElementType() reflect.Type

func (VolumeMapOutput) MapIndex

func (VolumeMapOutput) ToVolumeMapOutput

func (o VolumeMapOutput) ToVolumeMapOutput() VolumeMapOutput

func (VolumeMapOutput) ToVolumeMapOutputWithContext

func (o VolumeMapOutput) ToVolumeMapOutputWithContext(ctx context.Context) VolumeMapOutput

type VolumeOutput

type VolumeOutput struct{ *pulumi.OutputState }

func (VolumeOutput) Attachments

func (o VolumeOutput) Attachments() VolumeAttachmentArrayOutput

If a disk is attached to an instance, this attribute will display the Attachment ID, Instance ID, and the Device as the Instance sees it. The object structure is documented below.

func (VolumeOutput) AutoPay deprecated

func (o VolumeOutput) AutoPay() pulumi.StringPtrOutput

Deprecated: Deprecated

func (VolumeOutput) AutoRenew

func (o VolumeOutput) AutoRenew() pulumi.StringPtrOutput

Specifies whether auto renew is enabled. Valid values are **true** and **false**.

func (VolumeOutput) AvailabilityZone

func (o VolumeOutput) AvailabilityZone() pulumi.StringOutput

Specifies the availability zone for the disk. Changing this creates a new disk.

func (VolumeOutput) BackupId

func (o VolumeOutput) BackupId() pulumi.StringPtrOutput

Specifies the backup ID from which to create the disk. Changing this creates a new disk.

func (VolumeOutput) Cascade

func (o VolumeOutput) Cascade() pulumi.BoolPtrOutput

Specifies the delete mode of snapshot. The default value is false. All snapshot associated with the disk will also be deleted when the parameter is set to true.

func (VolumeOutput) ChargingMode

func (o VolumeOutput) ChargingMode() pulumi.StringOutput

Specifies the charging mode of the disk. The valid values are as follows:

  • **prePaid**: the yearly/monthly billing mode.
  • **postPaid**: the pay-per-use billing mode. Changing this creates a new disk.

func (VolumeOutput) DedicatedStorageId added in v0.0.8

func (o VolumeOutput) DedicatedStorageId() pulumi.StringPtrOutput

Specifies the ID of the DSS storage pool accommodating the disk.

func (VolumeOutput) DedicatedStorageName added in v0.0.8

func (o VolumeOutput) DedicatedStorageName() pulumi.StringOutput

The name of the DSS storage pool accommodating the disk.

func (VolumeOutput) Description

func (o VolumeOutput) Description() pulumi.StringPtrOutput

Specifies the disk description. The value can contain a maximum of 255 bytes.

func (VolumeOutput) DeviceType

func (o VolumeOutput) DeviceType() pulumi.StringPtrOutput

Specifies the device type of disk to create. Valid options are VBD and SCSI. Defaults to VBD. Changing this creates a new disk.

func (VolumeOutput) ElementType

func (VolumeOutput) ElementType() reflect.Type

func (VolumeOutput) EnterpriseProjectId

func (o VolumeOutput) EnterpriseProjectId() pulumi.StringOutput

Specifies the enterprise project id of the disk. Changing this creates a new disk.

func (VolumeOutput) ImageId

func (o VolumeOutput) ImageId() pulumi.StringPtrOutput

Specifies the image ID from which to create the disk. Changing this creates a new disk.

func (VolumeOutput) KmsId

Specifies the Encryption KMS ID to create the disk. Changing this creates a new disk.

func (VolumeOutput) Multiattach

func (o VolumeOutput) Multiattach() pulumi.BoolPtrOutput

Specifies whether the disk is shareable. The default value is false. Changing this creates a new disk.

func (VolumeOutput) Name

func (o VolumeOutput) Name() pulumi.StringOutput

Specifies the disk name. The value can contain a maximum of 255 bytes.

func (VolumeOutput) Period

func (o VolumeOutput) Period() pulumi.IntPtrOutput

Specifies the charging period of the disk. If `periodUnit` is set to **month**, the value ranges from 1 to 9. If `periodUnit` is set to **year**, the valid value is 1. This parameter is mandatory if `chargingMode` is set to **prePaid**. Changing this creates a new disk.

func (VolumeOutput) PeriodUnit

func (o VolumeOutput) PeriodUnit() pulumi.StringPtrOutput

Specifies the charging period unit of the disk. Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**. Changing this creates a new disk.

func (VolumeOutput) Region

func (o VolumeOutput) Region() pulumi.StringOutput

Specifies the region in which to create the disk. If omitted, the provider-level region will be used. Changing this creates a new disk.

func (VolumeOutput) Size

func (o VolumeOutput) Size() pulumi.IntOutput

Specifies the disk size, in GB. The valid value is range from: + System disk: 1 GB to 1024 GB + Data disk: 10 GB to 32768 GB

func (VolumeOutput) SnapshotId

func (o VolumeOutput) SnapshotId() pulumi.StringPtrOutput

Specifies the snapshot ID from which to create the disk. Changing this creates a new disk.

func (VolumeOutput) Tags

Specifies the key/value pairs to associate with the disk.

func (VolumeOutput) ToVolumeOutput

func (o VolumeOutput) ToVolumeOutput() VolumeOutput

func (VolumeOutput) ToVolumeOutputWithContext

func (o VolumeOutput) ToVolumeOutputWithContext(ctx context.Context) VolumeOutput

func (VolumeOutput) VolumeType

func (o VolumeOutput) VolumeType() pulumi.StringOutput

Specifies the disk type. Currently, the value can be SAS, SSD, GPSSD or ESSD. + SAS: specifies the high I/O disk type. + SSD: specifies the ultra-high I/O disk type. + GPSSD: specifies the general purpose SSD disk type. + ESSD: Extreme SSD type.

func (VolumeOutput) Wwn

The unique identifier used for mounting the EVS disk.

type VolumeState

type VolumeState struct {
	// If a disk is attached to an instance, this attribute will display the Attachment ID, Instance ID, and
	// the Device as the Instance sees it. The object structure is documented below.
	Attachments VolumeAttachmentArrayInput
	// Deprecated: Deprecated
	AutoPay pulumi.StringPtrInput
	// Specifies whether auto renew is enabled.
	// Valid values are **true** and **false**.
	AutoRenew pulumi.StringPtrInput
	// Specifies the availability zone for the disk. Changing this creates
	// a new disk.
	AvailabilityZone pulumi.StringPtrInput
	// Specifies the backup ID from which to create the disk. Changing this
	// creates a new disk.
	BackupId pulumi.StringPtrInput
	// Specifies the delete mode of snapshot. The default value is false. All snapshot
	// associated with the disk will also be deleted when the parameter is set to true.
	Cascade pulumi.BoolPtrInput
	// Specifies the charging mode of the disk.
	// The valid values are as follows:
	// + **prePaid**: the yearly/monthly billing mode.
	// + **postPaid**: the pay-per-use billing mode.
	//   Changing this creates a new disk.
	ChargingMode pulumi.StringPtrInput
	// Specifies the ID of the DSS storage pool accommodating the disk.
	DedicatedStorageId pulumi.StringPtrInput
	// The name of the DSS storage pool accommodating the disk.
	DedicatedStorageName pulumi.StringPtrInput
	// Specifies the disk description. The value can contain a maximum of 255 bytes.
	Description pulumi.StringPtrInput
	// Specifies the device type of disk to create. Valid options are VBD and
	// SCSI. Defaults to VBD. Changing this creates a new disk.
	DeviceType pulumi.StringPtrInput
	// Specifies the enterprise project id of the disk. Changing this
	// creates a new disk.
	EnterpriseProjectId pulumi.StringPtrInput
	// Specifies the image ID from which to create the disk. Changing this creates
	// a new disk.
	ImageId pulumi.StringPtrInput
	// Specifies the Encryption KMS ID to create the disk. Changing this creates a
	// new disk.
	KmsId pulumi.StringPtrInput
	// Specifies whether the disk is shareable. The default value is false.
	// Changing this creates a new disk.
	Multiattach pulumi.BoolPtrInput
	// Specifies the disk name. The value can contain a maximum of 255 bytes.
	Name pulumi.StringPtrInput
	// Specifies the charging period of the disk.
	// If `periodUnit` is set to **month**, the value ranges from 1 to 9.
	// If `periodUnit` is set to **year**, the valid value is 1.
	// This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	Period pulumi.IntPtrInput
	// Specifies the charging period unit of the disk.
	// Valid values are **month** and **year**. This parameter is mandatory if `chargingMode` is set to **prePaid**.
	// Changing this creates a new disk.
	PeriodUnit pulumi.StringPtrInput
	// Specifies the region in which to create the disk. If omitted, the
	// provider-level region will be used. Changing this creates a new disk.
	Region pulumi.StringPtrInput
	// Specifies the disk size, in GB. The valid value is range from:
	// + System disk: 1 GB to 1024 GB
	// + Data disk: 10 GB to 32768 GB
	Size pulumi.IntPtrInput
	// Specifies the snapshot ID from which to create the disk. Changing this
	// creates a new disk.
	SnapshotId pulumi.StringPtrInput
	// Specifies the key/value pairs to associate with the disk.
	Tags pulumi.StringMapInput
	// Specifies the disk type. Currently, the value can be SAS, SSD, GPSSD or
	// ESSD.
	// + SAS: specifies the high I/O disk type.
	// + SSD: specifies the ultra-high I/O disk type.
	// + GPSSD: specifies the general purpose SSD disk type.
	// + ESSD: Extreme SSD type.
	VolumeType pulumi.StringPtrInput
	// The unique identifier used for mounting the EVS disk.
	Wwn pulumi.StringPtrInput
}

func (VolumeState) ElementType

func (VolumeState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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