1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityReservationInstanceShapes
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testComputeCapacityReservationInstanceShapes:
    fn::invoke:
      function: oci:Core:getComputeCapacityReservationInstanceShapes
      arguments:
        compartmentId: ${compartmentId}
        availabilityDomain: ${computeCapacityReservationInstanceShapeAvailabilityDomain}
        displayName: ${computeCapacityReservationInstanceShapeDisplayName}
Copy

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>
Copy
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]
Copy
func GetComputeCapacityReservationInstanceShapes(ctx *Context, args *GetComputeCapacityReservationInstanceShapesArgs, opts ...InvokeOption) (*GetComputeCapacityReservationInstanceShapesResult, error)
func GetComputeCapacityReservationInstanceShapesOutput(ctx *Context, args *GetComputeCapacityReservationInstanceShapesOutputArgs, opts ...InvokeOption) GetComputeCapacityReservationInstanceShapesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetComputeCapacityReservationInstanceShapesResult> getComputeCapacityReservationInstanceShapes(GetComputeCapacityReservationInstanceShapesArgs args, InvokeOptions options)
public static Output<GetComputeCapacityReservationInstanceShapesResult> getComputeCapacityReservationInstanceShapes(GetComputeCapacityReservationInstanceShapesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Core/getComputeCapacityReservationInstanceShapes:getComputeCapacityReservationInstanceShapes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. 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 Changes to this property will trigger replacement. List<GetComputeCapacityReservationInstanceShapesFilter>
CompartmentId This property is required. 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 Changes to this property will trigger replacement. []GetComputeCapacityReservationInstanceShapesFilter
compartmentId This property is required. 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 Changes to this property will trigger replacement. List<GetComputeCapacityReservationInstanceShapesFilter>
compartmentId This property is required. 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 Changes to this property will trigger replacement. GetComputeCapacityReservationInstanceShapesFilter[]
compartment_id This property is required. 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 Changes to this property will trigger replacement. Sequence[core.GetComputeCapacityReservationInstanceShapesFilter]
compartmentId This property is required. 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 Changes to this property will trigger replacement. List<Property Map>

getComputeCapacityReservationInstanceShapes Result

The following output properties are available:

CompartmentId string
ComputeCapacityReservationInstanceShapes List<GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape>
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<GetComputeCapacityReservationInstanceShapesFilter>
CompartmentId string
ComputeCapacityReservationInstanceShapes []GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape
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 []GetComputeCapacityReservationInstanceShapesFilter
compartmentId String
computeCapacityReservationInstanceShapes List<GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape>
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<GetComputeCapacityReservationInstanceShapesFilter>
compartmentId string
computeCapacityReservationInstanceShapes GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape[]
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 GetComputeCapacityReservationInstanceShapesFilter[]
compartmentId String
computeCapacityReservationInstanceShapes List<Property Map>
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 This property is required. string
The name of the availability domain. Example: Uocm:PHX-AD-1
InstanceShape This property is required. string
The name of the available shape used to launch instances in a compute capacity reservation.
AvailabilityDomain This property is required. string
The name of the availability domain. Example: Uocm:PHX-AD-1
InstanceShape This property is required. string
The name of the available shape used to launch instances in a compute capacity reservation.
availabilityDomain This property is required. String
The name of the availability domain. Example: Uocm:PHX-AD-1
instanceShape This property is required. String
The name of the available shape used to launch instances in a compute capacity reservation.
availabilityDomain This property is required. string
The name of the availability domain. Example: Uocm:PHX-AD-1
instanceShape This property is required. string
The name of the available shape used to launch instances in a compute capacity reservation.
availability_domain This property is required. str
The name of the availability domain. Example: Uocm:PHX-AD-1
instance_shape This property is required. str
The name of the available shape used to launch instances in a compute capacity reservation.
availabilityDomain This property is required. String
The name of the availability domain. Example: Uocm:PHX-AD-1
instanceShape This property is required. String
The name of the available shape used to launch instances in a compute capacity reservation.

GetComputeCapacityReservationInstanceShapesFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.