Oracle Cloud Infrastructure
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:
- Availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- Compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- Instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config Args> (Updatable) The capacity configurations for the capacity reservation.
- 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"}
- Display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- Availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- Compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- Instance
Reservation []ComputeConfigs Capacity Reservation Instance Reservation Config Args (Updatable) The capacity configurations for the capacity reservation.
- 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"}
- Display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- availability
Domain String The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id String (Updatable) The OCID of the compartment containing the capacity reservation.
- instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config Args> (Updatable) The capacity configurations for the capacity reservation.
- 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"}
- display
Name String (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- instance
Reservation ComputeConfigs Capacity Reservation Instance Reservation Config Args[] (Updatable) The capacity configurations for the capacity reservation.
- {[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"}
- display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- is
Default booleanReservation (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_ Computeconfigs Capacity Reservation Instance Reservation Config Args] (Updatable) The capacity configurations for the capacity reservation.
- 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.
- 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_ boolreservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- availability
Domain String The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id String (Updatable) The OCID of the compartment containing the capacity reservation.
- instance
Reservation List<Property Map>Configs (Updatable) The capacity configurations for the capacity reservation.
- 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"}
- display
Name String (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- is
Default BooleanReservation (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.
- Reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- State string
The current state of the compute capacity reservation.
- Time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- Id string
The provider-assigned unique ID for this managed resource.
- Reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- State string
The current state of the compute capacity reservation.
- Time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- id String
The provider-assigned unique ID for this managed resource.
- reserved
Instance StringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state String
The current state of the compute capacity reservation.
- time
Created String The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance StringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- id string
The provider-assigned unique ID for this managed resource.
- reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state string
The current state of the compute capacity reservation.
- time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- id str
The provider-assigned unique ID for this managed resource.
- reserved_
instance_ strcount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state str
The current state of the compute capacity reservation.
- time_
created str The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used_
instance_ strcount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- id String
The provider-assigned unique ID for this managed resource.
- reserved
Instance StringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state String
The current state of the compute capacity reservation.
- time
Created String The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance StringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
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.
- Availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- Compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- 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"}
- Display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config Args> (Updatable) The capacity configurations for the capacity reservation.
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- Reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- State string
The current state of the compute capacity reservation.
- Time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- Availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- Compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- 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"}
- Display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- Instance
Reservation []ComputeConfigs Capacity Reservation Instance Reservation Config Args (Updatable) The capacity configurations for the capacity reservation.
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- Reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- State string
The current state of the compute capacity reservation.
- Time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- availability
Domain String The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id String (Updatable) The OCID of the compartment containing the capacity reservation.
- 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"}
- display
Name String (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config Args> (Updatable) The capacity configurations for the capacity reservation.
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance StringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state String
The current state of the compute capacity reservation.
- time
Created String The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance StringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- availability
Domain string The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id string (Updatable) The OCID of the compartment containing the capacity reservation.
- {[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"}
- display
Name string (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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"}
- instance
Reservation ComputeConfigs Capacity Reservation Instance Reservation Config Args[] (Updatable) The capacity configurations for the capacity reservation.
- is
Default booleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance stringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state string
The current state of the compute capacity reservation.
- time
Created string The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated string The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance stringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- availability_
domain str The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment_
id str (Updatable) The OCID of the compartment containing the capacity reservation.
- 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.
- 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_ Computeconfigs Capacity Reservation Instance Reservation Config Args] (Updatable) The capacity configurations for the capacity reservation.
- is_
default_ boolreservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved_
instance_ strcount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state str
The current state of the compute capacity reservation.
- time_
created str The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time_
updated str The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used_
instance_ strcount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
- availability
Domain String The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment
Id String (Updatable) The OCID of the compartment containing the capacity reservation.
- 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"}
- display
Name String (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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"}
- instance
Reservation List<Property Map>Configs (Updatable) The capacity configurations for the capacity reservation.
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
- reserved
Instance StringCount The number of instances for which capacity will be held with this compute capacity reservation. This number is the sum of the values of the
reservedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.- state String
The current state of the compute capacity reservation.
- time
Created String The date and time the compute capacity reservation was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- time
Updated String The date and time the compute capacity reservation was updated, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- used
Instance StringCount The total number of instances currently consuming space in this compute capacity reservation. This number is the sum of the values of the
usedCount
fields for all of the instance capacity configurations under this reservation. The purpose of this field is to calculate the percentage usage of the reservation.
Supporting Types
ComputeCapacityReservationInstanceReservationConfig
- Instance
Shape 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.
- Reserved
Count string (Updatable) The total number of instances that can be launched from the capacity configuration.
- Fault
Domain 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.
- Instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
- Used
Count string The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- Instance
Shape 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.
- Reserved
Count string (Updatable) The total number of instances that can be launched from the capacity configuration.
- Fault
Domain 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.
- Instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
- Used
Count string The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- instance
Shape 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.
- reserved
Count String (Updatable) The total number of instances that can be launched from the capacity configuration.
- fault
Domain 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.
- instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
- used
Count String The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- instance
Shape 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.
- reserved
Count string (Updatable) The total number of instances that can be launched from the capacity configuration.
- fault
Domain 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.
- instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
- used
Count 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_ Computeconfig Capacity Reservation Instance Reservation Config Instance Shape Config (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.
- instance
Shape 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.
- reserved
Count String (Updatable) The total number of instances that can be launched from the capacity configuration.
- fault
Domain 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.
- instance
Shape Property MapConfig (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
- used
Count String The amount of capacity in use out of the total capacity reserved in this capacity configuration.
ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig
- Memory
In doubleGbs (Updatable) The total amount of memory available to the instance, in gigabytes.
- Ocpus double
(Updatable) The total number of OCPUs available to the instance.
- Memory
In float64Gbs (Updatable) The total amount of memory available to the instance, in gigabytes.
- Ocpus float64
(Updatable) The total number of OCPUs available to the instance.
- memory
In DoubleGbs (Updatable) The total amount of memory available to the instance, in gigabytes.
- ocpus Double
(Updatable) The total number of OCPUs available to the instance.
- memory
In numberGbs (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_ floatgbs (Updatable) The total amount of memory available to the instance, in gigabytes.
- ocpus float
(Updatable) The total number of OCPUs available to the instance.
- memory
In NumberGbs (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.