get Region Backend Service
suspend fun getRegionBackendService(argument: GetRegionBackendServicePlainArgs): GetRegionBackendServiceResult
Get information about a Regional Backend Service. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myBackend = gcp.compute.getRegionBackendService({
name: "my-backend-service",
region: "us-central1",
});
Content copied to clipboard
import pulumi
import pulumi_gcp as gcp
my_backend = gcp.compute.get_region_backend_service(name="my-backend-service",
region="us-central1")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myBackend = Gcp.Compute.GetRegionBackendService.Invoke(new()
{
Name = "my-backend-service",
Region = "us-central1",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupRegionBackendService(ctx, &compute.LookupRegionBackendServiceArgs{
Name: "my-backend-service",
Region: pulumi.StringRef("us-central1"),
}, 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.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetRegionBackendServiceArgs;
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 myBackend = ComputeFunctions.getRegionBackendService(GetRegionBackendServiceArgs.builder()
.name("my-backend-service")
.region("us-central1")
.build());
}
}
Content copied to clipboard
variables:
myBackend:
fn::invoke:
function: gcp:compute:getRegionBackendService
arguments:
name: my-backend-service
region: us-central1
Content copied to clipboard
Return
A collection of values returned by getRegionBackendService.
Parameters
argument
A collection of arguments for invoking getRegionBackendService.
suspend fun getRegionBackendService(name: String, project: String? = null, region: String? = null): GetRegionBackendServiceResult
Return
A collection of values returned by getRegionBackendService.
Parameters
name
The name of the regional backend service.
project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
region
The region where the backend service resides.
See also
suspend fun getRegionBackendService(argument: suspend GetRegionBackendServicePlainArgsBuilder.() -> Unit): GetRegionBackendServiceResult
Return
A collection of values returned by getRegionBackendService.
Parameters
argument
Builder for com.pulumi.gcp.compute.kotlin.inputs.GetRegionBackendServicePlainArgs.