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
LookupForwardingRulein the Go SDK.
public static class GetForwardingRule {
public static Task<GetForwardingRuleResult> InvokeAsync(GetForwardingRuleArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetForwardingRule Result
The following output properties are available:
- Backend
Service 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.
- Ip
Address string IP address of this forwarding rule.
- Ip
Protocol string IP protocol of this forwarding rule.
- Load
Balancing stringScheme Type of load balancing of this forwarding rule.
- Name string
- Network string
Network of this forwarding rule.
- Port
Range 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.
- Self
Link 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 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.
- Ip
Address string IP address of this forwarding rule.
- Ip
Protocol string IP protocol of this forwarding rule.
- Load
Balancing stringScheme Type of load balancing of this forwarding rule.
- Name string
- Network string
Network of this forwarding rule.
- Port
Range 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.
- Self
Link 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 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.
- ip
Address string IP address of this forwarding rule.
- ip
Protocol string IP protocol of this forwarding rule.
- load
Balancing stringScheme Type of load balancing of this forwarding rule.
- name string
- network string
Network of this forwarding rule.
- port
Range 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.
- self
Link 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_ strscheme 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-betaTerraform Provider.