sbercloud

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MPL-2.0 Imports: 70 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeleted added in v1.3.0

func CheckDeleted(d *schema.ResourceData, err error, msg string) error

CheckDeleted checks the error to see if it's a 404 (Not Found) and, if so, sets the resource ID to the empty string instead of throwing an error.

func DmsInstancesV1StateRefreshFunc added in v1.3.0

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

func GetEnterpriseProjectID added in v1.2.0

func GetEnterpriseProjectID(d *schema.ResourceData, config *config.Config) string

GetEnterpriseProjectID returns the enterprise_project_id that was specified in the resource. If it was not set, the provider-level value is checked. The provider-level value can either be set by the `enterprise_project_id` argument or by SBC_ENTERPRISE_PROJECT_ID.

func GetRegion added in v1.2.0

func GetRegion(d *schema.ResourceData, config *config.Config) string

GetRegion returns the region that was specified in the resource. If a region was not set, the provider-level region is checked. The provider-level region can either be set by the region argument or by SBC_REGION_NAME.

func Provider

func Provider() *schema.Provider

Provider returns a schema.Provider for SberCloud.

func ResourceComputeInstanceV2 added in v1.6.2

func ResourceComputeInstanceV2() *schema.Resource

func ResourceDmsInstancesV1 added in v1.3.0

func ResourceDmsInstancesV1() *schema.Resource

func ServerV2StateRefreshFunc added in v1.6.2

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

ServerV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an SberCloud instance.

func TestBaseNetwork added in v1.11.0

func TestBaseNetwork(name string) string

func TestSecGroup added in v1.11.0

func TestSecGroup(name string) string

TestSecGroup can be referred as `sbercloud_networking_secgroup.test`

func TestVpc added in v1.11.0

func TestVpc(name string) string

TestVpc can be referred as `sbercloud_vpc.test` and `sbercloud_vpc_subnet.test`

func UnsubscribePrePaidResource added in v1.2.0

func UnsubscribePrePaidResource(d *schema.ResourceData, config *config.Config, resourceIDs []string) error

UnsubscribePrePaidResource impl the action of unsubscribe resource

func VolumeV2StateRefreshFunc added in v1.6.2

func VolumeV2StateRefreshFunc(client *golangsdk.ServiceClient, volumeID string) resource.StateRefreshFunc

VolumeV2StateRefreshFunc returns a resource.StateRefreshFunc that is used to watch an SberCloud volume.

Types

type InstanceNIC added in v1.6.2

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.6.2

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.

Directories

Path Synopsis
services
ces
css

Jump to

Keyboard shortcuts

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