nsg

package
v6.6.7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetNSGInResourceData

func SetNSGInResourceData(d *schema.ResourceData, items *[]ionoscloud.SecurityGroup) error

SetNSGInResourceData sets the security groups in the schema

Types

type Service

type Service struct {
	Client *ionoscloud.APIClient
	Meta   interface{}
	D      *schema.ResourceData
}

Service implements utility methods for the Network Security Group

func (*Service) PutNICNSG

func (nsg *Service) PutNICNSG(ctx context.Context, dcID, serverID, nicID string, rawIDs []any) diag.Diagnostics

PutNICNSG updates the security groups of a NIC

func (*Service) PutServerNSG

func (nsg *Service) PutServerNSG(ctx context.Context, dcID, serverID string, rawIDs []any) diag.Diagnostics

PutServerNSG updates the security groups of a server

func (*Service) SetDefaultDatacenterNSG

func (nsg *Service) SetDefaultDatacenterNSG(ctx context.Context, dcID, nsgID string) diag.Diagnostics

SetDefaultDatacenterNSG sets the NSG as the default security group of a datacenter

Jump to

Keyboard shortcuts

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