UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

90 lines 3.1 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to fetch a list of Network Endpoint Groups available in a * project and zone. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const negs = gcp.compute.getNetworkEndpointGroups({ * zone: "us-central1-a", * filter: "networkEdpointType=GCE_VM_IP_PORT", * }); * ``` */ export declare function getNetworkEndpointGroups(args?: GetNetworkEndpointGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkEndpointGroupsResult>; /** * A collection of arguments for invoking getNetworkEndpointGroups. */ export interface GetNetworkEndpointGroupsArgs { /** * A filter expression that filters Network Endpoint Groups listed in the response. */ filter?: string; /** * The ID of the project to list Network Endpoint Groups in. If it is not provided, the provider project is used. */ project?: string; /** * The zone to list Network Endpoint Groups for. If `zone` is not specified, the provider-level zone must be set and is used * instead. */ zone?: string; } /** * A collection of values returned by getNetworkEndpointGroups. */ export interface GetNetworkEndpointGroupsResult { readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A list of all retrieved Network Endpoint Groups. For list of the attributes, see * the `gcp.compute.NetworkEndpointGroup` data source. */ readonly networkEndpointGroups: outputs.compute.GetNetworkEndpointGroupsNetworkEndpointGroup[]; readonly project?: string; readonly zone?: string; } /** * Use this data source to fetch a list of Network Endpoint Groups available in a * project and zone. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const negs = gcp.compute.getNetworkEndpointGroups({ * zone: "us-central1-a", * filter: "networkEdpointType=GCE_VM_IP_PORT", * }); * ``` */ export declare function getNetworkEndpointGroupsOutput(args?: GetNetworkEndpointGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkEndpointGroupsResult>; /** * A collection of arguments for invoking getNetworkEndpointGroups. */ export interface GetNetworkEndpointGroupsOutputArgs { /** * A filter expression that filters Network Endpoint Groups listed in the response. */ filter?: pulumi.Input<string | undefined>; /** * The ID of the project to list Network Endpoint Groups in. If it is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * The zone to list Network Endpoint Groups for. If `zone` is not specified, the provider-level zone must be set and is used * instead. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getNetworkEndpointGroups.d.ts.map