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

oci.Core.ComputeCapacityReservation

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 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("test_compute_capacity_reservation", {
        availabilityDomain: computeCapacityReservationAvailabilityDomain,
        compartmentId: compartmentId,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        displayName: computeCapacityReservationDisplayName,
        freeformTags: {
            Department: "Finance",
        },
        instanceReservationConfigs: [{
            instanceShape: computeCapacityReservationInstanceReservationConfigsInstanceShape,
            reservedCount: computeCapacityReservationInstanceReservationConfigsReservedCount,
            clusterConfig: {
                hpcIslandId: testHpcIsland.id,
                networkBlockIds: computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds,
            },
            clusterPlacementGroupId: testGroup.id,
            faultDomain: computeCapacityReservationInstanceReservationConfigsFaultDomain,
            instanceShapeConfig: {
                memoryInGbs: computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs,
                ocpus: computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus,
            },
        }],
        isDefaultReservation: computeCapacityReservationIsDefaultReservation,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_compute_capacity_reservation = oci.core.ComputeCapacityReservation("test_compute_capacity_reservation",
        availability_domain=compute_capacity_reservation_availability_domain,
        compartment_id=compartment_id,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        display_name=compute_capacity_reservation_display_name,
        freeform_tags={
            "Department": "Finance",
        },
        instance_reservation_configs=[{
            "instance_shape": compute_capacity_reservation_instance_reservation_configs_instance_shape,
            "reserved_count": compute_capacity_reservation_instance_reservation_configs_reserved_count,
            "cluster_config": {
                "hpc_island_id": test_hpc_island["id"],
                "network_block_ids": compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids,
            },
            "cluster_placement_group_id": test_group["id"],
            "fault_domain": compute_capacity_reservation_instance_reservation_configs_fault_domain,
            "instance_shape_config": {
                "memory_in_gbs": compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs,
                "ocpus": compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus,
            },
        }],
        is_default_reservation=compute_capacity_reservation_is_default_reservation)
    
    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.NewComputeCapacityReservation(ctx, "test_compute_capacity_reservation", &Core.ComputeCapacityReservationArgs{
    			AvailabilityDomain: pulumi.Any(computeCapacityReservationAvailabilityDomain),
    			CompartmentId:      pulumi.Any(compartmentId),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			DisplayName: pulumi.Any(computeCapacityReservationDisplayName),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			InstanceReservationConfigs: core.ComputeCapacityReservationInstanceReservationConfigArray{
    				&core.ComputeCapacityReservationInstanceReservationConfigArgs{
    					InstanceShape: pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShape),
    					ReservedCount: pulumi.Any(computeCapacityReservationInstanceReservationConfigsReservedCount),
    					ClusterConfig: &core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs{
    						HpcIslandId:     pulumi.Any(testHpcIsland.Id),
    						NetworkBlockIds: pulumi.Any(computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds),
    					},
    					ClusterPlacementGroupId: pulumi.Any(testGroup.Id),
    					FaultDomain:             pulumi.Any(computeCapacityReservationInstanceReservationConfigsFaultDomain),
    					InstanceShapeConfig: &core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs{
    						MemoryInGbs: pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs),
    						Ocpus:       pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus),
    					},
    				},
    			},
    			IsDefaultReservation: pulumi.Any(computeCapacityReservationIsDefaultReservation),
    		})
    		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("test_compute_capacity_reservation", new()
        {
            AvailabilityDomain = computeCapacityReservationAvailabilityDomain,
            CompartmentId = compartmentId,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            DisplayName = computeCapacityReservationDisplayName,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            InstanceReservationConfigs = new[]
            {
                new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
                {
                    InstanceShape = computeCapacityReservationInstanceReservationConfigsInstanceShape,
                    ReservedCount = computeCapacityReservationInstanceReservationConfigsReservedCount,
                    ClusterConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
                    {
                        HpcIslandId = testHpcIsland.Id,
                        NetworkBlockIds = computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds,
                    },
                    ClusterPlacementGroupId = testGroup.Id,
                    FaultDomain = computeCapacityReservationInstanceReservationConfigsFaultDomain,
                    InstanceShapeConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
                    {
                        MemoryInGbs = computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs,
                        Ocpus = computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus,
                    },
                },
            },
            IsDefaultReservation = computeCapacityReservationIsDefaultReservation,
        });
    
    });
    
    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(computeCapacityReservationAvailabilityDomain)
                .compartmentId(compartmentId)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .displayName(computeCapacityReservationDisplayName)
                .freeformTags(Map.of("Department", "Finance"))
                .instanceReservationConfigs(ComputeCapacityReservationInstanceReservationConfigArgs.builder()
                    .instanceShape(computeCapacityReservationInstanceReservationConfigsInstanceShape)
                    .reservedCount(computeCapacityReservationInstanceReservationConfigsReservedCount)
                    .clusterConfig(ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs.builder()
                        .hpcIslandId(testHpcIsland.id())
                        .networkBlockIds(computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds)
                        .build())
                    .clusterPlacementGroupId(testGroup.id())
                    .faultDomain(computeCapacityReservationInstanceReservationConfigsFaultDomain)
                    .instanceShapeConfig(ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs.builder()
                        .memoryInGbs(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs)
                        .ocpus(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus)
                        .build())
                    .build())
                .isDefaultReservation(computeCapacityReservationIsDefaultReservation)
                .build());
    
        }
    }
    
    resources:
      testComputeCapacityReservation:
        type: oci:Core:ComputeCapacityReservation
        name: test_compute_capacity_reservation
        properties:
          availabilityDomain: ${computeCapacityReservationAvailabilityDomain}
          compartmentId: ${compartmentId}
          definedTags:
            Operations.CostCenter: '42'
          displayName: ${computeCapacityReservationDisplayName}
          freeformTags:
            Department: Finance
          instanceReservationConfigs:
            - instanceShape: ${computeCapacityReservationInstanceReservationConfigsInstanceShape}
              reservedCount: ${computeCapacityReservationInstanceReservationConfigsReservedCount}
              clusterConfig:
                hpcIslandId: ${testHpcIsland.id}
                networkBlockIds: ${computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds}
              clusterPlacementGroupId: ${testGroup.id}
              faultDomain: ${computeCapacityReservationInstanceReservationConfigsFaultDomain}
              instanceShapeConfig:
                memoryInGbs: ${computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs}
                ocpus: ${computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus}
          isDefaultReservation: ${computeCapacityReservationIsDefaultReservation}
    

    Create ComputeCapacityReservation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ComputeCapacityReservation(name: string, args: ComputeCapacityReservationArgs, opts?: CustomResourceOptions);
    @overload
    def ComputeCapacityReservation(resource_name: str,
                                   args: ComputeCapacityReservationArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ComputeCapacityReservation(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   availability_domain: Optional[str] = None,
                                   compartment_id: Optional[str] = None,
                                   instance_reservation_configs: Optional[Sequence[_core.ComputeCapacityReservationInstanceReservationConfigArgs]] = None,
                                   defined_tags: Optional[Mapping[str, str]] = None,
                                   display_name: Optional[str] = None,
                                   freeform_tags: Optional[Mapping[str, str]] = None,
                                   is_default_reservation: Optional[bool] = 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.
    
    

    Parameters

    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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var computeCapacityReservationResource = new Oci.Core.ComputeCapacityReservation("computeCapacityReservationResource", new()
    {
        AvailabilityDomain = "string",
        CompartmentId = "string",
        InstanceReservationConfigs = new[]
        {
            new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
            {
                InstanceShape = "string",
                ReservedCount = "string",
                ClusterConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
                {
                    HpcIslandId = "string",
                    NetworkBlockIds = new[]
                    {
                        "string",
                    },
                },
                ClusterPlacementGroupId = "string",
                FaultDomain = "string",
                InstanceShapeConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
                {
                    MemoryInGbs = 0,
                    Ocpus = 0,
                },
                UsedCount = "string",
            },
        },
        DefinedTags = 
        {
            { "string", "string" },
        },
        DisplayName = "string",
        FreeformTags = 
        {
            { "string", "string" },
        },
        IsDefaultReservation = false,
    });
    
    example, err := Core.NewComputeCapacityReservation(ctx, "computeCapacityReservationResource", &Core.ComputeCapacityReservationArgs{
    	AvailabilityDomain: pulumi.String("string"),
    	CompartmentId:      pulumi.String("string"),
    	InstanceReservationConfigs: core.ComputeCapacityReservationInstanceReservationConfigArray{
    		&core.ComputeCapacityReservationInstanceReservationConfigArgs{
    			InstanceShape: pulumi.String("string"),
    			ReservedCount: pulumi.String("string"),
    			ClusterConfig: &core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs{
    				HpcIslandId: pulumi.String("string"),
    				NetworkBlockIds: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    			ClusterPlacementGroupId: pulumi.String("string"),
    			FaultDomain:             pulumi.String("string"),
    			InstanceShapeConfig: &core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs{
    				MemoryInGbs: pulumi.Float64(0),
    				Ocpus:       pulumi.Float64(0),
    			},
    			UsedCount: pulumi.String("string"),
    		},
    	},
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	IsDefaultReservation: pulumi.Bool(false),
    })
    
    var computeCapacityReservationResource = new ComputeCapacityReservation("computeCapacityReservationResource", ComputeCapacityReservationArgs.builder()
        .availabilityDomain("string")
        .compartmentId("string")
        .instanceReservationConfigs(ComputeCapacityReservationInstanceReservationConfigArgs.builder()
            .instanceShape("string")
            .reservedCount("string")
            .clusterConfig(ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs.builder()
                .hpcIslandId("string")
                .networkBlockIds("string")
                .build())
            .clusterPlacementGroupId("string")
            .faultDomain("string")
            .instanceShapeConfig(ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs.builder()
                .memoryInGbs(0)
                .ocpus(0)
                .build())
            .usedCount("string")
            .build())
        .definedTags(Map.of("string", "string"))
        .displayName("string")
        .freeformTags(Map.of("string", "string"))
        .isDefaultReservation(false)
        .build());
    
    compute_capacity_reservation_resource = oci.core.ComputeCapacityReservation("computeCapacityReservationResource",
        availability_domain="string",
        compartment_id="string",
        instance_reservation_configs=[{
            "instance_shape": "string",
            "reserved_count": "string",
            "cluster_config": {
                "hpc_island_id": "string",
                "network_block_ids": ["string"],
            },
            "cluster_placement_group_id": "string",
            "fault_domain": "string",
            "instance_shape_config": {
                "memory_in_gbs": 0,
                "ocpus": 0,
            },
            "used_count": "string",
        }],
        defined_tags={
            "string": "string",
        },
        display_name="string",
        freeform_tags={
            "string": "string",
        },
        is_default_reservation=False)
    
    const computeCapacityReservationResource = new oci.core.ComputeCapacityReservation("computeCapacityReservationResource", {
        availabilityDomain: "string",
        compartmentId: "string",
        instanceReservationConfigs: [{
            instanceShape: "string",
            reservedCount: "string",
            clusterConfig: {
                hpcIslandId: "string",
                networkBlockIds: ["string"],
            },
            clusterPlacementGroupId: "string",
            faultDomain: "string",
            instanceShapeConfig: {
                memoryInGbs: 0,
                ocpus: 0,
            },
            usedCount: "string",
        }],
        definedTags: {
            string: "string",
        },
        displayName: "string",
        freeformTags: {
            string: "string",
        },
        isDefaultReservation: false,
    });
    
    type: oci:Core:ComputeCapacityReservation
    properties:
        availabilityDomain: string
        compartmentId: string
        definedTags:
            string: string
        displayName: string
        freeformTags:
            string: string
        instanceReservationConfigs:
            - clusterConfig:
                hpcIslandId: string
                networkBlockIds:
                    - string
              clusterPlacementGroupId: string
              faultDomain: string
              instanceShape: string
              instanceShapeConfig:
                memoryInGbs: 0
                ocpus: 0
              reservedCount: string
              usedCount: string
        isDefaultReservation: false
    

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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, string>
    (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, string>
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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]string
    (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]string
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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,String>
    (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,String>
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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]: string}
    (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]: string}
    (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 Sequence[core.ComputeCapacityReservationInstanceReservationConfigArgs]

    (Updatable) The capacity configurations for the capacity reservation. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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, str]
    (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, str]
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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>
    (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>
    (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, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = 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, string>
    (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, string>
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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]string
    (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]string
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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,String>
    (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,String>
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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]: string}
    (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]: string}
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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, str]
    (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, str]
    (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 Sequence[core.ComputeCapacityReservationInstanceReservationConfigArgs]

    (Updatable) The capacity configurations for the capacity reservation. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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<String>
    (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>
    (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. (Note: From 6.17.0 instance_reservation_configs field in oci.Core.ComputeCapacityReservation is changed from TypeList to TypeSet - to avoid unnecessary updates. Also, configs cant by accessed by index)

    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.

    ClusterPlacementGroupId string
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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.

    ClusterPlacementGroupId string
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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.

    clusterPlacementGroupId String
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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.

    clusterPlacementGroupId string
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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 core.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.

    cluster_placement_group_id str
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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 core.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.

    clusterPlacementGroupId String
    (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
    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"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi