Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.GenerativeAi.getDedicatedAiCluster
Explore with Pulumi AI
This data source provides details about a specific Dedicated Ai Cluster resource in Oracle Cloud Infrastructure Generative AI service.
Gets information about a dedicated AI cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDedicatedAiCluster = oci.GenerativeAi.getDedicatedAiCluster({
dedicatedAiClusterId: testDedicatedAiClusterOciGenerativeAiDedicatedAiCluster.id,
});
import pulumi
import pulumi_oci as oci
test_dedicated_ai_cluster = oci.GenerativeAi.get_dedicated_ai_cluster(dedicated_ai_cluster_id=test_dedicated_ai_cluster_oci_generative_ai_dedicated_ai_cluster["id"])
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.GetDedicatedAiCluster(ctx, &generativeai.GetDedicatedAiClusterArgs{
DedicatedAiClusterId: testDedicatedAiClusterOciGenerativeAiDedicatedAiCluster.Id,
}, 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 testDedicatedAiCluster = Oci.GenerativeAi.GetDedicatedAiCluster.Invoke(new()
{
DedicatedAiClusterId = testDedicatedAiClusterOciGenerativeAiDedicatedAiCluster.Id,
});
});
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.GetDedicatedAiClusterArgs;
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 testDedicatedAiCluster = GenerativeAiFunctions.getDedicatedAiCluster(GetDedicatedAiClusterArgs.builder()
.dedicatedAiClusterId(testDedicatedAiClusterOciGenerativeAiDedicatedAiCluster.id())
.build());
}
}
variables:
testDedicatedAiCluster:
fn::invoke:
Function: oci:GenerativeAi:getDedicatedAiCluster
Arguments:
dedicatedAiClusterId: ${testDedicatedAiClusterOciGenerativeAiDedicatedAiCluster.id}
Using getDedicatedAiCluster
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 getDedicatedAiCluster(args: GetDedicatedAiClusterArgs, opts?: InvokeOptions): Promise<GetDedicatedAiClusterResult>
function getDedicatedAiClusterOutput(args: GetDedicatedAiClusterOutputArgs, opts?: InvokeOptions): Output<GetDedicatedAiClusterResult>
def get_dedicated_ai_cluster(dedicated_ai_cluster_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedAiClusterResult
def get_dedicated_ai_cluster_output(dedicated_ai_cluster_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedAiClusterResult]
func GetDedicatedAiCluster(ctx *Context, args *GetDedicatedAiClusterArgs, opts ...InvokeOption) (*GetDedicatedAiClusterResult, error)
func GetDedicatedAiClusterOutput(ctx *Context, args *GetDedicatedAiClusterOutputArgs, opts ...InvokeOption) GetDedicatedAiClusterResultOutput
> Note: This function is named GetDedicatedAiCluster
in the Go SDK.
public static class GetDedicatedAiCluster
{
public static Task<GetDedicatedAiClusterResult> InvokeAsync(GetDedicatedAiClusterArgs args, InvokeOptions? opts = null)
public static Output<GetDedicatedAiClusterResult> Invoke(GetDedicatedAiClusterInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDedicatedAiClusterResult> getDedicatedAiCluster(GetDedicatedAiClusterArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:GenerativeAi/getDedicatedAiCluster:getDedicatedAiCluster
arguments:
# arguments dictionary
The following arguments are supported:
- Dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster.
- Dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster.
- dedicated
Ai StringCluster Id - The OCID of the dedicated AI cluster.
- dedicated
Ai stringCluster Id - The OCID of the dedicated AI cluster.
- dedicated_
ai_ strcluster_ id - The OCID of the dedicated AI cluster.
- dedicated
Ai StringCluster Id - The OCID of the dedicated AI cluster.
getDedicatedAiCluster Result
The following output properties are available:
- Capacities
List<Get
Dedicated Ai Cluster Capacity> - Compartment
Id string - Dedicated
Ai stringCluster Id - Dictionary<string, string>
- Description string
- Display
Name string - Dictionary<string, string>
- Id string
- The OCID of the dedicated AI cluster.
- Lifecycle
Details string - State string
- Dictionary<string, string>
- Time
Created string - Time
Updated string - Type string
- Unit
Count int - Unit
Shape string
- Capacities
[]Get
Dedicated Ai Cluster Capacity - Compartment
Id string - Dedicated
Ai stringCluster Id - map[string]string
- Description string
- Display
Name string - map[string]string
- Id string
- The OCID of the dedicated AI cluster.
- Lifecycle
Details string - State string
- map[string]string
- Time
Created string - Time
Updated string - Type string
- Unit
Count int - Unit
Shape string
- capacities
List<Get
Dedicated Ai Cluster Capacity> - compartment
Id String - dedicated
Ai StringCluster Id - Map<String,String>
- description String
- display
Name String - Map<String,String>
- id String
- The OCID of the dedicated AI cluster.
- lifecycle
Details String - state String
- Map<String,String>
- time
Created String - time
Updated String - type String
- unit
Count Integer - unit
Shape String
- capacities
Get
Dedicated Ai Cluster Capacity[] - compartment
Id string - dedicated
Ai stringCluster Id - {[key: string]: string}
- description string
- display
Name string - {[key: string]: string}
- id string
- The OCID of the dedicated AI cluster.
- lifecycle
Details string - state string
- {[key: string]: string}
- time
Created string - time
Updated string - type string
- unit
Count number - unit
Shape string
- capacities
Sequence[generativeai.
Get Dedicated Ai Cluster Capacity] - compartment_
id str - dedicated_
ai_ strcluster_ id - Mapping[str, str]
- description str
- display_
name str - Mapping[str, str]
- id str
- The OCID of the dedicated AI cluster.
- lifecycle_
details str - state str
- Mapping[str, str]
- time_
created str - time_
updated str - type str
- unit_
count int - unit_
shape str
- capacities List<Property Map>
- compartment
Id String - dedicated
Ai StringCluster Id - Map<String>
- description String
- display
Name String - Map<String>
- id String
- The OCID of the dedicated AI cluster.
- lifecycle
Details String - state String
- Map<String>
- time
Created String - time
Updated String - type String
- unit
Count Number - unit
Shape String
Supporting Types
GetDedicatedAiClusterCapacity
- 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
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.