@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
71 lines (70 loc) • 1.73 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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_networks = gcp.compute.getNetworks({
* project: "my-cloud-project",
* });
* ```
*/
export declare function getNetworks(args?: GetNetworksArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworksResult>;
/**
* A collection of arguments for invoking getNetworks.
*/
export interface GetNetworksArgs {
/**
* The name of the project.
*/
project?: string;
}
/**
* A collection of values returned by getNetworks.
*/
export interface GetNetworksResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of networks in the specified project.
*/
readonly networks: string[];
/**
* The project name being queried.
*/
readonly project?: string;
/**
* The URI of the resource.
*/
readonly selfLink: string;
}
/**
* 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_networks = gcp.compute.getNetworks({
* project: "my-cloud-project",
* });
* ```
*/
export declare function getNetworksOutput(args?: GetNetworksOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworksResult>;
/**
* A collection of arguments for invoking getNetworks.
*/
export interface GetNetworksOutputArgs {
/**
* The name of the project.
*/
project?: pulumi.Input<string>;
}