Show / Hide Table of Contents

Class GetForwardingRule

Inheritance
System.Object
GetForwardingRule
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Gcp.Compute
Assembly: Pulumi.Gcp.dll
Syntax
public static class GetForwardingRule

Methods

View Source

InvokeAsync(GetForwardingRuleArgs, InvokeOptions)

Get a forwarding rule within GCE from its name.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Gcp = Pulumi.Gcp;

class MyStack : Stack
{
public MyStack()
{
    var my_forwarding_rule = Output.Create(Gcp.Compute.GetForwardingRule.InvokeAsync(new Gcp.Compute.GetForwardingRuleArgs
    {
        Name = "forwarding-rule-us-east1",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetForwardingRuleResult> InvokeAsync(GetForwardingRuleArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetForwardingRuleArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetForwardingRuleResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.