instance

package
v2.44.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MPL-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstanceServerStateStopped transient state of the instance event stop
	InstanceServerStateStopped = "stopped"
	// InstanceServerStateStarted transient state of the instance event start
	InstanceServerStateStarted = "started"
	// InstanceServerStateStandby transient state of the instance event waiting third action or rescue mode
	InstanceServerStateStandby = "standby"

	DefaultInstanceServerWaitTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

func DataSourceIP added in v2.39.0

func DataSourceIP() *schema.Resource

func DataSourceImage added in v2.39.0

func DataSourceImage() *schema.Resource

func DataSourceInstanceIPRead added in v2.39.0

func DataSourceInstanceIPRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceImageRead added in v2.39.0

func DataSourceInstanceImageRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstancePrivateNICRead added in v2.39.0

func DataSourceInstancePrivateNICRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceSecurityGroupRead added in v2.39.0

func DataSourceInstanceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceServerRead added in v2.39.0

func DataSourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceServersRead added in v2.39.0

func DataSourceInstanceServersRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceSnapshotRead added in v2.39.0

func DataSourceInstanceSnapshotRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourceInstanceVolumeRead added in v2.39.0

func DataSourceInstanceVolumeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourcePlacementGroup added in v2.39.0

func DataSourcePlacementGroup() *schema.Resource

func DataSourcePlacementGroupRead added in v2.39.0

func DataSourcePlacementGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func DataSourcePrivateNIC added in v2.39.0

func DataSourcePrivateNIC() *schema.Resource

func DataSourceSecurityGroup added in v2.39.0

func DataSourceSecurityGroup() *schema.Resource

func DataSourceServer added in v2.39.0

func DataSourceServer() *schema.Resource

func DataSourceServers added in v2.39.0

func DataSourceServers() *schema.Resource

func DataSourceSnapshot added in v2.39.0

func DataSourceSnapshot() *schema.Resource

func DataSourceVolume added in v2.39.0

func DataSourceVolume() *schema.Resource

func IsIPReverseDNSResolveError added in v2.39.0

func IsIPReverseDNSResolveError(err error) bool

func NewAPIWithZoneAndID added in v2.39.0

func NewAPIWithZoneAndID(m interface{}, zonedID string) (*instance.API, scw.Zone, string, error)

NewAPIWithZoneAndID returns an instance API with zone and ID extracted from the state

func NewAPIWithZoneAndNestedID added in v2.39.0

func NewAPIWithZoneAndNestedID(m interface{}, zonedNestedID string) (*instance.API, scw.Zone, string, string, error)

NewAPIWithZoneAndNestedID returns an instance API with zone and inner/outer ID extracted from the state

func ResourceIP added in v2.39.0

func ResourceIP() *schema.Resource

func ResourceIPReverseDNS added in v2.39.0

func ResourceIPReverseDNS() *schema.Resource

func ResourceImage added in v2.39.0

func ResourceImage() *schema.Resource

func ResourceInstanceIPCreate added in v2.39.0

func ResourceInstanceIPCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPDelete added in v2.39.0

func ResourceInstanceIPDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPRead added in v2.39.0

func ResourceInstanceIPRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPReverseDNSCreate added in v2.39.0

func ResourceInstanceIPReverseDNSCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPReverseDNSDelete added in v2.39.0

func ResourceInstanceIPReverseDNSDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPReverseDNSRead added in v2.39.0

func ResourceInstanceIPReverseDNSRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPReverseDNSUpdate added in v2.39.0

func ResourceInstanceIPReverseDNSUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceIPUpdate added in v2.39.0

func ResourceInstanceIPUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceImageCreate added in v2.39.0

func ResourceInstanceImageCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceImageDelete added in v2.39.0

func ResourceInstanceImageDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceImageRead added in v2.39.0

func ResourceInstanceImageRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceImageUpdate added in v2.39.0

func ResourceInstanceImageUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePlacementGroupCreate added in v2.39.0

func ResourceInstancePlacementGroupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePlacementGroupDelete added in v2.39.0

func ResourceInstancePlacementGroupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePlacementGroupRead added in v2.39.0

func ResourceInstancePlacementGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePlacementGroupUpdate added in v2.39.0

func ResourceInstancePlacementGroupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePrivateNICCreate added in v2.39.0

func ResourceInstancePrivateNICCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePrivateNICDelete added in v2.39.0

func ResourceInstancePrivateNICDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePrivateNICRead added in v2.39.0

func ResourceInstancePrivateNICRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstancePrivateNICUpdate added in v2.39.0

func ResourceInstancePrivateNICUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupCreate added in v2.39.0

func ResourceInstanceSecurityGroupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupDelete added in v2.39.0

func ResourceInstanceSecurityGroupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupRead added in v2.39.0

func ResourceInstanceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupRulesCreate added in v2.39.0

func ResourceInstanceSecurityGroupRulesCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupRulesDelete added in v2.39.0

func ResourceInstanceSecurityGroupRulesDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupRulesRead added in v2.39.0

func ResourceInstanceSecurityGroupRulesRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupRulesUpdate added in v2.39.0

func ResourceInstanceSecurityGroupRulesUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSecurityGroupUpdate added in v2.39.0

func ResourceInstanceSecurityGroupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceServerCreate added in v2.39.0

func ResourceInstanceServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceServerDelete added in v2.39.0

func ResourceInstanceServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceServerEnableRoutedIP added in v2.39.0

func ResourceInstanceServerEnableRoutedIP(ctx context.Context, d *schema.ResourceData, instanceAPI *instanceSDK.API, zone scw.Zone, id string) error

func ResourceInstanceServerMigrate added in v2.39.0

func ResourceInstanceServerMigrate(ctx context.Context, d *schema.ResourceData, api *BlockAndInstanceAPI, zone scw.Zone, id string) error

func ResourceInstanceServerRead added in v2.39.0

func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceServerUpdate added in v2.39.0

func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceServerUpdateIPs added in v2.39.0

func ResourceInstanceServerUpdateIPs(ctx context.Context, d *schema.ResourceData, instanceAPI *instanceSDK.API, zone scw.Zone, id string) error

func ResourceInstanceSnapshotCreate added in v2.39.0

func ResourceInstanceSnapshotCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSnapshotDelete added in v2.39.0

func ResourceInstanceSnapshotDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSnapshotRead added in v2.39.0

func ResourceInstanceSnapshotRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceSnapshotUpdate added in v2.39.0

func ResourceInstanceSnapshotUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceUserDataCreate added in v2.39.0

func ResourceInstanceUserDataCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceUserDataDelete added in v2.39.0

func ResourceInstanceUserDataDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceUserDataRead added in v2.39.0

func ResourceInstanceUserDataRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceUserDataUpdate added in v2.39.0

func ResourceInstanceUserDataUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceVolumeCreate added in v2.39.0

func ResourceInstanceVolumeCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceVolumeDelete added in v2.39.0

func ResourceInstanceVolumeDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceVolumeRead added in v2.39.0

func ResourceInstanceVolumeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourceInstanceVolumeUpdate added in v2.39.0

func ResourceInstanceVolumeUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics

func ResourcePlacementGroup added in v2.39.0

func ResourcePlacementGroup() *schema.Resource

func ResourcePrivateNIC added in v2.39.0

func ResourcePrivateNIC() *schema.Resource

func ResourceSecurityGroup added in v2.39.0

func ResourceSecurityGroup() *schema.Resource

func ResourceSecurityGroupRules added in v2.39.0

func ResourceSecurityGroupRules() *schema.Resource

func ResourceServer added in v2.39.0

func ResourceServer() *schema.Resource

func ResourceSnapshot added in v2.39.0

func ResourceSnapshot() *schema.Resource

func ResourceUserData added in v2.39.0

func ResourceUserData() *schema.Resource

func ResourceVolume added in v2.39.0

func ResourceVolume() *schema.Resource

func SecurityGroupRuleEquals added in v2.39.0

func SecurityGroupRuleEquals(ruleA, ruleB *instanceSDK.SecurityGroupRule) (bool, error)

SecurityGroupRuleEquals compares two security group rule.

Types

type BlockAndInstanceAPI added in v2.39.0

type BlockAndInstanceAPI struct {
	*instance.API
	// contains filtered or unexported fields
}

func (*BlockAndInstanceAPI) GetUnknownVolume added in v2.41.0

func (api *BlockAndInstanceAPI) GetUnknownVolume(req *GetUnknownVolumeRequest, opts ...scw.RequestOption) (*UnknownVolume, error)

type GetUnknownVolumeRequest added in v2.41.0

type GetUnknownVolumeRequest struct {
	VolumeID string
	Zone     scw.Zone
}

type UnknownVolume added in v2.41.0

type UnknownVolume struct {
	Zone     scw.Zone
	ID       string
	Name     string
	Size     *scw.Size
	ServerID *string
	Boot     *bool

	InstanceVolumeType instance.VolumeVolumeType
}

func (*UnknownVolume) IsAttached added in v2.41.0

func (volume *UnknownVolume) IsAttached() bool

IsAttached returns true if the volume is attached to a server

func (*UnknownVolume) IsBlockVolume added in v2.41.0

func (volume *UnknownVolume) IsBlockVolume() bool

IsBlockVolume is true if volume is managed by block API

func (*UnknownVolume) IsLocal added in v2.41.0

func (volume *UnknownVolume) IsLocal() bool

IsLocal returns true if the volume is a local volume

func (*UnknownVolume) VolumeTemplate added in v2.42.0

func (volume *UnknownVolume) VolumeTemplate() *instance.VolumeServerTemplate

VolumeTemplate returns a template to be used for servers requests.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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