Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getComputeCapacityReservation
Explore with Pulumi AI
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: testCapacityReservation.id,
});
import pulumi
import pulumi_oci as oci
test_compute_capacity_reservation = oci.Core.get_compute_capacity_reservation(capacity_reservation_id=test_capacity_reservation["id"])
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.GetComputeCapacityReservation(ctx, &core.GetComputeCapacityReservationArgs{
CapacityReservationId: testCapacityReservation.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 = testCapacityReservation.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(testCapacityReservation.id())
.build());
}
}
variables:
testComputeCapacityReservation:
fn::invoke:
Function: oci:Core:getComputeCapacityReservation
Arguments:
capacityReservationId: ${testCapacityReservation.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:
- Capacity
Reservation stringId - The OCID of the compute capacity reservation.
- Capacity
Reservation stringId - The OCID of the compute capacity reservation.
- capacity
Reservation StringId - The OCID of the compute capacity reservation.
- capacity
Reservation stringId - The OCID of the compute capacity reservation.
- capacity_
reservation_ strid - The OCID of the compute capacity reservation.
- capacity
Reservation StringId - The OCID of the compute capacity reservation.
getComputeCapacityReservation Result
The following output properties are available:
- Availability
Domain string - The availability domain of the compute capacity reservation. Example:
Uocm:PHX-AD-1
- Capacity
Reservation stringId - Compartment
Id string - The OCID of the compartment containing the compute capacity reservation.
- Dictionary<string, string>
- 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 string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- 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.
- Instance
Reservation List<GetConfigs Compute Capacity Reservation Instance Reservation Config> - The capacity configurations for the capacity reservation.
- Is
Default boolReservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- Reserved
Instance stringCount - 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.
- Time
Created string - 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 string - 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 stringCount - 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 string - The availability domain of the compute capacity reservation. Example:
Uocm:PHX-AD-1
- Capacity
Reservation stringId - Compartment
Id string - The OCID of the compartment containing the compute capacity reservation.
- map[string]string
- 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 string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- 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.
- Instance
Reservation []GetConfigs Compute Capacity Reservation Instance Reservation Config - The capacity configurations for the capacity reservation.
- Is
Default boolReservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- Reserved
Instance stringCount - 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.
- Time
Created string - 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 string - 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 stringCount - 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 String - The availability domain of the compute capacity reservation. Example:
Uocm:PHX-AD-1
- capacity
Reservation StringId - compartment
Id String - The OCID of the compartment containing the compute capacity reservation.
- Map<String,String>
- 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 String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- 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.
- instance
Reservation List<GetConfigs Compute Capacity Reservation Instance Reservation Config> - The capacity configurations for the capacity reservation.
- is
Default BooleanReservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance StringCount - 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.
- time
Created String - 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 String - 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 StringCount - 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 string - The availability domain of the compute capacity reservation. Example:
Uocm:PHX-AD-1
- capacity
Reservation stringId - compartment
Id string - The OCID of the compartment containing the compute capacity reservation.
- {[key: string]: string}
- 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 string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- 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.
- instance
Reservation GetConfigs Compute Capacity Reservation Instance Reservation Config[] - The capacity configurations for the capacity reservation.
- is
Default booleanReservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance stringCount - 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.
- time
Created string - 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 string - 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 stringCount - 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_ strid - compartment_
id str - The OCID of the compartment containing the compute capacity reservation.
- Mapping[str, str]
- 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.
- Mapping[str, str]
- 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_ Sequence[core.configs Get Compute Capacity Reservation Instance Reservation Config] - The capacity configurations for the capacity reservation.
- is_
default_ boolreservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved_
instance_ strcount - 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_ strcount - 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 String - The availability domain of the compute capacity reservation. Example:
Uocm:PHX-AD-1
- capacity
Reservation StringId - compartment
Id String - The OCID of the compartment containing the compute capacity reservation.
- Map<String>
- 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 String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- 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.
- instance
Reservation List<Property Map>Configs - The capacity configurations for the capacity reservation.
- is
Default BooleanReservation - Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance StringCount - 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.
- time
Created String - 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 String - 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 StringCount - 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
- Cluster
Configs List<GetCompute Capacity Reservation Instance Reservation Config Cluster Config> - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- Cluster
Placement stringGroup Id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- Fault
Domain 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.
- Instance
Shape 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.
- Instance
Shape List<GetConfigs Compute Capacity Reservation Instance Reservation Config Instance Shape Config> - The shape configuration requested when launching instances in a compute capacity reservation.
- Reserved
Count string - The total number of instances that can be launched from the capacity configuration.
- Used
Count string - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- Cluster
Configs []GetCompute Capacity Reservation Instance Reservation Config Cluster Config - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- Cluster
Placement stringGroup Id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- Fault
Domain 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.
- Instance
Shape 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.
- Instance
Shape []GetConfigs Compute Capacity Reservation Instance Reservation Config Instance Shape Config - The shape configuration requested when launching instances in a compute capacity reservation.
- Reserved
Count string - The total number of instances that can be launched from the capacity configuration.
- Used
Count string - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- cluster
Configs List<GetCompute Capacity Reservation Instance Reservation Config Cluster Config> - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- cluster
Placement StringGroup Id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- fault
Domain 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.
- instance
Shape 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.
- instance
Shape List<GetConfigs Compute Capacity Reservation Instance Reservation Config Instance Shape Config> - The shape configuration requested when launching instances in a compute capacity reservation.
- reserved
Count String - The total number of instances that can be launched from the capacity configuration.
- used
Count String - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- cluster
Configs GetCompute Capacity Reservation Instance Reservation Config Cluster Config[] - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- cluster
Placement stringGroup Id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- fault
Domain 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.
- instance
Shape 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.
- instance
Shape GetConfigs Compute Capacity Reservation Instance Reservation Config Instance Shape Config[] - The shape configuration requested when launching instances in a compute capacity reservation.
- reserved
Count string - The total number of instances that can be launched from the capacity configuration.
- used
Count string - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- cluster_
configs Sequence[core.Get Compute Capacity Reservation Instance Reservation Config Cluster Config] - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- cluster_
placement_ strgroup_ id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- 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_ Sequence[core.configs Get Compute Capacity Reservation Instance Reservation Config Instance Shape Config] - 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.
- cluster
Configs List<Property Map> - The HPC cluster configuration requested when launching instances in a compute capacity reservation.
- cluster
Placement StringGroup Id - The OCID of the cluster placement group for this instance reservation capacity configuration.
- fault
Domain 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.
- instance
Shape 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.
- instance
Shape List<Property Map>Configs - The shape configuration requested when launching instances in a compute capacity reservation.
- reserved
Count String - The total number of instances that can be launched from the capacity configuration.
- used
Count String - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
GetComputeCapacityReservationInstanceReservationConfigClusterConfig
- Hpc
Island stringId - The OCID of the HPC island.
- Network
Block List<string>Ids - The list of OCIDs of the network blocks.
- Hpc
Island stringId - The OCID of the HPC island.
- Network
Block []stringIds - The list of OCIDs of the network blocks.
- hpc
Island StringId - The OCID of the HPC island.
- network
Block List<String>Ids - The list of OCIDs of the network blocks.
- hpc
Island stringId - The OCID of the HPC island.
- network
Block string[]Ids - The list of OCIDs of the network blocks.
- hpc_
island_ strid - The OCID of the HPC island.
- network_
block_ Sequence[str]ids - The list of OCIDs of the network blocks.
- hpc
Island StringId - The OCID of the HPC island.
- network
Block List<String>Ids - The list of OCIDs of the network blocks.
GetComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig
- Memory
In doubleGbs - The total amount of memory available to the instance, in gigabytes.
- Ocpus double
- The total number of OCPUs available to the instance.
- Memory
In float64Gbs - The total amount of memory available to the instance, in gigabytes.
- Ocpus float64
- The total number of OCPUs available to the instance.
- memory
In DoubleGbs - The total amount of memory available to the instance, in gigabytes.
- ocpus Double
- The total number of OCPUs available to the instance.
- memory
In numberGbs - The total amount of memory available to the instance, in gigabytes.
- ocpus number
- The total number of OCPUs available to the instance.
- memory_
in_ floatgbs - The total amount of memory available to the instance, in gigabytes.
- ocpus float
- The total number of OCPUs available to the instance.
- memory
In NumberGbs - 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.