getService

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

Example Usage

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.applyValue(getServiceResult -> getServiceResult.id()));
}
}

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.

See also

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.


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

Return

A collection of values returned by getService.

See also

Parameters

argument

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