sms

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 GetSourceServersArgs

type GetSourceServersArgs struct {
	// Specifies the ID of the source server.
	Id *string `pulumi:"id"`
	// Specifies the IP address of the source server.
	Ip *string `pulumi:"ip"`
	// Specifies the name of the source server.
	Name *string `pulumi:"name"`
	// Specifies the status of the source server.
	State *string `pulumi:"state"`
}

A collection of arguments for invoking getSourceServers.

type GetSourceServersOutputArgs

type GetSourceServersOutputArgs struct {
	// Specifies the ID of the source server.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// Specifies the IP address of the source server.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// Specifies the name of the source server.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Specifies the status of the source server.
	State pulumi.StringPtrInput `pulumi:"state"`
}

A collection of arguments for invoking getSourceServers.

func (GetSourceServersOutputArgs) ElementType

func (GetSourceServersOutputArgs) ElementType() reflect.Type

type GetSourceServersResult

type GetSourceServersResult struct {
	// The ID of the source server.
	Id string `pulumi:"id"`
	// The IP address of the source server.
	Ip *string `pulumi:"ip"`
	// The disk name, for example, /dev/vda.
	Name *string `pulumi:"name"`
	// An array of SMS source servers found. Structure is documented below.
	Servers []GetSourceServersServer `pulumi:"servers"`
	// The status of the source server.
	State *string `pulumi:"state"`
}

A collection of values returned by getSourceServers.

func GetSourceServers

func GetSourceServers(ctx *pulumi.Context, args *GetSourceServersArgs, opts ...pulumi.InvokeOption) (*GetSourceServersResult, error)

Use this data source to get a list of SMS source servers.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Sms"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Sms"
"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, "")
		serverName := cfg.RequireObject("serverName")
		_, err := Sms.GetSourceServers(ctx, &sms.GetSourceServersArgs{
			Name: pulumi.StringRef(serverName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetSourceServersResultOutput

type GetSourceServersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getSourceServers.

func (GetSourceServersResultOutput) ElementType

func (GetSourceServersResultOutput) Id

The ID of the source server.

func (GetSourceServersResultOutput) Ip

The IP address of the source server.

func (GetSourceServersResultOutput) Name

The disk name, for example, /dev/vda.

func (GetSourceServersResultOutput) Servers

An array of SMS source servers found. Structure is documented below.

func (GetSourceServersResultOutput) State

The status of the source server.

func (GetSourceServersResultOutput) ToGetSourceServersResultOutput

func (o GetSourceServersResultOutput) ToGetSourceServersResultOutput() GetSourceServersResultOutput

func (GetSourceServersResultOutput) ToGetSourceServersResultOutputWithContext

func (o GetSourceServersResultOutput) ToGetSourceServersResultOutputWithContext(ctx context.Context) GetSourceServersResultOutput

type GetSourceServersServer

type GetSourceServersServer struct {
	// The version of Agent installed on the source server.
	AgentVersion string `pulumi:"agentVersion"`
	// Whether the source server is properly connected to SMS.
	Connected bool `pulumi:"connected"`
	// The disk information of the source server. Structure is documented below.
	Disks []GetSourceServersServerDisk `pulumi:"disks"`
	// Specifies the ID of the source server.
	Id string `pulumi:"id"`
	// Specifies the IP address of the source server.
	Ip string `pulumi:"ip"`
	// The memory size in MB.
	Memory int `pulumi:"memory"`
	// Specifies the name of the source server.
	Name string `pulumi:"name"`
	// The OS type of the source server. The value can be **WINDOWS** and **LINUX**.
	OsType string `pulumi:"osType"`
	// The OS version of the source server, for example, UBUNTU_20_4_64BIT.
	OsVersion string `pulumi:"osVersion"`
	// The UTC time when the source server is registered.
	RegisteredTime string `pulumi:"registeredTime"`
	// Specifies the status of the source server.
	State string `pulumi:"state"`
	// The vcpus count of the source server.
	Vcpus int `pulumi:"vcpus"`
}

type GetSourceServersServerArgs

type GetSourceServersServerArgs struct {
	// The version of Agent installed on the source server.
	AgentVersion pulumi.StringInput `pulumi:"agentVersion"`
	// Whether the source server is properly connected to SMS.
	Connected pulumi.BoolInput `pulumi:"connected"`
	// The disk information of the source server. Structure is documented below.
	Disks GetSourceServersServerDiskArrayInput `pulumi:"disks"`
	// Specifies the ID of the source server.
	Id pulumi.StringInput `pulumi:"id"`
	// Specifies the IP address of the source server.
	Ip pulumi.StringInput `pulumi:"ip"`
	// The memory size in MB.
	Memory pulumi.IntInput `pulumi:"memory"`
	// Specifies the name of the source server.
	Name pulumi.StringInput `pulumi:"name"`
	// The OS type of the source server. The value can be **WINDOWS** and **LINUX**.
	OsType pulumi.StringInput `pulumi:"osType"`
	// The OS version of the source server, for example, UBUNTU_20_4_64BIT.
	OsVersion pulumi.StringInput `pulumi:"osVersion"`
	// The UTC time when the source server is registered.
	RegisteredTime pulumi.StringInput `pulumi:"registeredTime"`
	// Specifies the status of the source server.
	State pulumi.StringInput `pulumi:"state"`
	// The vcpus count of the source server.
	Vcpus pulumi.IntInput `pulumi:"vcpus"`
}

func (GetSourceServersServerArgs) ElementType

func (GetSourceServersServerArgs) ElementType() reflect.Type

func (GetSourceServersServerArgs) ToGetSourceServersServerOutput

func (i GetSourceServersServerArgs) ToGetSourceServersServerOutput() GetSourceServersServerOutput

func (GetSourceServersServerArgs) ToGetSourceServersServerOutputWithContext

func (i GetSourceServersServerArgs) ToGetSourceServersServerOutputWithContext(ctx context.Context) GetSourceServersServerOutput

type GetSourceServersServerArray

type GetSourceServersServerArray []GetSourceServersServerInput

func (GetSourceServersServerArray) ElementType

func (GetSourceServersServerArray) ToGetSourceServersServerArrayOutput

func (i GetSourceServersServerArray) ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput

func (GetSourceServersServerArray) ToGetSourceServersServerArrayOutputWithContext

func (i GetSourceServersServerArray) ToGetSourceServersServerArrayOutputWithContext(ctx context.Context) GetSourceServersServerArrayOutput

type GetSourceServersServerArrayInput

type GetSourceServersServerArrayInput interface {
	pulumi.Input

	ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput
	ToGetSourceServersServerArrayOutputWithContext(context.Context) GetSourceServersServerArrayOutput
}

GetSourceServersServerArrayInput is an input type that accepts GetSourceServersServerArray and GetSourceServersServerArrayOutput values. You can construct a concrete instance of `GetSourceServersServerArrayInput` via:

GetSourceServersServerArray{ GetSourceServersServerArgs{...} }

type GetSourceServersServerArrayOutput

type GetSourceServersServerArrayOutput struct{ *pulumi.OutputState }

func (GetSourceServersServerArrayOutput) ElementType

func (GetSourceServersServerArrayOutput) Index

func (GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutput

func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput

func (GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutputWithContext

func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutputWithContext(ctx context.Context) GetSourceServersServerArrayOutput

type GetSourceServersServerDisk

type GetSourceServersServerDisk struct {
	// The disk type. The value can be **BOOT**, **OS** and **NORMAL**.
	DeviceType string `pulumi:"deviceType"`
	// Specifies the name of the source server.
	Name string `pulumi:"name"`
	// The disk size in MB.
	Size int `pulumi:"size"`
}

type GetSourceServersServerDiskArgs

type GetSourceServersServerDiskArgs struct {
	// The disk type. The value can be **BOOT**, **OS** and **NORMAL**.
	DeviceType pulumi.StringInput `pulumi:"deviceType"`
	// Specifies the name of the source server.
	Name pulumi.StringInput `pulumi:"name"`
	// The disk size in MB.
	Size pulumi.IntInput `pulumi:"size"`
}

func (GetSourceServersServerDiskArgs) ElementType

func (GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutput

func (i GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutput() GetSourceServersServerDiskOutput

func (GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutputWithContext

func (i GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutputWithContext(ctx context.Context) GetSourceServersServerDiskOutput

type GetSourceServersServerDiskArray

type GetSourceServersServerDiskArray []GetSourceServersServerDiskInput

func (GetSourceServersServerDiskArray) ElementType

func (GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutput

func (i GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutput() GetSourceServersServerDiskArrayOutput

func (GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutputWithContext

func (i GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutputWithContext(ctx context.Context) GetSourceServersServerDiskArrayOutput

type GetSourceServersServerDiskArrayInput

type GetSourceServersServerDiskArrayInput interface {
	pulumi.Input

	ToGetSourceServersServerDiskArrayOutput() GetSourceServersServerDiskArrayOutput
	ToGetSourceServersServerDiskArrayOutputWithContext(context.Context) GetSourceServersServerDiskArrayOutput
}

GetSourceServersServerDiskArrayInput is an input type that accepts GetSourceServersServerDiskArray and GetSourceServersServerDiskArrayOutput values. You can construct a concrete instance of `GetSourceServersServerDiskArrayInput` via:

GetSourceServersServerDiskArray{ GetSourceServersServerDiskArgs{...} }

type GetSourceServersServerDiskArrayOutput

type GetSourceServersServerDiskArrayOutput struct{ *pulumi.OutputState }

func (GetSourceServersServerDiskArrayOutput) ElementType

func (GetSourceServersServerDiskArrayOutput) Index

func (GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutput

func (o GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutput() GetSourceServersServerDiskArrayOutput

func (GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutputWithContext

func (o GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutputWithContext(ctx context.Context) GetSourceServersServerDiskArrayOutput

type GetSourceServersServerDiskInput

type GetSourceServersServerDiskInput interface {
	pulumi.Input

	ToGetSourceServersServerDiskOutput() GetSourceServersServerDiskOutput
	ToGetSourceServersServerDiskOutputWithContext(context.Context) GetSourceServersServerDiskOutput
}

GetSourceServersServerDiskInput is an input type that accepts GetSourceServersServerDiskArgs and GetSourceServersServerDiskOutput values. You can construct a concrete instance of `GetSourceServersServerDiskInput` via:

GetSourceServersServerDiskArgs{...}

type GetSourceServersServerDiskOutput

type GetSourceServersServerDiskOutput struct{ *pulumi.OutputState }

func (GetSourceServersServerDiskOutput) DeviceType

The disk type. The value can be **BOOT**, **OS** and **NORMAL**.

func (GetSourceServersServerDiskOutput) ElementType

func (GetSourceServersServerDiskOutput) Name

Specifies the name of the source server.

func (GetSourceServersServerDiskOutput) Size

The disk size in MB.

func (GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutput

func (o GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutput() GetSourceServersServerDiskOutput

func (GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutputWithContext

func (o GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutputWithContext(ctx context.Context) GetSourceServersServerDiskOutput

type GetSourceServersServerInput

type GetSourceServersServerInput interface {
	pulumi.Input

	ToGetSourceServersServerOutput() GetSourceServersServerOutput
	ToGetSourceServersServerOutputWithContext(context.Context) GetSourceServersServerOutput
}

GetSourceServersServerInput is an input type that accepts GetSourceServersServerArgs and GetSourceServersServerOutput values. You can construct a concrete instance of `GetSourceServersServerInput` via:

GetSourceServersServerArgs{...}

type GetSourceServersServerOutput

type GetSourceServersServerOutput struct{ *pulumi.OutputState }

func (GetSourceServersServerOutput) AgentVersion

The version of Agent installed on the source server.

func (GetSourceServersServerOutput) Connected

Whether the source server is properly connected to SMS.

func (GetSourceServersServerOutput) Disks

The disk information of the source server. Structure is documented below.

func (GetSourceServersServerOutput) ElementType

func (GetSourceServersServerOutput) Id

Specifies the ID of the source server.

func (GetSourceServersServerOutput) Ip

Specifies the IP address of the source server.

func (GetSourceServersServerOutput) Memory

The memory size in MB.

func (GetSourceServersServerOutput) Name

Specifies the name of the source server.

func (GetSourceServersServerOutput) OsType

The OS type of the source server. The value can be **WINDOWS** and **LINUX**.

func (GetSourceServersServerOutput) OsVersion

The OS version of the source server, for example, UBUNTU_20_4_64BIT.

func (GetSourceServersServerOutput) RegisteredTime

The UTC time when the source server is registered.

func (GetSourceServersServerOutput) State

Specifies the status of the source server.

func (GetSourceServersServerOutput) ToGetSourceServersServerOutput

func (o GetSourceServersServerOutput) ToGetSourceServersServerOutput() GetSourceServersServerOutput

func (GetSourceServersServerOutput) ToGetSourceServersServerOutputWithContext

func (o GetSourceServersServerOutput) ToGetSourceServersServerOutputWithContext(ctx context.Context) GetSourceServersServerOutput

func (GetSourceServersServerOutput) Vcpus

The vcpus count of the source server.

type ServerTemplate

type ServerTemplate struct {
	pulumi.CustomResourceState

	// Specifies the availability zone where the target server is located.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// Specifies the bandwidth size in Mbit/s about the public IP address
	// that will be used for migration.
	BandwidthSize pulumi.IntPtrOutput `pulumi:"bandwidthSize"`
	// Specifies the flavor ID for the target server.
	Flavor pulumi.StringPtrOutput `pulumi:"flavor"`
	// Specifies the server template name.
	Name pulumi.StringOutput `pulumi:"name"`
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies an array of one or more security group IDs to associate with
	// the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
	SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"`
	// Specifies an array of one or more subnet IDs to attach to the target server.
	// If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
	SubnetIds pulumi.StringArrayOutput `pulumi:"subnetIds"`
	// Specifies the name of the target server. Defaults to the template name.
	TargetServerName pulumi.StringOutput `pulumi:"targetServerName"`
	// Specifies the disk type of the target server. Available values are: **SAS**, **SSD**,
	// defaults to **SAS**.
	VolumeType pulumi.StringPtrOutput `pulumi:"volumeType"`
	// Specifies the ID of the VPC which the target server belongs to.
	// If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The name of the VPC which the target server belongs to.
	VpcName pulumi.StringOutput `pulumi:"vpcName"`
}

Manages an SMS server template resource within HuaweiCloud.

## Example Usage ### A template will create networks during migration

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		demoAvailabilityZones, err := huaweicloud.GetAvailabilityZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = Sms.NewServerTemplate(ctx, "demoServerTemplate", &Sms.ServerTemplateArgs{
			AvailabilityZone: pulumi.String(demoAvailabilityZones.Names[0]),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### A template will use the existing networks during migration

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud"
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Sms"
"github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud"
"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, "")
		vpcId := cfg.RequireObject("vpcId")
		subentId := cfg.RequireObject("subentId")
		secgroupId := cfg.RequireObject("secgroupId")
		demoAvailabilityZones, err := huaweicloud.GetAvailabilityZones(ctx, nil, nil)
		if err != nil {
			return err
		}
		_, err = Sms.NewServerTemplate(ctx, "demoServerTemplate", &Sms.ServerTemplateArgs{
			AvailabilityZone: pulumi.String(demoAvailabilityZones.Names[0]),
			VpcId:            pulumi.Any(vpcId),
			SubnetIds: pulumi.StringArray{
				pulumi.Any(subentId),
			},
			SecurityGroupIds: pulumi.StringArray{
				pulumi.Any(secgroupId),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

SMS server templates can be imported by `id`, e.g.

```sh

$ pulumi import huaweicloud:Sms/serverTemplate:ServerTemplate demo 4618ccaf-b4d7-43b9-b958-3df3b885126d

```

func GetServerTemplate

func GetServerTemplate(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ServerTemplateState, opts ...pulumi.ResourceOption) (*ServerTemplate, error)

GetServerTemplate gets an existing ServerTemplate 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 NewServerTemplate

func NewServerTemplate(ctx *pulumi.Context,
	name string, args *ServerTemplateArgs, opts ...pulumi.ResourceOption) (*ServerTemplate, error)

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

func (*ServerTemplate) ElementType

func (*ServerTemplate) ElementType() reflect.Type

func (*ServerTemplate) ToServerTemplateOutput

func (i *ServerTemplate) ToServerTemplateOutput() ServerTemplateOutput

func (*ServerTemplate) ToServerTemplateOutputWithContext

func (i *ServerTemplate) ToServerTemplateOutputWithContext(ctx context.Context) ServerTemplateOutput

type ServerTemplateArgs

type ServerTemplateArgs struct {
	// Specifies the availability zone where the target server is located.
	AvailabilityZone pulumi.StringInput
	// Specifies the bandwidth size in Mbit/s about the public IP address
	// that will be used for migration.
	BandwidthSize pulumi.IntPtrInput
	// Specifies the flavor ID for the target server.
	Flavor pulumi.StringPtrInput
	// Specifies the server template name.
	Name pulumi.StringPtrInput
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used.
	ProjectId pulumi.StringPtrInput
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringPtrInput
	// Specifies an array of one or more security group IDs to associate with
	// the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
	SecurityGroupIds pulumi.StringArrayInput
	// Specifies an array of one or more subnet IDs to attach to the target server.
	// If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
	SubnetIds pulumi.StringArrayInput
	// Specifies the name of the target server. Defaults to the template name.
	TargetServerName pulumi.StringPtrInput
	// Specifies the disk type of the target server. Available values are: **SAS**, **SSD**,
	// defaults to **SAS**.
	VolumeType pulumi.StringPtrInput
	// Specifies the ID of the VPC which the target server belongs to.
	// If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a ServerTemplate resource.

func (ServerTemplateArgs) ElementType

func (ServerTemplateArgs) ElementType() reflect.Type

type ServerTemplateArray

type ServerTemplateArray []ServerTemplateInput

func (ServerTemplateArray) ElementType

func (ServerTemplateArray) ElementType() reflect.Type

func (ServerTemplateArray) ToServerTemplateArrayOutput

func (i ServerTemplateArray) ToServerTemplateArrayOutput() ServerTemplateArrayOutput

func (ServerTemplateArray) ToServerTemplateArrayOutputWithContext

func (i ServerTemplateArray) ToServerTemplateArrayOutputWithContext(ctx context.Context) ServerTemplateArrayOutput

type ServerTemplateArrayInput

type ServerTemplateArrayInput interface {
	pulumi.Input

	ToServerTemplateArrayOutput() ServerTemplateArrayOutput
	ToServerTemplateArrayOutputWithContext(context.Context) ServerTemplateArrayOutput
}

ServerTemplateArrayInput is an input type that accepts ServerTemplateArray and ServerTemplateArrayOutput values. You can construct a concrete instance of `ServerTemplateArrayInput` via:

ServerTemplateArray{ ServerTemplateArgs{...} }

type ServerTemplateArrayOutput

type ServerTemplateArrayOutput struct{ *pulumi.OutputState }

func (ServerTemplateArrayOutput) ElementType

func (ServerTemplateArrayOutput) ElementType() reflect.Type

func (ServerTemplateArrayOutput) Index

func (ServerTemplateArrayOutput) ToServerTemplateArrayOutput

func (o ServerTemplateArrayOutput) ToServerTemplateArrayOutput() ServerTemplateArrayOutput

func (ServerTemplateArrayOutput) ToServerTemplateArrayOutputWithContext

func (o ServerTemplateArrayOutput) ToServerTemplateArrayOutputWithContext(ctx context.Context) ServerTemplateArrayOutput

type ServerTemplateInput

type ServerTemplateInput interface {
	pulumi.Input

	ToServerTemplateOutput() ServerTemplateOutput
	ToServerTemplateOutputWithContext(ctx context.Context) ServerTemplateOutput
}

type ServerTemplateMap

type ServerTemplateMap map[string]ServerTemplateInput

func (ServerTemplateMap) ElementType

func (ServerTemplateMap) ElementType() reflect.Type

func (ServerTemplateMap) ToServerTemplateMapOutput

func (i ServerTemplateMap) ToServerTemplateMapOutput() ServerTemplateMapOutput

func (ServerTemplateMap) ToServerTemplateMapOutputWithContext

func (i ServerTemplateMap) ToServerTemplateMapOutputWithContext(ctx context.Context) ServerTemplateMapOutput

type ServerTemplateMapInput

type ServerTemplateMapInput interface {
	pulumi.Input

	ToServerTemplateMapOutput() ServerTemplateMapOutput
	ToServerTemplateMapOutputWithContext(context.Context) ServerTemplateMapOutput
}

ServerTemplateMapInput is an input type that accepts ServerTemplateMap and ServerTemplateMapOutput values. You can construct a concrete instance of `ServerTemplateMapInput` via:

ServerTemplateMap{ "key": ServerTemplateArgs{...} }

type ServerTemplateMapOutput

type ServerTemplateMapOutput struct{ *pulumi.OutputState }

func (ServerTemplateMapOutput) ElementType

func (ServerTemplateMapOutput) ElementType() reflect.Type

func (ServerTemplateMapOutput) MapIndex

func (ServerTemplateMapOutput) ToServerTemplateMapOutput

func (o ServerTemplateMapOutput) ToServerTemplateMapOutput() ServerTemplateMapOutput

func (ServerTemplateMapOutput) ToServerTemplateMapOutputWithContext

func (o ServerTemplateMapOutput) ToServerTemplateMapOutputWithContext(ctx context.Context) ServerTemplateMapOutput

type ServerTemplateOutput

type ServerTemplateOutput struct{ *pulumi.OutputState }

func (ServerTemplateOutput) AvailabilityZone

func (o ServerTemplateOutput) AvailabilityZone() pulumi.StringOutput

Specifies the availability zone where the target server is located.

func (ServerTemplateOutput) BandwidthSize

func (o ServerTemplateOutput) BandwidthSize() pulumi.IntPtrOutput

Specifies the bandwidth size in Mbit/s about the public IP address that will be used for migration.

func (ServerTemplateOutput) ElementType

func (ServerTemplateOutput) ElementType() reflect.Type

func (ServerTemplateOutput) Flavor

Specifies the flavor ID for the target server.

func (ServerTemplateOutput) Name

Specifies the server template name.

func (ServerTemplateOutput) ProjectId

Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.

func (ServerTemplateOutput) Region

Specifies the region where the target server is located. If omitted, the provider-level region will be used.

func (ServerTemplateOutput) SecurityGroupIds

func (o ServerTemplateOutput) SecurityGroupIds() pulumi.StringArrayOutput

Specifies an array of one or more security group IDs to associate with the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.

func (ServerTemplateOutput) SubnetIds

Specifies an array of one or more subnet IDs to attach to the target server. If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.

func (ServerTemplateOutput) TargetServerName

func (o ServerTemplateOutput) TargetServerName() pulumi.StringOutput

Specifies the name of the target server. Defaults to the template name.

func (ServerTemplateOutput) ToServerTemplateOutput

func (o ServerTemplateOutput) ToServerTemplateOutput() ServerTemplateOutput

func (ServerTemplateOutput) ToServerTemplateOutputWithContext

func (o ServerTemplateOutput) ToServerTemplateOutputWithContext(ctx context.Context) ServerTemplateOutput

func (ServerTemplateOutput) VolumeType

Specifies the disk type of the target server. Available values are: **SAS**, **SSD**, defaults to **SAS**.

func (ServerTemplateOutput) VpcId

Specifies the ID of the VPC which the target server belongs to. If omitted or set to "autoCreate", a new VPC will be created automatically during migration.

func (ServerTemplateOutput) VpcName

The name of the VPC which the target server belongs to.

type ServerTemplateState

type ServerTemplateState struct {
	// Specifies the availability zone where the target server is located.
	AvailabilityZone pulumi.StringPtrInput
	// Specifies the bandwidth size in Mbit/s about the public IP address
	// that will be used for migration.
	BandwidthSize pulumi.IntPtrInput
	// Specifies the flavor ID for the target server.
	Flavor pulumi.StringPtrInput
	// Specifies the server template name.
	Name pulumi.StringPtrInput
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used.
	ProjectId pulumi.StringPtrInput
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used.
	Region pulumi.StringPtrInput
	// Specifies an array of one or more security group IDs to associate with
	// the target server. If omitted or set to ["autoCreate"], a new security group will be created automatically during migration.
	SecurityGroupIds pulumi.StringArrayInput
	// Specifies an array of one or more subnet IDs to attach to the target server.
	// If omitted or set to ["autoCreate"], a new subnet will be created automatically during migration.
	SubnetIds pulumi.StringArrayInput
	// Specifies the name of the target server. Defaults to the template name.
	TargetServerName pulumi.StringPtrInput
	// Specifies the disk type of the target server. Available values are: **SAS**, **SSD**,
	// defaults to **SAS**.
	VolumeType pulumi.StringPtrInput
	// Specifies the ID of the VPC which the target server belongs to.
	// If omitted or set to "autoCreate", a new VPC will be created automatically during migration.
	VpcId pulumi.StringPtrInput
	// The name of the VPC which the target server belongs to.
	VpcName pulumi.StringPtrInput
}

func (ServerTemplateState) ElementType

func (ServerTemplateState) ElementType() reflect.Type

type Task

type Task struct {
	pulumi.CustomResourceState

	// Specifies the operation after the task is created.
	// The value can be **start**, **stop** and **restart**.
	Action pulumi.StringPtrOutput `pulumi:"action"`
	// The enterprise project id of the target server.
	EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
	// The migration rate, in MB/s.
	MigrateSpeed pulumi.Float64Output `pulumi:"migrateSpeed"`
	// Specifies the IP address of the target server.
	// Use the EIP of the target server if the migration network type is Internet.
	// Use the private IP address of the target server if the migration network type is Direct Connect or VPN.
	// Changing this parameter will create a new resource.
	MigrationIp pulumi.StringPtrOutput `pulumi:"migrationIp"`
	// Specifies the OS type of the source server. The value can be **WINDOWS** and **LINUX**.
	// Changing this parameter will create a new resource.
	OsType pulumi.StringOutput `pulumi:"osType"`
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
	ProjectId pulumi.StringOutput `pulumi:"projectId"`
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringOutput `pulumi:"region"`
	// Specifies the ID of the source server.
	// Changing this parameter will create a new resource.
	SourceServerId pulumi.StringOutput `pulumi:"sourceServerId"`
	// Specifies whether to start the target server after the migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	StartTargetServer pulumi.BoolPtrOutput `pulumi:"startTargetServer"`
	// The status of the migration task.
	State pulumi.StringOutput `pulumi:"state"`
	// - Specifies whether to perform a continuous synchronization after the first replication.
	//   The default value is `false`. Changing this parameter will create a new resource.
	Syncing pulumi.BoolPtrOutput `pulumi:"syncing"`
	// Specifies the disk configurations of the target server.
	// If omitted, it will be obtained from the source server. The object
	// is documented below. Changing this parameter will create a new resource.
	TargetServerDisks TaskTargetServerDiskArrayOutput `pulumi:"targetServerDisks"`
	// Specifies the existing server ID as the target server.
	// This parameter and `vmTemplateId` are alternative. Changing this parameter will create a new resource.
	TargetServerId pulumi.StringOutput `pulumi:"targetServerId"`
	// The name of the target server.
	TargetServerName pulumi.StringOutput `pulumi:"targetServerName"`
	// Specifies the type of the migration task. Available values are
	// **MIGRATE_FILE**(file-level migration) and **MIGRATE_BLOCK**(block-level migration).
	// Changing this parameter will create a new resource.
	Type pulumi.StringOutput `pulumi:"type"`
	// Specifies whether to use a public IP address for migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	UsePublicIp pulumi.BoolPtrOutput `pulumi:"usePublicIp"`
	// Specifies the template used to create the target server automatically.
	// This parameter and `targetServerId` are alternative. Changing this parameter will create a new resource.
	VmTemplateId pulumi.StringPtrOutput `pulumi:"vmTemplateId"`
}

Manages an SMS migration task resource within HuaweiCloud.

## Example Usage

```go package main

import (

"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Sms"
"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, "")
		sourceServer := cfg.RequireObject("sourceServer")
		templateId := cfg.RequireObject("templateId")
		_, err := Sms.NewTask(ctx, "migration", &Sms.TaskArgs{
			Type:           pulumi.String("MIGRATE_FILE"),
			OsType:         pulumi.String("LINUX"),
			SourceServerId: pulumi.Any(sourceServer),
			VmTemplateId:   pulumi.Any(templateId),
			Action:         pulumi.String("start"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

SMS migration tasks can be imported by `id`, e.g.

```sh

$ pulumi import huaweicloud:Sms/task:Task demo 6402c49b-7d9a-413e-8b5f-a7307f7d5679

```

Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response. The missing attributes include`use_public_ip`, `syncing` and `action`. It is generally recommended running `terraform plan` after importing a migration task. You can then decide if changes should be applied to the task, or the resource definition should be updated to align with the task. Also you can ignore changes as below. resource "huaweicloud_sms_task" "demo" {

...

lifecycle {

ignore_changes = [

use_public_ip, syncing, action,

]

} }

func GetTask

func GetTask(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TaskState, opts ...pulumi.ResourceOption) (*Task, error)

GetTask gets an existing Task 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 NewTask

func NewTask(ctx *pulumi.Context,
	name string, args *TaskArgs, opts ...pulumi.ResourceOption) (*Task, error)

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

func (*Task) ElementType

func (*Task) ElementType() reflect.Type

func (*Task) ToTaskOutput

func (i *Task) ToTaskOutput() TaskOutput

func (*Task) ToTaskOutputWithContext

func (i *Task) ToTaskOutputWithContext(ctx context.Context) TaskOutput

type TaskArgs

type TaskArgs struct {
	// Specifies the operation after the task is created.
	// The value can be **start**, **stop** and **restart**.
	Action pulumi.StringPtrInput
	// Specifies the IP address of the target server.
	// Use the EIP of the target server if the migration network type is Internet.
	// Use the private IP address of the target server if the migration network type is Direct Connect or VPN.
	// Changing this parameter will create a new resource.
	MigrationIp pulumi.StringPtrInput
	// Specifies the OS type of the source server. The value can be **WINDOWS** and **LINUX**.
	// Changing this parameter will create a new resource.
	OsType pulumi.StringInput
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
	ProjectId pulumi.StringPtrInput
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the ID of the source server.
	// Changing this parameter will create a new resource.
	SourceServerId pulumi.StringInput
	// Specifies whether to start the target server after the migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	StartTargetServer pulumi.BoolPtrInput
	// - Specifies whether to perform a continuous synchronization after the first replication.
	//   The default value is `false`. Changing this parameter will create a new resource.
	Syncing pulumi.BoolPtrInput
	// Specifies the disk configurations of the target server.
	// If omitted, it will be obtained from the source server. The object
	// is documented below. Changing this parameter will create a new resource.
	TargetServerDisks TaskTargetServerDiskArrayInput
	// Specifies the existing server ID as the target server.
	// This parameter and `vmTemplateId` are alternative. Changing this parameter will create a new resource.
	TargetServerId pulumi.StringPtrInput
	// Specifies the type of the migration task. Available values are
	// **MIGRATE_FILE**(file-level migration) and **MIGRATE_BLOCK**(block-level migration).
	// Changing this parameter will create a new resource.
	Type pulumi.StringInput
	// Specifies whether to use a public IP address for migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	UsePublicIp pulumi.BoolPtrInput
	// Specifies the template used to create the target server automatically.
	// This parameter and `targetServerId` are alternative. Changing this parameter will create a new resource.
	VmTemplateId pulumi.StringPtrInput
}

The set of arguments for constructing a Task resource.

func (TaskArgs) ElementType

func (TaskArgs) ElementType() reflect.Type

type TaskArray

type TaskArray []TaskInput

func (TaskArray) ElementType

func (TaskArray) ElementType() reflect.Type

func (TaskArray) ToTaskArrayOutput

func (i TaskArray) ToTaskArrayOutput() TaskArrayOutput

func (TaskArray) ToTaskArrayOutputWithContext

func (i TaskArray) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskArrayInput

type TaskArrayInput interface {
	pulumi.Input

	ToTaskArrayOutput() TaskArrayOutput
	ToTaskArrayOutputWithContext(context.Context) TaskArrayOutput
}

TaskArrayInput is an input type that accepts TaskArray and TaskArrayOutput values. You can construct a concrete instance of `TaskArrayInput` via:

TaskArray{ TaskArgs{...} }

type TaskArrayOutput

type TaskArrayOutput struct{ *pulumi.OutputState }

func (TaskArrayOutput) ElementType

func (TaskArrayOutput) ElementType() reflect.Type

func (TaskArrayOutput) Index

func (TaskArrayOutput) ToTaskArrayOutput

func (o TaskArrayOutput) ToTaskArrayOutput() TaskArrayOutput

func (TaskArrayOutput) ToTaskArrayOutputWithContext

func (o TaskArrayOutput) ToTaskArrayOutputWithContext(ctx context.Context) TaskArrayOutput

type TaskInput

type TaskInput interface {
	pulumi.Input

	ToTaskOutput() TaskOutput
	ToTaskOutputWithContext(ctx context.Context) TaskOutput
}

type TaskMap

type TaskMap map[string]TaskInput

func (TaskMap) ElementType

func (TaskMap) ElementType() reflect.Type

func (TaskMap) ToTaskMapOutput

func (i TaskMap) ToTaskMapOutput() TaskMapOutput

func (TaskMap) ToTaskMapOutputWithContext

func (i TaskMap) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskMapInput

type TaskMapInput interface {
	pulumi.Input

	ToTaskMapOutput() TaskMapOutput
	ToTaskMapOutputWithContext(context.Context) TaskMapOutput
}

TaskMapInput is an input type that accepts TaskMap and TaskMapOutput values. You can construct a concrete instance of `TaskMapInput` via:

TaskMap{ "key": TaskArgs{...} }

type TaskMapOutput

type TaskMapOutput struct{ *pulumi.OutputState }

func (TaskMapOutput) ElementType

func (TaskMapOutput) ElementType() reflect.Type

func (TaskMapOutput) MapIndex

func (TaskMapOutput) ToTaskMapOutput

func (o TaskMapOutput) ToTaskMapOutput() TaskMapOutput

func (TaskMapOutput) ToTaskMapOutputWithContext

func (o TaskMapOutput) ToTaskMapOutputWithContext(ctx context.Context) TaskMapOutput

type TaskOutput

type TaskOutput struct{ *pulumi.OutputState }

func (TaskOutput) Action

func (o TaskOutput) Action() pulumi.StringPtrOutput

Specifies the operation after the task is created. The value can be **start**, **stop** and **restart**.

func (TaskOutput) ElementType

func (TaskOutput) ElementType() reflect.Type

func (TaskOutput) EnterpriseProjectId

func (o TaskOutput) EnterpriseProjectId() pulumi.StringOutput

The enterprise project id of the target server.

func (TaskOutput) MigrateSpeed

func (o TaskOutput) MigrateSpeed() pulumi.Float64Output

The migration rate, in MB/s.

func (TaskOutput) MigrationIp

func (o TaskOutput) MigrationIp() pulumi.StringPtrOutput

Specifies the IP address of the target server. Use the EIP of the target server if the migration network type is Internet. Use the private IP address of the target server if the migration network type is Direct Connect or VPN. Changing this parameter will create a new resource.

func (TaskOutput) OsType

func (o TaskOutput) OsType() pulumi.StringOutput

Specifies the OS type of the source server. The value can be **WINDOWS** and **LINUX**. Changing this parameter will create a new resource.

func (TaskOutput) ProjectId

func (o TaskOutput) ProjectId() pulumi.StringOutput

Specifies the project ID where the target server is located. If omitted, the default project in the region will be used. Changing this parameter will create a new resource.

func (TaskOutput) Region

func (o TaskOutput) Region() pulumi.StringOutput

Specifies the region where the target server is located. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.

func (TaskOutput) SourceServerId

func (o TaskOutput) SourceServerId() pulumi.StringOutput

Specifies the ID of the source server. Changing this parameter will create a new resource.

func (TaskOutput) StartTargetServer

func (o TaskOutput) StartTargetServer() pulumi.BoolPtrOutput

Specifies whether to start the target server after the migration. The default value is `true`. Changing this parameter will create a new resource.

func (TaskOutput) State

func (o TaskOutput) State() pulumi.StringOutput

The status of the migration task.

func (TaskOutput) Syncing

func (o TaskOutput) Syncing() pulumi.BoolPtrOutput
  • Specifies whether to perform a continuous synchronization after the first replication. The default value is `false`. Changing this parameter will create a new resource.

func (TaskOutput) TargetServerDisks

func (o TaskOutput) TargetServerDisks() TaskTargetServerDiskArrayOutput

Specifies the disk configurations of the target server. If omitted, it will be obtained from the source server. The object is documented below. Changing this parameter will create a new resource.

func (TaskOutput) TargetServerId

func (o TaskOutput) TargetServerId() pulumi.StringOutput

Specifies the existing server ID as the target server. This parameter and `vmTemplateId` are alternative. Changing this parameter will create a new resource.

func (TaskOutput) TargetServerName

func (o TaskOutput) TargetServerName() pulumi.StringOutput

The name of the target server.

func (TaskOutput) ToTaskOutput

func (o TaskOutput) ToTaskOutput() TaskOutput

func (TaskOutput) ToTaskOutputWithContext

func (o TaskOutput) ToTaskOutputWithContext(ctx context.Context) TaskOutput

func (TaskOutput) Type

func (o TaskOutput) Type() pulumi.StringOutput

Specifies the type of the migration task. Available values are **MIGRATE_FILE**(file-level migration) and **MIGRATE_BLOCK**(block-level migration). Changing this parameter will create a new resource.

func (TaskOutput) UsePublicIp

func (o TaskOutput) UsePublicIp() pulumi.BoolPtrOutput

Specifies whether to use a public IP address for migration. The default value is `true`. Changing this parameter will create a new resource.

func (TaskOutput) VmTemplateId

func (o TaskOutput) VmTemplateId() pulumi.StringPtrOutput

Specifies the template used to create the target server automatically. This parameter and `targetServerId` are alternative. Changing this parameter will create a new resource.

type TaskState

type TaskState struct {
	// Specifies the operation after the task is created.
	// The value can be **start**, **stop** and **restart**.
	Action pulumi.StringPtrInput
	// The enterprise project id of the target server.
	EnterpriseProjectId pulumi.StringPtrInput
	// The migration rate, in MB/s.
	MigrateSpeed pulumi.Float64PtrInput
	// Specifies the IP address of the target server.
	// Use the EIP of the target server if the migration network type is Internet.
	// Use the private IP address of the target server if the migration network type is Direct Connect or VPN.
	// Changing this parameter will create a new resource.
	MigrationIp pulumi.StringPtrInput
	// Specifies the OS type of the source server. The value can be **WINDOWS** and **LINUX**.
	// Changing this parameter will create a new resource.
	OsType pulumi.StringPtrInput
	// Specifies the project ID where the target server is located.
	// If omitted, the default project in the region will be used. Changing this parameter will create a new resource.
	ProjectId pulumi.StringPtrInput
	// Specifies the region where the target server is located.
	// If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
	Region pulumi.StringPtrInput
	// Specifies the ID of the source server.
	// Changing this parameter will create a new resource.
	SourceServerId pulumi.StringPtrInput
	// Specifies whether to start the target server after the migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	StartTargetServer pulumi.BoolPtrInput
	// The status of the migration task.
	State pulumi.StringPtrInput
	// - Specifies whether to perform a continuous synchronization after the first replication.
	//   The default value is `false`. Changing this parameter will create a new resource.
	Syncing pulumi.BoolPtrInput
	// Specifies the disk configurations of the target server.
	// If omitted, it will be obtained from the source server. The object
	// is documented below. Changing this parameter will create a new resource.
	TargetServerDisks TaskTargetServerDiskArrayInput
	// Specifies the existing server ID as the target server.
	// This parameter and `vmTemplateId` are alternative. Changing this parameter will create a new resource.
	TargetServerId pulumi.StringPtrInput
	// The name of the target server.
	TargetServerName pulumi.StringPtrInput
	// Specifies the type of the migration task. Available values are
	// **MIGRATE_FILE**(file-level migration) and **MIGRATE_BLOCK**(block-level migration).
	// Changing this parameter will create a new resource.
	Type pulumi.StringPtrInput
	// Specifies whether to use a public IP address for migration.
	// The default value is `true`. Changing this parameter will create a new resource.
	UsePublicIp pulumi.BoolPtrInput
	// Specifies the template used to create the target server automatically.
	// This parameter and `targetServerId` are alternative. Changing this parameter will create a new resource.
	VmTemplateId pulumi.StringPtrInput
}

func (TaskState) ElementType

func (TaskState) ElementType() reflect.Type

type TaskTargetServerDisk

type TaskTargetServerDisk struct {
	// Specifies the partition type. The value can be **NORMAL** and **OS**.
	// Changing this parameter will create a new resource.
	DeviceType string `pulumi:"deviceType"`
	// Specifies the disk index, e.g. "0".
	// Changing this parameter will create a new resource.
	DiskId *string `pulumi:"diskId"`
	// Specifies the volume name. In Windows, it indicates the drive letter,
	// and in Linux, it indicates the device ID, e.g. "/dev/sda1".
	// Changing this parameter will create a new resource.
	Name string `pulumi:"name"`
	// Specifies an array of physical volume informations.
	// The object is documented below. Changing this parameter will create a new resource.
	PhysicalVolumes []TaskTargetServerDiskPhysicalVolume `pulumi:"physicalVolumes"`
	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	Size int `pulumi:"size"`
	// Specifies the used space in MB.
	// Changing this parameter will create a new resource.
	UsedSize *int `pulumi:"usedSize"`
}

type TaskTargetServerDiskArgs

type TaskTargetServerDiskArgs struct {
	// Specifies the partition type. The value can be **NORMAL** and **OS**.
	// Changing this parameter will create a new resource.
	DeviceType pulumi.StringInput `pulumi:"deviceType"`
	// Specifies the disk index, e.g. "0".
	// Changing this parameter will create a new resource.
	DiskId pulumi.StringPtrInput `pulumi:"diskId"`
	// Specifies the volume name. In Windows, it indicates the drive letter,
	// and in Linux, it indicates the device ID, e.g. "/dev/sda1".
	// Changing this parameter will create a new resource.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies an array of physical volume informations.
	// The object is documented below. Changing this parameter will create a new resource.
	PhysicalVolumes TaskTargetServerDiskPhysicalVolumeArrayInput `pulumi:"physicalVolumes"`
	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	Size pulumi.IntInput `pulumi:"size"`
	// Specifies the used space in MB.
	// Changing this parameter will create a new resource.
	UsedSize pulumi.IntPtrInput `pulumi:"usedSize"`
}

func (TaskTargetServerDiskArgs) ElementType

func (TaskTargetServerDiskArgs) ElementType() reflect.Type

func (TaskTargetServerDiskArgs) ToTaskTargetServerDiskOutput

func (i TaskTargetServerDiskArgs) ToTaskTargetServerDiskOutput() TaskTargetServerDiskOutput

func (TaskTargetServerDiskArgs) ToTaskTargetServerDiskOutputWithContext

func (i TaskTargetServerDiskArgs) ToTaskTargetServerDiskOutputWithContext(ctx context.Context) TaskTargetServerDiskOutput

type TaskTargetServerDiskArray

type TaskTargetServerDiskArray []TaskTargetServerDiskInput

func (TaskTargetServerDiskArray) ElementType

func (TaskTargetServerDiskArray) ElementType() reflect.Type

func (TaskTargetServerDiskArray) ToTaskTargetServerDiskArrayOutput

func (i TaskTargetServerDiskArray) ToTaskTargetServerDiskArrayOutput() TaskTargetServerDiskArrayOutput

func (TaskTargetServerDiskArray) ToTaskTargetServerDiskArrayOutputWithContext

func (i TaskTargetServerDiskArray) ToTaskTargetServerDiskArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskArrayOutput

type TaskTargetServerDiskArrayInput

type TaskTargetServerDiskArrayInput interface {
	pulumi.Input

	ToTaskTargetServerDiskArrayOutput() TaskTargetServerDiskArrayOutput
	ToTaskTargetServerDiskArrayOutputWithContext(context.Context) TaskTargetServerDiskArrayOutput
}

TaskTargetServerDiskArrayInput is an input type that accepts TaskTargetServerDiskArray and TaskTargetServerDiskArrayOutput values. You can construct a concrete instance of `TaskTargetServerDiskArrayInput` via:

TaskTargetServerDiskArray{ TaskTargetServerDiskArgs{...} }

type TaskTargetServerDiskArrayOutput

type TaskTargetServerDiskArrayOutput struct{ *pulumi.OutputState }

func (TaskTargetServerDiskArrayOutput) ElementType

func (TaskTargetServerDiskArrayOutput) Index

func (TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutput

func (o TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutput() TaskTargetServerDiskArrayOutput

func (TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutputWithContext

func (o TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskArrayOutput

type TaskTargetServerDiskInput

type TaskTargetServerDiskInput interface {
	pulumi.Input

	ToTaskTargetServerDiskOutput() TaskTargetServerDiskOutput
	ToTaskTargetServerDiskOutputWithContext(context.Context) TaskTargetServerDiskOutput
}

TaskTargetServerDiskInput is an input type that accepts TaskTargetServerDiskArgs and TaskTargetServerDiskOutput values. You can construct a concrete instance of `TaskTargetServerDiskInput` via:

TaskTargetServerDiskArgs{...}

type TaskTargetServerDiskOutput

type TaskTargetServerDiskOutput struct{ *pulumi.OutputState }

func (TaskTargetServerDiskOutput) DeviceType

Specifies the partition type. The value can be **NORMAL** and **OS**. Changing this parameter will create a new resource.

func (TaskTargetServerDiskOutput) DiskId

Specifies the disk index, e.g. "0". Changing this parameter will create a new resource.

func (TaskTargetServerDiskOutput) ElementType

func (TaskTargetServerDiskOutput) ElementType() reflect.Type

func (TaskTargetServerDiskOutput) Name

Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.

func (TaskTargetServerDiskOutput) PhysicalVolumes

Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.

func (TaskTargetServerDiskOutput) Size

Specifies the volume size in MB. Changing this parameter will create a new resource.

func (TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutput

func (o TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutput() TaskTargetServerDiskOutput

func (TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutputWithContext

func (o TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutputWithContext(ctx context.Context) TaskTargetServerDiskOutput

func (TaskTargetServerDiskOutput) UsedSize

Specifies the used space in MB. Changing this parameter will create a new resource.

type TaskTargetServerDiskPhysicalVolume

type TaskTargetServerDiskPhysicalVolume struct {
	// Specifies the partition type. The value can be **NORMAL** and **OS**.
	// Changing this parameter will create a new resource.
	DeviceType string `pulumi:"deviceType"`
	// Specifies the file system type, e.g. "ext4".
	// Changing this parameter will create a new resource.
	FileSystem string `pulumi:"fileSystem"`
	// Specifies the serial number of the volume.
	// Changing this parameter will create a new resource.
	Index int `pulumi:"index"`
	// Specifies the mount point, e.g. "/".
	// Changing this parameter will create a new resource.
	MountPoint string `pulumi:"mountPoint"`
	// Specifies the volume name. In Windows, it indicates the drive letter,
	// and in Linux, it indicates the device ID, e.g. "/dev/sda1".
	// Changing this parameter will create a new resource.
	Name string `pulumi:"name"`
	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	Size int `pulumi:"size"`
	// Specifies the used space in MB.
	// Changing this parameter will create a new resource.
	UsedSize *int `pulumi:"usedSize"`
	// Specifies the GUID of the volume.
	// Changing this parameter will create a new resource.
	Uuid *string `pulumi:"uuid"`
}

type TaskTargetServerDiskPhysicalVolumeArgs

type TaskTargetServerDiskPhysicalVolumeArgs struct {
	// Specifies the partition type. The value can be **NORMAL** and **OS**.
	// Changing this parameter will create a new resource.
	DeviceType pulumi.StringInput `pulumi:"deviceType"`
	// Specifies the file system type, e.g. "ext4".
	// Changing this parameter will create a new resource.
	FileSystem pulumi.StringInput `pulumi:"fileSystem"`
	// Specifies the serial number of the volume.
	// Changing this parameter will create a new resource.
	Index pulumi.IntInput `pulumi:"index"`
	// Specifies the mount point, e.g. "/".
	// Changing this parameter will create a new resource.
	MountPoint pulumi.StringInput `pulumi:"mountPoint"`
	// Specifies the volume name. In Windows, it indicates the drive letter,
	// and in Linux, it indicates the device ID, e.g. "/dev/sda1".
	// Changing this parameter will create a new resource.
	Name pulumi.StringInput `pulumi:"name"`
	// Specifies the volume size in MB. Changing this parameter will create a new resource.
	Size pulumi.IntInput `pulumi:"size"`
	// Specifies the used space in MB.
	// Changing this parameter will create a new resource.
	UsedSize pulumi.IntPtrInput `pulumi:"usedSize"`
	// Specifies the GUID of the volume.
	// Changing this parameter will create a new resource.
	Uuid pulumi.StringPtrInput `pulumi:"uuid"`
}

func (TaskTargetServerDiskPhysicalVolumeArgs) ElementType

func (TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutput

func (i TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutput() TaskTargetServerDiskPhysicalVolumeOutput

func (TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext

func (i TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeOutput

type TaskTargetServerDiskPhysicalVolumeArray

type TaskTargetServerDiskPhysicalVolumeArray []TaskTargetServerDiskPhysicalVolumeInput

func (TaskTargetServerDiskPhysicalVolumeArray) ElementType

func (TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutput

func (i TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutput() TaskTargetServerDiskPhysicalVolumeArrayOutput

func (TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext

func (i TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeArrayOutput

type TaskTargetServerDiskPhysicalVolumeArrayInput

type TaskTargetServerDiskPhysicalVolumeArrayInput interface {
	pulumi.Input

	ToTaskTargetServerDiskPhysicalVolumeArrayOutput() TaskTargetServerDiskPhysicalVolumeArrayOutput
	ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext(context.Context) TaskTargetServerDiskPhysicalVolumeArrayOutput
}

TaskTargetServerDiskPhysicalVolumeArrayInput is an input type that accepts TaskTargetServerDiskPhysicalVolumeArray and TaskTargetServerDiskPhysicalVolumeArrayOutput values. You can construct a concrete instance of `TaskTargetServerDiskPhysicalVolumeArrayInput` via:

TaskTargetServerDiskPhysicalVolumeArray{ TaskTargetServerDiskPhysicalVolumeArgs{...} }

type TaskTargetServerDiskPhysicalVolumeArrayOutput

type TaskTargetServerDiskPhysicalVolumeArrayOutput struct{ *pulumi.OutputState }

func (TaskTargetServerDiskPhysicalVolumeArrayOutput) ElementType

func (TaskTargetServerDiskPhysicalVolumeArrayOutput) Index

func (TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutput

func (o TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutput() TaskTargetServerDiskPhysicalVolumeArrayOutput

func (TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext

func (o TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeArrayOutput

type TaskTargetServerDiskPhysicalVolumeInput

type TaskTargetServerDiskPhysicalVolumeInput interface {
	pulumi.Input

	ToTaskTargetServerDiskPhysicalVolumeOutput() TaskTargetServerDiskPhysicalVolumeOutput
	ToTaskTargetServerDiskPhysicalVolumeOutputWithContext(context.Context) TaskTargetServerDiskPhysicalVolumeOutput
}

TaskTargetServerDiskPhysicalVolumeInput is an input type that accepts TaskTargetServerDiskPhysicalVolumeArgs and TaskTargetServerDiskPhysicalVolumeOutput values. You can construct a concrete instance of `TaskTargetServerDiskPhysicalVolumeInput` via:

TaskTargetServerDiskPhysicalVolumeArgs{...}

type TaskTargetServerDiskPhysicalVolumeOutput

type TaskTargetServerDiskPhysicalVolumeOutput struct{ *pulumi.OutputState }

func (TaskTargetServerDiskPhysicalVolumeOutput) DeviceType

Specifies the partition type. The value can be **NORMAL** and **OS**. Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) ElementType

func (TaskTargetServerDiskPhysicalVolumeOutput) FileSystem

Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) Index

Specifies the serial number of the volume. Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) MountPoint

Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) Name

Specifies the volume name. In Windows, it indicates the drive letter, and in Linux, it indicates the device ID, e.g. "/dev/sda1". Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) Size

Specifies the volume size in MB. Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutput

func (o TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutput() TaskTargetServerDiskPhysicalVolumeOutput

func (TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext

func (o TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeOutput

func (TaskTargetServerDiskPhysicalVolumeOutput) UsedSize

Specifies the used space in MB. Changing this parameter will create a new resource.

func (TaskTargetServerDiskPhysicalVolumeOutput) Uuid

Specifies the GUID of the volume. Changing this parameter will create a new resource.

Jump to

Keyboard shortcuts

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