Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

ComputeCapacityReservation

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

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testComputeCapacityReservation = new Oci.Core.ComputeCapacityReservation("testComputeCapacityReservation", new Oci.Core.ComputeCapacityReservationArgs
        {
            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 Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
                {
                    InstanceShape = @var.Compute_capacity_reservation_instance_reservation_configs_instance_shape,
                    ReservedCount = @var.Compute_capacity_reservation_instance_reservation_configs_reserved_count,
                    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 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.AnyMap{
				"Operations.CostCenter": pulumi.Any("42"),
			},
			DisplayName: pulumi.Any(_var.Compute_capacity_reservation_display_name),
			FreeformTags: pulumi.AnyMap{
				"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),
					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
	})
}

Coming soon!

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"],
        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"])
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,
        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,
});

Coming soon!

Create a 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<ComputeCapacityReservationInstanceReservationConfigArgs>

(Updatable) The capacity configurations for 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"}

IsDefaultReservation bool

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

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.

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.

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<ComputeCapacityReservationInstanceReservationConfigArgs>

(Updatable) The capacity configurations for 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"}

isDefaultReservation Boolean

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

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.

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.

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.

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.

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.

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.

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 an 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<ComputeCapacityReservationInstanceReservationConfigArgs>

(Updatable) The capacity configurations for the capacity reservation.

IsDefaultReservation bool

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

ReservedInstanceCount string

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

State string

The current state of the compute capacity reservation.

TimeCreated string

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeUpdated string

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

UsedInstanceCount string

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

AvailabilityDomain string

The availability domain of 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.

IsDefaultReservation bool

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

ReservedInstanceCount string

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

State string

The current state of the compute capacity reservation.

TimeCreated string

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

TimeUpdated string

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

UsedInstanceCount string

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

availabilityDomain String

The availability domain of 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<ComputeCapacityReservationInstanceReservationConfigArgs>

(Updatable) The capacity configurations for the capacity reservation.

isDefaultReservation Boolean

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

reservedInstanceCount String

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

state String

The current state of the compute capacity reservation.

timeCreated String

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated String

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

usedInstanceCount String

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

availabilityDomain string

The availability domain of 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 ComputeCapacityReservationInstanceReservationConfigArgs[]

(Updatable) The capacity configurations for the capacity reservation.

isDefaultReservation boolean

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

reservedInstanceCount string

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

state string

The current state of the compute capacity reservation.

timeCreated string

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated string

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

usedInstanceCount string

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

availability_domain str

The availability domain of 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.

is_default_reservation bool

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

reserved_instance_count str

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

state str

The current state of the compute capacity reservation.

time_created str

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

time_updated str

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

used_instance_count str

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

availabilityDomain String

The availability domain of 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.

isDefaultReservation Boolean

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

reservedInstanceCount String

The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the reservedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

state String

The current state of the compute capacity reservation.

timeCreated String

The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

timeUpdated String

The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z

usedInstanceCount String

The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the usedCount fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.

Supporting Types

ComputeCapacityReservationInstanceReservationConfig

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.

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.

InstanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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

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.

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.

InstanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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

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.

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.

instanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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

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.

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.

instanceShapeConfig ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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

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.

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.

instance_shape_config ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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

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.

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.

instanceShapeConfig Property Map

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

usedCount String

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

ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig

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
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.