get Metastore Service
Get a Dataproc Metastore service from Google Cloud by its id and location.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const foo = gcp.dataproc.getMetastoreService({
serviceId: "foo-bar",
location: "global",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
foo = gcp.dataproc.get_metastore_service(service_id="foo-bar",
location="global")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var foo = Gcp.Dataproc.GetMetastoreService.Invoke(new()
{
ServiceId = "foo-bar",
Location = "global",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/dataproc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dataproc.LookupMetastoreService(ctx, &dataproc.LookupMetastoreServiceArgs{
ServiceId: "foo-bar",
Location: "global",
}, nil)
if err != nil {
return err
}
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.gcp.dataproc.DataprocFunctions;
import com.pulumi.gcp.dataproc.inputs.GetMetastoreServiceArgs;
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 foo = DataprocFunctions.getMetastoreService(GetMetastoreServiceArgs.builder()
.serviceId("foo-bar")
.location("global")
.build());
}
}
Content copied to clipboard
variables:
foo:
fn::invoke:
function: gcp:dataproc:getMetastoreService
arguments:
serviceId: foo-bar
location: global
Content copied to clipboard
Return
A collection of values returned by getMetastoreService.
Parameters
argument
A collection of arguments for invoking getMetastoreService.
suspend fun getMetastoreService(location: String, project: String? = null, serviceId: String): GetMetastoreServiceResult
Return
A collection of values returned by getMetastoreService.
Parameters
location
The location where the metastore service resides.
project
The project in which the resource belongs. If it is not provided, the provider project is used.
service Id
The ID of the metastore service.
See also
suspend fun getMetastoreService(argument: suspend GetMetastoreServicePlainArgsBuilder.() -> Unit): GetMetastoreServiceResult
Return
A collection of values returned by getMetastoreService.
Parameters
argument
Builder for com.pulumi.gcp.dataproc.kotlin.inputs.GetMetastoreServicePlainArgs.