Oracle Cloud Infrastructure

v0.5.0 published on Monday, Sep 12, 2022 by Pulumi

getComputeCapacityReservationInstanceShapes

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

using System.Collections.Generic;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testComputeCapacityReservationInstanceShapes = Oci.Core.GetComputeCapacityReservationInstanceShapes.Invoke(new()
    {
        CompartmentId = @var.Compartment_id,
        AvailabilityDomain = @var.Compute_capacity_reservation_instance_shape_availability_domain,
        DisplayName = @var.Compute_capacity_reservation_instance_shape_display_name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/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:      _var.Compartment_id,
			AvailabilityDomain: pulumi.StringRef(_var.Compute_capacity_reservation_instance_shape_availability_domain),
			DisplayName:        pulumi.StringRef(_var.Compute_capacity_reservation_instance_shape_display_name),
		}, 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.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(var_.compartment_id())
            .availabilityDomain(var_.compute_capacity_reservation_instance_shape_availability_domain())
            .displayName(var_.compute_capacity_reservation_instance_shape_display_name())
            .build());

    }
}
import pulumi
import pulumi_oci as oci

test_compute_capacity_reservation_instance_shapes = oci.Core.get_compute_capacity_reservation_instance_shapes(compartment_id=var["compartment_id"],
    availability_domain=var["compute_capacity_reservation_instance_shape_availability_domain"],
    display_name=var["compute_capacity_reservation_instance_shape_display_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testComputeCapacityReservationInstanceShapes = oci.Core.getComputeCapacityReservationInstanceShapes({
    compartmentId: _var.compartment_id,
    availabilityDomain: _var.compute_capacity_reservation_instance_shape_availability_domain,
    displayName: _var.compute_capacity_reservation_instance_shape_display_name,
});
variables:
  testComputeCapacityReservationInstanceShapes:
    Fn::Invoke:
      Function: oci:Core:getComputeCapacityReservationInstanceShapes
      Arguments:
        compartmentId: ${var.compartment_id}
        availabilityDomain: ${var.compute_capacity_reservation_instance_shape_availability_domain}
        displayName: ${var.compute_capacity_reservation_instance_shape_display_name}

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:

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<GetComputeCapacityReservationInstanceShapesFilter>
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 []GetComputeCapacityReservationInstanceShapesFilter
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<GetComputeCapacityReservationInstanceShapesFilter>
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 GetComputeCapacityReservationInstanceShapesFilter[]
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 GetComputeCapacityReservationInstanceShapesFilter]
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
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[]
compartment_id str
compute_capacity_reservation_instance_shapes GetComputeCapacityReservationInstanceShapesComputeCapacityReservationInstanceShape]

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 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 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

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.