getWorkspace

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

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.GetWorkspaceArgs;
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.getWorkspace(GetWorkspaceArgs.builder()
.name("example-healthcare_service")
.resourceGroupName("example-resources")
.build());
ctx.export("healthcareWorkspaceId", example.applyValue(getWorkspaceResult -> getWorkspaceResult.id()));
}
}

Return

A collection of values returned by getWorkspace.

Parameters

argument

A collection of arguments for invoking getWorkspace.


suspend fun getWorkspace(name: String, resourceGroupName: String): GetWorkspaceResult

Return

A collection of values returned by getWorkspace.

See also

Parameters

name

The name of the Healthcare Workspace.

resourceGroupName

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


Return

A collection of values returned by getWorkspace.

See also

Parameters

argument

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