volcengine.vmp.Workspace
Explore with Pulumi AI
Provides a resource to manage vmp workspace
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.vmp.Workspace("foo", {
deleteProtectionEnabled: false,
description: "acc-test",
instanceTypeId: "vmp.standard.15d",
password: "Pass123456",
projectName: "default",
tags: [{
key: "k1",
value: "v1",
}],
username: "admin123",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.vmp.Workspace("foo",
delete_protection_enabled=False,
description="acc-test",
instance_type_id="vmp.standard.15d",
password="Pass123456",
project_name="default",
tags=[volcengine.vmp.WorkspaceTagArgs(
key="k1",
value="v1",
)],
username="admin123")
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 {
_, err := vmp.NewWorkspace(ctx, "foo", &vmp.WorkspaceArgs{
DeleteProtectionEnabled: pulumi.Bool(false),
Description: pulumi.String("acc-test"),
InstanceTypeId: pulumi.String("vmp.standard.15d"),
Password: pulumi.String("Pass123456"),
ProjectName: pulumi.String("default"),
Tags: vmp.WorkspaceTagArray{
&vmp.WorkspaceTagArgs{
Key: pulumi.String("k1"),
Value: pulumi.String("v1"),
},
},
Username: pulumi.String("admin123"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Vmp.Workspace("foo", new()
{
DeleteProtectionEnabled = false,
Description = "acc-test",
InstanceTypeId = "vmp.standard.15d",
Password = "Pass123456",
ProjectName = "default",
Tags = new[]
{
new Volcengine.Vmp.Inputs.WorkspaceTagArgs
{
Key = "k1",
Value = "v1",
},
},
Username = "admin123",
});
});
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.inputs.WorkspaceTagArgs;
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 foo = new Workspace("foo", WorkspaceArgs.builder()
.deleteProtectionEnabled(false)
.description("acc-test")
.instanceTypeId("vmp.standard.15d")
.password("Pass123456")
.projectName("default")
.tags(WorkspaceTagArgs.builder()
.key("k1")
.value("v1")
.build())
.username("admin123")
.build());
}
}
resources:
foo:
type: volcengine:vmp:Workspace
properties:
deleteProtectionEnabled: false
description: acc-test
instanceTypeId: vmp.standard.15d
password: Pass123456
projectName: default
tags:
- key: k1
value: v1
username: admin123
Create Workspace Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Workspace(name: string, args: WorkspaceArgs, opts?: CustomResourceOptions);
@overload
def Workspace(resource_name: str,
args: WorkspaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Workspace(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_type_id: Optional[str] = None,
delete_protection_enabled: Optional[bool] = None,
description: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[WorkspaceTagArgs]] = None,
username: Optional[str] = None)
func NewWorkspace(ctx *Context, name string, args WorkspaceArgs, opts ...ResourceOption) (*Workspace, error)
public Workspace(string name, WorkspaceArgs args, CustomResourceOptions? opts = null)
public Workspace(String name, WorkspaceArgs args)
public Workspace(String name, WorkspaceArgs args, CustomResourceOptions options)
type: volcengine:vmp:Workspace
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkspaceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var volcengineWorkspaceResource = new Volcengine.Vmp.Workspace("volcengineWorkspaceResource", new()
{
InstanceTypeId = "string",
DeleteProtectionEnabled = false,
Description = "string",
Name = "string",
Password = "string",
ProjectName = "string",
Tags = new[]
{
new Volcengine.Vmp.Inputs.WorkspaceTagArgs
{
Key = "string",
Value = "string",
},
},
Username = "string",
});
example, err := vmp.NewWorkspace(ctx, "volcengineWorkspaceResource", &vmp.WorkspaceArgs{
InstanceTypeId: pulumi.String("string"),
DeleteProtectionEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Password: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Tags: vmp.WorkspaceTagArray{
&vmp.WorkspaceTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Username: pulumi.String("string"),
})
var volcengineWorkspaceResource = new com.pulumi.volcengine.vmp.Workspace("volcengineWorkspaceResource", com.pulumi.volcengine.vmp.WorkspaceArgs.builder()
.instanceTypeId("string")
.deleteProtectionEnabled(false)
.description("string")
.name("string")
.password("string")
.projectName("string")
.tags(WorkspaceTagArgs.builder()
.key("string")
.value("string")
.build())
.username("string")
.build());
volcengine_workspace_resource = volcengine.vmp.Workspace("volcengineWorkspaceResource",
instance_type_id="string",
delete_protection_enabled=False,
description="string",
name="string",
password="string",
project_name="string",
tags=[{
"key": "string",
"value": "string",
}],
username="string")
const volcengineWorkspaceResource = new volcengine.vmp.Workspace("volcengineWorkspaceResource", {
instanceTypeId: "string",
deleteProtectionEnabled: false,
description: "string",
name: "string",
password: "string",
projectName: "string",
tags: [{
key: "string",
value: "string",
}],
username: "string",
});
type: volcengine:vmp:Workspace
properties:
deleteProtectionEnabled: false
description: string
instanceTypeId: string
name: string
password: string
projectName: string
tags:
- key: string
value: string
username: string
Workspace Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Workspace resource accepts the following input properties:
- Instance
Type stringId - The instance type id of the workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of the workspace.
- Name string
- The name of the workspace.
- Password string
- The password of the workspace.
- Project
Name string - The project name of the vmp workspace.
- List<Workspace
Tag> - Tags.
- Username string
- The username of the workspace.
- Instance
Type stringId - The instance type id of the workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of the workspace.
- Name string
- The name of the workspace.
- Password string
- The password of the workspace.
- Project
Name string - The project name of the vmp workspace.
- []Workspace
Tag Args - Tags.
- Username string
- The username of the workspace.
- instance
Type StringId - The instance type id of the workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of the workspace.
- name String
- The name of the workspace.
- password String
- The password of the workspace.
- project
Name String - The project name of the vmp workspace.
- List<Workspace
Tag> - Tags.
- username String
- The username of the workspace.
- instance
Type stringId - The instance type id of the workspace.
- delete
Protection booleanEnabled - Whether enable delete protection.
- description string
- The description of the workspace.
- name string
- The name of the workspace.
- password string
- The password of the workspace.
- project
Name string - The project name of the vmp workspace.
- Workspace
Tag[] - Tags.
- username string
- The username of the workspace.
- instance_
type_ strid - The instance type id of the workspace.
- delete_
protection_ boolenabled - Whether enable delete protection.
- description str
- The description of the workspace.
- name str
- The name of the workspace.
- password str
- The password of the workspace.
- project_
name str - The project name of the vmp workspace.
- Sequence[Workspace
Tag Args] - Tags.
- username str
- The username of the workspace.
- instance
Type StringId - The instance type id of the workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of the workspace.
- name String
- The name of the workspace.
- password String
- The password of the workspace.
- project
Name String - The project name of the vmp workspace.
- List<Property Map>
- Tags.
- username String
- The username of the workspace.
Outputs
All input properties are implicitly available as output properties. Additionally, the Workspace resource produces the following output properties:
- Create
Time string - The create time of workspace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- 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.
- Create
Time string - The create time of workspace.
- Id string
- The provider-assigned unique ID for this managed resource.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- 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.
- create
Time String - The create time of workspace.
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Reclaim StringTime - The overdue reclaim time.
- 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.
- create
Time string - The create time of workspace.
- id string
- The provider-assigned unique ID for this managed resource.
- overdue
Reclaim stringTime - The overdue reclaim time.
- 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.
- create_
time str - The create time of workspace.
- id str
- The provider-assigned unique ID for this managed resource.
- overdue_
reclaim_ strtime - The overdue reclaim time.
- 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.
- create
Time String - The create time of workspace.
- id String
- The provider-assigned unique ID for this managed resource.
- overdue
Reclaim StringTime - The overdue reclaim time.
- 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.
Look up Existing Workspace Resource
Get an existing Workspace resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: WorkspaceState, opts?: CustomResourceOptions): Workspace
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
delete_protection_enabled: Optional[bool] = None,
description: Optional[str] = None,
instance_type_id: Optional[str] = None,
name: Optional[str] = None,
overdue_reclaim_time: Optional[str] = None,
password: Optional[str] = None,
project_name: Optional[str] = None,
prometheus_push_intranet_endpoint: Optional[str] = None,
prometheus_query_intranet_endpoint: Optional[str] = None,
prometheus_write_intranet_endpoint: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Sequence[WorkspaceTagArgs]] = None,
username: Optional[str] = None) -> Workspace
func GetWorkspace(ctx *Context, name string, id IDInput, state *WorkspaceState, opts ...ResourceOption) (*Workspace, error)
public static Workspace Get(string name, Input<string> id, WorkspaceState? state, CustomResourceOptions? opts = null)
public static Workspace get(String name, Output<String> id, WorkspaceState state, CustomResourceOptions options)
resources: _: type: volcengine:vmp:Workspace get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Create
Time string - The create time of workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of the workspace.
- Instance
Type stringId - The instance type id of the workspace.
- Name string
- The name of the workspace.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- Password string
- The password of the workspace.
- Project
Name string - The project name of the 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<Workspace
Tag> - Tags.
- Username string
- The username of the workspace.
- Create
Time string - The create time of workspace.
- Delete
Protection boolEnabled - Whether enable delete protection.
- Description string
- The description of the workspace.
- Instance
Type stringId - The instance type id of the workspace.
- Name string
- The name of the workspace.
- Overdue
Reclaim stringTime - The overdue reclaim time.
- Password string
- The password of the workspace.
- Project
Name string - The project name of the 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.
- []Workspace
Tag Args - Tags.
- Username string
- The username of the workspace.
- create
Time String - The create time of workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of the workspace.
- instance
Type StringId - The instance type id of the workspace.
- name String
- The name of the workspace.
- overdue
Reclaim StringTime - The overdue reclaim time.
- password String
- The password of the workspace.
- project
Name String - The project name of the 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<Workspace
Tag> - Tags.
- username String
- The username of the workspace.
- create
Time string - The create time of workspace.
- delete
Protection booleanEnabled - Whether enable delete protection.
- description string
- The description of the workspace.
- instance
Type stringId - The instance type id of the workspace.
- name string
- The name of the workspace.
- overdue
Reclaim stringTime - The overdue reclaim time.
- password string
- The password of the workspace.
- project
Name string - The project name of the 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.
- Workspace
Tag[] - Tags.
- username string
- The username of the workspace.
- create_
time str - The create time of workspace.
- delete_
protection_ boolenabled - Whether enable delete protection.
- description str
- The description of the workspace.
- instance_
type_ strid - The instance type id of the workspace.
- name str
- The name of the workspace.
- overdue_
reclaim_ strtime - The overdue reclaim time.
- password str
- The password of the workspace.
- project_
name str - The project name of the 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[Workspace
Tag Args] - Tags.
- username str
- The username of the workspace.
- create
Time String - The create time of workspace.
- delete
Protection BooleanEnabled - Whether enable delete protection.
- description String
- The description of the workspace.
- instance
Type StringId - The instance type id of the workspace.
- name String
- The name of the workspace.
- overdue
Reclaim StringTime - The overdue reclaim time.
- password String
- The password of the workspace.
- project
Name String - The project name of the 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>
- Tags.
- username String
- The username of the workspace.
Supporting Types
WorkspaceTag, WorkspaceTagArgs
Import
Workspace can be imported using the id, e.g.
$ pulumi import volcengine:vmp/workspace:Workspace default 60dde3ca-951c-4c05-8777-e5a7caa07ad6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.