Viewing docs for Oracle Cloud Infrastructure v5.6.0
published on Thursday, Nov 5, 2026 by Pulumi
published on Thursday, Nov 5, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v5.6.0
published on Thursday, Nov 5, 2026 by Pulumi
published on Thursday, Nov 5, 2026 by Pulumi
This data source provides the list of Dedicated Ai Cluster Allocatable Gpus in Oracle Cloud Infrastructure Generative AI service.
Lists the allocatable GPUs for launching dedicated AI clusters tied to a specific capacity reservation id.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDedicatedAiClusterAllocatableGpus = oci.generativeai.getDedicatedAiClusterAllocatableGpus({
capacityReservationId: testCapacityReservation.id,
compartmentId: compartmentId,
computeShape: dedicatedAiClusterAllocatableGpuComputeShape,
});
import pulumi
import pulumi_oci as oci
test_dedicated_ai_cluster_allocatable_gpus = oci.generativeai.get_dedicated_ai_cluster_allocatable_gpus(capacity_reservation_id=test_capacity_reservation["id"],
compartment_id=compartment_id,
compute_shape=dedicated_ai_cluster_allocatable_gpu_compute_shape)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v5/go/oci/generativeai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := generativeai.GetDedicatedAiClusterAllocatableGpus(ctx, &generativeai.GetDedicatedAiClusterAllocatableGpusArgs{
CapacityReservationId: testCapacityReservation.Id,
CompartmentId: compartmentId,
ComputeShape: pulumi.StringRef(dedicatedAiClusterAllocatableGpuComputeShape),
}, nil)
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 testDedicatedAiClusterAllocatableGpus = Oci.GenerativeAi.GetDedicatedAiClusterAllocatableGpus.Invoke(new()
{
CapacityReservationId = testCapacityReservation.Id,
CompartmentId = compartmentId,
ComputeShape = dedicatedAiClusterAllocatableGpuComputeShape,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GenerativeAi.GenerativeAiFunctions;
import com.pulumi.oci.GenerativeAi.inputs.GetDedicatedAiClusterAllocatableGpusArgs;
import java.util.ArrayList;
import java.util.Arrays;
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) {
final var testDedicatedAiClusterAllocatableGpus = GenerativeAiFunctions.getDedicatedAiClusterAllocatableGpus(GetDedicatedAiClusterAllocatableGpusArgs.builder()
.capacityReservationId(testCapacityReservation.get("id"))
.compartmentId(compartmentId)
.computeShape(dedicatedAiClusterAllocatableGpuComputeShape)
.build());
}
}
variables:
testDedicatedAiClusterAllocatableGpus:
fn::invoke:
function: oci:GenerativeAi:getDedicatedAiClusterAllocatableGpus
arguments:
capacityReservationId: ${testCapacityReservation.id}
compartmentId: ${compartmentId}
computeShape: ${dedicatedAiClusterAllocatableGpuComputeShape}
terraform {
required_providers {
oci = {
source = "pulumi/oci"
}
}
}
data "oci_generative_ai_dedicated_ai_cluster_allocatable_gpus" "testDedicatedAiClusterAllocatableGpus" {
capacity_reservation_id = testCapacityReservation.id
compartment_id = compartmentId
compute_shape = dedicatedAiClusterAllocatableGpuComputeShape
}
Using getDedicatedAiClusterAllocatableGpus
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDedicatedAiClusterAllocatableGpus(args: GetDedicatedAiClusterAllocatableGpusArgs, opts?: InvokeOptions): Promise<GetDedicatedAiClusterAllocatableGpusResult>
function getDedicatedAiClusterAllocatableGpusOutput(args: GetDedicatedAiClusterAllocatableGpusOutputArgs, opts?: InvokeOutputOptions): Output<GetDedicatedAiClusterAllocatableGpusResult>def get_dedicated_ai_cluster_allocatable_gpus(capacity_reservation_id: Optional[str] = None,
compartment_id: Optional[str] = None,
compute_shape: Optional[str] = None,
filters: Optional[Sequence[GetDedicatedAiClusterAllocatableGpusFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedAiClusterAllocatableGpusResult
def get_dedicated_ai_cluster_allocatable_gpus_output(capacity_reservation_id: pulumi.Input[Optional[str]] = None,
compartment_id: pulumi.Input[Optional[str]] = None,
compute_shape: pulumi.Input[Optional[str]] = None,
filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDedicatedAiClusterAllocatableGpusFilterArgs]]]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDedicatedAiClusterAllocatableGpusResult]func GetDedicatedAiClusterAllocatableGpus(ctx *Context, args *GetDedicatedAiClusterAllocatableGpusArgs, opts ...InvokeOption) (*GetDedicatedAiClusterAllocatableGpusResult, error)
func GetDedicatedAiClusterAllocatableGpusOutput(ctx *Context, args *GetDedicatedAiClusterAllocatableGpusOutputArgs, opts ...InvokeOption) GetDedicatedAiClusterAllocatableGpusResultOutput> Note: This function is named GetDedicatedAiClusterAllocatableGpus in the Go SDK.
public static class GetDedicatedAiClusterAllocatableGpus
{
public static Task<GetDedicatedAiClusterAllocatableGpusResult> InvokeAsync(GetDedicatedAiClusterAllocatableGpusArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedAiClusterAllocatableGpusResult> Invoke(GetDedicatedAiClusterAllocatableGpusInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedAiClusterAllocatableGpusResult> Invoke(GetDedicatedAiClusterAllocatableGpusInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDedicatedAiClusterAllocatableGpusResult> getDedicatedAiClusterAllocatableGpus(GetDedicatedAiClusterAllocatableGpusArgs args, InvokeOptions options)
public static Output<GetDedicatedAiClusterAllocatableGpusResult> getDedicatedAiClusterAllocatableGpus(GetDedicatedAiClusterAllocatableGpusArgs args, InvokeOptions options)
public static Output<GetDedicatedAiClusterAllocatableGpusResult> getDedicatedAiClusterAllocatableGpus(GetDedicatedAiClusterAllocatableGpusArgs args, InvokeOutputOptions options)
fn::invoke:
function: oci:GenerativeAi/getDedicatedAiClusterAllocatableGpus:getDedicatedAiClusterAllocatableGpus
arguments:
# arguments dictionarydata "oci_generative_ai_get_dedicated_ai_cluster_allocatable_gpus" "name" {
# arguments
}The following arguments are supported:
- Capacity
Reservation stringId - The OCID of the capacity reservation.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - Filters
List<Get
Dedicated Ai Cluster Allocatable Gpus Filter>
- Capacity
Reservation stringId - The OCID of the capacity reservation.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - Filters
[]Get
Dedicated Ai Cluster Allocatable Gpus Filter
- capacity_
reservation_ stringid - The OCID of the capacity reservation.
- compartment_
id string - The OCID of the compartment in which to list resources.
- compute_
shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - filters list(object)
- capacity
Reservation StringId - The OCID of the capacity reservation.
- compartment
Id String - The OCID of the compartment in which to list resources.
- compute
Shape String - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - filters
List<Get
Dedicated Ai Cluster Allocatable Gpus Filter>
- capacity
Reservation stringId - The OCID of the capacity reservation.
- compartment
Id string - The OCID of the compartment in which to list resources.
- compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - filters
Get
Dedicated Ai Cluster Allocatable Gpus Filter[]
- capacity_
reservation_ strid - The OCID of the capacity reservation.
- compartment_
id str - The OCID of the compartment in which to list resources.
- compute_
shape str - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - filters
Sequence[Get
Dedicated Ai Cluster Allocatable Gpus Filter]
- capacity
Reservation StringId - The OCID of the capacity reservation.
- compartment
Id String - The OCID of the compartment in which to list resources.
- compute
Shape String - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - filters List<Property Map>
getDedicatedAiClusterAllocatableGpus Result
The following output properties are available:
- Allocatable
Gpu List<GetCollections Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection> - The list of allocatable_gpu_collection.
- Capacity
Reservation stringId - Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Compute
Shape string - The compute shape for the allocatable GPUs.
- Filters
List<Get
Dedicated Ai Cluster Allocatable Gpus Filter>
- Allocatable
Gpu []GetCollections Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection - The list of allocatable_gpu_collection.
- Capacity
Reservation stringId - Compartment
Id string - Id string
- The provider-assigned unique ID for this managed resource.
- Compute
Shape string - The compute shape for the allocatable GPUs.
- Filters
[]Get
Dedicated Ai Cluster Allocatable Gpus Filter
- allocatable_
gpu_ list(object)collections - The list of allocatable_gpu_collection.
- capacity_
reservation_ stringid - compartment_
id string - id string
- The provider-assigned unique ID for this managed resource.
- compute_
shape string - The compute shape for the allocatable GPUs.
- filters list(object)
- allocatable
Gpu List<GetCollections Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection> - The list of allocatable_gpu_collection.
- capacity
Reservation StringId - compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- compute
Shape String - The compute shape for the allocatable GPUs.
- filters
List<Get
Dedicated Ai Cluster Allocatable Gpus Filter>
- allocatable
Gpu GetCollections Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection[] - The list of allocatable_gpu_collection.
- capacity
Reservation stringId - compartment
Id string - id string
- The provider-assigned unique ID for this managed resource.
- compute
Shape string - The compute shape for the allocatable GPUs.
- filters
Get
Dedicated Ai Cluster Allocatable Gpus Filter[]
- allocatable_
gpu_ Sequence[Getcollections Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection] - The list of allocatable_gpu_collection.
- capacity_
reservation_ strid - compartment_
id str - id str
- The provider-assigned unique ID for this managed resource.
- compute_
shape str - The compute shape for the allocatable GPUs.
- filters
Sequence[Get
Dedicated Ai Cluster Allocatable Gpus Filter]
- allocatable
Gpu List<Property Map>Collections - The list of allocatable_gpu_collection.
- capacity
Reservation StringId - compartment
Id String - id String
- The provider-assigned unique ID for this managed resource.
- compute
Shape String - The compute shape for the allocatable GPUs.
- filters List<Property Map>
Supporting Types
GetDedicatedAiClusterAllocatableGpusAllocatableGpuCollection
- Items
List<Get
Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item> - List of allocatable GPU summaries.
- Items
[]Get
Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item - List of allocatable GPU summaries.
- items list(object)
- List of allocatable GPU summaries.
- items
List<Get
Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item> - List of allocatable GPU summaries.
- items
Get
Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item[] - List of allocatable GPU summaries.
- items
Sequence[Get
Dedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item] - List of allocatable GPU summaries.
- items List<Property Map>
- List of allocatable GPU summaries.
GetDedicatedAiClusterAllocatableGpusAllocatableGpuCollectionItem
- Compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - Gpu
Allocations List<GetDedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item Gpu Allocation> - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- Max
Allocatable intGpu Units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- Total
Available intGpu Units - The total number of available GPU units for the compute shape.
- Total
Used intGpu Units - The total number of used GPU units for the compute shape.
- Compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - Gpu
Allocations []GetDedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item Gpu Allocation - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- Max
Allocatable intGpu Units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- Total
Available intGpu Units - The total number of available GPU units for the compute shape.
- Total
Used intGpu Units - The total number of used GPU units for the compute shape.
- compute_
shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - gpu_
allocations list(object) - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- max_
allocatable_ numbergpu_ units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- total_
available_ numbergpu_ units - The total number of available GPU units for the compute shape.
- total_
used_ numbergpu_ units - The total number of used GPU units for the compute shape.
- compute
Shape String - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - gpu
Allocations List<GetDedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item Gpu Allocation> - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- max
Allocatable IntegerGpu Units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- total
Available IntegerGpu Units - The total number of available GPU units for the compute shape.
- total
Used IntegerGpu Units - The total number of used GPU units for the compute shape.
- compute
Shape string - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - gpu
Allocations GetDedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item Gpu Allocation[] - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- max
Allocatable numberGpu Units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- total
Available numberGpu Units - The total number of available GPU units for the compute shape.
- total
Used numberGpu Units - The total number of used GPU units for the compute shape.
- compute_
shape str - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - gpu_
allocations Sequence[GetDedicated Ai Cluster Allocatable Gpus Allocatable Gpu Collection Item Gpu Allocation] - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- max_
allocatable_ intgpu_ units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- total_
available_ intgpu_ units - The total number of available GPU units for the compute shape.
- total_
used_ intgpu_ units - The total number of used GPU units for the compute shape.
- compute
Shape String - The compute shape to use to filter allocatable GPUs. For example,
BM.GPU.A10.4. - gpu
Allocations List<Property Map> - The GPU allocation details for the compute shape. Each item represents one underlying capacity allocation.
- max
Allocatable NumberGpu Units - The maximum number of GPU units that can be allocated to a single dedicated AI cluster for the compute shape without requiring additional provisioning.
- total
Available NumberGpu Units - The total number of available GPU units for the compute shape.
- total
Used NumberGpu Units - The total number of used GPU units for the compute shape.
GetDedicatedAiClusterAllocatableGpusAllocatableGpuCollectionItemGpuAllocation
- Available
Gpus int - The number of available GPUs in this allocation.
- Used
Gpus int - The number of used GPUs in this allocation.
- Available
Gpus int - The number of available GPUs in this allocation.
- Used
Gpus int - The number of used GPUs in this allocation.
- available_
gpus number - The number of available GPUs in this allocation.
- used_
gpus number - The number of used GPUs in this allocation.
- available
Gpus Integer - The number of available GPUs in this allocation.
- used
Gpus Integer - The number of used GPUs in this allocation.
- available
Gpus number - The number of available GPUs in this allocation.
- used
Gpus number - The number of used GPUs in this allocation.
- available_
gpus int - The number of available GPUs in this allocation.
- used_
gpus int - The number of used GPUs in this allocation.
- available
Gpus Number - The number of available GPUs in this allocation.
- used
Gpus Number - The number of used GPUs in this allocation.
GetDedicatedAiClusterAllocatableGpusFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v5.6.0
published on Thursday, Nov 5, 2026 by Pulumi
published on Thursday, Nov 5, 2026 by Pulumi