schema

package
v1.44.1-0...-77b165e Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackendEndpointSchema

func BackendEndpointSchema() *pluginsdk.Schema

func CategorySchema

func CategorySchema() *pluginsdk.Schema

func DNSSettingsSchema

func DNSSettingsSchema() *pluginsdk.Schema

func DestinationNATSchema

func DestinationNATSchema() *pluginsdk.Schema

DestinationNATSchema returns the schema for a Palo Alto NGFW Front End Settings

func DestinationSchema

func DestinationSchema() *pluginsdk.Schema

func ExpandCategory

func ExpandCategory(input []Category) *localrules.Category

func ExpandDNSSettings

func ExpandDNSSettings(input []DNSSettings) firewalls.DNSSettings

func ExpandDestination

func ExpandDestination(input []Destination) (*localrules.DestinationAddr, error)

func ExpandDestinationNAT

func ExpandDestinationNAT(input []DestinationNAT) *[]firewalls.FrontendSetting

func ExpandNetworkProfileVHub

func ExpandNetworkProfileVHub(input []NetworkProfileVHub) firewalls.NetworkProfile

func ExpandNetworkProfileVnet

func ExpandNetworkProfileVnet(input []NetworkProfileVnet) firewalls.NetworkProfile

func ExpandSource

func ExpandSource(input []Source) (*localrules.SourceAddr, error)

func FrontendEndpointSchema

func FrontendEndpointSchema() *pluginsdk.Schema

func PanoramaSchema

func PanoramaSchema() *pluginsdk.Schema

func SourceSchema

func SourceSchema() *pluginsdk.Schema

func VHubNetworkProfileSchema

func VHubNetworkProfileSchema() *pluginsdk.Schema

func VnetConfigurationSchema

func VnetConfigurationSchema() *pluginsdk.Schema

func VnetNetworkProfileSchema

func VnetNetworkProfileSchema() *pluginsdk.Schema

Types

type BackendEndpointConfiguration

type BackendEndpointConfiguration struct {
	PublicIP string `tfschema:"public_ip_address"`
	Port     int64  `tfschema:"port"`
}

type Category

type Category struct {
	Feeds      []string `tfschema:"feeds"`
	CustomUrls []string `tfschema:"custom_urls"`
}

func FlattenCategory

func FlattenCategory(input *localrules.Category) []Category

type DNSSettings

type DNSSettings struct {
	DnsServers      []string `tfschema:"dns_servers"`
	AzureDNS        bool     `tfschema:"use_azure_dns"`
	AzureDNSServers []string `tfschema:"azure_dns_servers"`
}

func FlattenDNSSettings

func FlattenDNSSettings(input firewalls.DNSSettings) []DNSSettings

type Destination

type Destination struct {
	CIDRS       []string `tfschema:"cidrs"`
	Countries   []string `tfschema:"countries"`
	Feeds       []string `tfschema:"feeds"`
	FQDNLists   []string `tfschema:"local_rulestack_fqdn_list_ids"`
	PrefixLists []string `tfschema:"local_rulestack_prefix_list_ids"`
}

func FlattenDestination

func FlattenDestination(input *localrules.DestinationAddr, ruleId localrules.LocalRuleId) []Destination

type DestinationNAT

type DestinationNAT struct {
	Name                  string                          `tfschema:"name"`
	Protocol              string                          `tfschema:"protocol"`
	FrontendConfiguration []FrontendEndpointConfiguration `tfschema:"frontend_config"`
	BackendConfiguration  []BackendEndpointConfiguration  `tfschema:"backend_config"`
}

func FlattenDestinationNAT

func FlattenDestinationNAT(input *[]firewalls.FrontendSetting) []DestinationNAT

type FrontendEndpointConfiguration

type FrontendEndpointConfiguration struct {
	PublicIPID string `tfschema:"public_ip_address_id"`
	Port       int64  `tfschema:"port"`
}

type NetworkProfileVHub

type NetworkProfileVHub struct {
	VHubID      string   `tfschema:"virtual_hub_id"`
	PublicIPIDs []string `tfschema:"public_ip_address_ids"`

	// Optional
	EgressNatIPIDs []string `tfschema:"egress_nat_ip_address_ids"`
	TrustedRanges  []string `tfschema:"trusted_address_ranges"`

	// Computed
	PublicIPs       []string `tfschema:"public_ip_addresses"`
	EgressNatIP     []string `tfschema:"egress_nat_ip_addresses"`
	IpOfTrust       string   `tfschema:"ip_of_trust_for_user_defined_routes"`
	TrustedSubnet   string   `tfschema:"trusted_subnet_id"`
	UnTrustedSubnet string   `tfschema:"untrusted_subnet_id"`
	ApplianceID     string   `tfschema:"network_virtual_appliance_id"`
}

func FlattenNetworkProfileVHub

func FlattenNetworkProfileVHub(input firewalls.NetworkProfile) (*NetworkProfileVHub, error)

type NetworkProfileVnet

type NetworkProfileVnet struct {
	// Required
	PublicIPIDs []string `tfschema:"public_ip_address_ids"`

	// Optional
	EgressNatIPIDs    []string            `tfschema:"egress_nat_ip_address_ids"`
	TrustedRanges     []string            `tfschema:"trusted_address_ranges"`
	VnetConfiguration []VnetConfiguration `tfschema:"vnet_configuration"`

	// Computed
	PublicIPs   []string `tfschema:"public_ip_addresses"`
	EgressNatIP []string `tfschema:"egress_nat_ip_addresses"`
}

func FlattenNetworkProfileVnet

func FlattenNetworkProfileVnet(input firewalls.NetworkProfile) []NetworkProfileVnet

type Panorama

type Panorama struct {
	Name            string `tfschema:"name"`
	DeviceGroupName string `tfschema:"device_group_name"`
	HostName        string `tfschema:"host_name"`
	PanoramaServer  string `tfschema:"panorama_server_1"`
	PanoramaServer2 string `tfschema:"panorama_server_2"`
	TplName         string `tfschema:"template_name"`
	VMAuthKey       string `tfschema:"virtual_machine_ssh_key"`
}

type Source

type Source struct {
	CIDRS       []string `tfschema:"cidrs"`
	Countries   []string `tfschema:"countries"`
	Feeds       []string `tfschema:"feeds"`
	PrefixLists []string `tfschema:"local_rulestack_prefix_list_ids"`
}

func FlattenSource

func FlattenSource(input *localrules.SourceAddr, ruleId localrules.LocalRuleId) []Source

type VnetConfiguration

type VnetConfiguration struct {
	VNetID            string `tfschema:"virtual_network_id"`
	TrustedSubnetID   string `tfschema:"trusted_subnet_id"`
	UntrustedSubnetID string `tfschema:"untrusted_subnet_id"`
	IpOfTrust         string `tfschema:"ip_of_trust_for_user_defined_routes"` // TODO - What is this?
}

Jump to

Keyboard shortcuts

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