Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.vmp.Workspaces has been deprecated in favor of volcengine.vmp.getWorkspaces
Use this data source to query detailed information of vmp workspaces
Example Usage
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],
});
import pulumi
import pulumi_volcengine as volcengine
foo_workspace = volcengine.vmp.Workspace("fooWorkspace",
instance_type_id="vmp.standard.15d",
delete_protection_enabled=False,
description="acc-test-1",
username="admin123",
password="*******")
foo_workspaces = volcengine.vmp.get_workspaces_output(ids=[foo_workspace.id])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
fooWorkspace, err := vmp.NewWorkspace(ctx, "fooWorkspace", &vmp.WorkspaceArgs{
InstanceTypeId: pulumi.String("vmp.standard.15d"),
DeleteProtectionEnabled: pulumi.Bool(false),
Description: pulumi.String("acc-test-1"),
Username: pulumi.String("admin123"),
Password: pulumi.String("*******"),
})
if err != nil {
return err
}
_ = vmp.GetWorkspacesOutput(ctx, vmp.GetWorkspacesOutputArgs{
Ids: pulumi.StringArray{
fooWorkspace.ID(),
},
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var fooWorkspace = new Volcengine.Vmp.Workspace("fooWorkspace", new()
{
InstanceTypeId = "vmp.standard.15d",
DeleteProtectionEnabled = false,
Description = "acc-test-1",
Username = "admin123",
Password = "*******",
});
var fooWorkspaces = Volcengine.Vmp.GetWorkspaces.Invoke(new()
{
Ids = new[]
{
fooWorkspace.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.Workspace;
import com.pulumi.volcengine.vmp.WorkspaceArgs;
import com.pulumi.volcengine.vmp.VmpFunctions;
import com.pulumi.volcengine.vmp.inputs.GetWorkspacesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var fooWorkspace = new Workspace("fooWorkspace", WorkspaceArgs.builder()
.instanceTypeId("vmp.standard.15d")
.deleteProtectionEnabled(false)
.description("acc-test-1")
.username("admin123")
.password("*******")
.build());
final var fooWorkspaces = VmpFunctions.getWorkspaces(GetWorkspacesArgs.builder()
.ids(fooWorkspace.id())
.build());
}
}
resources:
fooWorkspace:
type: volcengine:vmp:Workspace
properties:
instanceTypeId: vmp.standard.15d
deleteProtectionEnabled: false
description: acc-test-1
username: admin123
password: '*******'
variables:
fooWorkspaces:
fn::invoke:
Function: volcengine:vmp:getWorkspaces
Arguments:
ids:
- ${fooWorkspace.id}
Using Workspaces
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function workspaces(args: WorkspacesArgs, opts?: InvokeOptions): Promise<WorkspacesResult>
function workspacesOutput(args: WorkspacesOutputArgs, opts?: InvokeOptions): Output<WorkspacesResult>def workspaces(ids: Optional[Sequence[str]] = None,
instance_type_ids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
statuses: Optional[Sequence[str]] = None,
tags: Optional[Sequence[WorkspacesTag]] = None,
opts: Optional[InvokeOptions] = None) -> WorkspacesResult
def workspaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
instance_type_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[WorkspacesTagArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[WorkspacesResult]func Workspaces(ctx *Context, args *WorkspacesArgs, opts ...InvokeOption) (*WorkspacesResult, error)
func WorkspacesOutput(ctx *Context, args *WorkspacesOutputArgs, opts ...InvokeOption) WorkspacesResultOutputpublic static class Workspaces
{
public static Task<WorkspacesResult> InvokeAsync(WorkspacesArgs args, InvokeOptions? opts = null)
public static Output<WorkspacesResult> Invoke(WorkspacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<WorkspacesResult> workspaces(WorkspacesArgs args, InvokeOptions options)
public static Output<WorkspacesResult> workspaces(WorkspacesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp:Workspaces
arguments:
# arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of Workspace IDs.
- Instance
Type List<string>Ids - A list of Instance Type IDs.
- Name string
- The name of workspace.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of vmp workspace.
- Statuses List<string>
- A list of Workspace status.
-
List<Workspaces
Tag> - The tags of vmp workspace.
- Ids []string
- A list of Workspace IDs.
- Instance
Type []stringIds - A list of Instance Type IDs.
- Name string
- The name of workspace.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of vmp workspace.
- Statuses []string
- A list of Workspace status.
-
[]Workspaces
Tag - The tags of vmp workspace.
- ids List<String>
- A list of Workspace IDs.
- instance
Type List<String>Ids - A list of Instance Type IDs.
- name String
- The name of workspace.
- output
File String - File name where to save data source results.
- project
Name String - The project name of vmp workspace.
- statuses List<String>
- A list of Workspace status.
-
List<Workspaces
Tag> - The tags of vmp workspace.
- ids string[]
- A list of Workspace IDs.
- instance
Type string[]Ids - A list of Instance Type IDs.
- name string
- The name of workspace.
- output
File string - File name where to save data source results.
- project
Name string - The project name of vmp workspace.
- statuses string[]
- A list of Workspace status.
-
Workspaces
Tag[] - The tags of vmp workspace.
- ids Sequence[str]
- A list of Workspace IDs.
- instance_
type_ Sequence[str]ids - A list of Instance Type IDs.
- name str
- The name of workspace.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of vmp workspace.
- statuses Sequence[str]
- A list of Workspace status.
-
Sequence[Workspaces
Tag] - The tags of vmp workspace.
- ids List<String>
- A list of Workspace IDs.
- instance
Type List<String>Ids - A list of Instance Type IDs.
- name String
- The name of workspace.
- output
File String - File name where to save data source results.
- project
Name String - The project name of vmp workspace.
- statuses List<String>
- A list of Workspace status.
- List<Property Map>
- The tags of vmp workspace.
Workspaces Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Workspaces
List<Workspaces
Workspace> - The collection of query.
- Ids List<string>
- Instance
Type List<string>Ids - Name string
- The name of workspace.
- Output
File string - Project
Name string - The project name of vmp workspace.
- Statuses List<string>
-
List<Workspaces
Tag> - Tags.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Workspaces
[]Workspaces
Workspace - The collection of query.
- Ids []string
- Instance
Type []stringIds - Name string
- The name of workspace.
- Output
File string - Project
Name string - The project name of vmp workspace.
- Statuses []string
-
[]Workspaces
Tag - Tags.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- workspaces
List<Workspaces
Workspace> - The collection of query.
- ids List<String>
- instance
Type List<String>Ids - name String
- The name of workspace.
- output
File String - project
Name String - The project name of vmp workspace.
- statuses List<String>
-
List<Workspaces
Tag> - Tags.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- workspaces
Workspaces
Workspace[] - The collection of query.
- ids string[]
- instance
Type string[]Ids - name string
- The name of workspace.
- output
File string - project
Name string - The project name of vmp workspace.
- statuses string[]
-
Workspaces
Tag[] - Tags.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- workspaces
Sequence[Workspaces
Workspace] - The collection of query.
- ids Sequence[str]
- instance_
type_ Sequence[str]ids - name str
- The name of workspace.
- output_
file str - project_
name str - The project name of vmp workspace.
- statuses Sequence[str]
-
Sequence[Workspaces
Tag] - Tags.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- workspaces List<Property Map>
- The collection of query.
- ids List<String>
- instance
Type List<String>Ids - name String
- The name of workspace.
- output
File String - project
Name String - The project name of vmp workspace.
- statuses List<String>
- List<Property Map>
- Tags.
Supporting Types
WorkspacesTag
WorkspacesWorkspace
- Create
Time string - The create time of workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of workspace.
- Id string
- The ID of workspace.
- Instance
Type stringId - The id of instance type.
- Name string
- The name of workspace.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- Project
Name string - The project name of vmp workspace.
- Prometheus
Push stringIntranet Endpoint - The prometheus push intranet endpoint.
- Prometheus
Query stringIntranet Endpoint - The prometheus query intranet endpoint.
- Prometheus
Write stringIntranet Endpoint - The prometheus write intranet endpoint.
- Status string
- The status of workspace.
-
List<Workspaces
Workspace Tag> - The tags of vmp workspace.
- Username string
- The username of workspace.
- Create
Time string - The create time of workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of workspace.
- Id string
- The ID of workspace.
- Instance
Type stringId - The id of instance type.
- Name string
- The name of workspace.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- Project
Name string - The project name of vmp workspace.
- Prometheus
Push stringIntranet Endpoint - The prometheus push intranet endpoint.
- Prometheus
Query stringIntranet Endpoint - The prometheus query intranet endpoint.
- Prometheus
Write stringIntranet Endpoint - The prometheus write intranet endpoint.
- Status string
- The status of workspace.
-
[]Workspaces
Workspace Tag - The tags of vmp workspace.
- Username string
- The username of workspace.
- create
Time String - The create time of workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of workspace.
- id String
- The ID of workspace.
- instance
Type StringId - The id of instance type.
- name String
- The name of workspace.
- overdue
Reclaim StringTime - The overdue reclaim time.
- project
Name String - The project name of vmp workspace.
- prometheus
Push StringIntranet Endpoint - The prometheus push intranet endpoint.
- prometheus
Query StringIntranet Endpoint - The prometheus query intranet endpoint.
- prometheus
Write StringIntranet Endpoint - The prometheus write intranet endpoint.
- status String
- The status of workspace.
-
List<Workspaces
Workspace Tag> - The tags of vmp workspace.
- username String
- The username of workspace.
- create
Time string - The create time of workspace.
- delete
Protection booleanEnabled - Whether enable delete protection.
- description string
- The description of workspace.
- id string
- The ID of workspace.
- instance
Type stringId - The id of instance type.
- name string
- The name of workspace.
- overdue
Reclaim stringTime - The overdue reclaim time.
- project
Name string - The project name of vmp workspace.
- prometheus
Push stringIntranet Endpoint - The prometheus push intranet endpoint.
- prometheus
Query stringIntranet Endpoint - The prometheus query intranet endpoint.
- prometheus
Write stringIntranet Endpoint - The prometheus write intranet endpoint.
- status string
- The status of workspace.
-
Workspaces
Workspace Tag[] - The tags of vmp workspace.
- username string
- The username of workspace.
- create_
time str - The create time of workspace.
- delete_
protection_ boolenabled - Whether enable delete protection.
- description str
- The description of workspace.
- id str
- The ID of workspace.
- instance_
type_ strid - The id of instance type.
- name str
- The name of workspace.
- overdue_
reclaim_ strtime - The overdue reclaim time.
- project_
name str - The project name of vmp workspace.
- prometheus_
push_ strintranet_ endpoint - The prometheus push intranet endpoint.
- prometheus_
query_ strintranet_ endpoint - The prometheus query intranet endpoint.
- prometheus_
write_ strintranet_ endpoint - The prometheus write intranet endpoint.
- status str
- The status of workspace.
-
Sequence[Workspaces
Workspace Tag] - The tags of vmp workspace.
- username str
- The username of workspace.
- create
Time String - The create time of workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of workspace.
- id String
- The ID of workspace.
- instance
Type StringId - The id of instance type.
- name String
- The name of workspace.
- overdue
Reclaim StringTime - The overdue reclaim time.
- project
Name String - The project name of vmp workspace.
- prometheus
Push StringIntranet Endpoint - The prometheus push intranet endpoint.
- prometheus
Query StringIntranet Endpoint - The prometheus query intranet endpoint.
- prometheus
Write StringIntranet Endpoint - The prometheus write intranet endpoint.
- status String
- The status of workspace.
- List<Property Map>
- The tags of vmp workspace.
- username String
- The username of workspace.
WorkspacesWorkspaceTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
