Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 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[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[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)
public static Output<GetComputeCapacityReservationInstanceShapesResult> getComputeCapacityReservationInstanceShapes(GetComputeCapacityReservationInstanceShapesArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Core/getComputeCapacityReservationInstanceShapes:getComputeCapacityReservationInstanceShapes
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
List<GetCompute Capacity Reservation Instance Shapes Filter> 
- CompartmentId string
- The OCID of the compartment.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- DisplayName string
- A filter to return only resources that match the given display name exactly.
- Filters
[]GetCompute Capacity Reservation Instance Shapes Filter 
- compartmentId String
- The OCID of the compartment.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName String
- A filter to return only resources that match the given display name exactly.
- filters
List<GetCompute Capacity Reservation Instance Shapes Filter> 
- compartmentId string
- The OCID of the compartment.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName string
- A filter to return only resources that match the given display name exactly.
- filters
GetCompute 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[GetCompute Capacity Reservation Instance Shapes Filter] 
- compartmentId String
- The OCID of the compartment.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- displayName 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:
- CompartmentId string
- ComputeCapacity 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.
- AvailabilityDomain string
- The shape's availability domain.
- DisplayName string
- Filters
List<GetCompute Capacity Reservation Instance Shapes Filter> 
- CompartmentId string
- ComputeCapacity []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.
- AvailabilityDomain string
- The shape's availability domain.
- DisplayName string
- Filters
[]GetCompute Capacity Reservation Instance Shapes Filter 
- compartmentId String
- computeCapacity 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.
- availabilityDomain String
- The shape's availability domain.
- displayName String
- filters
List<GetCompute Capacity Reservation Instance Shapes Filter> 
- compartmentId string
- computeCapacity 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.
- availabilityDomain string
- The shape's availability domain.
- displayName string
- filters
GetCompute Capacity Reservation Instance Shapes Filter[] 
- compartment_id str
- compute_capacity_ Sequence[Getreservation_ instance_ shapes 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[GetCompute Capacity Reservation Instance Shapes Filter] 
- compartmentId String
- computeCapacity 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.
- availabilityDomain String
- The shape's availability domain.
- displayName String
- filters List<Property Map>
Supporting Types
GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape          
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- InstanceShape string
- The name of the available shape used to launch instances in a compute capacity reservation.
- AvailabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- InstanceShape string
- The name of the available shape used to launch instances in a compute capacity reservation.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- instanceShape String
- The name of the available shape used to launch instances in a compute capacity reservation.
- availabilityDomain string
- The name of the availability domain. Example: Uocm:PHX-AD-1
- instanceShape 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.
- availabilityDomain String
- The name of the availability domain. Example: Uocm:PHX-AD-1
- instanceShape 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 ociTerraform Provider.