Documentation ¶
Index ¶
- func PkgVersion() (semver.Version, error)
- type GetSourceServersArgs
- type GetSourceServersOutputArgs
- type GetSourceServersResult
- type GetSourceServersResultOutput
- func (GetSourceServersResultOutput) ElementType() reflect.Type
- func (o GetSourceServersResultOutput) Id() pulumi.StringOutput
- func (o GetSourceServersResultOutput) Ip() pulumi.StringPtrOutput
- func (o GetSourceServersResultOutput) Name() pulumi.StringPtrOutput
- func (o GetSourceServersResultOutput) Servers() GetSourceServersServerArrayOutput
- func (o GetSourceServersResultOutput) State() pulumi.StringPtrOutput
- func (o GetSourceServersResultOutput) ToGetSourceServersResultOutput() GetSourceServersResultOutput
- func (o GetSourceServersResultOutput) ToGetSourceServersResultOutputWithContext(ctx context.Context) GetSourceServersResultOutput
- type GetSourceServersServer
- type GetSourceServersServerArgs
- type GetSourceServersServerArray
- func (GetSourceServersServerArray) ElementType() reflect.Type
- func (i GetSourceServersServerArray) ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput
- func (i GetSourceServersServerArray) ToGetSourceServersServerArrayOutputWithContext(ctx context.Context) GetSourceServersServerArrayOutput
- type GetSourceServersServerArrayInput
- type GetSourceServersServerArrayOutput
- func (GetSourceServersServerArrayOutput) ElementType() reflect.Type
- func (o GetSourceServersServerArrayOutput) Index(i pulumi.IntInput) GetSourceServersServerOutput
- func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput
- func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutputWithContext(ctx context.Context) GetSourceServersServerArrayOutput
- type GetSourceServersServerDisk
- type GetSourceServersServerDiskArgs
- func (GetSourceServersServerDiskArgs) ElementType() reflect.Type
- func (i GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutput() GetSourceServersServerDiskOutput
- func (i GetSourceServersServerDiskArgs) ToGetSourceServersServerDiskOutputWithContext(ctx context.Context) GetSourceServersServerDiskOutput
- type GetSourceServersServerDiskArray
- func (GetSourceServersServerDiskArray) ElementType() reflect.Type
- func (i GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutput() GetSourceServersServerDiskArrayOutput
- func (i GetSourceServersServerDiskArray) ToGetSourceServersServerDiskArrayOutputWithContext(ctx context.Context) GetSourceServersServerDiskArrayOutput
- type GetSourceServersServerDiskArrayInput
- type GetSourceServersServerDiskArrayOutput
- func (GetSourceServersServerDiskArrayOutput) ElementType() reflect.Type
- func (o GetSourceServersServerDiskArrayOutput) Index(i pulumi.IntInput) GetSourceServersServerDiskOutput
- func (o GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutput() GetSourceServersServerDiskArrayOutput
- func (o GetSourceServersServerDiskArrayOutput) ToGetSourceServersServerDiskArrayOutputWithContext(ctx context.Context) GetSourceServersServerDiskArrayOutput
- type GetSourceServersServerDiskInput
- type GetSourceServersServerDiskOutput
- func (o GetSourceServersServerDiskOutput) DeviceType() pulumi.StringOutput
- func (GetSourceServersServerDiskOutput) ElementType() reflect.Type
- func (o GetSourceServersServerDiskOutput) Name() pulumi.StringOutput
- func (o GetSourceServersServerDiskOutput) Size() pulumi.IntOutput
- func (o GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutput() GetSourceServersServerDiskOutput
- func (o GetSourceServersServerDiskOutput) ToGetSourceServersServerDiskOutputWithContext(ctx context.Context) GetSourceServersServerDiskOutput
- type GetSourceServersServerInput
- type GetSourceServersServerOutput
- func (o GetSourceServersServerOutput) AgentVersion() pulumi.StringOutput
- func (o GetSourceServersServerOutput) Connected() pulumi.BoolOutput
- func (o GetSourceServersServerOutput) Disks() GetSourceServersServerDiskArrayOutput
- func (GetSourceServersServerOutput) ElementType() reflect.Type
- func (o GetSourceServersServerOutput) Id() pulumi.StringOutput
- func (o GetSourceServersServerOutput) Ip() pulumi.StringOutput
- func (o GetSourceServersServerOutput) Memory() pulumi.IntOutput
- func (o GetSourceServersServerOutput) Name() pulumi.StringOutput
- func (o GetSourceServersServerOutput) OsType() pulumi.StringOutput
- func (o GetSourceServersServerOutput) OsVersion() pulumi.StringOutput
- func (o GetSourceServersServerOutput) RegisteredTime() pulumi.StringOutput
- func (o GetSourceServersServerOutput) State() pulumi.StringOutput
- func (o GetSourceServersServerOutput) ToGetSourceServersServerOutput() GetSourceServersServerOutput
- func (o GetSourceServersServerOutput) ToGetSourceServersServerOutputWithContext(ctx context.Context) GetSourceServersServerOutput
- func (o GetSourceServersServerOutput) Vcpus() pulumi.IntOutput
- type ServerTemplate
- type ServerTemplateArgs
- type ServerTemplateArray
- type ServerTemplateArrayInput
- type ServerTemplateArrayOutput
- func (ServerTemplateArrayOutput) ElementType() reflect.Type
- func (o ServerTemplateArrayOutput) Index(i pulumi.IntInput) ServerTemplateOutput
- func (o ServerTemplateArrayOutput) ToServerTemplateArrayOutput() ServerTemplateArrayOutput
- func (o ServerTemplateArrayOutput) ToServerTemplateArrayOutputWithContext(ctx context.Context) ServerTemplateArrayOutput
- type ServerTemplateInput
- type ServerTemplateMap
- type ServerTemplateMapInput
- type ServerTemplateMapOutput
- func (ServerTemplateMapOutput) ElementType() reflect.Type
- func (o ServerTemplateMapOutput) MapIndex(k pulumi.StringInput) ServerTemplateOutput
- func (o ServerTemplateMapOutput) ToServerTemplateMapOutput() ServerTemplateMapOutput
- func (o ServerTemplateMapOutput) ToServerTemplateMapOutputWithContext(ctx context.Context) ServerTemplateMapOutput
- type ServerTemplateOutput
- func (o ServerTemplateOutput) AvailabilityZone() pulumi.StringOutput
- func (o ServerTemplateOutput) BandwidthSize() pulumi.IntPtrOutput
- func (ServerTemplateOutput) ElementType() reflect.Type
- func (o ServerTemplateOutput) Flavor() pulumi.StringPtrOutput
- func (o ServerTemplateOutput) Name() pulumi.StringOutput
- func (o ServerTemplateOutput) ProjectId() pulumi.StringOutput
- func (o ServerTemplateOutput) Region() pulumi.StringOutput
- func (o ServerTemplateOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o ServerTemplateOutput) SubnetIds() pulumi.StringArrayOutput
- func (o ServerTemplateOutput) TargetServerName() pulumi.StringOutput
- func (o ServerTemplateOutput) ToServerTemplateOutput() ServerTemplateOutput
- func (o ServerTemplateOutput) ToServerTemplateOutputWithContext(ctx context.Context) ServerTemplateOutput
- func (o ServerTemplateOutput) VolumeType() pulumi.StringPtrOutput
- func (o ServerTemplateOutput) VpcId() pulumi.StringOutput
- func (o ServerTemplateOutput) VpcName() pulumi.StringOutput
- type ServerTemplateState
- type Task
- type TaskArgs
- type TaskArray
- type TaskArrayInput
- type TaskArrayOutput
- type TaskInput
- type TaskMap
- type TaskMapInput
- type TaskMapOutput
- type TaskOutput
- func (o TaskOutput) Action() pulumi.StringPtrOutput
- func (TaskOutput) ElementType() reflect.Type
- func (o TaskOutput) EnterpriseProjectId() pulumi.StringOutput
- func (o TaskOutput) MigrateSpeed() pulumi.Float64Output
- func (o TaskOutput) MigrationIp() pulumi.StringPtrOutput
- func (o TaskOutput) OsType() pulumi.StringOutput
- func (o TaskOutput) ProjectId() pulumi.StringOutput
- func (o TaskOutput) Region() pulumi.StringOutput
- func (o TaskOutput) SourceServerId() pulumi.StringOutput
- func (o TaskOutput) StartTargetServer() pulumi.BoolPtrOutput
- func (o TaskOutput) State() pulumi.StringOutput
- func (o TaskOutput) Syncing() pulumi.BoolPtrOutput
- func (o TaskOutput) TargetServerDisks() TaskTargetServerDiskArrayOutput
- func (o TaskOutput) TargetServerId() pulumi.StringOutput
- func (o TaskOutput) TargetServerName() pulumi.StringOutput
- func (o TaskOutput) ToTaskOutput() TaskOutput
- func (o TaskOutput) ToTaskOutputWithContext(ctx context.Context) TaskOutput
- func (o TaskOutput) Type() pulumi.StringOutput
- func (o TaskOutput) UsePublicIp() pulumi.BoolPtrOutput
- func (o TaskOutput) VmTemplateId() pulumi.StringPtrOutput
- type TaskState
- type TaskTargetServerDisk
- type TaskTargetServerDiskArgs
- type TaskTargetServerDiskArray
- type TaskTargetServerDiskArrayInput
- type TaskTargetServerDiskArrayOutput
- func (TaskTargetServerDiskArrayOutput) ElementType() reflect.Type
- func (o TaskTargetServerDiskArrayOutput) Index(i pulumi.IntInput) TaskTargetServerDiskOutput
- func (o TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutput() TaskTargetServerDiskArrayOutput
- func (o TaskTargetServerDiskArrayOutput) ToTaskTargetServerDiskArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskArrayOutput
- type TaskTargetServerDiskInput
- type TaskTargetServerDiskOutput
- func (o TaskTargetServerDiskOutput) DeviceType() pulumi.StringOutput
- func (o TaskTargetServerDiskOutput) DiskId() pulumi.StringPtrOutput
- func (TaskTargetServerDiskOutput) ElementType() reflect.Type
- func (o TaskTargetServerDiskOutput) Name() pulumi.StringOutput
- func (o TaskTargetServerDiskOutput) PhysicalVolumes() TaskTargetServerDiskPhysicalVolumeArrayOutput
- func (o TaskTargetServerDiskOutput) Size() pulumi.IntOutput
- func (o TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutput() TaskTargetServerDiskOutput
- func (o TaskTargetServerDiskOutput) ToTaskTargetServerDiskOutputWithContext(ctx context.Context) TaskTargetServerDiskOutput
- func (o TaskTargetServerDiskOutput) UsedSize() pulumi.IntPtrOutput
- type TaskTargetServerDiskPhysicalVolume
- type TaskTargetServerDiskPhysicalVolumeArgs
- func (TaskTargetServerDiskPhysicalVolumeArgs) ElementType() reflect.Type
- func (i TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutput() TaskTargetServerDiskPhysicalVolumeOutput
- func (i TaskTargetServerDiskPhysicalVolumeArgs) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeOutput
- type TaskTargetServerDiskPhysicalVolumeArray
- func (TaskTargetServerDiskPhysicalVolumeArray) ElementType() reflect.Type
- func (i TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutput() TaskTargetServerDiskPhysicalVolumeArrayOutput
- func (i TaskTargetServerDiskPhysicalVolumeArray) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeArrayOutput
- type TaskTargetServerDiskPhysicalVolumeArrayInput
- type TaskTargetServerDiskPhysicalVolumeArrayOutput
- func (TaskTargetServerDiskPhysicalVolumeArrayOutput) ElementType() reflect.Type
- func (o TaskTargetServerDiskPhysicalVolumeArrayOutput) Index(i pulumi.IntInput) TaskTargetServerDiskPhysicalVolumeOutput
- func (o TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutput() TaskTargetServerDiskPhysicalVolumeArrayOutput
- func (o TaskTargetServerDiskPhysicalVolumeArrayOutput) ToTaskTargetServerDiskPhysicalVolumeArrayOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeArrayOutput
- type TaskTargetServerDiskPhysicalVolumeInput
- type TaskTargetServerDiskPhysicalVolumeOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) DeviceType() pulumi.StringOutput
- func (TaskTargetServerDiskPhysicalVolumeOutput) ElementType() reflect.Type
- func (o TaskTargetServerDiskPhysicalVolumeOutput) FileSystem() pulumi.StringOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) Index() pulumi.IntOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) MountPoint() pulumi.StringOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) Name() pulumi.StringOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) Size() pulumi.IntOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutput() TaskTargetServerDiskPhysicalVolumeOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) ToTaskTargetServerDiskPhysicalVolumeOutputWithContext(ctx context.Context) TaskTargetServerDiskPhysicalVolumeOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) UsedSize() pulumi.IntPtrOutput
- func (o TaskTargetServerDiskPhysicalVolumeOutput) Uuid() pulumi.StringPtrOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PkgVersion ¶ added in v0.0.2
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 GetSourceServersOutput ¶
func GetSourceServersOutput(ctx *pulumi.Context, args GetSourceServersOutputArgs, opts ...pulumi.InvokeOption) GetSourceServersResultOutput
func (GetSourceServersResultOutput) ElementType ¶
func (GetSourceServersResultOutput) ElementType() reflect.Type
func (GetSourceServersResultOutput) Id ¶
func (o GetSourceServersResultOutput) Id() pulumi.StringOutput
The ID of the source server.
func (GetSourceServersResultOutput) Ip ¶
func (o GetSourceServersResultOutput) Ip() pulumi.StringPtrOutput
The IP address of the source server.
func (GetSourceServersResultOutput) Name ¶
func (o GetSourceServersResultOutput) Name() pulumi.StringPtrOutput
The disk name, for example, /dev/vda.
func (GetSourceServersResultOutput) Servers ¶
func (o GetSourceServersResultOutput) Servers() GetSourceServersServerArrayOutput
An array of SMS source servers found. Structure is documented below.
func (GetSourceServersResultOutput) State ¶
func (o GetSourceServersResultOutput) State() pulumi.StringPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetSourceServersServerArrayOutput) Index ¶
func (o GetSourceServersServerArrayOutput) Index(i pulumi.IntInput) GetSourceServersServerOutput
func (GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutput ¶
func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutput() GetSourceServersServerArrayOutput
func (GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutputWithContext ¶
func (o GetSourceServersServerArrayOutput) ToGetSourceServersServerArrayOutputWithContext(ctx context.Context) GetSourceServersServerArrayOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
func (GetSourceServersServerDiskArrayOutput) Index ¶
func (o GetSourceServersServerDiskArrayOutput) Index(i pulumi.IntInput) GetSourceServersServerDiskOutput
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 ¶
func (o GetSourceServersServerDiskOutput) DeviceType() pulumi.StringOutput
The disk type. The value can be **BOOT**, **OS** and **NORMAL**.
func (GetSourceServersServerDiskOutput) ElementType ¶
func (GetSourceServersServerDiskOutput) ElementType() reflect.Type
func (GetSourceServersServerDiskOutput) Name ¶
func (o GetSourceServersServerDiskOutput) Name() pulumi.StringOutput
Specifies the name of the source server.
func (GetSourceServersServerDiskOutput) Size ¶
func (o GetSourceServersServerDiskOutput) Size() pulumi.IntOutput
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 ¶
func (o GetSourceServersServerOutput) AgentVersion() pulumi.StringOutput
The version of Agent installed on the source server.
func (GetSourceServersServerOutput) Connected ¶
func (o GetSourceServersServerOutput) Connected() pulumi.BoolOutput
Whether the source server is properly connected to SMS.
func (GetSourceServersServerOutput) Disks ¶
func (o GetSourceServersServerOutput) Disks() GetSourceServersServerDiskArrayOutput
The disk information of the source server. Structure is documented below.
func (GetSourceServersServerOutput) ElementType ¶
func (GetSourceServersServerOutput) ElementType() reflect.Type
func (GetSourceServersServerOutput) Id ¶
func (o GetSourceServersServerOutput) Id() pulumi.StringOutput
Specifies the ID of the source server.
func (GetSourceServersServerOutput) Ip ¶
func (o GetSourceServersServerOutput) Ip() pulumi.StringOutput
Specifies the IP address of the source server.
func (GetSourceServersServerOutput) Memory ¶
func (o GetSourceServersServerOutput) Memory() pulumi.IntOutput
The memory size in MB.
func (GetSourceServersServerOutput) Name ¶
func (o GetSourceServersServerOutput) Name() pulumi.StringOutput
Specifies the name of the source server.
func (GetSourceServersServerOutput) OsType ¶
func (o GetSourceServersServerOutput) OsType() pulumi.StringOutput
The OS type of the source server. The value can be **WINDOWS** and **LINUX**.
func (GetSourceServersServerOutput) OsVersion ¶
func (o GetSourceServersServerOutput) OsVersion() pulumi.StringOutput
The OS version of the source server, for example, UBUNTU_20_4_64BIT.
func (GetSourceServersServerOutput) RegisteredTime ¶
func (o GetSourceServersServerOutput) RegisteredTime() pulumi.StringOutput
The UTC time when the source server is registered.
func (GetSourceServersServerOutput) State ¶
func (o GetSourceServersServerOutput) State() pulumi.StringOutput
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 ¶
func (o GetSourceServersServerOutput) Vcpus() pulumi.IntOutput
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 (o ServerTemplateArrayOutput) Index(i pulumi.IntInput) ServerTemplateOutput
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 (o ServerTemplateMapOutput) MapIndex(k pulumi.StringInput) ServerTemplateOutput
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 ¶
func (o ServerTemplateOutput) Flavor() pulumi.StringPtrOutput
Specifies the flavor ID for the target server.
func (ServerTemplateOutput) Name ¶
func (o ServerTemplateOutput) Name() pulumi.StringOutput
Specifies the server template name.
func (ServerTemplateOutput) ProjectId ¶
func (o ServerTemplateOutput) ProjectId() pulumi.StringOutput
Specifies the project ID where the target server is located. If omitted, the default project in the region will be used.
func (ServerTemplateOutput) Region ¶
func (o ServerTemplateOutput) Region() pulumi.StringOutput
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 ¶
func (o ServerTemplateOutput) SubnetIds() pulumi.StringArrayOutput
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 ¶
func (o ServerTemplateOutput) VolumeType() pulumi.StringPtrOutput
Specifies the disk type of the target server. Available values are: **SAS**, **SSD**, defaults to **SAS**.
func (ServerTemplateOutput) VpcId ¶
func (o ServerTemplateOutput) VpcId() pulumi.StringOutput
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 ¶
func (o ServerTemplateOutput) VpcName() pulumi.StringOutput
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) 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 ¶
type TaskArray ¶
type TaskArray []TaskInput
func (TaskArray) ElementType ¶
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 (o TaskArrayOutput) Index(i pulumi.IntInput) TaskOutput
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 ¶
func (TaskMap) ElementType ¶
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 (o TaskMapOutput) MapIndex(k pulumi.StringInput) TaskOutput
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 ¶
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) ElementType() reflect.Type
func (TaskTargetServerDiskArrayOutput) Index ¶
func (o TaskTargetServerDiskArrayOutput) Index(i pulumi.IntInput) TaskTargetServerDiskOutput
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 ¶
func (o TaskTargetServerDiskOutput) DeviceType() pulumi.StringOutput
Specifies the partition type. The value can be **NORMAL** and **OS**. Changing this parameter will create a new resource.
func (TaskTargetServerDiskOutput) DiskId ¶
func (o TaskTargetServerDiskOutput) DiskId() pulumi.StringPtrOutput
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 ¶
func (o TaskTargetServerDiskOutput) Name() pulumi.StringOutput
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 ¶
func (o TaskTargetServerDiskOutput) PhysicalVolumes() TaskTargetServerDiskPhysicalVolumeArrayOutput
Specifies an array of physical volume informations. The object is documented below. Changing this parameter will create a new resource.
func (TaskTargetServerDiskOutput) Size ¶
func (o TaskTargetServerDiskOutput) Size() pulumi.IntOutput
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 ¶
func (o TaskTargetServerDiskOutput) UsedSize() pulumi.IntPtrOutput
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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) ElementType() reflect.Type
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 ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) DeviceType() pulumi.StringOutput
Specifies the partition type. The value can be **NORMAL** and **OS**. Changing this parameter will create a new resource.
func (TaskTargetServerDiskPhysicalVolumeOutput) ElementType ¶
func (TaskTargetServerDiskPhysicalVolumeOutput) ElementType() reflect.Type
func (TaskTargetServerDiskPhysicalVolumeOutput) FileSystem ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) FileSystem() pulumi.StringOutput
Specifies the file system type, e.g. "ext4". Changing this parameter will create a new resource.
func (TaskTargetServerDiskPhysicalVolumeOutput) Index ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) Index() pulumi.IntOutput
Specifies the serial number of the volume. Changing this parameter will create a new resource.
func (TaskTargetServerDiskPhysicalVolumeOutput) MountPoint ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) MountPoint() pulumi.StringOutput
Specifies the mount point, e.g. "/". Changing this parameter will create a new resource.
func (TaskTargetServerDiskPhysicalVolumeOutput) Name ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) Name() pulumi.StringOutput
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 ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) Size() pulumi.IntOutput
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 ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) UsedSize() pulumi.IntPtrOutput
Specifies the used space in MB. Changing this parameter will create a new resource.
func (TaskTargetServerDiskPhysicalVolumeOutput) Uuid ¶
func (o TaskTargetServerDiskPhysicalVolumeOutput) Uuid() pulumi.StringPtrOutput
Specifies the GUID of the volume. Changing this parameter will create a new resource.