@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
77 lines • 2.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a list of routers. For more information see
* the official [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/list) documentation.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const all = gcp.compute.getRouters({
* project: foobar.project,
* region: foobar.region,
* });
* ```
*/
export declare function getRouters(args?: GetRoutersArgs, opts?: pulumi.InvokeOptions): Promise<GetRoutersResult>;
/**
* A collection of arguments for invoking getRouters.
*/
export interface GetRoutersArgs {
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
/**
* If provided, only resources from the given regions are queried.
*/
region?: string;
}
/**
* A collection of values returned by getRouters.
*/
export interface GetRoutersResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly project: string;
readonly region: string;
readonly routers: outputs.compute.GetRoutersRouter[];
}
/**
* Get a list of routers. For more information see
* the official [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/list) documentation.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const all = gcp.compute.getRouters({
* project: foobar.project,
* region: foobar.region,
* });
* ```
*/
export declare function getRoutersOutput(args?: GetRoutersOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoutersResult>;
/**
* A collection of arguments for invoking getRouters.
*/
export interface GetRoutersOutputArgs {
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* If provided, only resources from the given regions are queried.
*/
region?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getRouters.d.ts.map