GetForwardingRule

Get a forwarding rule within GCE from its name.

Using GetForwardingRule

function getForwardingRule(args: GetForwardingRuleArgs, opts?: InvokeOptions): Promise<GetForwardingRuleResult>
function  get_forwarding_rule(name=None, project=None, region=None, opts=None)
func LookupForwardingRule(ctx *Context, args *LookupForwardingRuleArgs, opts ...InvokeOption) (*LookupForwardingRuleResult, error)

Note: This function is named LookupForwardingRule in the Go SDK.

public static class GetForwardingRule {
    public static Task<GetForwardingRuleResult> InvokeAsync(GetForwardingRuleArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Name string

The name of the forwarding rule.

Project string

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

Region string

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

Name string

The name of the forwarding rule.

Project string

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

Region string

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

name string

The name of the forwarding rule.

project string

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

region string

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

name str

The name of the forwarding rule.

project str

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

region str

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

GetForwardingRule Result

The following output properties are available:

BackendService string

Backend service, if this forwarding rule has one.

Description string

Description of this forwarding rule.

Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

IP address of this forwarding rule.

IpProtocol string

IP protocol of this forwarding rule.

LoadBalancingScheme string

Type of load balancing of this forwarding rule.

Name string
Network string

Network of this forwarding rule.

PortRange string

Port range, if this forwarding rule has one.

Ports List<string>

List of ports to use for internal load balancing, if this forwarding rule has any.

Project string
Region string

Region of this forwarding rule.

SelfLink string

The URI of the resource.

Subnetwork string

Subnetwork of this forwarding rule.

Target string

URL of the target pool, if this forwarding rule has one.

BackendService string

Backend service, if this forwarding rule has one.

Description string

Description of this forwarding rule.

Id string

The provider-assigned unique ID for this managed resource.

IpAddress string

IP address of this forwarding rule.

IpProtocol string

IP protocol of this forwarding rule.

LoadBalancingScheme string

Type of load balancing of this forwarding rule.

Name string
Network string

Network of this forwarding rule.

PortRange string

Port range, if this forwarding rule has one.

Ports []string

List of ports to use for internal load balancing, if this forwarding rule has any.

Project string
Region string

Region of this forwarding rule.

SelfLink string

The URI of the resource.

Subnetwork string

Subnetwork of this forwarding rule.

Target string

URL of the target pool, if this forwarding rule has one.

backendService string

Backend service, if this forwarding rule has one.

description string

Description of this forwarding rule.

id string

The provider-assigned unique ID for this managed resource.

ipAddress string

IP address of this forwarding rule.

ipProtocol string

IP protocol of this forwarding rule.

loadBalancingScheme string

Type of load balancing of this forwarding rule.

name string
network string

Network of this forwarding rule.

portRange string

Port range, if this forwarding rule has one.

ports string[]

List of ports to use for internal load balancing, if this forwarding rule has any.

project string
region string

Region of this forwarding rule.

selfLink string

The URI of the resource.

subnetwork string

Subnetwork of this forwarding rule.

target string

URL of the target pool, if this forwarding rule has one.

backend_service str

Backend service, if this forwarding rule has one.

description str

Description of this forwarding rule.

id str

The provider-assigned unique ID for this managed resource.

ip_address str

IP address of this forwarding rule.

ip_protocol str

IP protocol of this forwarding rule.

load_balancing_scheme str

Type of load balancing of this forwarding rule.

name str
network str

Network of this forwarding rule.

port_range str

Port range, if this forwarding rule has one.

ports List[str]

List of ports to use for internal load balancing, if this forwarding rule has any.

project str
region str

Region of this forwarding rule.

self_link str

The URI of the resource.

subnetwork str

Subnetwork of this forwarding rule.

target str

URL of the target pool, if this forwarding rule has one.

Package Details

Repository
https://github.com/pulumi/pulumi-gcp
License
Apache-2.0
Notes
This Pulumi package is based on the google-beta Terraform Provider.