Documentation
¶
Index ¶
- func DataSourceComputeAvailabilityZonesV2() *schema.Resource
- func DataSourceComputeFlavorV2() *schema.Resource
- func DataSourceComputeInstanceV2() *schema.Resource
- func DataSourceComputeInstancesV2() *schema.Resource
- func DataSourceComputeKeypairV2() *schema.Resource
- func FlattenInstanceNetworks(d *schema.ResourceData, meta interface{}) ([]map[string]interface{}, error)
- func FloatingIPV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc
- func GetInstanceAccessAddresses(_ *schema.ResourceData, networks []map[string]interface{}) (string, string)
- func GetInstanceNetworkInfo(d *schema.ResourceData, meta interface{}, queryType, queryTerm string) (map[string]interface{}, error)
- func ParseComputeFloatingIPAssociateId(id string) (string, string, string, error)
- func ParseComputeVolumeAttachmentId(id string) (string, string, error)
- func ResourceComputeFloatingIPAssociateV2() *schema.Resource
- func ResourceComputeFloatingIPV2() *schema.Resource
- func ResourceComputeInstanceV2() *schema.Resource
- func ResourceComputeKeypairV2() *schema.Resource
- func ResourceComputeSecGroupV2() *schema.Resource
- func ResourceComputeServerGroupV2() *schema.Resource
- func ResourceComputeVolumeAttachV2() *schema.Resource
- func ResourceEcsInstanceV1() *schema.Resource
- func ResourceInstanceBlockDevicesV2(_ *schema.ResourceData, bds []interface{}) ([]bootfromvolume.BlockDevice, error)
- func SecGroupV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, secGroupId string) resource.StateRefreshFunc
- func ServerV2StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc
- func SetTagForInstance(d *schema.ResourceData, meta interface{}, instanceID string, ...) error
- type InstanceAddresses
- type InstanceNIC
- type InstanceNetwork
- type KeyPairCreateOpts
- type ServerGroupCreateOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceComputeFlavorV2 ¶ added in v1.25.3
func DataSourceComputeInstanceV2 ¶ added in v1.29.8
func DataSourceComputeInstancesV2 ¶ added in v1.33.0
func DataSourceComputeKeypairV2 ¶ added in v1.35.9
func FlattenInstanceNetworks ¶
func FlattenInstanceNetworks(d *schema.ResourceData, meta interface{}) ([]map[string]interface{}, error)
FlattenInstanceNetworks collects instance network information from different sources and aggregates it all together into a map array.
func FloatingIPV2StateRefreshFunc ¶
func FloatingIPV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, d *schema.ResourceData) resource.StateRefreshFunc
func GetInstanceAccessAddresses ¶
func GetInstanceAccessAddresses(_ *schema.ResourceData, networks []map[string]interface{}) (string, string)
GetInstanceAccessAddresses determines the best IP address to communicate with the instance. It does this by looping through all networks and looking for a valid IP address. Priority is given to a network that was flagged as an access_network.
func GetInstanceNetworkInfo ¶
func GetInstanceNetworkInfo(d *schema.ResourceData, meta interface{}, queryType, queryTerm string) (map[string]interface{}, error)
GetInstanceNetworkInfo will query for network information in order to make an accurate determination of a network's name and a network's ID.
We will try to first query the Neutron network service and fall back to the legacy nova-network service if that fails.
If OS_NOVA_NETWORK is set, query nova-network even if Neutron is available. This is to be able to explicitly test the nova-network API.
func ResourceEcsInstanceV1 ¶
func ResourceInstanceBlockDevicesV2 ¶
func ResourceInstanceBlockDevicesV2(_ *schema.ResourceData, bds []interface{}) ([]bootfromvolume.BlockDevice, error)
func SecGroupV2StateRefreshFunc ¶
func SecGroupV2StateRefreshFunc(computeClient *golangsdk.ServiceClient, secGroupId string) resource.StateRefreshFunc
func ServerV2StateRefreshFunc ¶
func ServerV2StateRefreshFunc(client *golangsdk.ServiceClient, instanceID string) resource.StateRefreshFunc
ServerV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an OpenTelekomCloud instance.
func SetTagForInstance ¶
func SetTagForInstance(d *schema.ResourceData, meta interface{}, instanceID string, tagsMap map[string]interface{}) error
Types ¶
type InstanceAddresses ¶
type InstanceAddresses struct { NetworkName string InstanceNICs []InstanceNIC }
InstanceAddresses is a collection of InstanceNICs, grouped by the network name. An instance/server could have multiple NICs on the same network.
type InstanceNIC ¶
InstanceNIC is a structured representation of a golangsdk servers.Server virtual NIC.
type InstanceNetwork ¶
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.
type KeyPairCreateOpts ¶
type KeyPairCreateOpts struct { keypairs.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
KeyPairCreateOpts represents the attributes used when creating a new keypair.
func (KeyPairCreateOpts) ToKeyPairCreateMap ¶
func (opts KeyPairCreateOpts) ToKeyPairCreateMap() (map[string]interface{}, error)
ToKeyPairCreateMap casts a CreateOpts struct to a map. It overrides keypairs.ToKeyPairCreateMap to add the ValueSpecs field.
type ServerGroupCreateOpts ¶
type ServerGroupCreateOpts struct { servergroups.CreateOpts ValueSpecs map[string]string `json:"value_specs,omitempty"` }
ServerGroupCreateOpts represents the attributes used when creating a new router.
func (ServerGroupCreateOpts) ToServerGroupCreateMap ¶
func (opts ServerGroupCreateOpts) ToServerGroupCreateMap() (map[string]interface{}, error)
ToServerGroupCreateMap casts a CreateOpts struct to a map. It overrides routers.ToServerGroupCreateMap to add the ValueSpecs field.
Source Files
¶
- common.go
- compute_instance_v2_networking.go
- data_source_opentelekomcloud_compute_availability_zones_v2.go
- data_source_opentelekomcloud_compute_flavor_v2.go
- data_source_opentelekomcloud_compute_instance_v2.go
- data_source_opentelekomcloud_compute_instances_v2.go
- data_source_opentelekomcloud_compute_keypair_v2.go
- resource_opentelekomcloud_compute_floatingip_associate_v2.go
- resource_opentelekomcloud_compute_floatingip_v2.go
- resource_opentelekomcloud_compute_instance_v2.go
- resource_opentelekomcloud_compute_keypair_v2.go
- resource_opentelekomcloud_compute_secgroup_v2.go
- resource_opentelekomcloud_compute_servergroup_v2.go
- resource_opentelekomcloud_compute_volume_attach_v2.go
- resource_opentelekomcloud_ecs_auto_recovery_v1.go
- resource_opentelekomcloud_ecs_instance_v1.go
- resource_opentelekomcloud_ecs_tag_v1.go
- types.go