Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg
nutanix.Pbr
Explore with Pulumi AI
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)
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
Piers
Karsenbarg. Nutanix. Inputs. Pbr Destination - Priority int
- priority of policy
- Protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- Source
Piers
Karsenbarg. Nutanix. Inputs. Pbr Source - Api
Version string - 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 string
- name of policy
- Protocol
Parameters PiersKarsenbarg. Nutanix. Inputs. Pbr Protocol Parameters - Service
Ip List<string>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- Vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- Vpc
Reference stringUuid - 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
Pbr
Destination Args - Priority int
- priority of policy
- Protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- Source
Pbr
Source Args - Api
Version string - 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 string
- name of policy
- Protocol
Parameters PbrProtocol Parameters Args - Service
Ip []stringLists - IP addresses of network services. This field is valid only when action is REROUTE.
- Vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- Vpc
Reference stringUuid - 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
Pbr
Destination - priority Integer
- priority of policy
- protocol
Type String - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- source
Pbr
Source - api
Version String - The version of the API.
- is
Bidirectional 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
- protocol
Parameters PbrProtocol Parameters - service
Ip List<String>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- vpc
Name String - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference StringUuid - 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
Pbr
Destination - priority number
- priority of policy
- protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- source
Pbr
Source - api
Version string - The version of the API.
- is
Bidirectional 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
- protocol
Parameters PbrProtocol Parameters - service
Ip string[]Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference stringUuid - 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
Pbr
Destination Args - 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
Pbr
Source Args - 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 PbrProtocol Parameters Args - service_
ip_ Sequence[str]lists - 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_ struuid - 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
- protocol
Type String - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- source Property Map
- api
Version String - The version of the API.
- is
Bidirectional 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
- protocol
Parameters Property Map - service
Ip List<String>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- vpc
Name String - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference StringUuid - 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:
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.
- Action string
- Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
- Api
Version string - The version of the API.
- Destination
Piers
Karsenbarg. Nutanix. Inputs. Pbr Destination - 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 Dictionary<string, string>
- The routing policies kind metadata.
- Name string
- name of policy
- Priority int
- priority of policy
- Protocol
Parameters PiersKarsenbarg. Nutanix. Inputs. Pbr Protocol Parameters - Protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- Service
Ip List<string>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- Source
Piers
Karsenbarg. Nutanix. Inputs. Pbr Source - Vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- Vpc
Reference stringUuid - The reference to a vpc . Should not be used with {vpc_name} .
- Action string
- Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
- Api
Version string - The version of the API.
- Destination
Pbr
Destination Args - 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 map[string]string
- The routing policies kind metadata.
- Name string
- name of policy
- Priority int
- priority of policy
- Protocol
Parameters PbrProtocol Parameters Args - Protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- Service
Ip []stringLists - IP addresses of network services. This field is valid only when action is REROUTE.
- Source
Pbr
Source Args - Vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- Vpc
Reference stringUuid - The reference to a vpc . Should not be used with {vpc_name} .
- action String
- Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
- api
Version String - The version of the API.
- destination
Pbr
Destination - is
Bidirectional 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
- protocol
Parameters PbrProtocol Parameters - protocol
Type String - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- service
Ip List<String>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- source
Pbr
Source - vpc
Name String - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference StringUuid - The reference to a vpc . Should not be used with {vpc_name} .
- action string
- Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
- api
Version string - The version of the API.
- destination
Pbr
Destination - is
Bidirectional 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
- protocol
Parameters PbrProtocol Parameters - protocol
Type string - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- service
Ip string[]Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- source
Pbr
Source - vpc
Name string - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference stringUuid - 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
Pbr
Destination Args - 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 PbrProtocol Parameters Args - protocol_
type str - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- service_
ip_ Sequence[str]lists - IP addresses of network services. This field is valid only when action is REROUTE.
- source
Pbr
Source Args - vpc_
name str - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc_
reference_ struuid - The reference to a vpc . Should not be used with {vpc_name} .
- action String
- Routing policy action. Must be one of {DENY, PERMIT, REROUTE} .
- api
Version String - The version of the API.
- destination Property Map
- is
Bidirectional 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
- protocol
Parameters Property Map - protocol
Type String - Protocol type of policy based routing. Must be one of {TCP, UDP, ICMP, PROTOCOL_NUMBER, ALL} .
- service
Ip List<String>Lists - IP addresses of network services. This field is valid only when action is REROUTE.
- source Property Map
- vpc
Name String - The reference to a vpc. Should not be used with {vpc_reference_uuid}
- vpc
Reference StringUuid - The reference to a vpc . Should not be used with {vpc_name} .
Supporting Types
PbrDestination, PbrDestinationArgs
- Address
Type string - Prefix
Length int - Subnet
Ip string
- Address
Type string - Prefix
Length int - Subnet
Ip string
- address
Type String - prefix
Length Integer - subnet
Ip String
- address
Type string - prefix
Length number - subnet
Ip string
- address_
type str - prefix_
length int - subnet_
ip str
- address
Type String - prefix
Length Number - subnet
Ip String
PbrProtocolParameters, PbrProtocolParametersArgs
PbrProtocolParametersIcmp, PbrProtocolParametersIcmpArgs
PbrProtocolParametersTcp, PbrProtocolParametersTcpArgs
PbrProtocolParametersTcpDestinationPortRangeList, PbrProtocolParametersTcpDestinationPortRangeListArgs
- end_
port int - start_
port int
PbrProtocolParametersTcpSourcePortRangeList, PbrProtocolParametersTcpSourcePortRangeListArgs
- end_
port int - start_
port int
PbrProtocolParametersUdp, PbrProtocolParametersUdpArgs
PbrProtocolParametersUdpDestinationPortRangeList, PbrProtocolParametersUdpDestinationPortRangeListArgs
- end_
port int - start_
port int
PbrProtocolParametersUdpSourcePortRangeList, PbrProtocolParametersUdpSourcePortRangeListArgs
- end_
port int - start_
port int
PbrSource, PbrSourceArgs
- Address
Type string - Prefix
Length int - Subnet
Ip string
- Address
Type string - Prefix
Length int - Subnet
Ip string
- address
Type String - prefix
Length Integer - subnet
Ip String
- address
Type string - prefix
Length number - subnet
Ip string
- address_
type str - prefix_
length int - subnet_
ip str
- address
Type String - prefix
Length Number - subnet
Ip String
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.