1. Packages
  2. Avi Provider
  3. API Docs
  4. L4policyset
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

avi.L4policyset

Explore with Pulumi AI

avi logo
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

    <!–

    Copyright 2021 VMware, Inc.
    SPDX-License-Identifier: Mozilla Public License 2.0
    

    –>

    layout: “avi”

    page_title: “Avi: avi.L4policyset” sidebar_current: “docs-avi-resource-l4policyset” description: |- Creates and manages Avi L4PolicySet.

    avi.L4policyset

    The L4PolicySet resource allows the creation and management of Avi L4PolicySet

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const foo = new avi.L4policyset("foo", {tenantRef: "/api/tenant/?name=admin"});
    
    import pulumi
    import pulumi_avi as avi
    
    foo = avi.L4policyset("foo", tenant_ref="/api/tenant/?name=admin")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := avi.NewL4policyset(ctx, "foo", &avi.L4policysetArgs{
    			TenantRef: pulumi.String("/api/tenant/?name=admin"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Avi = Pulumi.Avi;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Avi.L4policyset("foo", new()
        {
            TenantRef = "/api/tenant/?name=admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.avi.L4policyset;
    import com.pulumi.avi.L4policysetArgs;
    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 foo = new L4policyset("foo", L4policysetArgs.builder()
                .tenantRef("/api/tenant/?name=admin")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: avi:L4policyset
        properties:
          tenantRef: /api/tenant/?name=admin
    

    Create L4policyset Resource

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

    Constructor syntax

    new L4policyset(name: string, args?: L4policysetArgs, opts?: CustomResourceOptions);
    @overload
    def L4policyset(resource_name: str,
                    args: Optional[L4policysetArgs] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def L4policyset(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    configpb_attributes: Optional[Sequence[L4policysetConfigpbAttributeArgs]] = None,
                    created_by: Optional[str] = None,
                    description: Optional[str] = None,
                    is_internal_policy: Optional[str] = None,
                    l4_connection_policies: Optional[Sequence[L4policysetL4ConnectionPolicyArgs]] = None,
                    l4policyset_id: Optional[str] = None,
                    markers: Optional[Sequence[L4policysetMarkerArgs]] = None,
                    name: Optional[str] = None,
                    tenant_ref: Optional[str] = None,
                    uuid: Optional[str] = None)
    func NewL4policyset(ctx *Context, name string, args *L4policysetArgs, opts ...ResourceOption) (*L4policyset, error)
    public L4policyset(string name, L4policysetArgs? args = null, CustomResourceOptions? opts = null)
    public L4policyset(String name, L4policysetArgs args)
    public L4policyset(String name, L4policysetArgs args, CustomResourceOptions options)
    
    type: avi:L4policyset
    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 L4policysetArgs
    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 L4policysetArgs
    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 L4policysetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args L4policysetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args L4policysetArgs
    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 l4policysetResource = new Avi.L4policyset("l4policysetResource", new()
    {
        ConfigpbAttributes = new[]
        {
            new Avi.Inputs.L4policysetConfigpbAttributeArgs
            {
                Version = "string",
            },
        },
        CreatedBy = "string",
        Description = "string",
        IsInternalPolicy = "string",
        L4ConnectionPolicies = new[]
        {
            new Avi.Inputs.L4policysetL4ConnectionPolicyArgs
            {
                Rules = new[]
                {
                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleArgs
                    {
                        Index = "string",
                        Name = "string",
                        Actions = new[]
                        {
                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleActionArgs
                            {
                                SelectPools = new[]
                                {
                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleActionSelectPoolArgs
                                    {
                                        ActionType = "string",
                                        PoolGroupRef = "string",
                                        PoolRef = "string",
                                    },
                                },
                            },
                        },
                        Enable = "string",
                        Matches = new[]
                        {
                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchArgs
                            {
                                ClientIps = new[]
                                {
                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpArgs
                                    {
                                        MatchCriteria = "string",
                                        Addrs = new[]
                                        {
                                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpAddrArgs
                                            {
                                                Addr = "string",
                                                Type = "string",
                                            },
                                        },
                                        GroupRefs = new[]
                                        {
                                            "string",
                                        },
                                        Prefixes = new[]
                                        {
                                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixArgs
                                            {
                                                IpAddrs = new[]
                                                {
                                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddrArgs
                                                    {
                                                        Addr = "string",
                                                        Type = "string",
                                                    },
                                                },
                                                Mask = "string",
                                            },
                                        },
                                        Ranges = new[]
                                        {
                                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeArgs
                                            {
                                                Begins = new[]
                                                {
                                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBeginArgs
                                                    {
                                                        Addr = "string",
                                                        Type = "string",
                                                    },
                                                },
                                                Ends = new[]
                                                {
                                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEndArgs
                                                    {
                                                        Addr = "string",
                                                        Type = "string",
                                                    },
                                                },
                                            },
                                        },
                                    },
                                },
                                Ports = new[]
                                {
                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchPortArgs
                                    {
                                        MatchCriteria = "string",
                                        PortRanges = new[]
                                        {
                                            new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchPortPortRangeArgs
                                            {
                                                End = "string",
                                                Start = "string",
                                            },
                                        },
                                        Ports = new[]
                                        {
                                            0,
                                        },
                                    },
                                },
                                Protocols = new[]
                                {
                                    new Avi.Inputs.L4policysetL4ConnectionPolicyRuleMatchProtocolArgs
                                    {
                                        MatchCriteria = "string",
                                        Protocol = "string",
                                    },
                                },
                            },
                        },
                    },
                },
            },
        },
        L4policysetId = "string",
        Markers = new[]
        {
            new Avi.Inputs.L4policysetMarkerArgs
            {
                Key = "string",
                Values = new[]
                {
                    "string",
                },
            },
        },
        Name = "string",
        TenantRef = "string",
        Uuid = "string",
    });
    
    example, err := avi.NewL4policyset(ctx, "l4policysetResource", &avi.L4policysetArgs{
    	ConfigpbAttributes: avi.L4policysetConfigpbAttributeArray{
    		&avi.L4policysetConfigpbAttributeArgs{
    			Version: pulumi.String("string"),
    		},
    	},
    	CreatedBy:        pulumi.String("string"),
    	Description:      pulumi.String("string"),
    	IsInternalPolicy: pulumi.String("string"),
    	L4ConnectionPolicies: avi.L4policysetL4ConnectionPolicyArray{
    		&avi.L4policysetL4ConnectionPolicyArgs{
    			Rules: avi.L4policysetL4ConnectionPolicyRuleArray{
    				&avi.L4policysetL4ConnectionPolicyRuleArgs{
    					Index: pulumi.String("string"),
    					Name:  pulumi.String("string"),
    					Actions: avi.L4policysetL4ConnectionPolicyRuleActionArray{
    						&avi.L4policysetL4ConnectionPolicyRuleActionArgs{
    							SelectPools: avi.L4policysetL4ConnectionPolicyRuleActionSelectPoolArray{
    								&avi.L4policysetL4ConnectionPolicyRuleActionSelectPoolArgs{
    									ActionType:   pulumi.String("string"),
    									PoolGroupRef: pulumi.String("string"),
    									PoolRef:      pulumi.String("string"),
    								},
    							},
    						},
    					},
    					Enable: pulumi.String("string"),
    					Matches: avi.L4policysetL4ConnectionPolicyRuleMatchArray{
    						&avi.L4policysetL4ConnectionPolicyRuleMatchArgs{
    							ClientIps: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpArray{
    								&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpArgs{
    									MatchCriteria: pulumi.String("string"),
    									Addrs: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpAddrArray{
    										&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpAddrArgs{
    											Addr: pulumi.String("string"),
    											Type: pulumi.String("string"),
    										},
    									},
    									GroupRefs: pulumi.StringArray{
    										pulumi.String("string"),
    									},
    									Prefixes: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixArray{
    										&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixArgs{
    											IpAddrs: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddrArray{
    												&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddrArgs{
    													Addr: pulumi.String("string"),
    													Type: pulumi.String("string"),
    												},
    											},
    											Mask: pulumi.String("string"),
    										},
    									},
    									Ranges: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeArray{
    										&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeArgs{
    											Begins: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBeginArray{
    												&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBeginArgs{
    													Addr: pulumi.String("string"),
    													Type: pulumi.String("string"),
    												},
    											},
    											Ends: avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEndArray{
    												&avi.L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEndArgs{
    													Addr: pulumi.String("string"),
    													Type: pulumi.String("string"),
    												},
    											},
    										},
    									},
    								},
    							},
    							Ports: avi.L4policysetL4ConnectionPolicyRuleMatchPortArray{
    								&avi.L4policysetL4ConnectionPolicyRuleMatchPortArgs{
    									MatchCriteria: pulumi.String("string"),
    									PortRanges: avi.L4policysetL4ConnectionPolicyRuleMatchPortPortRangeArray{
    										&avi.L4policysetL4ConnectionPolicyRuleMatchPortPortRangeArgs{
    											End:   pulumi.String("string"),
    											Start: pulumi.String("string"),
    										},
    									},
    									Ports: pulumi.Float64Array{
    										pulumi.Float64(0),
    									},
    								},
    							},
    							Protocols: avi.L4policysetL4ConnectionPolicyRuleMatchProtocolArray{
    								&avi.L4policysetL4ConnectionPolicyRuleMatchProtocolArgs{
    									MatchCriteria: pulumi.String("string"),
    									Protocol:      pulumi.String("string"),
    								},
    							},
    						},
    					},
    				},
    			},
    		},
    	},
    	L4policysetId: pulumi.String("string"),
    	Markers: avi.L4policysetMarkerArray{
    		&avi.L4policysetMarkerArgs{
    			Key: pulumi.String("string"),
    			Values: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Name:      pulumi.String("string"),
    	TenantRef: pulumi.String("string"),
    	Uuid:      pulumi.String("string"),
    })
    
    var l4policysetResource = new L4policyset("l4policysetResource", L4policysetArgs.builder()
        .configpbAttributes(L4policysetConfigpbAttributeArgs.builder()
            .version("string")
            .build())
        .createdBy("string")
        .description("string")
        .isInternalPolicy("string")
        .l4ConnectionPolicies(L4policysetL4ConnectionPolicyArgs.builder()
            .rules(L4policysetL4ConnectionPolicyRuleArgs.builder()
                .index("string")
                .name("string")
                .actions(L4policysetL4ConnectionPolicyRuleActionArgs.builder()
                    .selectPools(L4policysetL4ConnectionPolicyRuleActionSelectPoolArgs.builder()
                        .actionType("string")
                        .poolGroupRef("string")
                        .poolRef("string")
                        .build())
                    .build())
                .enable("string")
                .matches(L4policysetL4ConnectionPolicyRuleMatchArgs.builder()
                    .clientIps(L4policysetL4ConnectionPolicyRuleMatchClientIpArgs.builder()
                        .matchCriteria("string")
                        .addrs(L4policysetL4ConnectionPolicyRuleMatchClientIpAddrArgs.builder()
                            .addr("string")
                            .type("string")
                            .build())
                        .groupRefs("string")
                        .prefixes(L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixArgs.builder()
                            .ipAddrs(L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddrArgs.builder()
                                .addr("string")
                                .type("string")
                                .build())
                            .mask("string")
                            .build())
                        .ranges(L4policysetL4ConnectionPolicyRuleMatchClientIpRangeArgs.builder()
                            .begins(L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBeginArgs.builder()
                                .addr("string")
                                .type("string")
                                .build())
                            .ends(L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEndArgs.builder()
                                .addr("string")
                                .type("string")
                                .build())
                            .build())
                        .build())
                    .ports(L4policysetL4ConnectionPolicyRuleMatchPortArgs.builder()
                        .matchCriteria("string")
                        .portRanges(L4policysetL4ConnectionPolicyRuleMatchPortPortRangeArgs.builder()
                            .end("string")
                            .start("string")
                            .build())
                        .ports(0)
                        .build())
                    .protocols(L4policysetL4ConnectionPolicyRuleMatchProtocolArgs.builder()
                        .matchCriteria("string")
                        .protocol("string")
                        .build())
                    .build())
                .build())
            .build())
        .l4policysetId("string")
        .markers(L4policysetMarkerArgs.builder()
            .key("string")
            .values("string")
            .build())
        .name("string")
        .tenantRef("string")
        .uuid("string")
        .build());
    
    l4policyset_resource = avi.L4policyset("l4policysetResource",
        configpb_attributes=[{
            "version": "string",
        }],
        created_by="string",
        description="string",
        is_internal_policy="string",
        l4_connection_policies=[{
            "rules": [{
                "index": "string",
                "name": "string",
                "actions": [{
                    "select_pools": [{
                        "action_type": "string",
                        "pool_group_ref": "string",
                        "pool_ref": "string",
                    }],
                }],
                "enable": "string",
                "matches": [{
                    "client_ips": [{
                        "match_criteria": "string",
                        "addrs": [{
                            "addr": "string",
                            "type": "string",
                        }],
                        "group_refs": ["string"],
                        "prefixes": [{
                            "ip_addrs": [{
                                "addr": "string",
                                "type": "string",
                            }],
                            "mask": "string",
                        }],
                        "ranges": [{
                            "begins": [{
                                "addr": "string",
                                "type": "string",
                            }],
                            "ends": [{
                                "addr": "string",
                                "type": "string",
                            }],
                        }],
                    }],
                    "ports": [{
                        "match_criteria": "string",
                        "port_ranges": [{
                            "end": "string",
                            "start": "string",
                        }],
                        "ports": [0],
                    }],
                    "protocols": [{
                        "match_criteria": "string",
                        "protocol": "string",
                    }],
                }],
            }],
        }],
        l4policyset_id="string",
        markers=[{
            "key": "string",
            "values": ["string"],
        }],
        name="string",
        tenant_ref="string",
        uuid="string")
    
    const l4policysetResource = new avi.L4policyset("l4policysetResource", {
        configpbAttributes: [{
            version: "string",
        }],
        createdBy: "string",
        description: "string",
        isInternalPolicy: "string",
        l4ConnectionPolicies: [{
            rules: [{
                index: "string",
                name: "string",
                actions: [{
                    selectPools: [{
                        actionType: "string",
                        poolGroupRef: "string",
                        poolRef: "string",
                    }],
                }],
                enable: "string",
                matches: [{
                    clientIps: [{
                        matchCriteria: "string",
                        addrs: [{
                            addr: "string",
                            type: "string",
                        }],
                        groupRefs: ["string"],
                        prefixes: [{
                            ipAddrs: [{
                                addr: "string",
                                type: "string",
                            }],
                            mask: "string",
                        }],
                        ranges: [{
                            begins: [{
                                addr: "string",
                                type: "string",
                            }],
                            ends: [{
                                addr: "string",
                                type: "string",
                            }],
                        }],
                    }],
                    ports: [{
                        matchCriteria: "string",
                        portRanges: [{
                            end: "string",
                            start: "string",
                        }],
                        ports: [0],
                    }],
                    protocols: [{
                        matchCriteria: "string",
                        protocol: "string",
                    }],
                }],
            }],
        }],
        l4policysetId: "string",
        markers: [{
            key: "string",
            values: ["string"],
        }],
        name: "string",
        tenantRef: "string",
        uuid: "string",
    });
    
    type: avi:L4policyset
    properties:
        configpbAttributes:
            - version: string
        createdBy: string
        description: string
        isInternalPolicy: string
        l4ConnectionPolicies:
            - rules:
                - actions:
                    - selectPools:
                        - actionType: string
                          poolGroupRef: string
                          poolRef: string
                  enable: string
                  index: string
                  matches:
                    - clientIps:
                        - addrs:
                            - addr: string
                              type: string
                          groupRefs:
                            - string
                          matchCriteria: string
                          prefixes:
                            - ipAddrs:
                                - addr: string
                                  type: string
                              mask: string
                          ranges:
                            - begins:
                                - addr: string
                                  type: string
                              ends:
                                - addr: string
                                  type: string
                      ports:
                        - matchCriteria: string
                          portRanges:
                            - end: string
                              start: string
                          ports:
                            - 0
                      protocols:
                        - matchCriteria: string
                          protocol: string
                  name: string
        l4policysetId: string
        markers:
            - key: string
              values:
                - string
        name: string
        tenantRef: string
        uuid: string
    

    L4policyset Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The L4policyset resource accepts the following input properties:

    ConfigpbAttributes List<L4policysetConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CreatedBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies List<L4policysetL4ConnectionPolicy>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4policysetId string
    Markers List<L4policysetMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes []L4policysetConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CreatedBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies []L4policysetL4ConnectionPolicyArgs
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4policysetId string
    Markers []L4policysetMarkerArgs
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<L4policysetConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy String
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies List<L4policysetL4ConnectionPolicy>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId String
    markers List<L4policysetMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes L4policysetConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies L4policysetL4ConnectionPolicy[]
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId string
    markers L4policysetMarker[]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpb_attributes Sequence[L4policysetConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    created_by str
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description str
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    is_internal_policy str
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4_connection_policies Sequence[L4policysetL4ConnectionPolicyArgs]
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policyset_id str
    markers Sequence[L4policysetMarkerArgs]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name str
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenant_ref str
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid str
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy String
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies List<Property Map>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId String
    markers List<Property Map>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing L4policyset Resource

    Get an existing L4policyset 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?: L4policysetState, opts?: CustomResourceOptions): L4policyset
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configpb_attributes: Optional[Sequence[L4policysetConfigpbAttributeArgs]] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            is_internal_policy: Optional[str] = None,
            l4_connection_policies: Optional[Sequence[L4policysetL4ConnectionPolicyArgs]] = None,
            l4policyset_id: Optional[str] = None,
            markers: Optional[Sequence[L4policysetMarkerArgs]] = None,
            name: Optional[str] = None,
            tenant_ref: Optional[str] = None,
            uuid: Optional[str] = None) -> L4policyset
    func GetL4policyset(ctx *Context, name string, id IDInput, state *L4policysetState, opts ...ResourceOption) (*L4policyset, error)
    public static L4policyset Get(string name, Input<string> id, L4policysetState? state, CustomResourceOptions? opts = null)
    public static L4policyset get(String name, Output<String> id, L4policysetState state, CustomResourceOptions options)
    resources:  _:    type: avi:L4policyset    get:      id: ${id}
    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:
    ConfigpbAttributes List<L4policysetConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CreatedBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies List<L4policysetL4ConnectionPolicy>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4policysetId string
    Markers List<L4policysetMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    ConfigpbAttributes []L4policysetConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    CreatedBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies []L4policysetL4ConnectionPolicyArgs
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4policysetId string
    Markers []L4policysetMarkerArgs
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    TenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<L4policysetConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy String
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies List<L4policysetL4ConnectionPolicy>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId String
    markers List<L4policysetMarker>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes L4policysetConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy string
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies L4policysetL4ConnectionPolicy[]
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId string
    markers L4policysetMarker[]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef string
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid string
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpb_attributes Sequence[L4policysetConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    created_by str
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description str
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    is_internal_policy str
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4_connection_policies Sequence[L4policysetL4ConnectionPolicyArgs]
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policyset_id str
    markers Sequence[L4policysetMarkerArgs]
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name str
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenant_ref str
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid str
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    createdBy String
    Creator name. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    description String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    isInternalPolicy String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies List<Property Map>
    Policy to apply when a new transport connection is setup. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4policysetId String
    markers List<Property Map>
    List of labels to be used for granular rbac. Field introduced in 20.1.5. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    tenantRef String
    It is a reference to an object of type tenant. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    uuid String
    Id of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.

    Supporting Types

    L4policysetConfigpbAttribute, L4policysetConfigpbAttributeArgs

    Version string
    Version string
    version String
    version string
    version String

    L4policysetL4ConnectionPolicy, L4policysetL4ConnectionPolicyArgs

    L4policysetL4ConnectionPolicyRule, L4policysetL4ConnectionPolicyRuleArgs

    Index string
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Actions List<L4policysetL4ConnectionPolicyRuleAction>
    Enable string
    Matches List<L4policysetL4ConnectionPolicyRuleMatch>
    Index string
    Name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Actions []L4policysetL4ConnectionPolicyRuleAction
    Enable string
    Matches []L4policysetL4ConnectionPolicyRuleMatch
    index String
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    actions List<L4policysetL4ConnectionPolicyRuleAction>
    enable String
    matches List<L4policysetL4ConnectionPolicyRuleMatch>
    index string
    name string
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    actions L4policysetL4ConnectionPolicyRuleAction[]
    enable string
    matches L4policysetL4ConnectionPolicyRuleMatch[]
    index str
    name str
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    actions Sequence[L4policysetL4ConnectionPolicyRuleAction]
    enable str
    matches Sequence[L4policysetL4ConnectionPolicyRuleMatch]
    index String
    name String
    Name of the l4 policy set. Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    actions List<Property Map>
    enable String
    matches List<Property Map>

    L4policysetL4ConnectionPolicyRuleAction, L4policysetL4ConnectionPolicyRuleActionArgs

    L4policysetL4ConnectionPolicyRuleActionSelectPool, L4policysetL4ConnectionPolicyRuleActionSelectPoolArgs

    ActionType string
    PoolGroupRef string
    PoolRef string
    ActionType string
    PoolGroupRef string
    PoolRef string
    actionType String
    poolGroupRef String
    poolRef String
    actionType string
    poolGroupRef string
    poolRef string
    actionType String
    poolGroupRef String
    poolRef String

    L4policysetL4ConnectionPolicyRuleMatch, L4policysetL4ConnectionPolicyRuleMatchArgs

    L4policysetL4ConnectionPolicyRuleMatchClientIp, L4policysetL4ConnectionPolicyRuleMatchClientIpArgs

    L4policysetL4ConnectionPolicyRuleMatchClientIpAddr, L4policysetL4ConnectionPolicyRuleMatchClientIpAddrArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    L4policysetL4ConnectionPolicyRuleMatchClientIpPrefix, L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixArgs

    L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddr, L4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddrArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    L4policysetL4ConnectionPolicyRuleMatchClientIpRange, L4policysetL4ConnectionPolicyRuleMatchClientIpRangeArgs

    L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBegin, L4policysetL4ConnectionPolicyRuleMatchClientIpRangeBeginArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEnd, L4policysetL4ConnectionPolicyRuleMatchClientIpRangeEndArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    L4policysetL4ConnectionPolicyRuleMatchPort, L4policysetL4ConnectionPolicyRuleMatchPortArgs

    L4policysetL4ConnectionPolicyRuleMatchPortPortRange, L4policysetL4ConnectionPolicyRuleMatchPortPortRangeArgs

    End string
    Start string
    End string
    Start string
    end String
    start String
    end string
    start string
    end str
    start str
    end String
    start String

    L4policysetL4ConnectionPolicyRuleMatchProtocol, L4policysetL4ConnectionPolicyRuleMatchProtocolArgs

    MatchCriteria string
    Protocol string
    MatchCriteria string
    Protocol string
    matchCriteria String
    protocol String
    matchCriteria string
    protocol string
    matchCriteria String
    protocol String

    L4policysetMarker, L4policysetMarkerArgs

    Key string
    Values List<string>
    Key string
    Values []string
    key String
    values List<String>
    key string
    values string[]
    key str
    values Sequence[str]
    key String
    values List<String>

    Package Details

    Repository
    avi vmware/terraform-provider-avi
    License
    Notes
    This Pulumi package is based on the avi Terraform Provider.
    avi logo
    avi 31.1.1 published on Monday, Apr 14, 2025 by vmware