oci.Core.ComputeCapacityReservation
Explore with Pulumi AI
This resource provides the Compute Capacity Reservation resource in Oracle Cloud Infrastructure Core service.
Creates a new compute capacity reservation in the specified compartment and availability domain. Compute capacity reservations let you reserve instances in a compartment. When you launch an instance using this reservation, you are assured that you have enough space for your instance, and you won’t get out of capacity errors. For more information, see Reserved Capacity.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testComputeCapacityReservation = new oci.core.ComputeCapacityReservation("test_compute_capacity_reservation", {
availabilityDomain: computeCapacityReservationAvailabilityDomain,
compartmentId: compartmentId,
definedTags: {
"Operations.CostCenter": "42",
},
displayName: computeCapacityReservationDisplayName,
freeformTags: {
Department: "Finance",
},
instanceReservationConfigs: [{
instanceShape: computeCapacityReservationInstanceReservationConfigsInstanceShape,
reservedCount: computeCapacityReservationInstanceReservationConfigsReservedCount,
clusterConfig: {
hpcIslandId: testHpcIsland.id,
networkBlockIds: computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds,
},
clusterPlacementGroupId: testGroup.id,
faultDomain: computeCapacityReservationInstanceReservationConfigsFaultDomain,
instanceShapeConfig: {
memoryInGbs: computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs,
ocpus: computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus,
},
}],
isDefaultReservation: computeCapacityReservationIsDefaultReservation,
});
import pulumi
import pulumi_oci as oci
test_compute_capacity_reservation = oci.core.ComputeCapacityReservation("test_compute_capacity_reservation",
availability_domain=compute_capacity_reservation_availability_domain,
compartment_id=compartment_id,
defined_tags={
"Operations.CostCenter": "42",
},
display_name=compute_capacity_reservation_display_name,
freeform_tags={
"Department": "Finance",
},
instance_reservation_configs=[{
"instance_shape": compute_capacity_reservation_instance_reservation_configs_instance_shape,
"reserved_count": compute_capacity_reservation_instance_reservation_configs_reserved_count,
"cluster_config": {
"hpc_island_id": test_hpc_island["id"],
"network_block_ids": compute_capacity_reservation_instance_reservation_configs_cluster_config_network_block_ids,
},
"cluster_placement_group_id": test_group["id"],
"fault_domain": compute_capacity_reservation_instance_reservation_configs_fault_domain,
"instance_shape_config": {
"memory_in_gbs": compute_capacity_reservation_instance_reservation_configs_instance_shape_config_memory_in_gbs,
"ocpus": compute_capacity_reservation_instance_reservation_configs_instance_shape_config_ocpus,
},
}],
is_default_reservation=compute_capacity_reservation_is_default_reservation)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.NewComputeCapacityReservation(ctx, "test_compute_capacity_reservation", &Core.ComputeCapacityReservationArgs{
AvailabilityDomain: pulumi.Any(computeCapacityReservationAvailabilityDomain),
CompartmentId: pulumi.Any(compartmentId),
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
DisplayName: pulumi.Any(computeCapacityReservationDisplayName),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
InstanceReservationConfigs: core.ComputeCapacityReservationInstanceReservationConfigArray{
&core.ComputeCapacityReservationInstanceReservationConfigArgs{
InstanceShape: pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShape),
ReservedCount: pulumi.Any(computeCapacityReservationInstanceReservationConfigsReservedCount),
ClusterConfig: &core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs{
HpcIslandId: pulumi.Any(testHpcIsland.Id),
NetworkBlockIds: pulumi.Any(computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds),
},
ClusterPlacementGroupId: pulumi.Any(testGroup.Id),
FaultDomain: pulumi.Any(computeCapacityReservationInstanceReservationConfigsFaultDomain),
InstanceShapeConfig: &core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs{
MemoryInGbs: pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs),
Ocpus: pulumi.Any(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus),
},
},
},
IsDefaultReservation: pulumi.Any(computeCapacityReservationIsDefaultReservation),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testComputeCapacityReservation = new Oci.Core.ComputeCapacityReservation("test_compute_capacity_reservation", new()
{
AvailabilityDomain = computeCapacityReservationAvailabilityDomain,
CompartmentId = compartmentId,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
DisplayName = computeCapacityReservationDisplayName,
FreeformTags =
{
{ "Department", "Finance" },
},
InstanceReservationConfigs = new[]
{
new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
{
InstanceShape = computeCapacityReservationInstanceReservationConfigsInstanceShape,
ReservedCount = computeCapacityReservationInstanceReservationConfigsReservedCount,
ClusterConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
{
HpcIslandId = testHpcIsland.Id,
NetworkBlockIds = computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds,
},
ClusterPlacementGroupId = testGroup.Id,
FaultDomain = computeCapacityReservationInstanceReservationConfigsFaultDomain,
InstanceShapeConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
{
MemoryInGbs = computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs,
Ocpus = computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus,
},
},
},
IsDefaultReservation = computeCapacityReservationIsDefaultReservation,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.ComputeCapacityReservation;
import com.pulumi.oci.Core.ComputeCapacityReservationArgs;
import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigArgs;
import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs;
import com.pulumi.oci.Core.inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testComputeCapacityReservation = new ComputeCapacityReservation("testComputeCapacityReservation", ComputeCapacityReservationArgs.builder()
.availabilityDomain(computeCapacityReservationAvailabilityDomain)
.compartmentId(compartmentId)
.definedTags(Map.of("Operations.CostCenter", "42"))
.displayName(computeCapacityReservationDisplayName)
.freeformTags(Map.of("Department", "Finance"))
.instanceReservationConfigs(ComputeCapacityReservationInstanceReservationConfigArgs.builder()
.instanceShape(computeCapacityReservationInstanceReservationConfigsInstanceShape)
.reservedCount(computeCapacityReservationInstanceReservationConfigsReservedCount)
.clusterConfig(ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs.builder()
.hpcIslandId(testHpcIsland.id())
.networkBlockIds(computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds)
.build())
.clusterPlacementGroupId(testGroup.id())
.faultDomain(computeCapacityReservationInstanceReservationConfigsFaultDomain)
.instanceShapeConfig(ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs.builder()
.memoryInGbs(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs)
.ocpus(computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus)
.build())
.build())
.isDefaultReservation(computeCapacityReservationIsDefaultReservation)
.build());
}
}
resources:
testComputeCapacityReservation:
type: oci:Core:ComputeCapacityReservation
name: test_compute_capacity_reservation
properties:
availabilityDomain: ${computeCapacityReservationAvailabilityDomain}
compartmentId: ${compartmentId}
definedTags:
Operations.CostCenter: '42'
displayName: ${computeCapacityReservationDisplayName}
freeformTags:
Department: Finance
instanceReservationConfigs:
- instanceShape: ${computeCapacityReservationInstanceReservationConfigsInstanceShape}
reservedCount: ${computeCapacityReservationInstanceReservationConfigsReservedCount}
clusterConfig:
hpcIslandId: ${testHpcIsland.id}
networkBlockIds: ${computeCapacityReservationInstanceReservationConfigsClusterConfigNetworkBlockIds}
clusterPlacementGroupId: ${testGroup.id}
faultDomain: ${computeCapacityReservationInstanceReservationConfigsFaultDomain}
instanceShapeConfig:
memoryInGbs: ${computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigMemoryInGbs}
ocpus: ${computeCapacityReservationInstanceReservationConfigsInstanceShapeConfigOcpus}
isDefaultReservation: ${computeCapacityReservationIsDefaultReservation}
Create ComputeCapacityReservation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ComputeCapacityReservation(name: string, args: ComputeCapacityReservationArgs, opts?: CustomResourceOptions);
@overload
def ComputeCapacityReservation(resource_name: str,
args: ComputeCapacityReservationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ComputeCapacityReservation(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
instance_reservation_configs: Optional[Sequence[_core.ComputeCapacityReservationInstanceReservationConfigArgs]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_default_reservation: Optional[bool] = None)
func NewComputeCapacityReservation(ctx *Context, name string, args ComputeCapacityReservationArgs, opts ...ResourceOption) (*ComputeCapacityReservation, error)
public ComputeCapacityReservation(string name, ComputeCapacityReservationArgs args, CustomResourceOptions? opts = null)
public ComputeCapacityReservation(String name, ComputeCapacityReservationArgs args)
public ComputeCapacityReservation(String name, ComputeCapacityReservationArgs args, CustomResourceOptions options)
type: oci:Core:ComputeCapacityReservation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ComputeCapacityReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ComputeCapacityReservationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ComputeCapacityReservationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ComputeCapacityReservationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ComputeCapacityReservationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var computeCapacityReservationResource = new Oci.Core.ComputeCapacityReservation("computeCapacityReservationResource", new()
{
AvailabilityDomain = "string",
CompartmentId = "string",
InstanceReservationConfigs = new[]
{
new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigArgs
{
InstanceShape = "string",
ReservedCount = "string",
ClusterConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
{
HpcIslandId = "string",
NetworkBlockIds = new[]
{
"string",
},
},
ClusterPlacementGroupId = "string",
FaultDomain = "string",
InstanceShapeConfig = new Oci.Core.Inputs.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
{
MemoryInGbs = 0,
Ocpus = 0,
},
UsedCount = "string",
},
},
DefinedTags =
{
{ "string", "string" },
},
DisplayName = "string",
FreeformTags =
{
{ "string", "string" },
},
IsDefaultReservation = false,
});
example, err := Core.NewComputeCapacityReservation(ctx, "computeCapacityReservationResource", &Core.ComputeCapacityReservationArgs{
AvailabilityDomain: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
InstanceReservationConfigs: core.ComputeCapacityReservationInstanceReservationConfigArray{
&core.ComputeCapacityReservationInstanceReservationConfigArgs{
InstanceShape: pulumi.String("string"),
ReservedCount: pulumi.String("string"),
ClusterConfig: &core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs{
HpcIslandId: pulumi.String("string"),
NetworkBlockIds: pulumi.StringArray{
pulumi.String("string"),
},
},
ClusterPlacementGroupId: pulumi.String("string"),
FaultDomain: pulumi.String("string"),
InstanceShapeConfig: &core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs{
MemoryInGbs: pulumi.Float64(0),
Ocpus: pulumi.Float64(0),
},
UsedCount: pulumi.String("string"),
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
IsDefaultReservation: pulumi.Bool(false),
})
var computeCapacityReservationResource = new ComputeCapacityReservation("computeCapacityReservationResource", ComputeCapacityReservationArgs.builder()
.availabilityDomain("string")
.compartmentId("string")
.instanceReservationConfigs(ComputeCapacityReservationInstanceReservationConfigArgs.builder()
.instanceShape("string")
.reservedCount("string")
.clusterConfig(ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs.builder()
.hpcIslandId("string")
.networkBlockIds("string")
.build())
.clusterPlacementGroupId("string")
.faultDomain("string")
.instanceShapeConfig(ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs.builder()
.memoryInGbs(0)
.ocpus(0)
.build())
.usedCount("string")
.build())
.definedTags(Map.of("string", "string"))
.displayName("string")
.freeformTags(Map.of("string", "string"))
.isDefaultReservation(false)
.build());
compute_capacity_reservation_resource = oci.core.ComputeCapacityReservation("computeCapacityReservationResource",
availability_domain="string",
compartment_id="string",
instance_reservation_configs=[oci.core.ComputeCapacityReservationInstanceReservationConfigArgs(
instance_shape="string",
reserved_count="string",
cluster_config=oci.core.ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs(
hpc_island_id="string",
network_block_ids=["string"],
),
cluster_placement_group_id="string",
fault_domain="string",
instance_shape_config=oci.core.ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs(
memory_in_gbs=0,
ocpus=0,
),
used_count="string",
)],
defined_tags={
"string": "string",
},
display_name="string",
freeform_tags={
"string": "string",
},
is_default_reservation=False)
const computeCapacityReservationResource = new oci.core.ComputeCapacityReservation("computeCapacityReservationResource", {
availabilityDomain: "string",
compartmentId: "string",
instanceReservationConfigs: [{
instanceShape: "string",
reservedCount: "string",
clusterConfig: {
hpcIslandId: "string",
networkBlockIds: ["string"],
},
clusterPlacementGroupId: "string",
faultDomain: "string",
instanceShapeConfig: {
memoryInGbs: 0,
ocpus: 0,
},
usedCount: "string",
}],
definedTags: {
string: "string",
},
displayName: "string",
freeformTags: {
string: "string",
},
isDefaultReservation: false,
});
type: oci:Core:ComputeCapacityReservation
properties:
availabilityDomain: string
compartmentId: string
definedTags:
string: string
displayName: string
freeformTags:
string: string
instanceReservationConfigs:
- clusterConfig:
hpcIslandId: string
networkBlockIds:
- string
clusterPlacementGroupId: string
faultDomain: string
instanceShape: string
instanceShapeConfig:
memoryInGbs: 0
ocpus: 0
reservedCount: string
usedCount: string
isDefaultReservation: false
ComputeCapacityReservation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
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> (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Availability
Domain 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.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain 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> (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain 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[] (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Default booleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability_
domain str - The availability domain of this compute capacity reservation. Example:
Uocm:PHX-AD-1
- compartment_
id str - (Updatable) The OCID of the compartment containing the capacity reservation.
- instance_
reservation_ Sequence[core.configs Compute Capacity Reservation Instance Reservation Config Args] (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is_
default_ boolreservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- availability
Domain 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.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the ComputeCapacityReservation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 Existing ComputeCapacityReservation Resource
Get an existing ComputeCapacityReservation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ComputeCapacityReservationState, opts?: CustomResourceOptions): ComputeCapacityReservation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
instance_reservation_configs: Optional[Sequence[_core.ComputeCapacityReservationInstanceReservationConfigArgs]] = None,
is_default_reservation: Optional[bool] = None,
reserved_instance_count: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
used_instance_count: Optional[str] = None) -> ComputeCapacityReservation
func GetComputeCapacityReservation(ctx *Context, name string, id IDInput, state *ComputeCapacityReservationState, opts ...ResourceOption) (*ComputeCapacityReservation, error)
public static ComputeCapacityReservation Get(string name, Input<string> id, ComputeCapacityReservationState? state, CustomResourceOptions? opts = null)
public static ComputeCapacityReservation get(String name, Output<String> id, ComputeCapacityReservationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- 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, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config> (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Reserved
Instance 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]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Instance
Reservation []ComputeConfigs Capacity Reservation Instance Reservation Config Args (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- Is
Default boolReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Reserved
Instance 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,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- instance
Reservation List<ComputeConfigs Capacity Reservation Instance Reservation Config> (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- reserved
Instance 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]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- instance
Reservation ComputeConfigs Capacity Reservation Instance Reservation Config[] (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- is
Default booleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- reserved
Instance 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, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- instance_
reservation_ Sequence[core.configs Compute Capacity Reservation Instance Reservation Config Args] (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- is_
default_ boolreservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- reserved_
instance_ 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<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- instance
Reservation List<Property Map>Configs (Updatable) The capacity configurations for the capacity reservation.
To use the reservation for the desired shape, specify the shape, count, and optionally the fault domain where you want this configuration.
- is
Default BooleanReservation (Updatable) Whether this capacity reservation is the default. For more information, see Capacity Reservations.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- reserved
Instance 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, ComputeCapacityReservationInstanceReservationConfigArgs
- 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.
- Cluster
Config ComputeCapacity Reservation Instance Reservation Config Cluster Config (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- Cluster
Placement stringGroup Id - (Updatable) The OCID of the cluster placement group for this instance reservation 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.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- Instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- Used
Count 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.
- Cluster
Config ComputeCapacity Reservation Instance Reservation Config Cluster Config (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- Cluster
Placement stringGroup Id - (Updatable) The OCID of the cluster placement group for this instance reservation 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.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- Instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- Used
Count 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.
- cluster
Config ComputeCapacity Reservation Instance Reservation Config Cluster Config (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- cluster
Placement StringGroup Id - (Updatable) The OCID of the cluster placement group for this instance reservation 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.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- used
Count 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.
- cluster
Config ComputeCapacity Reservation Instance Reservation Config Cluster Config (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- cluster
Placement stringGroup Id - (Updatable) The OCID of the cluster placement group for this instance reservation 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.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- instance
Shape ComputeConfig Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- used
Count string - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- instance_
shape str - (Updatable) The shape requested when launching instances using reserved capacity. The shape determines the number of CPUs, amount of memory, and other resources allocated to the instance. You can list all available shapes by calling ListComputeCapacityReservationInstanceShapes.
- reserved_
count str - (Updatable) The total number of instances that can be launched from the capacity configuration.
- cluster_
config core.Compute Capacity Reservation Instance Reservation Config Cluster Config (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- cluster_
placement_ strgroup_ id - (Updatable) The OCID of the cluster placement group for this instance reservation capacity configuration.
- fault_
domain str (Updatable) The fault domain to use for instances created using this capacity configuration. For more information, see Fault Domains. If you do not specify the fault domain, the capacity is available for an instance that does not specify a fault domain. To change the fault domain for a reservation, delete the reservation and create a new one in the preferred fault domain.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- instance_
shape_ core.config Compute Capacity Reservation Instance Reservation Config Instance Shape Config (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- used_
count str - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
- 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.
- cluster
Config Property Map (Updatable) The HPC cluster configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the HPC island and a list of HPC blocks that you specify. If a list of HPC blocks are missing or not provided, the reservation is created with any HPC blocks in the HPC island that you specify. If the values of HPC island or HPC block that you provide are not valid, an error is returned.
- cluster
Placement StringGroup Id - (Updatable) The OCID of the cluster placement group for this instance reservation 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.
To retrieve a list of fault domains, use the
ListFaultDomains
operation in the Identity and Access Management Service API.Example:
FAULT-DOMAIN-1
- instance
Shape Property MapConfig (Updatable) The shape configuration requested when launching instances in a compute capacity reservation.
If the parameter is provided, the reservation is created with the resources that you specify. If some properties are missing or the parameter is not provided, the reservation is created with the default configuration values for the
shape
that you specify.Each shape only supports certain configurable values. If the values that you provide are not valid for the specified
shape
, an error is returned.For more information about customizing the resources that are allocated to flexible shapes, see Flexible Shapes.
- used
Count String - The amount of capacity in use out of the total capacity reserved in this capacity configuration.
ComputeCapacityReservationInstanceReservationConfigClusterConfig, ComputeCapacityReservationInstanceReservationConfigClusterConfigArgs
- Hpc
Island stringId - (Updatable) The OCID of the HPC island.
- Network
Block List<string>Ids - (Updatable) The list of OCIDs of the network blocks.
- Hpc
Island stringId - (Updatable) The OCID of the HPC island.
- Network
Block []stringIds - (Updatable) The list of OCIDs of the network blocks.
- hpc
Island StringId - (Updatable) The OCID of the HPC island.
- network
Block List<String>Ids - (Updatable) The list of OCIDs of the network blocks.
- hpc
Island stringId - (Updatable) The OCID of the HPC island.
- network
Block string[]Ids - (Updatable) The list of OCIDs of the network blocks.
- hpc_
island_ strid - (Updatable) The OCID of the HPC island.
- network_
block_ Sequence[str]ids - (Updatable) The list of OCIDs of the network blocks.
- hpc
Island StringId - (Updatable) The OCID of the HPC island.
- network
Block List<String>Ids - (Updatable) The list of OCIDs of the network blocks.
ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfig, ComputeCapacityReservationInstanceReservationConfigInstanceShapeConfigArgs
- 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"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.