getGlobalForwardingRule function
Future<GetGlobalForwardingRuleResult>
getGlobalForwardingRule(
- GetGlobalForwardingRuleArgs args, {
- InvokeOptions? options,
Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
args Arguments passed to this invoke. Arguments for getGlobalForwardingRule.
options Invoke options controlling this call.
Implementation
Future<GetGlobalForwardingRuleResult> getGlobalForwardingRule(
GetGlobalForwardingRuleArgs args, {
pulumi.InvokeOptions? options,
}) async {
final deployment = pulumi.Deployment.instance;
final result = await deployment.invoke<Map<String, dynamic>>(
'google-native:compute/alpha:getGlobalForwardingRule',
args.toMap(),
options: pulumi.toDeploymentInvokeOptions(options),
);
return GetGlobalForwardingRuleResult.fromMap(result);
}