Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.GenerativeAi.getDedicatedAiClusters
Start a Neo task
Explain and create an oci.GenerativeAi.getDedicatedAiClusters resource
This data source provides the list of Dedicated Ai Clusters in Oracle Cloud Infrastructure Generative AI service.
Lists the dedicated AI clusters in a specific compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDedicatedAiClusters = oci.GenerativeAi.getDedicatedAiClusters({
compartmentId: compartmentId,
displayName: dedicatedAiClusterDisplayName,
id: dedicatedAiClusterId,
state: dedicatedAiClusterState,
});
import pulumi
import pulumi_oci as oci
test_dedicated_ai_clusters = oci.GenerativeAi.get_dedicated_ai_clusters(compartment_id=compartment_id,
display_name=dedicated_ai_cluster_display_name,
id=dedicated_ai_cluster_id,
state=dedicated_ai_cluster_state)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/generativeai"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := generativeai.GetDedicatedAiClusters(ctx, &generativeai.GetDedicatedAiClustersArgs{
CompartmentId: compartmentId,
DisplayName: pulumi.StringRef(dedicatedAiClusterDisplayName),
Id: pulumi.StringRef(dedicatedAiClusterId),
State: pulumi.StringRef(dedicatedAiClusterState),
}, 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 testDedicatedAiClusters = Oci.GenerativeAi.GetDedicatedAiClusters.Invoke(new()
{
CompartmentId = compartmentId,
DisplayName = dedicatedAiClusterDisplayName,
Id = dedicatedAiClusterId,
State = dedicatedAiClusterState,
});
});
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.GetDedicatedAiClustersArgs;
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) {
final var testDedicatedAiClusters = GenerativeAiFunctions.getDedicatedAiClusters(GetDedicatedAiClustersArgs.builder()
.compartmentId(compartmentId)
.displayName(dedicatedAiClusterDisplayName)
.id(dedicatedAiClusterId)
.state(dedicatedAiClusterState)
.build());
}
}
variables:
testDedicatedAiClusters:
fn::invoke:
function: oci:GenerativeAi:getDedicatedAiClusters
arguments:
compartmentId: ${compartmentId}
displayName: ${dedicatedAiClusterDisplayName}
id: ${dedicatedAiClusterId}
state: ${dedicatedAiClusterState}
Using getDedicatedAiClusters
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 getDedicatedAiClusters(args: GetDedicatedAiClustersArgs, opts?: InvokeOptions): Promise<GetDedicatedAiClustersResult>
function getDedicatedAiClustersOutput(args: GetDedicatedAiClustersOutputArgs, opts?: InvokeOptions): Output<GetDedicatedAiClustersResult>def get_dedicated_ai_clusters(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetDedicatedAiClustersFilter]] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedAiClustersResult
def get_dedicated_ai_clusters_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDedicatedAiClustersFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedAiClustersResult]func GetDedicatedAiClusters(ctx *Context, args *GetDedicatedAiClustersArgs, opts ...InvokeOption) (*GetDedicatedAiClustersResult, error)
func GetDedicatedAiClustersOutput(ctx *Context, args *GetDedicatedAiClustersOutputArgs, opts ...InvokeOption) GetDedicatedAiClustersResultOutput> Note: This function is named GetDedicatedAiClusters in the Go SDK.
public static class GetDedicatedAiClusters
{
public static Task<GetDedicatedAiClustersResult> InvokeAsync(GetDedicatedAiClustersArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedAiClustersResult> Invoke(GetDedicatedAiClustersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedAiClustersResult> getDedicatedAiClusters(GetDedicatedAiClustersArgs args, InvokeOptions options)
public static Output<GetDedicatedAiClustersResult> getDedicatedAiClusters(GetDedicatedAiClustersArgs args, InvokeOptions options)
fn::invoke:
function: oci:GenerativeAi/getDedicatedAiClusters:getDedicatedAiClusters
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
List<Get
Dedicated Ai Clusters Filter> - Id string
- The OCID of the dedicated AI cluster.
- State string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- Compartment
Id string - The OCID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Filters
[]Get
Dedicated Ai Clusters Filter - Id string
- The OCID of the dedicated AI cluster.
- State string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters
List<Get
Dedicated Ai Clusters Filter> - id String
- The OCID of the dedicated AI cluster.
- state String
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- compartment
Id string - The OCID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the given display name exactly.
- filters
Get
Dedicated Ai Clusters Filter[] - id string
- The OCID of the dedicated AI cluster.
- state string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- compartment_
id str - The OCID of the compartment in which to list resources.
- display_
name str - A filter to return only resources that match the given display name exactly.
- filters
Sequence[Get
Dedicated Ai Clusters Filter] - id str
- The OCID of the dedicated AI cluster.
- state str
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- compartment
Id String - The OCID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the given display name exactly.
- filters List<Property Map>
- id String
- The OCID of the dedicated AI cluster.
- state String
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
getDedicatedAiClusters Result
The following output properties are available:
- Compartment
Id string - Dedicated
Ai List<GetCluster Collections Dedicated Ai Clusters Dedicated Ai Cluster Collection> - The list of dedicated_ai_cluster_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
List<Get
Dedicated Ai Clusters Filter> - Id string
- The OCID of the dedicated AI cluster.
- State string
- The current state of the dedicated AI cluster.
- Compartment
Id string - Dedicated
Ai []GetCluster Collections Dedicated Ai Clusters Dedicated Ai Cluster Collection - The list of dedicated_ai_cluster_collection.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- Filters
[]Get
Dedicated Ai Clusters Filter - Id string
- The OCID of the dedicated AI cluster.
- State string
- The current state of the dedicated AI cluster.
- compartment
Id String - dedicated
Ai List<GetCluster Collections Dedicated Ai Clusters Dedicated Ai Cluster Collection> - The list of dedicated_ai_cluster_collection.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
List<Get
Dedicated Ai Clusters Filter> - id String
- The OCID of the dedicated AI cluster.
- state String
- The current state of the dedicated AI cluster.
- compartment
Id string - dedicated
Ai GetCluster Collections Dedicated Ai Clusters Dedicated Ai Cluster Collection[] - The list of dedicated_ai_cluster_collection.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Get
Dedicated Ai Clusters Filter[] - id string
- The OCID of the dedicated AI cluster.
- state string
- The current state of the dedicated AI cluster.
- compartment_
id str - dedicated_
ai_ Sequence[Getcluster_ collections Dedicated Ai Clusters Dedicated Ai Cluster Collection] - The list of dedicated_ai_cluster_collection.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable.
- filters
Sequence[Get
Dedicated Ai Clusters Filter] - id str
- The OCID of the dedicated AI cluster.
- state str
- The current state of the dedicated AI cluster.
- compartment
Id String - dedicated
Ai List<Property Map>Cluster Collections - The list of dedicated_ai_cluster_collection.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable.
- filters List<Property Map>
- id String
- The OCID of the dedicated AI cluster.
- state String
- The current state of the dedicated AI cluster.
Supporting Types
GetDedicatedAiClustersDedicatedAiClusterCollection
GetDedicatedAiClustersDedicatedAiClusterCollectionItem
- Capacities
List<Get
Dedicated Ai Clusters Dedicated Ai Cluster Collection Item Capacity> - Compartment
Id string - The OCID of the compartment in which to list resources.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- An optional description of the dedicated AI cluster.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- Dictionary<string, string>
- Id string
- The OCID of the dedicated AI cluster.
- Lifecycle
Details string - A message describing the current state with detail that can provide actionable information.
- State string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Updated string - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- Type string
- Unit
Count int - The number of dedicated units in this AI cluster.
- Unit
Shape string - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
- Capacities
[]Get
Dedicated Ai Clusters Dedicated Ai Cluster Collection Item Capacity - Compartment
Id string - The OCID of the compartment in which to list resources.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- An optional description of the dedicated AI cluster.
- Display
Name string - A filter to return only resources that match the given display name exactly.
- map[string]string
- Id string
- The OCID of the dedicated AI cluster.
- Lifecycle
Details string - A message describing the current state with detail that can provide actionable information.
- State string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time
Updated string - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- Type string
- Unit
Count int - The number of dedicated units in this AI cluster.
- Unit
Shape string - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
- capacities
List<Get
Dedicated Ai Clusters Dedicated Ai Cluster Collection Item Capacity> - compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- An optional description of the dedicated AI cluster.
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<String,String>
- id String
- The OCID of the dedicated AI cluster.
- lifecycle
Details String - A message describing the current state with detail that can provide actionable information.
- state String
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Updated String - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- type String
- unit
Count Integer - The number of dedicated units in this AI cluster.
- unit
Shape String - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
- capacities
Get
Dedicated Ai Clusters Dedicated Ai Cluster Collection Item Capacity[] - compartment
Id string - The OCID of the compartment in which to list resources.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- An optional description of the dedicated AI cluster.
- display
Name string - A filter to return only resources that match the given display name exactly.
- {[key: string]: string}
- id string
- The OCID of the dedicated AI cluster.
- lifecycle
Details string - A message describing the current state with detail that can provide actionable information.
- state string
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - time
Updated string - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- type string
- unit
Count number - The number of dedicated units in this AI cluster.
- unit
Shape string - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
- capacities
Sequence[Get
Dedicated Ai Clusters Dedicated Ai Cluster Collection Item Capacity] - compartment_
id str - The OCID of the compartment in which to list resources.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- An optional description of the dedicated AI cluster.
- display_
name str - A filter to return only resources that match the given display name exactly.
- Mapping[str, str]
- id str
- The OCID of the dedicated AI cluster.
- lifecycle_
details str - A message describing the current state with detail that can provide actionable information.
- state str
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - time_
updated str - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- type str
- unit_
count int - The number of dedicated units in this AI cluster.
- unit_
shape str - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
- capacities List<Property Map>
- compartment
Id String - The OCID of the compartment in which to list resources.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- An optional description of the dedicated AI cluster.
- display
Name String - A filter to return only resources that match the given display name exactly.
- Map<String>
- id String
- The OCID of the dedicated AI cluster.
- lifecycle
Details String - A message describing the current state with detail that can provide actionable information.
- state String
- A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - time
Updated String - The date and time the dedicated AI cluster was updated, in the format defined by RFC 3339
- type String
- unit
Count Number - The number of dedicated units in this AI cluster.
- unit
Shape String - The shape of dedicated unit in this AI cluster. The underlying hardware configuration is hidden from customers.
GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity
- Capacity
Type string - Total
Endpoint intCapacity - Used
Endpoint intCapacity
- Capacity
Type string - Total
Endpoint intCapacity - Used
Endpoint intCapacity
- capacity
Type String - total
Endpoint IntegerCapacity - used
Endpoint IntegerCapacity
- capacity
Type string - total
Endpoint numberCapacity - used
Endpoint numberCapacity
- capacity
Type String - total
Endpoint NumberCapacity - used
Endpoint NumberCapacity
GetDedicatedAiClustersFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
