get Medtech Service
Use this data source to access information about an existing Healthcare Med Tech Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.healthcare.getMedtechService({
name: "tfexmedtech",
workspaceId: "tfexwks",
});
export const azurermHealthcareMedtechServiceId = example.then(example => example.id);
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.healthcare.get_medtech_service(name="tfexmedtech",
workspace_id="tfexwks")
pulumi.export("azurermHealthcareMedtechServiceId", example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Healthcare.GetMedtechService.Invoke(new()
{
Name = "tfexmedtech",
WorkspaceId = "tfexwks",
});
return new Dictionary<string, object?>
{
["azurermHealthcareMedtechServiceId"] = example.Apply(getMedtechServiceResult => getMedtechServiceResult.Id),
};
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/healthcare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := healthcare.LookupMedtechService(ctx, &healthcare.LookupMedtechServiceArgs{
Name: "tfexmedtech",
WorkspaceId: "tfexwks",
}, nil)
if err != nil {
return err
}
ctx.Export("azurermHealthcareMedtechServiceId", example.Id)
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.healthcare.HealthcareFunctions;
import com.pulumi.azure.healthcare.inputs.GetMedtechServiceArgs;
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 example = HealthcareFunctions.getMedtechService(GetMedtechServiceArgs.builder()
.name("tfexmedtech")
.workspaceId("tfexwks")
.build());
ctx.export("azurermHealthcareMedtechServiceId", example.applyValue(getMedtechServiceResult -> getMedtechServiceResult.id()));
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:healthcare:getMedtechService
arguments:
name: tfexmedtech
workspaceId: tfexwks
outputs:
azurermHealthcareMedtechServiceId: ${example.id}
Content copied to clipboard
Return
A collection of values returned by getMedtechService.
Parameters
argument
A collection of arguments for invoking getMedtechService.
Return
A collection of values returned by getMedtechService.
Parameters
name
The name of the Healthcare Med Tech Service.
workspace Id
The id of the Healthcare Workspace in which the Healthcare Med Tech Service exists.
See also
suspend fun getMedtechService(argument: suspend GetMedtechServicePlainArgsBuilder.() -> Unit): GetMedtechServiceResult
Return
A collection of values returned by getMedtechService.
Parameters
argument
Builder for com.pulumi.azure.healthcare.kotlin.inputs.GetMedtechServicePlainArgs.