Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.NetworkLoadBalancer.getNetworkLoadBalancersPolicies
Explore with Pulumi AI
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, &networkloadbalancer.GetNetworkLoadBalancersPoliciesArgs{}, 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.
- Network
Load List<GetBalancers Policy Collections Network Load Balancers Policies Network Load Balancers Policy Collection> - The list of network_load_balancers_policy_collection.
- Filters
List<Get
Network Load Balancers Policies Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Load []GetBalancers Policy Collections Network Load Balancers Policies Network Load Balancers Policy Collection - The list of network_load_balancers_policy_collection.
- Filters
[]Get
Network Load Balancers Policies Filter
- id String
- The provider-assigned unique ID for this managed resource.
- network
Load List<GetsBalancers Policy Collections Policiess Policy Collection> - The list of network_load_balancers_policy_collection.
- filters
List<Gets
Policies Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- network
Load GetBalancers Policy Collections Network Load Balancers Policies Network Load Balancers Policy Collection[] - The list of network_load_balancers_policy_collection.
- filters
Get
Network Load Balancers Policies Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- network_
load_ Sequence[networkloadbalancer.balancers_ policy_ collections Get Network Load Balancers Policies Network Load Balancers Policy Collection] - The list of network_load_balancers_policy_collection.
- filters
Sequence[networkloadbalancer.
Get Network Load Balancers Policies Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- network
Load List<Property Map>Balancers Policy Collections - The list of network_load_balancers_policy_collection.
- filters List<Property Map>
Supporting Types
GetNetworkLoadBalancersPoliciesFilter
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.