ecs

package
v1.64.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MPL-2.0 Imports: 38 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SystemDiskType = "GPSSD"
)

Functions

func AttachmentJobRefreshFunc

func AttachmentJobRefreshFunc(c *golangsdk.ServiceClient, jobId string) resource.StateRefreshFunc

func DataSourceComputeInstance added in v1.43.0

func DataSourceComputeInstance() *schema.Resource

@API ECS GET /v1/{project_id}/cloudservers/detail @API ECS GET /v1/{project_id}/cloudservers/{server_id}/block_device @API EVS GET /v2/{project_id}/cloudvolumes/{volume_id} @API VPC GET /v2.0/ports/{id}

func DataSourceComputeInstanceRemoteConsole added in v1.61.1

func DataSourceComputeInstanceRemoteConsole() *schema.Resource

@API ECS POST /v1/{project_id}/cloudservers/{server_id}/remote_console

func DataSourceComputeInstances added in v1.43.0

func DataSourceComputeInstances() *schema.Resource

@API ECS GET /v1/{project_id}/cloudservers/detail @API ECS GET /v1/{project_id}/cloudservers/{server_id}/block_device @API EVS GET /v2/{project_id}/cloudvolumes/{volume_id} @API VPC GET /v2.0/ports/{id}

func DataSourceComputeServerGroups added in v1.44.0

func DataSourceComputeServerGroups() *schema.Resource

@API ECS GET /v1/{project_id}/cloudservers/os-server-groups

func DataSourceEcsFlavors added in v1.43.0

func DataSourceEcsFlavors() *schema.Resource

@API ECS GET /v1/{project_id}/cloudservers/flavors

func LockAll added in v1.48.0

func LockAll(ids []interface{})

func ResourceComputeAutoLaunchGroup added in v1.61.0

func ResourceComputeAutoLaunchGroup() *schema.Resource

@API ECS POST /v2/{domain_id}/auto-launch-groups @API ECS GET /v2/{domain_id}/auto-launch-groups/{auto_launch_group_id} @API ECS PUT /v2/{domain_id}/auto-launch-groups/{auto_launch_group_id} @API ECS DELETE /v2/{domain_id}/auto-launch-groups/{auto_launch_group_id}

func ResourceComputeEIPAssociate added in v1.48.0

func ResourceComputeEIPAssociate() *schema.Resource

@API ECS GET /v1/{project_id}/cloudservers/{server_id} @API EIP PUT /v1/{project_id}/publicips/{publicip_id} @API EIP GET /v1/{project_id}/publicips @API EIP POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/insert @API EIP POST /v2.0/{project_id}/bandwidths/{bandwidth_id}/remove @API EIP GET /v2.0/{project_id}/bandwidths/{bandwidth_id}

func ResourceComputeInstance added in v1.48.0

func ResourceComputeInstance() *schema.Resource

@API ECS POST /v1.1/{project_id}/cloudservers @API ECS POST /v1/{project_id}/cloudservers/delete @API ECS PUT /v1/{project_id}/cloudservers/{server_id} @API ECS POST /v1/{project_id}/cloudservers/action @API ECS POST /v1/{project_id}/cloudservers/{server_id}/metadata @API ECS DELETE /v1/{project_id}/cloudservers/{server_id}/metadata/{key} @API ECS POST /v1.1/{project_id}/cloudservers/{server_id}/resize @API ECS PUT /v1/{project_id}/cloudservers/{server_id}/os-reset-password @API ECS POST /v1/{project_id}/cloudservers/{server_id}/tags/action @API ECS POST /v2.1/{project_id}/servers/{server_id}/action @API ECS GET /v1/{project_id}/cloudservers/{server_id} @API ECS GET /v1/{project_id}/cloudservers/{server_id}/block_device/{volume_id} @API ECS GET /v1/{project_id}/jobs/{job_id} @API IMS GET /v2/cloudimages @API EVS POST /v2.1/{project_id}/cloudvolumes/{volume_id}/action @API EVS GET /v2/{project_id}/cloudvolumes/{volume_id} @API VPC PUT /v1/{project_id}/ports/{port_id} @API VPC GET /v1/{project_id}/security-groups @API VPC GET /v1/{project_id}/subnets/{subnet_id}

func ResourceComputeInterfaceAttach added in v1.48.0

func ResourceComputeInterfaceAttach() *schema.Resource

@API ECS POST /v1/{project_id}/cloudservers/{server_id}/nics @API ECS POST /v1/{project_id}/cloudservers/{server_id}/nics/delete @API ECS GET /v1/{project_id}/cloudservers/{server_id}/os-interface @API ECS GET /v1/{project_id}/jobs/{job_id} @API VPC PUT /v1/{project_id}/ports/{port_id} @API VPC GET /v1/{project_id}/ports/{port_id}

func ResourceComputeServerGroup added in v1.48.0

func ResourceComputeServerGroup() *schema.Resource

@API ECS POST /v1/{project_id}/cloudservers/os-server-groups @API ECS POST /v1/{project_id}/cloudservers/os-server-groups/{id}/action @API ECS GET /v1/{project_id}/cloudservers/os-server-groups/{id} @API ECS DELETE /v1/{project_id}/cloudservers/os-server-groups/{id} @API ECS GET /v1/{project_id}/cloudservers/{server_id}

func ResourceComputeVolumeAttach

func ResourceComputeVolumeAttach() *schema.Resource

@API ECS POST /v1/{project_id}/cloudservers/{server_id}/attachvolume @API ECS GET /v1/{project_id}/cloudservers/{server_id}/block_device/{volume_id} @API ECS DELETE /v1/{project_id}/cloudservers/{server_id}/detachvolume/{volume_id} @API ECS GET /v1/{project_id}/jobs/{job_id}

func ServerV1StateRefreshFunc added in v1.48.0

func ServerV1StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc

ServerV1StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an HuaweiCloud instance.

func UnlockAll added in v1.48.0

func UnlockAll(ids []interface{})

Types

type InstanceNIC added in v1.48.0

type InstanceNIC struct {
	NetworkID       string
	PortID          string
	FixedIPv4       string
	FixedIPv6       string
	MAC             string
	SourceDestCheck bool
	Fetched         bool
}

InstanceNIC is a structured representation of a servers.Server virtual NIC

type InstanceNetwork added in v1.48.0

type InstanceNetwork struct {
	UUID          string
	Name          string
	Port          string
	FixedIP       string
	AccessNetwork bool
}

InstanceNetwork represents a collection of network information that a Terraform instance needs to satisfy all network information requirements.

Jump to

Keyboard shortcuts

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