1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Core
  5. getComputeCapacityReservation
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Core.getComputeCapacityReservation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

    This data source provides details about a specific Compute Capacity Reservation resource in Oracle Cloud Infrastructure Core service.

    Gets information about the specified compute capacity reservation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCapacityReservation = oci.Core.getComputeCapacityReservation({
        capacityReservationId: oci_core_capacity_reservation.test_capacity_reservation.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_reservation = oci.Core.get_compute_capacity_reservation(capacity_reservation_id=oci_core_capacity_reservation["test_capacity_reservation"]["id"])
    
    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.GetComputeCapacityReservation(ctx, &core.GetComputeCapacityReservationArgs{
    			CapacityReservationId: oci_core_capacity_reservation.Test_capacity_reservation.Id,
    		}, 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 testComputeCapacityReservation = Oci.Core.GetComputeCapacityReservation.Invoke(new()
        {
            CapacityReservationId = oci_core_capacity_reservation.Test_capacity_reservation.Id,
        });
    
    });
    
    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.GetComputeCapacityReservationArgs;
    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 testComputeCapacityReservation = CoreFunctions.getComputeCapacityReservation(GetComputeCapacityReservationArgs.builder()
                .capacityReservationId(oci_core_capacity_reservation.test_capacity_reservation().id())
                .build());
    
        }
    }
    
    variables:
      testComputeCapacityReservation:
        fn::invoke:
          Function: oci:Core:getComputeCapacityReservation
          Arguments:
            capacityReservationId: ${oci_core_capacity_reservation.test_capacity_reservation.id}
    

    Using getComputeCapacityReservation

    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 getComputeCapacityReservation(args: GetComputeCapacityReservationArgs, opts?: InvokeOptions): Promise<GetComputeCapacityReservationResult>
    function getComputeCapacityReservationOutput(args: GetComputeCapacityReservationOutputArgs, opts?: InvokeOptions): Output<GetComputeCapacityReservationResult>
    def get_compute_capacity_reservation(capacity_reservation_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetComputeCapacityReservationResult
    def get_compute_capacity_reservation_output(capacity_reservation_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetComputeCapacityReservationResult]
    func GetComputeCapacityReservation(ctx *Context, args *GetComputeCapacityReservationArgs, opts ...InvokeOption) (*GetComputeCapacityReservationResult, error)
    func GetComputeCapacityReservationOutput(ctx *Context, args *GetComputeCapacityReservationOutputArgs, opts ...InvokeOption) GetComputeCapacityReservationResultOutput

    > Note: This function is named GetComputeCapacityReservation in the Go SDK.

    public static class GetComputeCapacityReservation 
    {
        public static Task<GetComputeCapacityReservationResult> InvokeAsync(GetComputeCapacityReservationArgs args, InvokeOptions? opts = null)
        public static Output<GetComputeCapacityReservationResult> Invoke(GetComputeCapacityReservationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetComputeCapacityReservationResult> getComputeCapacityReservation(GetComputeCapacityReservationArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Core/getComputeCapacityReservation:getComputeCapacityReservation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CapacityReservationId string
    The OCID of the compute capacity reservation.
    CapacityReservationId string
    The OCID of the compute capacity reservation.
    capacityReservationId String
    The OCID of the compute capacity reservation.
    capacityReservationId string
    The OCID of the compute capacity reservation.
    capacity_reservation_id str
    The OCID of the compute capacity reservation.
    capacityReservationId String
    The OCID of the compute capacity reservation.

    getComputeCapacityReservation Result

    The following output properties are available:

    AvailabilityDomain string
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    CapacityReservationId string
    CompartmentId string
    The OCID of the compartment containing the compute capacity reservation.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the compute capacity reservation.
    InstanceReservationConfigs List<GetComputeCapacityReservationInstanceReservationConfig>
    The capacity configurations for the capacity reservation.
    IsDefaultReservation bool
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    ReservedInstanceCount string
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    State string
    The current state of the compute capacity reservation.
    TimeCreated string
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    UsedInstanceCount string
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    AvailabilityDomain string
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    CapacityReservationId string
    CompartmentId string
    The OCID of the compartment containing the compute capacity reservation.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The OCID of the compute capacity reservation.
    InstanceReservationConfigs []GetComputeCapacityReservationInstanceReservationConfig
    The capacity configurations for the capacity reservation.
    IsDefaultReservation bool
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    ReservedInstanceCount string
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    State string
    The current state of the compute capacity reservation.
    TimeCreated string
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated string
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    UsedInstanceCount string
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    availabilityDomain String
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    capacityReservationId String
    compartmentId String
    The OCID of the compartment containing the compute capacity reservation.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the compute capacity reservation.
    instanceReservationConfigs List<GetComputeCapacityReservationInstanceReservationConfig>
    The capacity configurations for the capacity reservation.
    isDefaultReservation Boolean
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    reservedInstanceCount String
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    state String
    The current state of the compute capacity reservation.
    timeCreated String
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    usedInstanceCount String
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    availabilityDomain string
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    capacityReservationId string
    compartmentId string
    The OCID of the compartment containing the compute capacity reservation.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The OCID of the compute capacity reservation.
    instanceReservationConfigs GetComputeCapacityReservationInstanceReservationConfig[]
    The capacity configurations for the capacity reservation.
    isDefaultReservation boolean
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    reservedInstanceCount string
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    state string
    The current state of the compute capacity reservation.
    timeCreated string
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated string
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    usedInstanceCount string
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    availability_domain str
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    capacity_reservation_id str
    compartment_id str
    The OCID of the compartment containing the compute capacity reservation.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The OCID of the compute capacity reservation.
    instance_reservation_configs GetComputeCapacityReservationInstanceReservationConfig]
    The capacity configurations for the capacity reservation.
    is_default_reservation bool
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    reserved_instance_count str
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    state str
    The current state of the compute capacity reservation.
    time_created str
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    time_updated str
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    used_instance_count str
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    availabilityDomain String
    The availability domain of the compute capacity reservation. Example: Uocm:PHX-AD-1
    capacityReservationId String
    compartmentId String
    The OCID of the compartment containing the compute capacity reservation.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The OCID of the compute capacity reservation.
    instanceReservationConfigs List<Property Map>
    The capacity configurations for the capacity reservation.
    isDefaultReservation Boolean
    Whether this capacity reservation is the default. For more information, see Capacity Reservations.
    reservedInstanceCount String
    The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
    state String
    The current state of the compute capacity reservation.
    timeCreated String
    The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated String
    The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
    usedInstanceCount String
    The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

    Supporting Types

    GetComputeCapacityReservationInstanceReservationConfig

    ClusterConfigs List<GetComputeCapacityReservationInstanceReservationConfigClusterConfig>
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    FaultDomain string
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    InstanceShape string
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    InstanceShapeConfigs List<GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig>
    The shape configuration requested when launching instances in a compute capacity reservation.
    ReservedCount string
    The total number of instances that can be launched from the capacity configuration.
    UsedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    ClusterConfigs []GetComputeCapacityReservationInstanceReservationConfigClusterConfig
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    FaultDomain string
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    InstanceShape string
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    InstanceShapeConfigs []GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig
    The shape configuration requested when launching instances in a compute capacity reservation.
    ReservedCount string
    The total number of instances that can be launched from the capacity configuration.
    UsedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    clusterConfigs List<GetComputeCapacityReservationInstanceReservationConfigClusterConfig>
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    faultDomain String
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    instanceShape String
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    instanceShapeConfigs List<GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig>
    The shape configuration requested when launching instances in a compute capacity reservation.
    reservedCount String
    The total number of instances that can be launched from the capacity configuration.
    usedCount String
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    clusterConfigs GetComputeCapacityReservationInstanceReservationConfigClusterConfig[]
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    faultDomain string
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    instanceShape string
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    instanceShapeConfigs GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig[]
    The shape configuration requested when launching instances in a compute capacity reservation.
    reservedCount string
    The total number of instances that can be launched from the capacity configuration.
    usedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    cluster_configs GetComputeCapacityReservationInstanceReservationConfigClusterConfig]
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    fault_domain str
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    instance_shape str
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    instance_shape_configs GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig]
    The shape configuration requested when launching instances in a compute capacity reservation.
    reserved_count str
    The total number of instances that can be launched from the capacity configuration.
    used_count str
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    clusterConfigs List<Property Map>
    The HPC cluster configuration requested when launching instances in a compute capacity reservation.
    faultDomain String
    The fault domain of this capacity configuration. If a value is not supplied, this capacity configuration is applicable to all fault domains in the specified availability domain. For more information, see Capacity Reservations.
    instanceShape String
    The shape to use when launching instances using compute capacity reservations. The shape determines the number of CPUs, the amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    instanceShapeConfigs List<Property Map>
    The shape configuration requested when launching instances in a compute capacity reservation.
    reservedCount String
    The total number of instances that can be launched from the capacity configuration.
    usedCount String
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.

    GetComputeCapacityReservationInstanceReservationConfigClusterConfig

    HpcIslandId string
    The OCID of the HpcIsland.
    NetworkBlockIds List<string>
    The list of OCID of the network blocks.
    HpcIslandId string
    The OCID of the HpcIsland.
    NetworkBlockIds []string
    The list of OCID of the network blocks.
    hpcIslandId String
    The OCID of the HpcIsland.
    networkBlockIds List<String>
    The list of OCID of the network blocks.
    hpcIslandId string
    The OCID of the HpcIsland.
    networkBlockIds string[]
    The list of OCID of the network blocks.
    hpc_island_id str
    The OCID of the HpcIsland.
    network_block_ids Sequence[str]
    The list of OCID of the network blocks.
    hpcIslandId String
    The OCID of the HpcIsland.
    networkBlockIds List<String>
    The list of OCID of the network blocks.

    GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    MemoryInGbs double
    The total amount of memory available to the instance, in gigabytes.
    Ocpus double
    The total number of OCPUs available to the instance.
    MemoryInGbs float64
    The total amount of memory available to the instance, in gigabytes.
    Ocpus float64
    The total number of OCPUs available to the instance.
    memoryInGbs Double
    The total amount of memory available to the instance, in gigabytes.
    ocpus Double
    The total number of OCPUs available to the instance.
    memoryInGbs number
    The total amount of memory available to the instance, in gigabytes.
    ocpus number
    The total number of OCPUs available to the instance.
    memory_in_gbs float
    The total amount of memory available to the instance, in gigabytes.
    ocpus float
    The total number of OCPUs available to the instance.
    memoryInGbs Number
    The total amount of memory available to the instance, in gigabytes.
    ocpus Number
    The total number of OCPUs available to the instance.

    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 v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi