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

avi.getL4policyset

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-datasource-l4policyset” description: |- Get information of Avi L4PolicySet.

    avi.L4policyset

    This data source is used to to get avi.L4policyset objects.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const fooL4policyset = avi.getL4policyset({
        name: "foo",
        uuid: "l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
    });
    
    import pulumi
    import pulumi_avi as avi
    
    foo_l4policyset = avi.get_l4policyset(name="foo",
        uuid="l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
    
    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.LookupL4policyset(ctx, &avi.LookupL4policysetArgs{
    			Name: pulumi.StringRef("foo"),
    			Uuid: pulumi.StringRef("l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
    		}, nil)
    		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 fooL4policyset = Avi.GetL4policyset.Invoke(new()
        {
            Name = "foo",
            Uuid = "l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.avi.AviFunctions;
    import com.pulumi.avi.inputs.GetL4policysetArgs;
    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) {
            final var fooL4policyset = AviFunctions.getL4policyset(GetL4policysetArgs.builder()
                .name("foo")
                .uuid("l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
                .build());
    
        }
    }
    
    variables:
      fooL4policyset:
        fn::invoke:
          function: avi:getL4policyset
          arguments:
            name: foo
            uuid: l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b
    

    Using getL4policyset

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getL4policyset(args: GetL4policysetArgs, opts?: InvokeOptions): Promise<GetL4policysetResult>
    function getL4policysetOutput(args: GetL4policysetOutputArgs, opts?: InvokeOptions): Output<GetL4policysetResult>
    def get_l4policyset(id: Optional[str] = None,
                        name: Optional[str] = None,
                        tenant_ref: Optional[str] = None,
                        uuid: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetL4policysetResult
    def get_l4policyset_output(id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        tenant_ref: Optional[pulumi.Input[str]] = None,
                        uuid: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetL4policysetResult]
    func LookupL4policyset(ctx *Context, args *LookupL4policysetArgs, opts ...InvokeOption) (*LookupL4policysetResult, error)
    func LookupL4policysetOutput(ctx *Context, args *LookupL4policysetOutputArgs, opts ...InvokeOption) LookupL4policysetResultOutput

    > Note: This function is named LookupL4policyset in the Go SDK.

    public static class GetL4policyset 
    {
        public static Task<GetL4policysetResult> InvokeAsync(GetL4policysetArgs args, InvokeOptions? opts = null)
        public static Output<GetL4policysetResult> Invoke(GetL4policysetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetL4policysetResult> getL4policyset(GetL4policysetArgs args, InvokeOptions options)
    public static Output<GetL4policysetResult> getL4policyset(GetL4policysetArgs args, InvokeOptions options)
    
    fn::invoke:
      function: avi:index/getL4policyset:getL4policyset
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.
    Id string
    Name string
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.
    id String
    name String
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.
    id string
    name string
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.
    id str
    name str
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.
    id String
    name String
    Search L4PolicySet by name.
    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
    Search L4PolicySet by uuid.

    getL4policyset Result

    The following output properties are available:

    ConfigpbAttributes List<GetL4policysetConfigpbAttribute>
    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.
    Id string
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies List<GetL4policysetL4ConnectionPolicy>
    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.
    Markers List<GetL4policysetMarker>
    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 []GetL4policysetConfigpbAttribute
    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.
    Id string
    IsInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    L4ConnectionPolicies []GetL4policysetL4ConnectionPolicy
    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.
    Markers []GetL4policysetMarker
    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<GetL4policysetConfigpbAttribute>
    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.
    id String
    isInternalPolicy String
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies List<GetL4policysetL4ConnectionPolicy>
    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.
    markers List<GetL4policysetMarker>
    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 GetL4policysetConfigpbAttribute[]
    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.
    id string
    isInternalPolicy string
    Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    l4ConnectionPolicies GetL4policysetL4ConnectionPolicy[]
    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.
    markers GetL4policysetMarker[]
    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[GetL4policysetConfigpbAttribute]
    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.
    id str
    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[GetL4policysetL4ConnectionPolicy]
    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.
    markers Sequence[GetL4policysetMarker]
    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.
    id String
    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.
    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

    GetL4policysetConfigpbAttribute

    Version string
    Version string
    version String
    version string
    version String

    GetL4policysetL4ConnectionPolicy

    GetL4policysetL4ConnectionPolicyRule

    actions List<Property Map>
    enable String
    index String
    matches List<Property Map>
    name String
    Search L4PolicySet by name.

    GetL4policysetL4ConnectionPolicyRuleAction

    GetL4policysetL4ConnectionPolicyRuleActionSelectPool

    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

    GetL4policysetL4ConnectionPolicyRuleMatch

    GetL4policysetL4ConnectionPolicyRuleMatchClientIp

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpAddr

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

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpPrefix

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddr

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

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpRange

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpRangeBegin

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

    GetL4policysetL4ConnectionPolicyRuleMatchClientIpRangeEnd

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

    GetL4policysetL4ConnectionPolicyRuleMatchPort

    GetL4policysetL4ConnectionPolicyRuleMatchPortPortRange

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

    GetL4policysetL4ConnectionPolicyRuleMatchProtocol

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

    GetL4policysetMarker

    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