getService

Get information about a Google Cloud Run Service. For more information see the official documentation and API.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudrun.CloudrunFunctions;
import com.pulumi.gcp.cloudrun.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 run-service = CloudrunFunctions.getService(GetServiceArgs.builder()
.location("us-central1")
.name("my-service")
.build());
}
}

Return

A collection of values returned by getService.

Parameters

argument

A collection of arguments for invoking getService.


suspend fun getService(location: String, name: String, project: String? = null): GetServiceResult

Return

A collection of values returned by getService.

Parameters

location

The location of the cloud run instance. eg us-central1

name

The name of the Cloud Run Service.

project

The project in which the resource belongs. If it is not provided, the provider project is used.

See also


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

Return

A collection of values returned by getService.

Parameters

argument

Builder for com.pulumi.gcp.cloudrun.kotlin.inputs.GetServicePlainArgs.

See also