@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
96 lines (95 loc) • 2.74 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to get details about a VMwareEngine network resource.
*
* To get more information about VMwareEngine Network, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myNw = gcp.vmwareengine.getNetwork({
* name: "us-central1-default",
* location: "us-central1",
* });
* ```
*/
export declare function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkResult>;
/**
* A collection of arguments for invoking getNetwork.
*/
export interface GetNetworkArgs {
/**
* Location of the resource.
*
* - - -
*/
location: string;
/**
* Name of the resource.
*/
name: string;
/**
* The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getNetwork.
*/
export interface GetNetworkResult {
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly location: string;
readonly name: string;
readonly project?: string;
readonly state: string;
readonly type: string;
readonly uid: string;
readonly vpcNetworks: outputs.vmwareengine.GetNetworkVpcNetwork[];
}
/**
* Use this data source to get details about a VMwareEngine network resource.
*
* To get more information about VMwareEngine Network, see:
* * [API documentation](https://cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.vmwareEngineNetworks)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myNw = gcp.vmwareengine.getNetwork({
* name: "us-central1-default",
* location: "us-central1",
* });
* ```
*/
export declare function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkResult>;
/**
* A collection of arguments for invoking getNetwork.
*/
export interface GetNetworkOutputArgs {
/**
* Location of the resource.
*
* - - -
*/
location: pulumi.Input<string>;
/**
* Name of the resource.
*/
name: pulumi.Input<string>;
/**
* The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}