UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

147 lines (146 loc) 3.94 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of vmp workspaces * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", { * instanceTypeId: "vmp.standard.15d", * deleteProtectionEnabled: false, * description: "acc-test-1", * username: "admin123", * password: "*******", * }); * const fooWorkspaces = volcengine.vmp.getWorkspacesOutput({ * ids: [fooWorkspace.id], * }); * ``` */ export declare function getWorkspaces(args?: GetWorkspacesArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkspacesResult>; /** * A collection of arguments for invoking getWorkspaces. */ export interface GetWorkspacesArgs { /** * A list of Workspace IDs. */ ids?: string[]; /** * A list of Instance Type IDs. */ instanceTypeIds?: string[]; /** * The name of workspace. */ name?: string; /** * File name where to save data source results. */ outputFile?: string; /** * The project name of vmp workspace. */ projectName?: string; /** * A list of Workspace status. */ statuses?: string[]; /** * The tags of vmp workspace. */ tags?: inputs.vmp.GetWorkspacesTag[]; } /** * A collection of values returned by getWorkspaces. */ export interface GetWorkspacesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly instanceTypeIds?: string[]; /** * The name of workspace. */ readonly name?: string; readonly outputFile?: string; /** * The project name of vmp workspace. */ readonly projectName?: string; readonly statuses?: string[]; /** * Tags. */ readonly tags?: outputs.vmp.GetWorkspacesTag[]; /** * The total count of query. */ readonly totalCount: number; /** * The collection of query. */ readonly workspaces: outputs.vmp.GetWorkspacesWorkspace[]; } /** * Use this data source to query detailed information of vmp workspaces * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooWorkspace = new volcengine.vmp.Workspace("fooWorkspace", { * instanceTypeId: "vmp.standard.15d", * deleteProtectionEnabled: false, * description: "acc-test-1", * username: "admin123", * password: "*******", * }); * const fooWorkspaces = volcengine.vmp.getWorkspacesOutput({ * ids: [fooWorkspace.id], * }); * ``` */ export declare function getWorkspacesOutput(args?: GetWorkspacesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWorkspacesResult>; /** * A collection of arguments for invoking getWorkspaces. */ export interface GetWorkspacesOutputArgs { /** * A list of Workspace IDs. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * A list of Instance Type IDs. */ instanceTypeIds?: pulumi.Input<pulumi.Input<string>[]>; /** * The name of workspace. */ name?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project name of vmp workspace. */ projectName?: pulumi.Input<string>; /** * A list of Workspace status. */ statuses?: pulumi.Input<pulumi.Input<string>[]>; /** * The tags of vmp workspace. */ tags?: pulumi.Input<pulumi.Input<inputs.vmp.GetWorkspacesTagArgs>[]>; }