1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityReservationInstanceShapes
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Core.getComputeCapacityReservationInstanceShapes

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    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 Sequence[core.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[]
    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi