hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
hsdp.getAiInferenceServiceInstance
Explore with Pulumi AI
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
Retrieve details of an existing HSDP AI Inference instance.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const inferenceConfig = hsdp.getConfig({
    service: "inference",
});
const inferenceAiInferenceServiceInstance = inferenceConfig.then(inferenceConfig => hsdp.getAiInferenceServiceInstance({
    baseUrl: inferenceConfig.url,
    organizationId: _var.inference_tenant_org_id,
}));
import pulumi
import pulumi_hsdp as hsdp
inference_config = hsdp.get_config(service="inference")
inference_ai_inference_service_instance = hsdp.get_ai_inference_service_instance(base_url=inference_config.url,
    organization_id=var["inference_tenant_org_id"])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		inferenceConfig, err := hsdp.GetConfig(ctx, &hsdp.GetConfigArgs{
			Service: "inference",
		}, nil)
		if err != nil {
			return err
		}
		_, err = hsdp.GetAiInferenceServiceInstance(ctx, &hsdp.GetAiInferenceServiceInstanceArgs{
			BaseUrl:        inferenceConfig.Url,
			OrganizationId: _var.Inference_tenant_org_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() => 
{
    var inferenceConfig = Hsdp.GetConfig.Invoke(new()
    {
        Service = "inference",
    });
    var inferenceAiInferenceServiceInstance = Hsdp.GetAiInferenceServiceInstance.Invoke(new()
    {
        BaseUrl = inferenceConfig.Apply(getConfigResult => getConfigResult.Url),
        OrganizationId = @var.Inference_tenant_org_id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetConfigArgs;
import com.pulumi.hsdp.inputs.GetAiInferenceServiceInstanceArgs;
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 inferenceConfig = HsdpFunctions.getConfig(GetConfigArgs.builder()
            .service("inference")
            .build());
        final var inferenceAiInferenceServiceInstance = HsdpFunctions.getAiInferenceServiceInstance(GetAiInferenceServiceInstanceArgs.builder()
            .baseUrl(inferenceConfig.applyValue(getConfigResult -> getConfigResult.url()))
            .organizationId(var_.inference_tenant_org_id())
            .build());
    }
}
variables:
  inferenceConfig:
    fn::invoke:
      function: hsdp:getConfig
      arguments:
        service: inference
  inferenceAiInferenceServiceInstance:
    fn::invoke:
      function: hsdp:getAiInferenceServiceInstance
      arguments:
        baseUrl: ${inferenceConfig.url}
        organizationId: ${var.inference_tenant_org_id}
Using getAiInferenceServiceInstance
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 getAiInferenceServiceInstance(args: GetAiInferenceServiceInstanceArgs, opts?: InvokeOptions): Promise<GetAiInferenceServiceInstanceResult>
function getAiInferenceServiceInstanceOutput(args: GetAiInferenceServiceInstanceOutputArgs, opts?: InvokeOptions): Output<GetAiInferenceServiceInstanceResult>def get_ai_inference_service_instance(base_url: Optional[str] = None,
                                      id: Optional[str] = None,
                                      organization_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetAiInferenceServiceInstanceResult
def get_ai_inference_service_instance_output(base_url: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      organization_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetAiInferenceServiceInstanceResult]func GetAiInferenceServiceInstance(ctx *Context, args *GetAiInferenceServiceInstanceArgs, opts ...InvokeOption) (*GetAiInferenceServiceInstanceResult, error)
func GetAiInferenceServiceInstanceOutput(ctx *Context, args *GetAiInferenceServiceInstanceOutputArgs, opts ...InvokeOption) GetAiInferenceServiceInstanceResultOutput> Note: This function is named GetAiInferenceServiceInstance in the Go SDK.
public static class GetAiInferenceServiceInstance 
{
    public static Task<GetAiInferenceServiceInstanceResult> InvokeAsync(GetAiInferenceServiceInstanceArgs args, InvokeOptions? opts = null)
    public static Output<GetAiInferenceServiceInstanceResult> Invoke(GetAiInferenceServiceInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAiInferenceServiceInstanceResult> getAiInferenceServiceInstance(GetAiInferenceServiceInstanceArgs args, InvokeOptions options)
public static Output<GetAiInferenceServiceInstanceResult> getAiInferenceServiceInstance(GetAiInferenceServiceInstanceArgs args, InvokeOptions options)
fn::invoke:
  function: hsdp:index/getAiInferenceServiceInstance:getAiInferenceServiceInstance
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Base
Url string - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - Organization
Id string - the Tenant IAM organization.
 - Id string
 
- Base
Url string - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - Organization
Id string - the Tenant IAM organization.
 - Id string
 
- base
Url String - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - organization
Id String - the Tenant IAM organization.
 - id String
 
- base
Url string - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - organization
Id string - the Tenant IAM organization.
 - id string
 
- base_
url str - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - organization_
id str - the Tenant IAM organization.
 - id str
 
- base
Url String - the base URL of the Inference deployment. This can be auto-discovered and/or provided by HSDP.
 - organization
Id String - the Tenant IAM organization.
 - id String
 
getAiInferenceServiceInstance Result
The following output properties are available:
- Base
Url string - Endpoint string
 - The Inference endpoint URL~~
 - Id string
 - Organization
Id string 
- Base
Url string - Endpoint string
 - The Inference endpoint URL~~
 - Id string
 - Organization
Id string 
- base
Url String - endpoint String
 - The Inference endpoint URL~~
 - id String
 - organization
Id String 
- base
Url string - endpoint string
 - The Inference endpoint URL~~
 - id string
 - organization
Id string 
- base_
url str - endpoint str
 - The Inference endpoint URL~~
 - id str
 - organization_
id str 
- base
Url String - endpoint String
 - The Inference endpoint URL~~
 - id String
 - organization
Id String 
Package Details
- Repository
 - hsdp philips-software/terraform-provider-hsdp
 - License
 - Notes
 - This Pulumi package is based on the 
hsdpTerraform Provider. 
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software