Documentation ¶
Index ¶
- Constants
- func DataSourceIP() *schema.Resource
- func DataSourceImage() *schema.Resource
- func DataSourceInstanceIPRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceImageRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstancePrivateNICRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceServersRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceSnapshotRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstanceVolumeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourcePlacementGroup() *schema.Resource
- func DataSourcePlacementGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourcePrivateNIC() *schema.Resource
- func DataSourceSecurityGroup() *schema.Resource
- func DataSourceServer() *schema.Resource
- func DataSourceServers() *schema.Resource
- func DataSourceSnapshot() *schema.Resource
- func DataSourceVolume() *schema.Resource
- func IsIPReverseDNSResolveError(err error) bool
- func NewAPIWithZoneAndID(m interface{}, zonedID string) (*instance.API, scw.Zone, string, error)
- func NewAPIWithZoneAndNestedID(m interface{}, zonedNestedID string) (*instance.API, scw.Zone, string, string, error)
- func ResourceIP() *schema.Resource
- func ResourceIPReverseDNS() *schema.Resource
- func ResourceImage() *schema.Resource
- func ResourceInstanceIPCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPReverseDNSCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPReverseDNSDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPReverseDNSRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPReverseDNSUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceIPUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceImageCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceImageDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceImageRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceImageUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePlacementGroupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePlacementGroupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePlacementGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePlacementGroupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePrivateNICCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePrivateNICDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePrivateNICRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstancePrivateNICUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupRulesCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupRulesDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupRulesRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupRulesUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSecurityGroupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceServerCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceServerDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceServerEnableRoutedIP(ctx context.Context, d *schema.ResourceData, instanceAPI *instanceSDK.API, ...) error
- func ResourceInstanceServerMigrate(ctx context.Context, d *schema.ResourceData, api *BlockAndInstanceAPI, ...) error
- func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceServerUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceServerUpdateIPs(ctx context.Context, d *schema.ResourceData, instanceAPI *instanceSDK.API, ...) error
- func ResourceInstanceSnapshotCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSnapshotDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSnapshotRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceSnapshotUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceUserDataCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceUserDataDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceUserDataRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceUserDataUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceVolumeCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceVolumeDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceVolumeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceInstanceVolumeUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourcePlacementGroup() *schema.Resource
- func ResourcePrivateNIC() *schema.Resource
- func ResourceSecurityGroup() *schema.Resource
- func ResourceSecurityGroupRules() *schema.Resource
- func ResourceServer() *schema.Resource
- func ResourceSnapshot() *schema.Resource
- func ResourceUserData() *schema.Resource
- func ResourceVolume() *schema.Resource
- func SecurityGroupRuleEquals(ruleA, ruleB *instanceSDK.SecurityGroupRule) (bool, error)
- type BlockAndInstanceAPI
- type GetUnknownVolumeRequest
- type UnknownVolume
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 DataSourceImage ¶ added in v2.39.0
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 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 DataSourceSecurityGroup ¶ added in v2.39.0
func DataSourceServer ¶ added in v2.39.0
func DataSourceServers ¶ added in v2.39.0
func DataSourceSnapshot ¶ added in v2.39.0
func DataSourceVolume ¶ added in v2.39.0
func IsIPReverseDNSResolveError ¶ added in v2.39.0
func NewAPIWithZoneAndID ¶ added in v2.39.0
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 ResourceIPReverseDNS ¶ added in v2.39.0
func ResourceImage ¶ added in v2.39.0
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 ResourcePrivateNIC ¶ added in v2.39.0
func ResourceSecurityGroup ¶ added in v2.39.0
func ResourceSecurityGroupRules ¶ added in v2.39.0
func ResourceServer ¶ added in v2.39.0
func ResourceSnapshot ¶ added in v2.39.0
func ResourceUserData ¶ added in v2.39.0
func ResourceVolume ¶ added in v2.39.0
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 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.
Source Files ¶
- checks.go
- consts.go
- data_source_instance_private_nic.go
- helpers_instance.go
- helpers_instance_block.go
- image.go
- image_data_source.go
- ip.go
- ip_data_source.go
- ip_reverse_dns.go
- placement_group.go
- placement_group_data_source.go
- private_nic.go
- security_group.go
- security_group_data_source.go
- security_group_rules.go
- server.go
- server_data_source.go
- servers_data_source.go
- snapshot.go
- snapshot_data_source.go
- types.go
- user_data.go
- volume.go
- volume_data_source.go
- waiters.go
Click to show internal directories.
Click to hide internal directories.