Documentation ¶
Index ¶
- func SetNSGInResourceData(d *schema.ResourceData, items *[]ionoscloud.SecurityGroup) error
- type Service
- func (nsg *Service) PutNICNSG(ctx context.Context, dcID, serverID, nicID string, rawIDs []any) diag.Diagnostics
- func (nsg *Service) PutServerNSG(ctx context.Context, dcID, serverID string, rawIDs []any) diag.Diagnostics
- func (nsg *Service) SetDefaultDatacenterNSG(ctx context.Context, dcID, nsgID string) diag.Diagnostics
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
Click to show internal directories.
Click to hide internal directories.