systemAgents

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagedDevice

type ManagedDevice struct {
	AgentId        types.String `tfsdk:"agent_id"`
	SystemId       types.String `tfsdk:"system_id"`
	ManagementIp   types.String `tfsdk:"management_ip"`
	DeviceKey      types.String `tfsdk:"device_key"`
	AgentProfileId types.String `tfsdk:"agent_profile_id"`
	OffBox         types.Bool   `tfsdk:"off_box"`
}

func (*ManagedDevice) Acknowledge

func (o *ManagedDevice) Acknowledge(ctx context.Context, si *apstra.ManagedSystemInfo, client *apstra.Client, diags *diag.Diagnostics)

func (ManagedDevice) DataSourceAttributes

func (o ManagedDevice) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (ManagedDevice) DataSourceFilterAttributes

func (o ManagedDevice) DataSourceFilterAttributes() map[string]dataSourceSchema.Attribute

func (*ManagedDevice) GetDeviceKey

func (o *ManagedDevice) GetDeviceKey(ctx context.Context, client *apstra.Client, diags *diag.Diagnostics)

func (*ManagedDevice) IpNetFromManagementIp

func (o *ManagedDevice) IpNetFromManagementIp(_ context.Context, diags *diag.Diagnostics) *net.IPNet

IpNetFromManagementIp is generally called when a ManagedDevice object is used as a filter for matching other ManagedDevice objects. In that case, the ManagementIp element might contain a CIDR block rather than an individual host address. In either case, returns a *net.IPNet representing the ManagementIp element. nil is returned if the ManagementIp element is null.

func (*ManagedDevice) LoadApiData

func (o *ManagedDevice) LoadApiData(_ context.Context, in *apstra.SystemAgent, _ *diag.Diagnostics)

func (*ManagedDevice) Request

func (ManagedDevice) ResourceAttributes

func (o ManagedDevice) ResourceAttributes() map[string]resourceSchema.Attribute

func (*ManagedDevice) ValidateAgentProfile

func (o *ManagedDevice) ValidateAgentProfile(ctx context.Context, client *apstra.Client, diags *diag.Diagnostics)

type SystemAck

type SystemAck struct {
	AgentId   types.String `tfsdk:"agent_id"`
	DeviceKey types.String `tfsdk:"device_key"`
	SystemId  types.String `tfsdk:"system_id"`
}

func (*SystemAck) Acknowledge

func (o *SystemAck) Acknowledge(ctx context.Context, si *apstra.ManagedSystemInfo, client *apstra.Client, diags *diag.Diagnostics)

func (SystemAck) ResourceAttributes

func (o SystemAck) ResourceAttributes() map[string]resourceSchema.Attribute

Jump to

Keyboard shortcuts

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