1. Packages
  2. Nutanix
  3. API Docs
  4. Pbr
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.Pbr

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    Provides Nutanix resource to create Policy Based Routing inside VPCs.

    Example Usage

    pbr creation with vpc name with any source or destination or protocol with permit action

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const pbr = new nutanix.Pbr("pbr", {
        action: "PERMIT",
        destination: {
            addressType: "ALL",
        },
        priority: 123,
        protocolType: "ALL",
        source: {
            addressType: "ALL",
        },
        vpcName: "test123",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    pbr = nutanix.Pbr("pbr",
        action="PERMIT",
        destination=nutanix.PbrDestinationArgs(
            address_type="ALL",
        ),
        priority=123,
        protocol_type="ALL",
        source=nutanix.PbrSourceArgs(
            address_type="ALL",
        ),
        vpc_name="test123")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.NewPbr(ctx, "pbr", &nutanix.PbrArgs{
    			Action: pulumi.String("PERMIT"),
    			Destination: &nutanix.PbrDestinationArgs{
    				AddressType: pulumi.String("ALL"),
    			},
    			Priority:     pulumi.Int(123),
    			ProtocolType: pulumi.String("ALL"),
    			Source: &nutanix.PbrSourceArgs{
    				AddressType: pulumi.String("ALL"),
    			},
    			VpcName: pulumi.String("test123"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var pbr = new Nutanix.Pbr("pbr", new()
        {
            Action = "PERMIT",
            Destination = new Nutanix.Inputs.PbrDestinationArgs
            {
                AddressType = "ALL",
            },
            Priority = 123,
            ProtocolType = "ALL",
            Source = new Nutanix.Inputs.PbrSourceArgs
            {
                AddressType = "ALL",
            },
            VpcName = "test123",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.Pbr;
    import com.pulumi.nutanix.PbrArgs;
    import com.pulumi.nutanix.inputs.PbrDestinationArgs;
    import com.pulumi.nutanix.inputs.PbrSourceArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var pbr = new Pbr("pbr", PbrArgs.builder()
                .action("PERMIT")
                .destination(PbrDestinationArgs.builder()
                    .addressType("ALL")
                    .build())
                .priority(123)
                .protocolType("ALL")
                .source(PbrSourceArgs.builder()
                    .addressType("ALL")
                    .build())
                .vpcName("test123")
                .build());
    
        }
    }
    
    resources:
      pbr:
        type: nutanix:Pbr
        properties:
          action: PERMIT
          destination:
            addressType: ALL
          priority: 123
          protocolType: ALL
          source:
            addressType: ALL
          vpcName: test123
    

    Create Pbr Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Pbr(name: string, args: PbrArgs, opts?: CustomResourceOptions);
    @overload
    def Pbr(resource_name: str,
            args: PbrArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Pbr(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            destination: Optional[PbrDestinationArgs] = None,
            priority: Optional[int] = None,
            protocol_type: Optional[str] = None,
            source: Optional[PbrSourceArgs] = None,
            api_version: Optional[str] = None,
            is_bidirectional: Optional[bool] = None,
            name: Optional[str] = None,
            protocol_parameters: Optional[PbrProtocolParametersArgs] = None,
            service_ip_lists: Optional[Sequence[str]] = None,
            vpc_name: Optional[str] = None,
            vpc_reference_uuid: Optional[str] = None)
    func NewPbr(ctx *Context, name string, args PbrArgs, opts ...ResourceOption) (*Pbr, error)
    public Pbr(string name, PbrArgs args, CustomResourceOptions? opts = null)
    public Pbr(String name, PbrArgs args)
    public Pbr(String name, PbrArgs args, CustomResourceOptions options)
    
    type: nutanix:Pbr
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PbrArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PbrArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PbrArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PbrArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PbrArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var pbrResource = new Nutanix.Pbr("pbrResource", new()
    {
        Action = "string",
        Destination = new Nutanix.Inputs.PbrDestinationArgs
        {
            AddressType = "string",
            PrefixLength = 0,
            SubnetIp = "string",
        },
        Priority = 0,
        ProtocolType = "string",
        Source = new Nutanix.Inputs.PbrSourceArgs
        {
            AddressType = "string",
            PrefixLength = 0,
            SubnetIp = "string",
        },
        ApiVersion = "string",
        IsBidirectional = false,
        Name = "string",
        ProtocolParameters = new Nutanix.Inputs.PbrProtocolParametersArgs
        {
            Icmp = new Nutanix.Inputs.PbrProtocolParametersIcmpArgs
            {
                IcmpCode = 0,
                IcmpType = 0,
            },
            ProtocolNumber = "string",
            Tcp = new Nutanix.Inputs.PbrProtocolParametersTcpArgs
            {
                DestinationPortRangeLists = new[]
                {
                    new Nutanix.Inputs.PbrProtocolParametersTcpDestinationPortRangeListArgs
                    {
                        EndPort = 0,
                        StartPort = 0,
                    },
                },
                SourcePortRangeLists = new[]
                {
                    new Nutanix.Inputs.PbrProtocolParametersTcpSourcePortRangeListArgs
                    {
                        EndPort = 0,
                        StartPort = 0,
                    },
                },
            },
            Udp = new Nutanix.Inputs.PbrProtocolParametersUdpArgs
            {
                DestinationPortRangeLists = new[]
                {
                    new Nutanix.Inputs.PbrProtocolParametersUdpDestinationPortRangeListArgs
                    {
                        EndPort = 0,
                        StartPort = 0,
                    },
                },
                SourcePortRangeLists = new[]
                {
                    new Nutanix.Inputs.PbrProtocolParametersUdpSourcePortRangeListArgs
                    {
                        EndPort = 0,
                        StartPort = 0,
                    },
                },
            },
        },
        ServiceIpLists = new[]
        {
            "string",
        },
        VpcName = "string",
        VpcReferenceUuid = "string",
    });
    
    example, err := nutanix.NewPbr(ctx, "pbrResource", &nutanix.PbrArgs{
    	Action: pulumi.String("string"),
    	Destination: &nutanix.PbrDestinationArgs{
    		AddressType:  pulumi.String("string"),
    		PrefixLength: pulumi.Int(0),
    		SubnetIp:     pulumi.String("string"),
    	},
    	Priority:     pulumi.Int(0),
    	ProtocolType: pulumi.String("string"),
    	Source: &nutanix.PbrSourceArgs{
    		AddressType:  pulumi.String("string"),
    		PrefixLength: pulumi.Int(0),
    		SubnetIp:     pulumi.String("string"),
    	},
    	ApiVersion:      pulumi.String("string"),
    	IsBidirectional: pulumi.Bool(false),
    	Name:            pulumi.String("string"),
    	ProtocolParameters: &nutanix.PbrProtocolParametersArgs{
    		Icmp: &nutanix.PbrProtocolParametersIcmpArgs{
    			IcmpCode: pulumi.Int(0),
    			IcmpType: pulumi.Int(0),
    		},
    		ProtocolNumber: pulumi.String("string"),
    		Tcp: &nutanix.PbrProtocolParametersTcpArgs{
    			DestinationPortRangeLists: nutanix.PbrProtocolParametersTcpDestinationPortRangeListArray{
    				&nutanix.PbrProtocolParametersTcpDestinationPortRangeListArgs{
    					EndPort:   pulumi.Int(0),
    					StartPort: pulumi.Int(0),
    				},
    			},
    			SourcePortRangeLists: nutanix.PbrProtocolParametersTcpSourcePortRangeListArray{
    				&nutanix.PbrProtocolParametersTcpSourcePortRangeListArgs{
    					EndPort:   pulumi.Int(0),
    					StartPort: pulumi.Int(0),
    				},
    			},
    		},
    		Udp: &nutanix.PbrProtocolParametersUdpArgs{
    			DestinationPortRangeLists: nutanix.PbrProtocolParametersUdpDestinationPortRangeListArray{
    				&nutanix.PbrProtocolParametersUdpDestinationPortRangeListArgs{
    					EndPort:   pulumi.Int(0),
    					StartPort: pulumi.Int(0),
    				},
    			},
    			SourcePortRangeLists: nutanix.PbrProtocolParametersUdpSourcePortRangeListArray{
    				&nutanix.PbrProtocolParametersUdpSourcePortRangeListArgs{
    					EndPort:   pulumi.Int(0),
    					StartPort: pulumi.Int(0),
    				},
    			},
    		},
    	},
    	ServiceIpLists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VpcName:          pulumi.String("string"),
    	VpcReferenceUuid: pulumi.String("string"),
    })
    
    var pbrResource = new Pbr("pbrResource", PbrArgs.builder()
        .action("string")
        .destination(PbrDestinationArgs.builder()
            .addressType("string")
            .prefixLength(0)
            .subnetIp("string")
            .build())
        .priority(0)
        .protocolType("string")
        .source(PbrSourceArgs.builder()
            .addressType("string")
            .prefixLength(0)
            .subnetIp("string")
            .build())
        .apiVersion("string")
        .isBidirectional(false)
        .name("string")
        .protocolParameters(PbrProtocolParametersArgs.builder()
            .icmp(PbrProtocolParametersIcmpArgs.builder()
                .icmpCode(0)
                .icmpType(0)
                .build())
            .protocolNumber("string")
            .tcp(PbrProtocolParametersTcpArgs.builder()
                .destinationPortRangeLists(PbrProtocolParametersTcpDestinationPortRangeListArgs.builder()
                    .endPort(0)
                    .startPort(0)
                    .build())
                .sourcePortRangeLists(PbrProtocolParametersTcpSourcePortRangeListArgs.builder()
                    .endPort(0)
                    .startPort(0)
                    .build())
                .build())
            .udp(PbrProtocolParametersUdpArgs.builder()
                .destinationPortRangeLists(PbrProtocolParametersUdpDestinationPortRangeListArgs.builder()
                    .endPort(0)
                    .startPort(0)
                    .build())
                .sourcePortRangeLists(PbrProtocolParametersUdpSourcePortRangeListArgs.builder()
                    .endPort(0)
                    .startPort(0)
                    .build())
                .build())
            .build())
        .serviceIpLists("string")
        .vpcName("string")
        .vpcReferenceUuid("string")
        .build());
    
    pbr_resource = nutanix.Pbr("pbrResource",
        action="string",
        destination=nutanix.PbrDestinationArgs(
            address_type="string",
            prefix_length=0,
            subnet_ip="string",
        ),
        priority=0,
        protocol_type="string",
        source=nutanix.PbrSourceArgs(
            address_type="string",
            prefix_length=0,
            subnet_ip="string",
        ),
        api_version="string",
        is_bidirectional=False,
        name="string",
        protocol_parameters=nutanix.PbrProtocolParametersArgs(
            icmp=nutanix.PbrProtocolParametersIcmpArgs(
                icmp_code=0,
                icmp_type=0,
            ),
            protocol_number="string",
            tcp=nutanix.PbrProtocolParametersTcpArgs(
                destination_port_range_lists=[nutanix.PbrProtocolParametersTcpDestinationPortRangeListArgs(
                    end_port=0,
                    start_port=0,
                )],
                source_port_range_lists=[nutanix.PbrProtocolParametersTcpSourcePortRangeListArgs(
                    end_port=0,
                    start_port=0,
                )],
            ),
            udp=nutanix.PbrProtocolParametersUdpArgs(
                destination_port_range_lists=[nutanix.PbrProtocolParametersUdpDestinationPortRangeListArgs(
                    end_port=0,
                    start_port=0,
                )],
                source_port_range_lists=[nutanix.PbrProtocolParametersUdpSourcePortRangeListArgs(
                    end_port=0,
                    start_port=0,
                )],
            ),
        ),
        service_ip_lists=["string"],
        vpc_name="string",
        vpc_reference_uuid="string")
    
    const pbrResource = new nutanix.Pbr("pbrResource", {
        action: "string",
        destination: {
            addressType: "string",
            prefixLength: 0,
            subnetIp: "string",
        },
        priority: 0,
        protocolType: "string",
        source: {
            addressType: "string",
            prefixLength: 0,
            subnetIp: "string",
        },
        apiVersion: "string",
        isBidirectional: false,
        name: "string",
        protocolParameters: {
            icmp: {
                icmpCode: 0,
                icmpType: 0,
            },
            protocolNumber: "string",
            tcp: {
                destinationPortRangeLists: [{
                    endPort: 0,
                    startPort: 0,
                }],
                sourcePortRangeLists: [{
                    endPort: 0,
                    startPort: 0,
                }],
            },
            udp: {
                destinationPortRangeLists: [{
                    endPort: 0,
                    startPort: 0,
                }],
                sourcePortRangeLists: [{
                    endPort: 0,
                    startPort: 0,
                }],
            },
        },
        serviceIpLists: ["string"],
        vpcName: "string",
        vpcReferenceUuid: "string",
    });
    
    type: nutanix:Pbr
    properties:
        action: string
        apiVersion: string
        destination:
            addressType: string
            prefixLength: 0
            subnetIp: string
        isBidirectional: false
        name: string
        priority: 0
        protocolParameters:
            icmp:
                icmpCode: 0
                icmpType: 0
            protocolNumber: string
            tcp:
                destinationPortRangeLists:
                    - endPort: 0
                      startPort: 0
                sourcePortRangeLists:
                    - endPort: 0
                      startPort: 0
            udp:
                destinationPortRangeLists:
                    - endPort: 0
                      startPort: 0
                sourcePortRangeLists:
                    - endPort: 0
                      startPort: 0
        protocolType: string
        serviceIpLists:
            - string
        source:
            addressType: string
            prefixLength: 0
            subnetIp: string
        vpcName: string
        vpcReferenceUuid: string
    

    Pbr Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Pbr resource accepts the following input properties:

    Action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    Destination PiersKarsenbarg.Nutanix.Inputs.PbrDestination
    Priority int
    priority of policy
    ProtocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    Source PiersKarsenbarg.Nutanix.Inputs.PbrSource
    ApiVersion string
    The version of the API.
    IsBidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    Name string
    name of policy
    ProtocolParameters PiersKarsenbarg.Nutanix.Inputs.PbrProtocolParameters
    ServiceIpLists List<string>
    IP addresses of network services. This field is valid only when action is REROUTE.
    VpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    VpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    Action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    Destination PbrDestinationArgs
    Priority int
    priority of policy
    ProtocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    Source PbrSourceArgs
    ApiVersion string
    The version of the API.
    IsBidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    Name string
    name of policy
    ProtocolParameters PbrProtocolParametersArgs
    ServiceIpLists []string
    IP addresses of network services. This field is valid only when action is REROUTE.
    VpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    VpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    action String
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    destination PbrDestination
    priority Integer
    priority of policy
    protocolType String
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    source PbrSource
    apiVersion String
    The version of the API.
    isBidirectional Boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    name String
    name of policy
    protocolParameters PbrProtocolParameters
    serviceIpLists List<String>
    IP addresses of network services. This field is valid only when action is REROUTE.
    vpcName String
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid String
    The reference to a vpc . Should not be used with {vpc_name} .
    action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    destination PbrDestination
    priority number
    priority of policy
    protocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    source PbrSource
    apiVersion string
    The version of the API.
    isBidirectional boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    name string
    name of policy
    protocolParameters PbrProtocolParameters
    serviceIpLists string[]
    IP addresses of network services. This field is valid only when action is REROUTE.
    vpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    action str
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    destination PbrDestinationArgs
    priority int
    priority of policy
    protocol_type str
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    source PbrSourceArgs
    api_version str
    The version of the API.
    is_bidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    name str
    name of policy
    protocol_parameters PbrProtocolParametersArgs
    service_ip_lists Sequence[str]
    IP addresses of network services. This field is valid only when action is REROUTE.
    vpc_name str
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpc_reference_uuid str
    The reference to a vpc . Should not be used with {vpc_name} .
    action String
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    destination Property Map
    priority Number
    priority of policy
    protocolType String
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    source Property Map
    apiVersion String
    The version of the API.
    isBidirectional Boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    name String
    name of policy
    protocolParameters Property Map
    serviceIpLists List<String>
    IP addresses of network services. This field is valid only when action is REROUTE.
    vpcName String
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid String
    The reference to a vpc . Should not be used with {vpc_name} .

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Pbr resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    The routing policies kind metadata.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    The routing policies kind metadata.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    The routing policies kind metadata.
    id string
    The provider-assigned unique ID for this managed resource.
    metadata {[key: string]: string}
    The routing policies kind metadata.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata Mapping[str, str]
    The routing policies kind metadata.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String>
    The routing policies kind metadata.

    Look up Existing Pbr Resource

    Get an existing Pbr resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: PbrState, opts?: CustomResourceOptions): Pbr
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            api_version: Optional[str] = None,
            destination: Optional[PbrDestinationArgs] = None,
            is_bidirectional: Optional[bool] = None,
            metadata: Optional[Mapping[str, str]] = None,
            name: Optional[str] = None,
            priority: Optional[int] = None,
            protocol_parameters: Optional[PbrProtocolParametersArgs] = None,
            protocol_type: Optional[str] = None,
            service_ip_lists: Optional[Sequence[str]] = None,
            source: Optional[PbrSourceArgs] = None,
            vpc_name: Optional[str] = None,
            vpc_reference_uuid: Optional[str] = None) -> Pbr
    func GetPbr(ctx *Context, name string, id IDInput, state *PbrState, opts ...ResourceOption) (*Pbr, error)
    public static Pbr Get(string name, Input<string> id, PbrState? state, CustomResourceOptions? opts = null)
    public static Pbr get(String name, Output<String> id, PbrState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    ApiVersion string
    The version of the API.
    Destination PiersKarsenbarg.Nutanix.Inputs.PbrDestination
    IsBidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    Metadata Dictionary<string, string>
    The routing policies kind metadata.
    Name string
    name of policy
    Priority int
    priority of policy
    ProtocolParameters PiersKarsenbarg.Nutanix.Inputs.PbrProtocolParameters
    ProtocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    ServiceIpLists List<string>
    IP addresses of network services. This field is valid only when action is REROUTE.
    Source PiersKarsenbarg.Nutanix.Inputs.PbrSource
    VpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    VpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    Action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    ApiVersion string
    The version of the API.
    Destination PbrDestinationArgs
    IsBidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    Metadata map[string]string
    The routing policies kind metadata.
    Name string
    name of policy
    Priority int
    priority of policy
    ProtocolParameters PbrProtocolParametersArgs
    ProtocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    ServiceIpLists []string
    IP addresses of network services. This field is valid only when action is REROUTE.
    Source PbrSourceArgs
    VpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    VpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    action String
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    apiVersion String
    The version of the API.
    destination PbrDestination
    isBidirectional Boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    metadata Map<String,String>
    The routing policies kind metadata.
    name String
    name of policy
    priority Integer
    priority of policy
    protocolParameters PbrProtocolParameters
    protocolType String
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    serviceIpLists List<String>
    IP addresses of network services. This field is valid only when action is REROUTE.
    source PbrSource
    vpcName String
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid String
    The reference to a vpc . Should not be used with {vpc_name} .
    action string
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    apiVersion string
    The version of the API.
    destination PbrDestination
    isBidirectional boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    metadata {[key: string]: string}
    The routing policies kind metadata.
    name string
    name of policy
    priority number
    priority of policy
    protocolParameters PbrProtocolParameters
    protocolType string
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    serviceIpLists string[]
    IP addresses of network services. This field is valid only when action is REROUTE.
    source PbrSource
    vpcName string
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid string
    The reference to a vpc . Should not be used with {vpc_name} .
    action str
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    api_version str
    The version of the API.
    destination PbrDestinationArgs
    is_bidirectional bool
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    metadata Mapping[str, str]
    The routing policies kind metadata.
    name str
    name of policy
    priority int
    priority of policy
    protocol_parameters PbrProtocolParametersArgs
    protocol_type str
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    service_ip_lists Sequence[str]
    IP addresses of network services. This field is valid only when action is REROUTE.
    source PbrSourceArgs
    vpc_name str
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpc_reference_uuid str
    The reference to a vpc . Should not be used with {vpc_name} .
    action String
    Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
    apiVersion String
    The version of the API.
    destination Property Map
    isBidirectional Boolean
    Additionally create Policy in reverse direction. Should be used with {TCP, UDP with start and end port ranges and ICMP with icmp code and type}. Supported with 2022.x.
    metadata Map<String>
    The routing policies kind metadata.
    name String
    name of policy
    priority Number
    priority of policy
    protocolParameters Property Map
    protocolType String
    Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
    serviceIpLists List<String>
    IP addresses of network services. This field is valid only when action is REROUTE.
    source Property Map
    vpcName String
    The reference to a vpc. Should not be used with {vpc_reference_uuid}
    vpcReferenceUuid String
    The reference to a vpc . Should not be used with {vpc_name} .

    Supporting Types

    PbrDestination, PbrDestinationArgs

    addressType String
    prefixLength Integer
    subnetIp String
    addressType string
    prefixLength number
    subnetIp string
    addressType String
    prefixLength Number
    subnetIp String

    PbrProtocolParameters, PbrProtocolParametersArgs

    PbrProtocolParametersIcmp, PbrProtocolParametersIcmpArgs

    icmpCode Integer
    icmpType Integer
    icmpCode number
    icmpType number
    icmpCode Number
    icmpType Number

    PbrProtocolParametersTcp, PbrProtocolParametersTcpArgs

    PbrProtocolParametersTcpDestinationPortRangeList, PbrProtocolParametersTcpDestinationPortRangeListArgs

    endPort Integer
    startPort Integer
    endPort number
    startPort number
    endPort Number
    startPort Number

    PbrProtocolParametersTcpSourcePortRangeList, PbrProtocolParametersTcpSourcePortRangeListArgs

    endPort Integer
    startPort Integer
    endPort number
    startPort number
    endPort Number
    startPort Number

    PbrProtocolParametersUdp, PbrProtocolParametersUdpArgs

    PbrProtocolParametersUdpDestinationPortRangeList, PbrProtocolParametersUdpDestinationPortRangeListArgs

    endPort Integer
    startPort Integer
    endPort number
    startPort number
    endPort Number
    startPort Number

    PbrProtocolParametersUdpSourcePortRangeList, PbrProtocolParametersUdpSourcePortRangeListArgs

    endPort Integer
    startPort Integer
    endPort number
    startPort number
    endPort Number
    startPort Number

    PbrSource, PbrSourceArgs

    addressType String
    prefixLength Integer
    subnetIp String
    addressType string
    prefixLength number
    subnetIp string
    addressType String
    prefixLength Number
    subnetIp String

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg