1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. GenerativeAi
  5. getDedicatedAiCluster
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.GenerativeAi.getDedicatedAiCluster

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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:

    DedicatedAiClusterId string
    The OCID of the dedicated AI cluster.
    DedicatedAiClusterId string
    The OCID of the dedicated AI cluster.
    dedicatedAiClusterId String
    The OCID of the dedicated AI cluster.
    dedicatedAiClusterId string
    The OCID of the dedicated AI cluster.
    dedicated_ai_cluster_id str
    The OCID of the dedicated AI cluster.
    dedicatedAiClusterId String
    The OCID of the dedicated AI cluster.

    getDedicatedAiCluster Result

    The following output properties are available:

    Capacities List<GetDedicatedAiClusterCapacity>
    CompartmentId string
    DedicatedAiClusterId string
    DefinedTags Dictionary<string, string>
    Description string
    DisplayName string
    FreeformTags Dictionary<string, string>
    Id string
    The OCID of the dedicated AI cluster.
    LifecycleDetails string
    State string
    SystemTags Dictionary<string, string>
    TimeCreated string
    TimeUpdated string
    Type string
    UnitCount int
    UnitShape string
    Capacities []GetDedicatedAiClusterCapacity
    CompartmentId string
    DedicatedAiClusterId string
    DefinedTags map[string]string
    Description string
    DisplayName string
    FreeformTags map[string]string
    Id string
    The OCID of the dedicated AI cluster.
    LifecycleDetails string
    State string
    SystemTags map[string]string
    TimeCreated string
    TimeUpdated string
    Type string
    UnitCount int
    UnitShape string
    capacities List<GetDedicatedAiClusterCapacity>
    compartmentId String
    dedicatedAiClusterId String
    definedTags Map<String,String>
    description String
    displayName String
    freeformTags Map<String,String>
    id String
    The OCID of the dedicated AI cluster.
    lifecycleDetails String
    state String
    systemTags Map<String,String>
    timeCreated String
    timeUpdated String
    type String
    unitCount Integer
    unitShape String
    capacities GetDedicatedAiClusterCapacity[]
    compartmentId string
    dedicatedAiClusterId string
    definedTags {[key: string]: string}
    description string
    displayName string
    freeformTags {[key: string]: string}
    id string
    The OCID of the dedicated AI cluster.
    lifecycleDetails string
    state string
    systemTags {[key: string]: string}
    timeCreated string
    timeUpdated string
    type string
    unitCount number
    unitShape string
    capacities List<Property Map>
    compartmentId String
    dedicatedAiClusterId String
    definedTags Map<String>
    description String
    displayName String
    freeformTags Map<String>
    id String
    The OCID of the dedicated AI cluster.
    lifecycleDetails String
    state String
    systemTags Map<String>
    timeCreated String
    timeUpdated String
    type String
    unitCount Number
    unitShape String

    Supporting Types

    GetDedicatedAiClusterCapacity

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi