oci.LoadBalancer.getShapes
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
using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLoadBalancerShapes = Oci.LoadBalancer.GetShapes.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.GetShapes(ctx, &loadbalancer.GetShapesArgs{
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.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(var_.compartment_id())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_load_balancer_shapes = oci.LoadBalancer.get_shapes(compartment_id=var["compartment_id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLoadBalancerShapes = oci.LoadBalancer.getShapes({
compartmentId: _var.compartment_id,
});
variables:
testLoadBalancerShapes:
fn::invoke:
Function: oci:LoadBalancer:getShapes
Arguments:
compartmentId: ${var.compartment_id}
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:
- Compartment
Id string The OCID of the compartment containing the load balancer shapes to list.
- Filters
List<Get
Shapes Filter>
- Compartment
Id string The OCID of the compartment containing the load balancer shapes to list.
- Filters
[]Get
Shapes Filter
- compartment
Id String The OCID of the compartment containing the load balancer shapes to list.
- filters
List<Get
Shapes Filter>
- compartment
Id string The OCID of the compartment containing the load balancer shapes to list.
- filters
Get
Shapes Filter[]
- compartment_
id str The OCID of the compartment containing the load balancer shapes to list.
- filters
Get
Shapes Filter]
- compartment
Id 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:
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Shapes
List<Get
Shapes Shape> The list of shapes.
- Filters
List<Get
Shapes Filter>
- Compartment
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Shapes
[]Get
Shapes Shape The list of shapes.
- Filters
[]Get
Shapes Filter
- compartment
Id String - id String
The provider-assigned unique ID for this managed resource.
- shapes
List<Get
Shapes Shape> The list of shapes.
- filters
List<Get
Shapes Filter>
- compartment
Id string - id string
The provider-assigned unique ID for this managed resource.
- shapes
Get
Shapes Shape[] The list of shapes.
- filters
Get
Shapes Filter[]
- compartment_
id str - id str
The provider-assigned unique ID for this managed resource.
- shapes
Get
Shapes Shape] The list of shapes.
- filters
Get
Shapes Filter]
- compartment
Id 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
oci
Terraform Provider.