1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GenerativeAi
  5. getDedicatedAiClusters
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.GenerativeAi.getDedicatedAiClusters

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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,
});
Copy
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)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testDedicatedAiClusters:
    fn::invoke:
      function: oci:GenerativeAi:getDedicatedAiClusters
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${dedicatedAiClusterDisplayName}
        id: ${dedicatedAiClusterId}
        state: ${dedicatedAiClusterState}
Copy

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>
Copy
def get_dedicated_ai_clusters(compartment_id: Optional[str] = None,
                              display_name: Optional[str] = None,
                              filters: Optional[Sequence[_generativeai.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[_generativeai.GetDedicatedAiClustersFilterArgs]]]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              state: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedAiClustersResult]
Copy
func GetDedicatedAiClusters(ctx *Context, args *GetDedicatedAiClustersArgs, opts ...InvokeOption) (*GetDedicatedAiClustersResult, error)
func GetDedicatedAiClustersOutput(ctx *Context, args *GetDedicatedAiClustersOutputArgs, opts ...InvokeOption) GetDedicatedAiClustersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDedicatedAiClustersResult> getDedicatedAiClusters(GetDedicatedAiClustersArgs args, InvokeOptions options)
public static Output<GetDedicatedAiClustersResult> getDedicatedAiClusters(GetDedicatedAiClustersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:GenerativeAi/getDedicatedAiClusters:getDedicatedAiClusters
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. List<GetDedicatedAiClustersFilter>
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.
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the given display name exactly.
Filters Changes to this property will trigger replacement. []GetDedicatedAiClustersFilter
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.
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. List<GetDedicatedAiClustersFilter>
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.
compartmentId This property is required. string
The OCID of the compartment in which to list resources.
displayName string
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. GetDedicatedAiClustersFilter[]
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 This property is required. 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 Changes to this property will trigger replacement. Sequence[generativeai.GetDedicatedAiClustersFilter]
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.
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the given display name exactly.
filters Changes to this property will trigger replacement. 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:

CompartmentId string
DedicatedAiClusterCollections []GetDedicatedAiClustersDedicatedAiClusterCollection
The list of dedicated_ai_cluster_collection.
DisplayName string
Filters []GetDedicatedAiClustersFilter
Id string
The OCID of the dedicated AI cluster.
State string
compartmentId string
dedicatedAiClusterCollections GetDedicatedAiClustersDedicatedAiClusterCollection[]
The list of dedicated_ai_cluster_collection.
displayName string
filters GetDedicatedAiClustersFilter[]
id string
The OCID of the dedicated AI cluster.
state string
compartmentId String
dedicatedAiClusterCollections List<Property Map>
The list of dedicated_ai_cluster_collection.
displayName String
filters List<Property Map>
id String
The OCID of the dedicated AI cluster.
state String

Supporting Types

GetDedicatedAiClustersDedicatedAiClusterCollection

items This property is required. List<Property Map>

GetDedicatedAiClustersDedicatedAiClusterCollectionItem

Capacities This property is required. List<GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity>
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DefinedTags This property is required. Dictionary<string, string>
Description This property is required. string
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FreeformTags This property is required. Dictionary<string, string>
Id This property is required. string
The OCID of the dedicated AI cluster.
LifecycleDetails This property is required. string
State This property is required. string
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
SystemTags This property is required. Dictionary<string, string>
TimeCreated This property is required. string
TimeUpdated This property is required. string
Type This property is required. string
UnitCount This property is required. int
UnitShape This property is required. string
Capacities This property is required. []GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity
CompartmentId This property is required. string
The OCID of the compartment in which to list resources.
DefinedTags This property is required. map[string]string
Description This property is required. string
DisplayName This property is required. string
A filter to return only resources that match the given display name exactly.
FreeformTags This property is required. map[string]string
Id This property is required. string
The OCID of the dedicated AI cluster.
LifecycleDetails This property is required. string
State This property is required. string
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
SystemTags This property is required. map[string]string
TimeCreated This property is required. string
TimeUpdated This property is required. string
Type This property is required. string
UnitCount This property is required. int
UnitShape This property is required. string
capacities This property is required. List<GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity>
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
definedTags This property is required. Map<String,String>
description This property is required. String
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
freeformTags This property is required. Map<String,String>
id This property is required. String
The OCID of the dedicated AI cluster.
lifecycleDetails This property is required. String
state This property is required. String
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
systemTags This property is required. Map<String,String>
timeCreated This property is required. String
timeUpdated This property is required. String
type This property is required. String
unitCount This property is required. Integer
unitShape This property is required. String
capacities This property is required. GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity[]
compartmentId This property is required. string
The OCID of the compartment in which to list resources.
definedTags This property is required. {[key: string]: string}
description This property is required. string
displayName This property is required. string
A filter to return only resources that match the given display name exactly.
freeformTags This property is required. {[key: string]: string}
id This property is required. string
The OCID of the dedicated AI cluster.
lifecycleDetails This property is required. string
state This property is required. string
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
systemTags This property is required. {[key: string]: string}
timeCreated This property is required. string
timeUpdated This property is required. string
type This property is required. string
unitCount This property is required. number
unitShape This property is required. string
capacities This property is required. Sequence[generativeai.GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity]
compartment_id This property is required. str
The OCID of the compartment in which to list resources.
defined_tags This property is required. Mapping[str, str]
description This property is required. str
display_name This property is required. str
A filter to return only resources that match the given display name exactly.
freeform_tags This property is required. Mapping[str, str]
id This property is required. str
The OCID of the dedicated AI cluster.
lifecycle_details This property is required. str
state This property is required. str
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
system_tags This property is required. Mapping[str, str]
time_created This property is required. str
time_updated This property is required. str
type This property is required. str
unit_count This property is required. int
unit_shape This property is required. str
capacities This property is required. List<Property Map>
compartmentId This property is required. String
The OCID of the compartment in which to list resources.
definedTags This property is required. Map<String>
description This property is required. String
displayName This property is required. String
A filter to return only resources that match the given display name exactly.
freeformTags This property is required. Map<String>
id This property is required. String
The OCID of the dedicated AI cluster.
lifecycleDetails This property is required. String
state This property is required. String
A filter to return only the dedicated AI clusters that their lifecycle state matches the given lifecycle state.
systemTags This property is required. Map<String>
timeCreated This property is required. String
timeUpdated This property is required. String
type This property is required. String
unitCount This property is required. Number
unitShape This property is required. String

GetDedicatedAiClustersDedicatedAiClusterCollectionItemCapacity

CapacityType This property is required. string
TotalEndpointCapacity This property is required. int
UsedEndpointCapacity This property is required. int
CapacityType This property is required. string
TotalEndpointCapacity This property is required. int
UsedEndpointCapacity This property is required. int
capacityType This property is required. String
totalEndpointCapacity This property is required. Integer
usedEndpointCapacity This property is required. Integer
capacityType This property is required. string
totalEndpointCapacity This property is required. number
usedEndpointCapacity This property is required. number
capacity_type This property is required. str
total_endpoint_capacity This property is required. int
used_endpoint_capacity This property is required. int
capacityType This property is required. String
totalEndpointCapacity This property is required. Number
usedEndpointCapacity This property is required. Number

GetDedicatedAiClustersFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi