getBackendService

Provide access to a Backend Service's attribute. For more information see the official documentation and the API.

Example Usage

data "google_compute_backend_service" "baz" {
name = "foobar"
}
resource "google_compute_backend_service" "default" {
name = "backend-service"
health_checks = [tolist(data.google_compute_backend_service.baz.health_checks)[0]]
}

Return

A collection of values returned by getBackendService.

Parameters

argument

A collection of arguments for invoking getBackendService.


suspend fun getBackendService(name: String, project: String? = null): GetBackendServiceResult

Return

A collection of values returned by getBackendService.

Parameters

name

The name of the Backend Service.

project

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

See also


Return

A collection of values returned by getBackendService.

Parameters

argument

Builder for com.pulumi.gcp.compute.kotlin.inputs.GetBackendServicePlainArgs.

See also