1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. NetworkLoadBalancer
  5. getNetworkLoadBalancersPolicies
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.NetworkLoadBalancer.getNetworkLoadBalancersPolicies

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    This data source provides the list of Network Load Balancers Policies in Oracle Cloud Infrastructure Network Load Balancer service.

    Lists the available network load balancer policies.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testNetworkLoadBalancersPolicies = oci.NetworkLoadBalancer.getNetworkLoadBalancersPolicies({});
    
    import pulumi
    import pulumi_oci as oci
    
    test_network_load_balancers_policies = oci.NetworkLoadBalancer.get_network_load_balancers_policies()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/NetworkLoadBalancer"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := NetworkLoadBalancer.GetNetworkLoadBalancersPolicies(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testNetworkLoadBalancersPolicies = Oci.NetworkLoadBalancer.GetNetworkLoadBalancersPolicies.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.NetworkLoadBalancer.NetworkLoadBalancerFunctions;
    import com.pulumi.oci.NetworkLoadBalancer.inputs.GetNetworkLoadBalancersPoliciesArgs;
    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 testNetworkLoadBalancersPolicies = NetworkLoadBalancerFunctions.getNetworkLoadBalancersPolicies();
    
        }
    }
    
    variables:
      testNetworkLoadBalancersPolicies:
        fn::invoke:
          Function: oci:NetworkLoadBalancer:getNetworkLoadBalancersPolicies
          Arguments: {}
    

    Using getNetworkLoadBalancersPolicies

    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 getNetworkLoadBalancersPolicies(args: GetNetworkLoadBalancersPoliciesArgs, opts?: InvokeOptions): Promise<GetNetworkLoadBalancersPoliciesResult>
    function getNetworkLoadBalancersPoliciesOutput(args: GetNetworkLoadBalancersPoliciesOutputArgs, opts?: InvokeOptions): Output<GetNetworkLoadBalancersPoliciesResult>
    def get_network_load_balancers_policies(filters: Optional[Sequence[_networkloadbalancer.GetNetworkLoadBalancersPoliciesFilter]] = None,
                                            opts: Optional[InvokeOptions] = None) -> GetNetworkLoadBalancersPoliciesResult
    def get_network_load_balancers_policies_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_networkloadbalancer.GetNetworkLoadBalancersPoliciesFilterArgs]]]] = None,
                                            opts: Optional[InvokeOptions] = None) -> Output[GetNetworkLoadBalancersPoliciesResult]
    func GetNetworkLoadBalancersPolicies(ctx *Context, args *GetNetworkLoadBalancersPoliciesArgs, opts ...InvokeOption) (*GetNetworkLoadBalancersPoliciesResult, error)
    func GetNetworkLoadBalancersPoliciesOutput(ctx *Context, args *GetNetworkLoadBalancersPoliciesOutputArgs, opts ...InvokeOption) GetNetworkLoadBalancersPoliciesResultOutput

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

    public static class GetNetworkLoadBalancersPolicies 
    {
        public static Task<GetNetworkLoadBalancersPoliciesResult> InvokeAsync(GetNetworkLoadBalancersPoliciesArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkLoadBalancersPoliciesResult> Invoke(GetNetworkLoadBalancersPoliciesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkLoadBalancersPoliciesResult> getNetworkLoadBalancersPolicies(GetNetworkLoadBalancersPoliciesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:NetworkLoadBalancer/getNetworkLoadBalancersPolicies:getNetworkLoadBalancersPolicies
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getNetworkLoadBalancersPolicies Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkLoadBalancersPolicyCollections List<GetNetworkLoadBalancersPoliciesNetworkLoadBalancersPolicyCollection>
    The list of network_load_balancers_policy_collection.
    Filters List<GetNetworkLoadBalancersPoliciesFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkLoadBalancersPolicyCollections []GetNetworkLoadBalancersPoliciesNetworkLoadBalancersPolicyCollection
    The list of network_load_balancers_policy_collection.
    Filters []GetNetworkLoadBalancersPoliciesFilter
    id String
    The provider-assigned unique ID for this managed resource.
    networkLoadBalancersPolicyCollections List<GetsPoliciessPolicyCollection>
    The list of network_load_balancers_policy_collection.
    filters List<GetsPoliciesFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    networkLoadBalancersPolicyCollections GetNetworkLoadBalancersPoliciesNetworkLoadBalancersPolicyCollection[]
    The list of network_load_balancers_policy_collection.
    filters GetNetworkLoadBalancersPoliciesFilter[]
    id String
    The provider-assigned unique ID for this managed resource.
    networkLoadBalancersPolicyCollections List<Property Map>
    The list of network_load_balancers_policy_collection.
    filters List<Property Map>

    Supporting Types

    GetNetworkLoadBalancersPoliciesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetNetworkLoadBalancersPoliciesNetworkLoadBalancersPolicyCollection

    Items List<string>
    Array of NetworkLoadBalancersPolicySummary objects.
    Items []string
    Array of NetworkLoadBalancersPolicySummary objects.
    items List<String>
    Array of NetworkLoadBalancersPolicySummary objects.
    items string[]
    Array of NetworkLoadBalancersPolicySummary objects.
    items Sequence[str]
    Array of NetworkLoadBalancersPolicySummary objects.
    items List<String>
    Array of NetworkLoadBalancersPolicySummary objects.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi