getGlobalForwardingRule

Get a global forwarding rule within GCE from its name.

Example Usage

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.GetGlobalForwardingRuleArgs;
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 my-forwarding-rule = ComputeFunctions.getGlobalForwardingRule(GetGlobalForwardingRuleArgs.builder()
.name("forwarding-rule-global")
.build());
}
}

Return

A collection of values returned by getGlobalForwardingRule.

Parameters

argument

A collection of arguments for invoking getGlobalForwardingRule.


Return

A collection of values returned by getGlobalForwardingRule.

Parameters

name

The name of the global forwarding rule.

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 getGlobalForwardingRule.

Parameters

argument

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

See also