Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.LoadBalancer.getShapes
Explore with Pulumi AI
This data source provides the list of Load Balancer Shapes in Oracle Cloud Infrastructure Load Balancer service.
Lists the valid load balancer shapes.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLoadBalancerShapes = oci.LoadBalancer.getShapes({
    compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_load_balancer_shapes = oci.LoadBalancer.get_shapes(compartment_id=compartment_id)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/loadbalancer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := loadbalancer.GetShapes(ctx, &loadbalancer.GetShapesArgs{
			CompartmentId: compartmentId,
		}, 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 testLoadBalancerShapes = Oci.LoadBalancer.GetShapes.Invoke(new()
    {
        CompartmentId = compartmentId,
    });
});
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.GetShapesArgs;
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 testLoadBalancerShapes = LoadBalancerFunctions.getShapes(GetShapesArgs.builder()
            .compartmentId(compartmentId)
            .build());
    }
}
variables:
  testLoadBalancerShapes:
    fn::invoke:
      function: oci:LoadBalancer:getShapes
      arguments:
        compartmentId: ${compartmentId}
Using getShapes
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 getShapes(args: GetShapesArgs, opts?: InvokeOptions): Promise<GetShapesResult>
function getShapesOutput(args: GetShapesOutputArgs, opts?: InvokeOptions): Output<GetShapesResult>def get_shapes(compartment_id: Optional[str] = None,
               filters: Optional[Sequence[GetShapesFilter]] = None,
               opts: Optional[InvokeOptions] = None) -> GetShapesResult
def get_shapes_output(compartment_id: Optional[pulumi.Input[str]] = None,
               filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetShapesFilterArgs]]]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetShapesResult]func GetShapes(ctx *Context, args *GetShapesArgs, opts ...InvokeOption) (*GetShapesResult, error)
func GetShapesOutput(ctx *Context, args *GetShapesOutputArgs, opts ...InvokeOption) GetShapesResultOutput> Note: This function is named GetShapes in the Go SDK.
public static class GetShapes 
{
    public static Task<GetShapesResult> InvokeAsync(GetShapesArgs args, InvokeOptions? opts = null)
    public static Output<GetShapesResult> Invoke(GetShapesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
public static Output<GetShapesResult> getShapes(GetShapesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LoadBalancer/getShapes:getShapes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment containing the load balancer shapes to list.
- Filters
List<GetShapes Filter> 
- CompartmentId string
- The OCID of the compartment containing the load balancer shapes to list.
- Filters
[]GetShapes Filter 
- compartmentId String
- The OCID of the compartment containing the load balancer shapes to list.
- filters
List<GetShapes Filter> 
- compartmentId string
- The OCID of the compartment containing the load balancer shapes to list.
- filters
GetShapes Filter[] 
- compartment_id str
- The OCID of the compartment containing the load balancer shapes to list.
- filters
Sequence[GetShapes Filter] 
- compartmentId String
- The OCID of the compartment containing the load balancer shapes to list.
- filters List<Property Map>
getShapes Result
The following output properties are available:
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
List<GetShapes Shape> 
- The list of shapes.
- Filters
List<GetShapes Filter> 
- CompartmentId string
- Id string
- The provider-assigned unique ID for this managed resource.
- Shapes
[]GetShapes Shape 
- The list of shapes.
- Filters
[]GetShapes Filter 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes
List<GetShapes Shape> 
- The list of shapes.
- filters
List<GetShapes Filter> 
- compartmentId string
- id string
- The provider-assigned unique ID for this managed resource.
- shapes
GetShapes Shape[] 
- The list of shapes.
- filters
GetShapes Filter[] 
- compartment_id str
- id str
- The provider-assigned unique ID for this managed resource.
- shapes
Sequence[GetShapes Shape] 
- The list of shapes.
- filters
Sequence[GetShapes Filter] 
- compartmentId String
- id String
- The provider-assigned unique ID for this managed resource.
- shapes List<Property Map>
- The list of shapes.
- filters List<Property Map>
Supporting Types
GetShapesFilter  
GetShapesShape  
- Name string
- The name of the shape. Example: 100Mbps
- Name string
- The name of the shape. Example: 100Mbps
- name String
- The name of the shape. Example: 100Mbps
- name string
- The name of the shape. Example: 100Mbps
- name str
- The name of the shape. Example: 100Mbps
- name String
- The name of the shape. Example: 100Mbps
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.