1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. LoadBalancer
  5. getShapes
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.LoadBalancer.getShapes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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[_loadbalancer.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[_loadbalancer.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:LoadBalancer/getShapes:getShapes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment containing the load balancer shapes to list.
    Filters List<GetShapesFilter>
    CompartmentId string
    The OCID of the compartment containing the load balancer shapes to list.
    Filters []GetShapesFilter
    compartmentId String
    The OCID of the compartment containing the load balancer shapes to list.
    filters List<GetShapesFilter>
    compartmentId string
    The OCID of the compartment containing the load balancer shapes to list.
    filters GetShapesFilter[]
    compartment_id str
    The OCID of the compartment containing the load balancer shapes to list.
    filters Sequence[loadbalancer.GetShapesFilter]
    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<GetShapesShape>
    The list of shapes.
    Filters List<GetShapesFilter>
    CompartmentId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Shapes []GetShapesShape
    The list of shapes.
    Filters []GetShapesFilter
    compartmentId String
    id String
    The provider-assigned unique ID for this managed resource.
    shapes List<GetShapesShape>
    The list of shapes.
    filters List<GetShapesFilter>
    compartmentId string
    id string
    The provider-assigned unique ID for this managed resource.
    shapes GetShapesShape[]
    The list of shapes.
    filters GetShapesFilter[]
    compartment_id str
    id str
    The provider-assigned unique ID for this managed resource.
    shapes Sequence[loadbalancer.GetShapesShape]
    The list of shapes.
    filters Sequence[loadbalancer.GetShapesFilter]
    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

    Name string
    The name of the shape. Example: 100Mbps
    Values List<string>
    Regex bool
    Name string
    The name of the shape. Example: 100Mbps
    Values []string
    Regex bool
    name String
    The name of the shape. Example: 100Mbps
    values List<String>
    regex Boolean
    name string
    The name of the shape. Example: 100Mbps
    values string[]
    regex boolean
    name str
    The name of the shape. Example: 100Mbps
    values Sequence[str]
    regex bool
    name String
    The name of the shape. Example: 100Mbps
    values List<String>
    regex Boolean

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi