Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI:<span pulumi-lang-nodejs=” avi.L4policyset"" pulumi-lang-dotnet=" avi.L4policyset"" pulumi-lang-go=" L4policyset"" pulumi-lang-python=" L4policyset"" pulumi-lang-yaml=" avi.L4policyset"" pulumi-lang-java=" avi.L4policyset""> 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({
uuid: "l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name: "foo",
});
import pulumi
import pulumi_avi as avi
foo_l4policyset = avi.get_l4policyset(uuid="l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name="foo")
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{
Uuid: pulumi.StringRef("l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
Name: pulumi.StringRef("foo"),
}, 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()
{
Uuid = "l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
Name = "foo",
});
});
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()
.uuid("l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.name("foo")
.build());
}
}
variables:
fooL4policyset:
fn::invoke:
function: avi:getL4policyset
arguments:
uuid: l4policyset-f9cf6b3e-a411-436f-95e2-2982ba2b217b
name: foo
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 dictionaryThe following arguments are supported:
- 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.
getL4policyset Result
The following output properties are available:
- Configpb
Attributes List<GetL4policyset Configpb Attribute> - 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 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
- Is
Internal stringPolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- L4Connection
Policies List<GetL4policyset L4Connection Policy> - 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<Get
L4policyset Marker> - 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.
- Tenant
Ref 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 []GetL4policyset Configpb Attribute - 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 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
- Is
Internal stringPolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- L4Connection
Policies []GetL4policyset L4Connection Policy - 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
[]Get
L4policyset Marker - 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.
- Tenant
Ref 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 List<GetL4policyset Configpb Attribute> - 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 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
- is
Internal StringPolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- l4Connection
Policies List<GetL4policyset L4Connection Policy> - 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<Get
L4policyset Marker> - 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.
- tenant
Ref 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 GetL4policyset Configpb Attribute[] - 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 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
- is
Internal stringPolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- l4Connection
Policies GetL4policyset L4Connection Policy[] - 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
Get
L4policyset Marker[] - 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.
- tenant
Ref 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[GetL4policyset Configpb Attribute] - 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_ strpolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- l4_
connection_ Sequence[Getpolicies L4policyset L4Connection Policy] - 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[Get
L4policyset Marker] - 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.
- configpb
Attributes 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.
- created
By 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
- is
Internal StringPolicy - Field introduced in 17.2.7. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- l4Connection
Policies 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.
- tenant
Ref 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 str
- version String
GetL4policysetL4ConnectionPolicy
GetL4policysetL4ConnectionPolicyRule
- Actions
List<Get
L4policyset L4Connection Policy Rule Action> - Enable string
- Index string
- Matches
List<Get
L4policyset L4Connection Policy Rule Match> - Name string
- Search L4PolicySet by name.
- Actions
[]Get
L4policyset L4Connection Policy Rule Action - Enable string
- Index string
- Matches
[]Get
L4policyset L4Connection Policy Rule Match - Name string
- Search L4PolicySet by name.
- actions
List<Get
L4policyset L4Connection Policy Rule Action> - enable String
- index String
- matches
List<Get
L4policyset L4Connection Policy Rule Match> - name String
- Search L4PolicySet by name.
- actions
Get
L4policyset L4Connection Policy Rule Action[] - enable string
- index string
- matches
Get
L4policyset L4Connection Policy Rule Match[] - name string
- Search L4PolicySet by name.
- actions
Sequence[Get
L4policyset L4Connection Policy Rule Action] - enable str
- index str
- matches
Sequence[Get
L4policyset L4Connection Policy Rule Match] - name str
- Search L4PolicySet by name.
- actions List<Property Map>
- enable String
- index String
- matches List<Property Map>
- name String
- Search L4PolicySet by name.
GetL4policysetL4ConnectionPolicyRuleAction
GetL4policysetL4ConnectionPolicyRuleActionSelectPool
- Action
Type string - Pool
Group stringRef - Pool
Ref string
- Action
Type string - Pool
Group stringRef - Pool
Ref string
- action
Type String - pool
Group StringRef - pool
Ref String
- action
Type string - pool
Group stringRef - pool
Ref string
- action_
type str - pool_
group_ strref - pool_
ref str
- action
Type String - pool
Group StringRef - pool
Ref String
GetL4policysetL4ConnectionPolicyRuleMatch
GetL4policysetL4ConnectionPolicyRuleMatchClientIp
GetL4policysetL4ConnectionPolicyRuleMatchClientIpAddr
GetL4policysetL4ConnectionPolicyRuleMatchClientIpPrefix
- ip
Addrs List<Property Map> - mask String
GetL4policysetL4ConnectionPolicyRuleMatchClientIpPrefixIpAddr
GetL4policysetL4ConnectionPolicyRuleMatchClientIpRange
GetL4policysetL4ConnectionPolicyRuleMatchClientIpRangeBegin
GetL4policysetL4ConnectionPolicyRuleMatchClientIpRangeEnd
GetL4policysetL4ConnectionPolicyRuleMatchPort
- match
Criteria String - port
Ranges List<Property Map> - ports List<Number>
GetL4policysetL4ConnectionPolicyRuleMatchPortPortRange
GetL4policysetL4ConnectionPolicyRuleMatchProtocol
- Match
Criteria string - Protocol string
- Match
Criteria string - Protocol string
- match
Criteria String - protocol String
- match
Criteria string - protocol string
- match_
criteria str - protocol str
- match
Criteria String - protocol String
GetL4policysetMarker
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
aviTerraform Provider.
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
