getService

Use this data source to access information about an existing Healthcare Service

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.healthcare.getService({
name: "example-healthcare_service",
resourceGroupName: "example-resources",
location: "westus2",
});
export const healthcareServiceId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.healthcare.get_service(name="example-healthcare_service",
resource_group_name="example-resources",
location="westus2")
pulumi.export("healthcareServiceId", example.id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Healthcare.GetService.Invoke(new()
{
Name = "example-healthcare_service",
ResourceGroupName = "example-resources",
Location = "westus2",
});
return new Dictionary<string, object?>
{
["healthcareServiceId"] = example.Apply(getServiceResult => getServiceResult.Id),
};
});
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.LookupService(ctx, &healthcare.LookupServiceArgs{
Name: "example-healthcare_service",
ResourceGroupName: "example-resources",
Location: "westus2",
}, nil)
if err != nil {
return err
}
ctx.Export("healthcareServiceId", example.Id)
return nil
})
}
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.GetServiceArgs;
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.getService(GetServiceArgs.builder()
.name("example-healthcare_service")
.resourceGroupName("example-resources")
.location("westus2")
.build());
ctx.export("healthcareServiceId", example.id());
}
}
variables:
example:
fn::invoke:
function: azure:healthcare:getService
arguments:
name: example-healthcare_service
resourceGroupName: example-resources
location: westus2
outputs:
healthcareServiceId: ${example.id}

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.HealthcareApis: 2022-12-01

Return

A collection of values returned by getService.

Parameters

argument

A collection of arguments for invoking getService.


suspend fun getService(location: String, name: String, resourceGroupName: String): GetServiceResult

Return

A collection of values returned by getService.

Parameters

location

The Azure Region where the Service is located.

name

Specifies the name of the Healthcare Service.

resourceGroupName

The name of the Resource Group in which the Healthcare Service exists.

See also


suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult

Return

A collection of values returned by getService.

Parameters

argument

Builder for com.pulumi.azure.healthcare.kotlin.inputs.GetServicePlainArgs.

See also