UNPKG

@pulumi/gcp

Version:

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

95 lines 3.29 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get a list of Instance Groups within GCE. For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const all = gcp.compute.getInstanceGroups({ * zone: "us-central1-a", * }); * ``` */ export declare function getInstanceGroups(args?: GetInstanceGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceGroupsResult>; /** * A collection of arguments for invoking getInstanceGroups. */ export interface GetInstanceGroupsArgs { /** * A string filter as defined in the [REST API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceGroups/list#query-parameters). */ filter?: string; /** * The ID of the project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: string; /** * The zone of the instance groups. If * it is not provided, the provider zone is used. */ zone?: string; } /** * A collection of values returned by getInstanceGroups. */ export interface GetInstanceGroupsResult { readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A list of all retrieved GCE instance groups. Structure is defined below. */ readonly instanceGroups: outputs.compute.GetInstanceGroupsInstanceGroup[]; /** * The ID of the project in which the resource belongs. */ readonly project?: string; /** * The zone of the instance group. */ readonly zone?: string; } /** * Get a list of Instance Groups within GCE. For more information, see [the official documentation](https://cloud.google.com/compute/docs/instance-groups/#unmanaged_instance_groups) * and [API](https://cloud.google.com/compute/docs/reference/latest/instanceGroups). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const all = gcp.compute.getInstanceGroups({ * zone: "us-central1-a", * }); * ``` */ export declare function getInstanceGroupsOutput(args?: GetInstanceGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceGroupsResult>; /** * A collection of arguments for invoking getInstanceGroups. */ export interface GetInstanceGroupsOutputArgs { /** * A string filter as defined in the [REST API](https://cloud.google.com/compute/docs/reference/rest/v1/instanceGroups/list#query-parameters). */ filter?: pulumi.Input<string | undefined>; /** * The ID of the project in which the resource belongs. If it * is not provided, the provider project is used. */ project?: pulumi.Input<string | undefined>; /** * The zone of the instance groups. If * it is not provided, the provider zone is used. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getInstanceGroups.d.ts.map