Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Core.getComputeCapacityReservationInstanceShapes
Explore with Pulumi AI
This data source provides the list of Compute Capacity Reservation Instance Shapes in Oracle Cloud Infrastructure Core service.
Lists the shapes that can be reserved within the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeCapacityReservationInstanceShapes = oci.Core.getComputeCapacityReservationInstanceShapes({
compartmentId: compartmentId,
availabilityDomain: computeCapacityReservationInstanceShapeAvailabilityDomain,
displayName: computeCapacityReservationInstanceShapeDisplayName,
});
import pulumi
import pulumi_oci as oci
test_compute_capacity_reservation_instance_shapes = oci.Core.get_compute_capacity_reservation_instance_shapes(compartment_id=compartment_id,
availability_domain=compute_capacity_reservation_instance_shape_availability_domain,
display_name=compute_capacity_reservation_instance_shape_display_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetComputeCapacityReservationInstanceShapes(ctx, &core.GetComputeCapacityReservationInstanceShapesArgs{
CompartmentId: compartmentId,
AvailabilityDomain: pulumi.StringRef(computeCapacityReservationInstanceShapeAvailabilityDomain),
DisplayName: pulumi.StringRef(computeCapacityReservationInstanceShapeDisplayName),
}, 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 testComputeCapacityReservationInstanceShapes = Oci.Core.GetComputeCapacityReservationInstanceShapes.Invoke(new()
{
CompartmentId = compartmentId,
AvailabilityDomain = computeCapacityReservationInstanceShapeAvailabilityDomain,
DisplayName = computeCapacityReservationInstanceShapeDisplayName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetComputeCapacityReservationInstanceShapesArgs;
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 testComputeCapacityReservationInstanceShapes = CoreFunctions.getComputeCapacityReservationInstanceShapes(GetComputeCapacityReservationInstanceShapesArgs.builder()
.compartmentId(compartmentId)
.availabilityDomain(computeCapacityReservationInstanceShapeAvailabilityDomain)
.displayName(computeCapacityReservationInstanceShapeDisplayName)
.build());
}
}
variables:
testComputeCapacityReservationInstanceShapes:
fn::invoke:
Function: oci:Core:getComputeCapacityReservationInstanceShapes
Arguments:
compartmentId: ${compartmentId}
availabilityDomain: ${computeCapacityReservationInstanceShapeAvailabilityDomain}
displayName: ${computeCapacityReservationInstanceShapeDisplayName}
Using getComputeCapacityReservationInstanceShapes
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 getComputeCapacityReservationInstanceShapes(args: GetComputeCapacityReservationInstanceShapesArgs, opts?: InvokeOptions): Promise<GetComputeCapacityReservationInstanceShapesResult>
function getComputeCapacityReservationInstanceShapesOutput(args: GetComputeCapacityReservationInstanceShapesOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityReservationInstanceShapesResult>
def get_compute_capacity_reservation_instance_shapes(availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[_core.GetComputeCapacityReservationInstanceShapesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetComputeCapacityReservationInstanceShapesResult
def get_compute_capacity_reservation_instance_shapes_output(availability_domain: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetComputeCapacityReservationInstanceShapesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityReservationInstanceShapesResult]
func GetComputeCapacityReservationInstanceShapes(ctx *Context, args *GetComputeCapacityReservationInstanceShapesArgs, opts ...InvokeOption) (*GetComputeCapacityReservationInstanceShapesResult, error)
func GetComputeCapacityReservationInstanceShapesOutput(ctx *Context, args *GetComputeCapacityReservationInstanceShapesOutputArgs, opts ...InvokeOption) GetComputeCapacityReservationInstanceShapesResultOutput
> Note: This function is named GetComputeCapacityReservationInstanceShapes
in the Go SDK.
public static class GetComputeCapacityReservationInstanceShapes
{
public static Task<GetComputeCapacityReservationInstanceShapesResult> InvokeAsync(GetComputeCapacityReservationInstanceShapesArgs args, InvokeOptions? opts = null)
public static Output<GetComputeCapacityReservationInstanceShapesResult> Invoke(GetComputeCapacityReservationInstanceShapesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetComputeCapacityReservationInstanceShapesResult> getComputeCapacityReservationInstanceShapes(GetComputeCapacityReservationInstanceShapesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getComputeCapacityReservationInstanceShapes:getComputeCapacityReservationInstanceShapes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Compute Capacity Reservation Instance Shapes Filter>
- Compartment
Id string - The OCID of the compartment.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Compute Capacity Reservation Instance Shapes Filter
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Compute Capacity Reservation Instance Shapes Filter>
- compartment
Id string - The OCID of the compartment.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Compute Capacity Reservation Instance Shapes Filter[]
- compartment_
id str - The OCID of the compartment.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[core.
Get Compute Capacity Reservation Instance Shapes Filter]
- compartment
Id String - The OCID of the compartment.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
getComputeCapacityReservationInstanceShapes Result
The following output properties are available:
- Compartment
Id string - Compute
Capacity List<GetReservation Instance Shapes Compute Capacity Reservation Instance Shapes Compute Capacity Reservation Instance Shape> - The list of compute_capacity_reservation_instance_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The shape's availability domain.
- Display
Name string - Filters
List<Get
Compute Capacity Reservation Instance Shapes Filter>
- Compartment
Id string - Compute
Capacity []GetReservation Instance Shapes Compute Capacity Reservation Instance Shapes Compute Capacity Reservation Instance Shape - The list of compute_capacity_reservation_instance_shapes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Availability
Domain string - The shape's availability domain.
- Display
Name string - Filters
[]Get
Compute Capacity Reservation Instance Shapes Filter
- compartment
Id String - compute
Capacity List<GetReservation Instance Shapes Compute Capacity Reservation Instance Shapes Compute Capacity Reservation Instance Shape> - The list of compute_capacity_reservation_instance_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The shape's availability domain.
- display
Name String - filters
List<Get
Compute Capacity Reservation Instance Shapes Filter>
- compartment
Id string - compute
Capacity GetReservation Instance Shapes Compute Capacity Reservation Instance Shapes Compute Capacity Reservation Instance Shape[] - The list of compute_capacity_reservation_instance_shapes.
- id string
- The provider-assigned unique ID for this managed resource.
- availability
Domain string - The shape's availability domain.
- display
Name string - filters
Get
Compute Capacity Reservation Instance Shapes Filter[]
- compartment_
id str - compute_
capacity_ Sequence[core.reservation_ instance_ shapes Get Compute Capacity Reservation Instance Shapes Compute Capacity Reservation Instance Shape] - The list of compute_capacity_reservation_instance_shapes.
- id str
- The provider-assigned unique ID for this managed resource.
- availability_
domain str - The shape's availability domain.
- display_
name str - filters
Sequence[core.
Get Compute Capacity Reservation Instance Shapes Filter]
- compartment
Id String - compute
Capacity List<Property Map>Reservation Instance Shapes - The list of compute_capacity_reservation_instance_shapes.
- id String
- The provider-assigned unique ID for this managed resource.
- availability
Domain String - The shape's availability domain.
- display
Name String - filters List<Property Map>
Supporting Types
GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Instance
Shape string - The name of the available shape used to launch instances in a compute capacity reservation.
- Availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- Instance
Shape string - The name of the available shape used to launch instances in a compute capacity reservation.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- instance
Shape String - The name of the available shape used to launch instances in a compute capacity reservation.
- availability
Domain string - The name of the availability domain. Example:
Uocm:PHX-AD-1
- instance
Shape string - The name of the available shape used to launch instances in a compute capacity reservation.
- availability_
domain str - The name of the availability domain. Example:
Uocm:PHX-AD-1
- instance_
shape str - The name of the available shape used to launch instances in a compute capacity reservation.
- availability
Domain String - The name of the availability domain. Example:
Uocm:PHX-AD-1
- instance
Shape String - The name of the available shape used to launch instances in a compute capacity reservation.
GetComputeCapacityReservationInstanceShapesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.