1. Registry
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. getRhaiiProject
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
ibm
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud

    Retrieve information about an existing Red Hat AI Inference (RHAII) project. You can look up the project by its name or by its ID.

    For more information, see Red Hat AI Inference on IBM Cloud and the Red Hat AI Inference API.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const group = ibm.getResourceGroup({
        name: "Default",
    });
    const byName = group.then(group => ibm.getRhaiiProject({
        name: "my-rhaii-project",
        resourceGroupId: group.id,
    }));
    const byId = ibm.getRhaiiProject({
        identifier: "917bc95a-fef0-4039-b936-e0b6fb17b721",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    group = ibm.get_resource_group(name="Default")
    by_name = ibm.get_rhaii_project(name="my-rhaii-project",
        resource_group_id=group.id)
    by_id = ibm.get_rhaii_project(identifier="917bc95a-fef0-4039-b936-e0b6fb17b721")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		group, err := ibm.LookupResourceGroup(ctx, &ibm.LookupResourceGroupArgs{
    			Name: pulumi.StringRef("Default"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ibm.LookupRhaiiProject(ctx, &ibm.LookupRhaiiProjectArgs{
    			Name:            pulumi.StringRef("my-rhaii-project"),
    			ResourceGroupId: pulumi.StringRef(group.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = ibm.LookupRhaiiProject(ctx, &ibm.LookupRhaiiProjectArgs{
    			Identifier: pulumi.StringRef("917bc95a-fef0-4039-b936-e0b6fb17b721"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var @group = Ibm.GetResourceGroup.Invoke(new()
        {
            Name = "Default",
        });
    
        var byName = Ibm.GetRhaiiProject.Invoke(new()
        {
            Name = "my-rhaii-project",
            ResourceGroupId = @group.Apply(getResourceGroupResult => getResourceGroupResult.Id),
        });
    
        var byId = Ibm.GetRhaiiProject.Invoke(new()
        {
            Identifier = "917bc95a-fef0-4039-b936-e0b6fb17b721",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetResourceGroupArgs;
    import com.pulumi.ibm.inputs.GetRhaiiProjectArgs;
    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 group = IbmFunctions.getResourceGroup(GetResourceGroupArgs.builder()
                .name("Default")
                .build());
    
            final var byName = IbmFunctions.getRhaiiProject(GetRhaiiProjectArgs.builder()
                .name("my-rhaii-project")
                .resourceGroupId(group.id())
                .build());
    
            final var byId = IbmFunctions.getRhaiiProject(GetRhaiiProjectArgs.builder()
                .identifier("917bc95a-fef0-4039-b936-e0b6fb17b721")
                .build());
    
        }
    }
    
    variables:
      group:
        fn::invoke:
          function: ibm:getResourceGroup
          arguments:
            name: Default
      byName:
        fn::invoke:
          function: ibm:getRhaiiProject
          arguments:
            name: my-rhaii-project
            resourceGroupId: ${group.id}
      byId:
        fn::invoke:
          function: ibm:getRhaiiProject
          arguments:
            identifier: 917bc95a-fef0-4039-b936-e0b6fb17b721
    
    Example coming soon!
    

    Using getRhaiiProject

    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 getRhaiiProject(args: GetRhaiiProjectArgs, opts?: InvokeOptions): Promise<GetRhaiiProjectResult>
    function getRhaiiProjectOutput(args: GetRhaiiProjectOutputArgs, opts?: InvokeOutputOptions): Output<GetRhaiiProjectResult>
    def get_rhaii_project(identifier: Optional[str] = None,
                          location: Optional[str] = None,
                          name: Optional[str] = None,
                          resource_group_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetRhaiiProjectResult
    def get_rhaii_project_output(identifier: pulumi.Input[Optional[str]] = None,
                          location: pulumi.Input[Optional[str]] = None,
                          name: pulumi.Input[Optional[str]] = None,
                          resource_group_id: pulumi.Input[Optional[str]] = None,
                          opts: Optional[InvokeOutputOptions] = None) -> Output[GetRhaiiProjectResult]
    func LookupRhaiiProject(ctx *Context, args *LookupRhaiiProjectArgs, opts ...InvokeOption) (*LookupRhaiiProjectResult, error)
    func LookupRhaiiProjectOutput(ctx *Context, args *LookupRhaiiProjectOutputArgs, opts ...InvokeOption) LookupRhaiiProjectResultOutput

    > Note: This function is named LookupRhaiiProject in the Go SDK.

    public static class GetRhaiiProject 
    {
        public static Task<GetRhaiiProjectResult> InvokeAsync(GetRhaiiProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetRhaiiProjectResult> Invoke(GetRhaiiProjectInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetRhaiiProjectResult> Invoke(GetRhaiiProjectInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetRhaiiProjectResult> getRhaiiProject(GetRhaiiProjectArgs args, InvokeOptions options)
    public static Output<GetRhaiiProjectResult> getRhaiiProject(GetRhaiiProjectArgs args, InvokeOptions options)
    public static Output<GetRhaiiProjectResult> getRhaiiProject(GetRhaiiProjectArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ibm:index/getRhaiiProject:getRhaiiProject
      arguments:
        # arguments dictionary
    data "ibm_get_rhaii_project" "name" {
        # arguments
    }

    The following arguments are supported:

    Identifier string
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    Location string
    The region of the project, for example us-east.
    Name string
    The name of the project.
    ResourceGroupId string
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    Identifier string
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    Location string
    The region of the project, for example us-east.
    Name string
    The name of the project.
    ResourceGroupId string
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    identifier string
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    location string
    The region of the project, for example us-east.
    name string
    The name of the project.
    resource_group_id string
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    identifier String
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    location String
    The region of the project, for example us-east.
    name String
    The name of the project.
    resourceGroupId String
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    identifier string
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    location string
    The region of the project, for example us-east.
    name string
    The name of the project.
    resourceGroupId string
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    identifier str
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    location str
    The region of the project, for example us-east.
    name str
    The name of the project.
    resource_group_id str
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.
    identifier String
    The ID (GUID) or CRN of the project. Conflicts with resource_group_id and location.
    location String
    The region of the project, for example us-east.
    name String
    The name of the project.
    resourceGroupId String
    The ID of the resource group to search in. When not set, all resource groups are searched. Use it when more than one project has the same name.

    getRhaiiProject Result

    The following output properties are available:

    AccessTags List<string>
    (Array of Strings) The access management tags of the project.
    AccountId string
    (String) The ID of the account that owns the project.
    CreatedAt string
    (String) The date when the project was created.
    CreatedBy string
    (String) The subject who created the project.
    Crn string
    (String) The CRN of the project.
    DashboardUrl string
    (String) The relative URL of the project in the IBM Cloud console.
    Endpoint string
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    Guid string
    (String) The GUID of the resource instance.
    Id string
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    LastOperations List<GetRhaiiProjectLastOperation>
    (List) The last operation on the project. Nested schema for last_operation:
    Location string
    Locked bool
    (Boolean) Whether the project is locked.
    Name string
    PlanId string
    (String) The global catalog ID of the pricing plan of the project.
    PlanName string
    (String) The name of the pricing plan of the project.
    PrivateEndpoint string
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    ProjectId string
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    ResourceGroupCrn string
    (String) The CRN of the resource group.
    ResourceGroupId string
    Service string
    (String) The service name of the project. Always instructlab.
    State string
    (String) The state of the operation, for example succeeded.
    Tags List<string>
    (Array of Strings) The user tags of the project.
    TargetCrn string
    (String) The deployment CRN of the project in the global catalog.
    UpdatedAt string
    (String) The date when the project was last updated.
    UpdatedBy string
    (String) The subject who last updated the project.
    Identifier string
    AccessTags []string
    (Array of Strings) The access management tags of the project.
    AccountId string
    (String) The ID of the account that owns the project.
    CreatedAt string
    (String) The date when the project was created.
    CreatedBy string
    (String) The subject who created the project.
    Crn string
    (String) The CRN of the project.
    DashboardUrl string
    (String) The relative URL of the project in the IBM Cloud console.
    Endpoint string
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    Guid string
    (String) The GUID of the resource instance.
    Id string
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    LastOperations []GetRhaiiProjectLastOperation
    (List) The last operation on the project. Nested schema for last_operation:
    Location string
    Locked bool
    (Boolean) Whether the project is locked.
    Name string
    PlanId string
    (String) The global catalog ID of the pricing plan of the project.
    PlanName string
    (String) The name of the pricing plan of the project.
    PrivateEndpoint string
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    ProjectId string
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    ResourceGroupCrn string
    (String) The CRN of the resource group.
    ResourceGroupId string
    Service string
    (String) The service name of the project. Always instructlab.
    State string
    (String) The state of the operation, for example succeeded.
    Tags []string
    (Array of Strings) The user tags of the project.
    TargetCrn string
    (String) The deployment CRN of the project in the global catalog.
    UpdatedAt string
    (String) The date when the project was last updated.
    UpdatedBy string
    (String) The subject who last updated the project.
    Identifier string
    access_tags list(string)
    (Array of Strings) The access management tags of the project.
    account_id string
    (String) The ID of the account that owns the project.
    created_at string
    (String) The date when the project was created.
    created_by string
    (String) The subject who created the project.
    crn string
    (String) The CRN of the project.
    dashboard_url string
    (String) The relative URL of the project in the IBM Cloud console.
    endpoint string
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    guid string
    (String) The GUID of the resource instance.
    id string
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    last_operations list(object)
    (List) The last operation on the project. Nested schema for last_operation:
    location string
    locked bool
    (Boolean) Whether the project is locked.
    name string
    plan_id string
    (String) The global catalog ID of the pricing plan of the project.
    plan_name string
    (String) The name of the pricing plan of the project.
    private_endpoint string
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    project_id string
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    resource_group_crn string
    (String) The CRN of the resource group.
    resource_group_id string
    service string
    (String) The service name of the project. Always instructlab.
    state string
    (String) The state of the operation, for example succeeded.
    tags list(string)
    (Array of Strings) The user tags of the project.
    target_crn string
    (String) The deployment CRN of the project in the global catalog.
    updated_at string
    (String) The date when the project was last updated.
    updated_by string
    (String) The subject who last updated the project.
    identifier string
    accessTags List<String>
    (Array of Strings) The access management tags of the project.
    accountId String
    (String) The ID of the account that owns the project.
    createdAt String
    (String) The date when the project was created.
    createdBy String
    (String) The subject who created the project.
    crn String
    (String) The CRN of the project.
    dashboardUrl String
    (String) The relative URL of the project in the IBM Cloud console.
    endpoint String
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    guid String
    (String) The GUID of the resource instance.
    id String
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    lastOperations List<GetRhaiiProjectLastOperation>
    (List) The last operation on the project. Nested schema for last_operation:
    location String
    locked Boolean
    (Boolean) Whether the project is locked.
    name String
    planId String
    (String) The global catalog ID of the pricing plan of the project.
    planName String
    (String) The name of the pricing plan of the project.
    privateEndpoint String
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    projectId String
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    resourceGroupCrn String
    (String) The CRN of the resource group.
    resourceGroupId String
    service String
    (String) The service name of the project. Always instructlab.
    state String
    (String) The state of the operation, for example succeeded.
    tags List<String>
    (Array of Strings) The user tags of the project.
    targetCrn String
    (String) The deployment CRN of the project in the global catalog.
    updatedAt String
    (String) The date when the project was last updated.
    updatedBy String
    (String) The subject who last updated the project.
    identifier String
    accessTags string[]
    (Array of Strings) The access management tags of the project.
    accountId string
    (String) The ID of the account that owns the project.
    createdAt string
    (String) The date when the project was created.
    createdBy string
    (String) The subject who created the project.
    crn string
    (String) The CRN of the project.
    dashboardUrl string
    (String) The relative URL of the project in the IBM Cloud console.
    endpoint string
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    guid string
    (String) The GUID of the resource instance.
    id string
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    lastOperations GetRhaiiProjectLastOperation[]
    (List) The last operation on the project. Nested schema for last_operation:
    location string
    locked boolean
    (Boolean) Whether the project is locked.
    name string
    planId string
    (String) The global catalog ID of the pricing plan of the project.
    planName string
    (String) The name of the pricing plan of the project.
    privateEndpoint string
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    projectId string
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    resourceGroupCrn string
    (String) The CRN of the resource group.
    resourceGroupId string
    service string
    (String) The service name of the project. Always instructlab.
    state string
    (String) The state of the operation, for example succeeded.
    tags string[]
    (Array of Strings) The user tags of the project.
    targetCrn string
    (String) The deployment CRN of the project in the global catalog.
    updatedAt string
    (String) The date when the project was last updated.
    updatedBy string
    (String) The subject who last updated the project.
    identifier string
    access_tags Sequence[str]
    (Array of Strings) The access management tags of the project.
    account_id str
    (String) The ID of the account that owns the project.
    created_at str
    (String) The date when the project was created.
    created_by str
    (String) The subject who created the project.
    crn str
    (String) The CRN of the project.
    dashboard_url str
    (String) The relative URL of the project in the IBM Cloud console.
    endpoint str
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    guid str
    (String) The GUID of the resource instance.
    id str
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    last_operations Sequence[GetRhaiiProjectLastOperation]
    (List) The last operation on the project. Nested schema for last_operation:
    location str
    locked bool
    (Boolean) Whether the project is locked.
    name str
    plan_id str
    (String) The global catalog ID of the pricing plan of the project.
    plan_name str
    (String) The name of the pricing plan of the project.
    private_endpoint str
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    project_id str
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    resource_group_crn str
    (String) The CRN of the resource group.
    resource_group_id str
    service str
    (String) The service name of the project. Always instructlab.
    state str
    (String) The state of the operation, for example succeeded.
    tags Sequence[str]
    (Array of Strings) The user tags of the project.
    target_crn str
    (String) The deployment CRN of the project in the global catalog.
    updated_at str
    (String) The date when the project was last updated.
    updated_by str
    (String) The subject who last updated the project.
    identifier str
    accessTags List<String>
    (Array of Strings) The access management tags of the project.
    accountId String
    (String) The ID of the account that owns the project.
    createdAt String
    (String) The date when the project was created.
    createdBy String
    (String) The subject who created the project.
    crn String
    (String) The CRN of the project.
    dashboardUrl String
    (String) The relative URL of the project in the IBM Cloud console.
    endpoint String
    (String) The public base URL of the Red Hat AI Inference API for this project, for example https://us-east.rhai.ibm.com/v1/projects/<project_id>.
    guid String
    (String) The GUID of the resource instance.
    id String
    (String) The unique identifier of the project. This is the CRN of the resource instance.
    lastOperations List<Property Map>
    (List) The last operation on the project. Nested schema for last_operation:
    location String
    locked Boolean
    (Boolean) Whether the project is locked.
    name String
    planId String
    (String) The global catalog ID of the pricing plan of the project.
    planName String
    (String) The name of the pricing plan of the project.
    privateEndpoint String
    (String) The private base URL of the Red Hat AI Inference API for this project, for example https://private.us-east.rhai.ibm.com/v1/projects/<project_id>. It can be reached only from the IBM Cloud private network, for example from a VPC.
    projectId String
    (String) The ID of the project. Use this value as project_id in the Red Hat AI Inference API.
    resourceGroupCrn String
    (String) The CRN of the resource group.
    resourceGroupId String
    service String
    (String) The service name of the project. Always instructlab.
    state String
    (String) The state of the operation, for example succeeded.
    tags List<String>
    (Array of Strings) The user tags of the project.
    targetCrn String
    (String) The deployment CRN of the project in the global catalog.
    updatedAt String
    (String) The date when the project was last updated.
    updatedBy String
    (String) The subject who last updated the project.
    identifier String

    Supporting Types

    GetRhaiiProjectLastOperation

    Async bool
    (Boolean) Whether the operation is asynchronous.
    Description string
    (String) The description of the operation.
    State string
    (String) The state of the operation, for example succeeded.
    Type string
    (String) The type of the operation, for example create.
    Async bool
    (Boolean) Whether the operation is asynchronous.
    Description string
    (String) The description of the operation.
    State string
    (String) The state of the operation, for example succeeded.
    Type string
    (String) The type of the operation, for example create.
    async bool
    (Boolean) Whether the operation is asynchronous.
    description string
    (String) The description of the operation.
    state string
    (String) The state of the operation, for example succeeded.
    type string
    (String) The type of the operation, for example create.
    async Boolean
    (Boolean) Whether the operation is asynchronous.
    description String
    (String) The description of the operation.
    state String
    (String) The state of the operation, for example succeeded.
    type String
    (String) The type of the operation, for example create.
    async boolean
    (Boolean) Whether the operation is asynchronous.
    description string
    (String) The description of the operation.
    state string
    (String) The state of the operation, for example succeeded.
    type string
    (String) The type of the operation, for example create.
    async_ bool
    (Boolean) Whether the operation is asynchronous.
    description str
    (String) The description of the operation.
    state str
    (String) The state of the operation, for example succeeded.
    type str
    (String) The type of the operation, for example create.
    async Boolean
    (Boolean) Whether the operation is asynchronous.
    description String
    (String) The description of the operation.
    state String
    (String) The state of the operation, for example succeeded.
    type String
    (String) The type of the operation, for example create.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm
    Viewing docs for ibm 2.9.0
    published on Thursday, Nov 5, 2026 by ibm-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial