getForwardingRule

Get a forwarding rule within GCE from its name.

Example Usage

data "google_compute_forwarding_rule" "my-forwarding-rule" {
name = "forwarding-rule-us-east1"
}

Return

A collection of values returned by getForwardingRule.

Parameters

argument

A collection of arguments for invoking getForwardingRule.


suspend fun getForwardingRule(name: String, project: String? = null, region: String? = null): GetForwardingRuleResult

Return

A collection of values returned by getForwardingRule.

Parameters

name

The name of the forwarding rule.

project

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

region

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

See also


Return

A collection of values returned by getForwardingRule.

Parameters

argument

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

See also