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

oci.Core.ComputeCapacityReservation

Explore with Pulumi AI

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

    This resource provides the Compute Capacity Reservation resource in Oracle Cloud Infrastructure Core service.

    Creates a new compute capacity reservation in the specified compartment and availability domain. Compute capacity reservations let you reserve instances in a compartment. When you launch an instance using this reservation, you are assured that you have enough space for your instance, and you won’t get out of capacity errors. For more information, see Reserved Capacity.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testComputeCapacityReservation = new oci.core.ComputeCapacityReservation("testComputeCapacityReservation", {
        availabilityDomain: _var.compute_capacity_reservation_availability_domain,
        compartmentId: _var.compartment_id,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: _var.compute_capacity_reservation_display_name,
        freeformTags: {
            Department: "Finance",
        },
        instanceReservationConfigs: [{
            instanceShape: _var.compute_capacity_reservation_instance_reservation_configs_instance_shape,
            reservedCount: _var.compute_capacity_reservation_instance_reservation_configs_reserved_count,
            clusterConfig: {
                hpcIslandId: oci_core_hpc_island.test_hpc_island.id,
                networkBlockIds: _var.compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids,
            },
            faultDomain: _var.compute_capacity_reservation_instance_reservation_configs_fault_domain,
            instanceShapeConfig: {
                memoryInGbs: _var.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs,
                ocpus: _var.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus,
            },
        }],
        isDefaultReservation: _var.compute_capacity_reservation_is_default_reservation,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_reservation = oci.core.ComputeCapacityReservation("testComputeCapacityReservation",
        availability_domain=var["compute_capacity_reservation_availability_domain"],
        compartment_id=var["compartment_id"],
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=var["compute_capacity_reservation_display_name"],
        freeform_tags={
            "Department": "Finance",
        },
        instance_reservation_configs=[oci.core.ComputeCapacityReservationInstanceReservationConfigArgs(
            instance_shape=var["compute_capacity_reservation_instance_reservation_configs_instance_shape"],
            reserved_count=var["compute_capacity_reservation_instance_reservation_configs_reserved_count"],
            cluster_config=oci.core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs(
                hpc_island_id=oci_core_hpc_island["test_hpc_island"]["id"],
                network_block_ids=var["compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids"],
            ),
            fault_domain=var["compute_capacity_reservation_instance_reservation_configs_fault_domain"],
            instance_shape_config=oci.core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs(
                memory_in_gbs=var["compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs"],
                ocpus=var["compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus"],
            ),
        )],
        is_default_reservation=var["compute_capacity_reservation_is_default_reservation"])
    
    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.NewComputeCapacityReservation(ctx, "testComputeCapacityReservation", &Core.ComputeCapacityReservationArgs{
    			AvailabilityDomain: pulumi.Any(_var.Compute_capacity_reservation_availability_domain),
    			CompartmentId:      pulumi.Any(_var.Compartment_id),
    			DefinedTags: pulumi.Map{
    				"Operations.CostCenter": pulumi.Any("42"),
    			},
    			DisplayName: pulumi.Any(_var.Compute_capacity_reservation_display_name),
    			FreeformTags: pulumi.Map{
    				"Department": pulumi.Any("Finance"),
    			},
    			InstanceReservationConfigs: core.ComputeCapacityReservationInstanceReservationConfigArray{
    				&core.ComputeCapacityReservationInstanceReservationConfigArgs{
    					InstanceShape: pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_instance_shape),
    					ReservedCount: pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_reserved_count),
    					ClusterConfig: &core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs{
    						HpcIslandId:     pulumi.Any(oci_core_hpc_island.Test_hpc_island.Id),
    						NetworkBlockIds: pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids),
    					},
    					FaultDomain: pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_fault_domain),
    					InstanceShapeConfig: &core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs{
    						MemoryInGbs: pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs),
    						Ocpus:       pulumi.Any(_var.Compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus),
    					},
    				},
    			},
    			IsDefaultReservation: pulumi.Any(_var.Compute_capacity_reservation_is_default_reservation),
    		})
    		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 = new Oci.Core.ComputeCapacityReservation("testComputeCapacityReservation", new()
        {
            AvailabilityDomain = @var.Compute_capacity_reservation_availability_domain,
            CompartmentId = @var.Compartment_id,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = @var.Compute_capacity_reservation_display_name,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            InstanceReservationConfigs = new[]
            {
                new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
                {
                    InstanceShape = @var.Compute_capacity_reservation_instance_reservation_configs_instance_shape,
                    ReservedCount = @var.Compute_capacity_reservation_instance_reservation_configs_reserved_count,
                    ClusterConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
                    {
                        HpcIslandId = oci_core_hpc_island.Test_hpc_island.Id,
                        NetworkBlockIds = @var.Compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids,
                    },
                    FaultDomain = @var.Compute_capacity_reservation_instance_reservation_configs_fault_domain,
                    InstanceShapeConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
                    {
                        MemoryInGbs = @var.Compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs,
                        Ocpus = @var.Compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus,
                    },
                },
            },
            IsDefaultReservation = @var.Compute_capacity_reservation_is_default_reservation,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Core.ComputeCapacityReservation;
    import com.pulumi.oci.Core.ComputeCapacityReservationArgs;
    import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigArgs;
    import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs;
    import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs;
    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) {
            var testComputeCapacityReservation = new ComputeCapacityReservation("testComputeCapacityReservation", ComputeCapacityReservationArgs.builder()        
                .availabilityDomain(var_.compute_capacity_reservation_availability_domain())
                .compartmentId(var_.compartment_id())
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(var_.compute_capacity_reservation_display_name())
                .freeformTags(Map.of("Department", "Finance"))
                .instanceReservationConfigs(ComputeCapacityReservationInstanceReservationConfigArgs.builder()
                    .instanceShape(var_.compute_capacity_reservation_instance_reservation_configs_instance_shape())
                    .reservedCount(var_.compute_capacity_reservation_instance_reservation_configs_reserved_count())
                    .clusterConfig(ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs.builder()
                        .hpcIslandId(oci_core_hpc_island.test_hpc_island().id())
                        .networkBlockIds(var_.compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids())
                        .build())
                    .faultDomain(var_.compute_capacity_reservation_instance_reservation_configs_fault_domain())
                    .instanceShapeConfig(ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs.builder()
                        .memoryInGbs(var_.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs())
                        .ocpus(var_.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus())
                        .build())
                    .build())
                .isDefaultReservation(var_.compute_capacity_reservation_is_default_reservation())
                .build());
    
        }
    }
    
    resources:
      testComputeCapacityReservation:
        type: oci:Core:ComputeCapacityReservation
        properties:
          #Required
          availabilityDomain: ${var.compute_capacity_reservation_availability_domain}
          compartmentId: ${var.compartment_id}
          #Optional
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${var.compute_capacity_reservation_display_name}
          freeformTags:
            Department: Finance
          instanceReservationConfigs:
            - instanceShape: ${var.compute_capacity_reservation_instance_reservation_configs_instance_shape}
              reservedCount: ${var.compute_capacity_reservation_instance_reservation_configs_reserved_count}
              clusterConfig:
                hpcIslandId: ${oci_core_hpc_island.test_hpc_island.id}
                networkBlockIds: ${var.compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids}
              faultDomain: ${var.compute_capacity_reservation_instance_reservation_configs_fault_domain}
              instanceShapeConfig:
                memoryInGbs: ${var.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs}
                ocpus: ${var.compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus}
          isDefaultReservation: ${var.compute_capacity_reservation_is_default_reservation}
    

    Create ComputeCapacityReservation Resource

    new ComputeCapacityReservation(name: string, args: ComputeCapacityReservationArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeCapacityReservation(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   availability_domain: Optional[str] = None,
                                   compartment_id: Optional[str] = None,
                                   defined_tags: Optional[Mapping[str, Any]] = None,
                                   display_name: Optional[str] = None,
                                   freeform_tags: Optional[Mapping[str, Any]] = None,
                                   instance_reservation_configs: Optional[Sequence[_core.ComputeCapacityReservationInstanceReservationConfigArgs]] = None,
                                   is_default_reservation: Optional[bool] = None)
    @overload
    def ComputeCapacityReservation(resource_name: str,
                                   args: ComputeCapacityReservationArgs,
                                   opts: Optional[ResourceOptions] = None)
    func NewComputeCapacityReservation(ctx *Context, name string, args ComputeCapacityReservationArgs, opts ...ResourceOption) (*ComputeCapacityReservation, error)
    public ComputeCapacityReservation(string name, ComputeCapacityReservationArgs args, CustomResourceOptions? opts = null)
    public ComputeCapacityReservation(String name, ComputeCapacityReservationArgs args)
    public ComputeCapacityReservation(String name, ComputeCapacityReservationArgs args, CustomResourceOptions options)
    
    type: oci:Core:ComputeCapacityReservation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ComputeCapacityReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ComputeCapacityReservationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ComputeCapacityReservationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ComputeCapacityReservationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ComputeCapacityReservationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ComputeCapacityReservation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ComputeCapacityReservation resource accepts the following input properties:

    AvailabilityDomain string
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    InstanceReservationConfigs List<ComputeCapacityReservationInstanceReservationConfig>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    IsDefaultReservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    AvailabilityDomain string
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    InstanceReservationConfigs []ComputeCapacityReservationInstanceReservationConfigArgs

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    IsDefaultReservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    availabilityDomain String
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment containing the capacity reservation.
    instanceReservationConfigs List<ComputeCapacityReservationInstanceReservationConfig>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    isDefaultReservation Boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    availabilityDomain string
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    instanceReservationConfigs ComputeCapacityReservationInstanceReservationConfig[]

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    isDefaultReservation boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    availability_domain str
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment containing the capacity reservation.
    instance_reservation_configs ComputeCapacityReservationInstanceReservationConfigArgs]

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    is_default_reservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    availabilityDomain String
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment containing the capacity reservation.
    instanceReservationConfigs List<Property Map>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    definedTags Map<Any>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) 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"}
    isDefaultReservation Boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ComputeCapacityReservation resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    Id string
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.
    id string
    The provider-assigned unique ID for this managed resource.
    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.
    id str
    The provider-assigned unique ID for this managed resource.
    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.
    id String
    The provider-assigned unique ID for this managed resource.
    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.

    Look up Existing ComputeCapacityReservation Resource

    Get an existing ComputeCapacityReservation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ComputeCapacityReservationState, opts?: CustomResourceOptions): ComputeCapacityReservation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_domain: Optional[str] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            instance_reservation_configs: Optional[Sequence[_core.ComputeCapacityReservationInstanceReservationConfigArgs]] = None,
            is_default_reservation: Optional[bool] = None,
            reserved_instance_count: Optional[str] = None,
            state: Optional[str] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            used_instance_count: Optional[str] = None) -> ComputeCapacityReservation
    func GetComputeCapacityReservation(ctx *Context, name string, id IDInput, state *ComputeCapacityReservationState, opts ...ResourceOption) (*ComputeCapacityReservation, error)
    public static ComputeCapacityReservation Get(string name, Input<string> id, ComputeCapacityReservationState? state, CustomResourceOptions? opts = null)
    public static ComputeCapacityReservation get(String name, Output<String> id, ComputeCapacityReservationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AvailabilityDomain string
    The availability domain of this compute capacity reservation. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    DefinedTags Dictionary<string, object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, object>
    (Updatable) 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"}
    InstanceReservationConfigs List<ComputeCapacityReservationInstanceReservationConfig>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    IsDefaultReservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 this compute capacity reservation. Example: Uocm:PHX-AD-1
    CompartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    DefinedTags map[string]interface{}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]interface{}
    (Updatable) 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"}
    InstanceReservationConfigs []ComputeCapacityReservationInstanceReservationConfigArgs

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    IsDefaultReservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment containing the capacity reservation.
    definedTags Map<String,Object>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,Object>
    (Updatable) 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"}
    instanceReservationConfigs List<ComputeCapacityReservationInstanceReservationConfig>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    isDefaultReservation Boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId string
    (Updatable) The OCID of the compartment containing the capacity reservation.
    definedTags {[key: string]: any}
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: any}
    (Updatable) 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"}
    instanceReservationConfigs ComputeCapacityReservationInstanceReservationConfig[]

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    isDefaultReservation boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartment_id str
    (Updatable) The OCID of the compartment containing the capacity reservation.
    defined_tags Mapping[str, Any]
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, Any]
    (Updatable) 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"}
    instance_reservation_configs ComputeCapacityReservationInstanceReservationConfigArgs]

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    is_default_reservation bool

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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 this compute capacity reservation. Example: Uocm:PHX-AD-1
    compartmentId String
    (Updatable) The OCID of the compartment containing the capacity reservation.
    definedTags Map<Any>
    (Updatable) 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
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<Any>
    (Updatable) 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"}
    instanceReservationConfigs List<Property Map>

    (Updatable) The capacity configurations for the capacity reservation.

    To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.

    isDefaultReservation Boolean

    (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    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

    ComputeCapacityReservationInstanceReservationConfig, ComputeCapacityReservationInstanceReservationConfigArgs

    InstanceShape string
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    ReservedCount string
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    ClusterConfig ComputeCapacityReservationInstanceReservationConfigClusterConfig

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    FaultDomain string

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    InstanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    UsedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    InstanceShape string
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    ReservedCount string
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    ClusterConfig ComputeCapacityReservationInstanceReservationConfigClusterConfig

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    FaultDomain string

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    InstanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    UsedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    instanceShape String
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    reservedCount String
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    clusterConfig ComputeCapacityReservationInstanceReservationConfigClusterConfig

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    faultDomain String

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    instanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    usedCount String
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    instanceShape string
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    reservedCount string
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    clusterConfig ComputeCapacityReservationInstanceReservationConfigClusterConfig

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    faultDomain string

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    instanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    usedCount string
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    instance_shape str
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    reserved_count str
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    cluster_config ComputeCapacityReservationInstanceReservationConfigClusterConfig

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    fault_domain str

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    instance_shape_config ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    used_count str
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.
    instanceShape String
    (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
    reservedCount String
    (Updatable) The total number of instances that can be launched from the capacity configuration.
    clusterConfig Property Map

    (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.

    faultDomain String

    (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.

    To retrieve a list of fault domains, use the ListFaultDomains operation in the Identity and Access Management Service API.

    Example: FAULT-DOMAIN-1

    instanceShapeConfig Property Map

    (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.

    If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the shape that you specify.

    Each shape only supports certain configurable values. If the values that you provide are not valid for the specified shape, an error is returned.

    For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.

    usedCount String
    The amount of capacity in use out of the total capacity reserved in this capacity configuration.

    ComputeCapacityReservationInstanceReservationConfigClusterConfig, ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs

    HpcIslandId string
    (Updatable) The OCID of the HPC island.
    NetworkBlockIds List<string>
    (Updatable) The list of OCIDs of the network blocks.
    HpcIslandId string
    (Updatable) The OCID of the HPC island.
    NetworkBlockIds []string
    (Updatable) The list of OCIDs of the network blocks.
    hpcIslandId String
    (Updatable) The OCID of the HPC island.
    networkBlockIds List<String>
    (Updatable) The list of OCIDs of the network blocks.
    hpcIslandId string
    (Updatable) The OCID of the HPC island.
    networkBlockIds string[]
    (Updatable) The list of OCIDs of the network blocks.
    hpc_island_id str
    (Updatable) The OCID of the HPC island.
    network_block_ids Sequence[str]
    (Updatable) The list of OCIDs of the network blocks.
    hpcIslandId String
    (Updatable) The OCID of the HPC island.
    networkBlockIds List<String>
    (Updatable) The list of OCIDs of the network blocks.

    ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig, ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs

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

    Import

    ComputeCapacityReservations can be imported using the id, e.g.

    $ pulumi import oci:Core/computeCapacityReservation:ComputeCapacityReservation test_compute_capacity_reservation "id"
    

    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