@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
86 lines (85 loc) • 2.58 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* List all networks in a specified Google Cloud project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_forwarding_rules = gcp.compute.getForwardingRules({
* project: "my-cloud-project",
* region: "us-central1",
* });
* ```
*/
export declare function getForwardingRules(args?: GetForwardingRulesArgs, opts?: pulumi.InvokeOptions): Promise<GetForwardingRulesResult>;
/**
* A collection of arguments for invoking getForwardingRules.
*/
export interface GetForwardingRulesArgs {
/**
* The name of the project.
*/
project?: string;
/**
* The region you want to get the forwarding rules from.
*
* These arguments must be set in either the provider or the resource in order for the information to be queried.
*/
region?: string;
}
/**
* A collection of values returned by getForwardingRules.
*/
export interface GetForwardingRulesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The project name being queried.
*/
readonly project?: string;
/**
* The region being queried.
*/
readonly region?: string;
/**
* This is a list of the forwarding rules in the project. Each forwarding rule will list the backend, description, ip address. name, network, self link, service label, service name, and subnet.
*/
readonly rules: outputs.compute.GetForwardingRulesRule[];
}
/**
* List all networks in a specified Google Cloud project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_forwarding_rules = gcp.compute.getForwardingRules({
* project: "my-cloud-project",
* region: "us-central1",
* });
* ```
*/
export declare function getForwardingRulesOutput(args?: GetForwardingRulesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetForwardingRulesResult>;
/**
* A collection of arguments for invoking getForwardingRules.
*/
export interface GetForwardingRulesOutputArgs {
/**
* The name of the project.
*/
project?: pulumi.Input<string>;
/**
* The region you want to get the forwarding rules from.
*
* These arguments must be set in either the provider or the resource in order for the information to be queried.
*/
region?: pulumi.Input<string>;
}