Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
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 getWorkspaces
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 getWorkspaces(args: GetWorkspacesArgs, opts?: InvokeOptions): Promise<GetWorkspacesResult>
function getWorkspacesOutput(args: GetWorkspacesOutputArgs, opts?: InvokeOptions): Output<GetWorkspacesResult>def get_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[GetWorkspacesTag]] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkspacesResult
def get_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[GetWorkspacesTagArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWorkspacesResult]func GetWorkspaces(ctx *Context, args *GetWorkspacesArgs, opts ...InvokeOption) (*GetWorkspacesResult, error)
func GetWorkspacesOutput(ctx *Context, args *GetWorkspacesOutputArgs, opts ...InvokeOption) GetWorkspacesResultOutput> Note: This function is named GetWorkspaces in the Go SDK.
public static class GetWorkspaces
{
public static Task<GetWorkspacesResult> InvokeAsync(GetWorkspacesArgs args, InvokeOptions? opts = null)
public static Output<GetWorkspacesResult> Invoke(GetWorkspacesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetWorkspacesResult> getWorkspaces(GetWorkspacesArgs args, InvokeOptions options)
public static Output<GetWorkspacesResult> getWorkspaces(GetWorkspacesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp/getWorkspaces:getWorkspaces
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<Get
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.
-
[]Get
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<Get
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.
-
Get
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[Get
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.
getWorkspaces 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<Get
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<Get
Workspaces Tag> - Tags.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Workspaces
[]Get
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
-
[]Get
Workspaces Tag - Tags.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- workspaces
List<Get
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<Get
Workspaces Tag> - Tags.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- workspaces
Get
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[]
-
Get
Workspaces Tag[] - Tags.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- workspaces
Sequence[Get
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[Get
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
GetWorkspacesTag
GetWorkspacesWorkspace
- 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<Get
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.
-
[]Get
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<Get
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.
-
Get
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[Get
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.
GetWorkspacesWorkspaceTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
