getWorkspace

Use this data source to access information about an existing Synapse Workspace.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.synapse.SynapseFunctions;
import com.pulumi.azure.synapse.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 = SynapseFunctions.getWorkspace(GetWorkspaceArgs.builder()
.name("existing")
.resourceGroupName("example-resource-group")
.build());
ctx.export("id", 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 this Synapse Workspace.

resourceGroupName

The name of the Resource Group where the Synapse Workspace exists.


Return

A collection of values returned by getWorkspace.

See also

Parameters

argument

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