oci logo
Oracle Cloud Infrastructure v0.12.0, Mar 17 23

oci.LoadBalancer.getProtocols

This data source provides the list of Load Balancer Protocols in Oracle Cloud Infrastructure Load Balancer service.

Lists all supported traffic protocols.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testLoadBalancerProtocols = Oci.LoadBalancer.GetProtocols.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/LoadBalancer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LoadBalancer.GetProtocols(ctx, &loadbalancer.GetProtocolsArgs{
			CompartmentId: _var.Compartment_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LoadBalancer.LoadBalancerFunctions;
import com.pulumi.oci.LoadBalancer.inputs.GetProtocolsArgs;
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 testLoadBalancerProtocols = LoadBalancerFunctions.getProtocols(GetProtocolsArgs.builder()
            .compartmentId(var_.compartment_id())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_load_balancer_protocols = oci.LoadBalancer.get_protocols(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLoadBalancerProtocols = oci.LoadBalancer.getProtocols({
    compartmentId: _var.compartment_id,
});
variables:
  testLoadBalancerProtocols:
    fn::invoke:
      Function: oci:LoadBalancer:getProtocols
      Arguments:
        compartmentId: ${var.compartment_id}

Using getProtocols

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 getProtocols(args: GetProtocolsArgs, opts?: InvokeOptions): Promise<GetProtocolsResult>
function getProtocolsOutput(args: GetProtocolsOutputArgs, opts?: InvokeOptions): Output<GetProtocolsResult>
def get_protocols(compartment_id: Optional[str] = None,
                  filters: Optional[Sequence[_loadbalancer.GetProtocolsFilter]] = None,
                  opts: Optional[InvokeOptions] = None) -> GetProtocolsResult
def get_protocols_output(compartment_id: Optional[pulumi.Input[str]] = None,
                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loadbalancer.GetProtocolsFilterArgs]]]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetProtocolsResult]
func GetProtocols(ctx *Context, args *GetProtocolsArgs, opts ...InvokeOption) (*GetProtocolsResult, error)
func GetProtocolsOutput(ctx *Context, args *GetProtocolsOutputArgs, opts ...InvokeOption) GetProtocolsResultOutput

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

public static class GetProtocols 
{
    public static Task<GetProtocolsResult> InvokeAsync(GetProtocolsArgs args, InvokeOptions? opts = null)
    public static Output<GetProtocolsResult> Invoke(GetProtocolsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProtocolsResult> getProtocols(GetProtocolsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: oci:LoadBalancer/getProtocols:getProtocols
  arguments:
    # arguments dictionary

The following arguments are supported:

CompartmentId string

The OCID of the compartment containing the load balancer protocols to list.

Filters List<GetProtocolsFilter>
CompartmentId string

The OCID of the compartment containing the load balancer protocols to list.

Filters []GetProtocolsFilter
compartmentId String

The OCID of the compartment containing the load balancer protocols to list.

filters List<GetProtocolsFilter>
compartmentId string

The OCID of the compartment containing the load balancer protocols to list.

filters GetProtocolsFilter[]
compartment_id str

The OCID of the compartment containing the load balancer protocols to list.

filters GetProtocolsFilter]
compartmentId String

The OCID of the compartment containing the load balancer protocols to list.

filters List<Property Map>

getProtocols Result

The following output properties are available:

CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Protocols List<GetProtocolsProtocol>

The list of protocols.

Filters List<GetProtocolsFilter>
CompartmentId string
Id string

The provider-assigned unique ID for this managed resource.

Protocols []GetProtocolsProtocol

The list of protocols.

Filters []GetProtocolsFilter
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

protocols List<GetProtocolsProtocol>

The list of protocols.

filters List<GetProtocolsFilter>
compartmentId string
id string

The provider-assigned unique ID for this managed resource.

protocols GetProtocolsProtocol[]

The list of protocols.

filters GetProtocolsFilter[]
compartment_id str
id str

The provider-assigned unique ID for this managed resource.

protocols GetProtocolsProtocol]

The list of protocols.

filters GetProtocolsFilter]
compartmentId String
id String

The provider-assigned unique ID for this managed resource.

protocols List<Property Map>

The list of protocols.

filters List<Property Map>

Supporting Types

GetProtocolsFilter

Name string

The name of a protocol. Example: 'HTTP'

Values List<string>
Regex bool
Name string

The name of a protocol. Example: 'HTTP'

Values []string
Regex bool
name String

The name of a protocol. Example: 'HTTP'

values List<String>
regex Boolean
name string

The name of a protocol. Example: 'HTTP'

values string[]
regex boolean
name str

The name of a protocol. Example: 'HTTP'

values Sequence[str]
regex bool
name String

The name of a protocol. Example: 'HTTP'

values List<String>
regex Boolean

GetProtocolsProtocol

Name string

The name of a protocol. Example: 'HTTP'

Name string

The name of a protocol. Example: 'HTTP'

name String

The name of a protocol. Example: 'HTTP'

name string

The name of a protocol. Example: 'HTTP'

name str

The name of a protocol. Example: 'HTTP'

name String

The name of a protocol. Example: 'HTTP'

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.