title: "Service" title_tag: "huaweicloud.Workspace.Service" meta_desc: "Documentation for the huaweicloud.Workspace.Service resource with examples, input properties, output properties, lookup functions, and supporting types." layout: api no_edit_this_page: true
Use this resource to register or unregister the Workspace service in HuaweiCloud.
Appendix
If a firewall is deployed between Windows AD and the Workspace service, you need to open the following ports on the firewall for the desktops of Workspace service to connect to Windows AD or DNS:
Protocol | Ports | Usage |
---|---|---|
TCP | 135 | RPC protocol (required for LDAP, Distributed File System, and Distributed File Replication) |
UDP | 137 | NetBIOS name resolution (required by the network login service) |
UDP | 138 | NetBIOS datagram service (distributed file system, network login and other services need to use this port) |
TCP | 139 | NetBIOS-SSN Service (Network Basic I/O Interface) |
TCP | 445 | NetBIOS-SSN Service (Network Basic I/O Interface) |
UDP | 445 | NetBIOS-SSN Service (Network Basic I/O Interface) |
TCP | 49152-65535 | RPC dynamic ports (ports that are not hardened and open by AD. If AD is hardened, ports 50152-51151 need to be opened) |
UDP | 49152-65535 | RPC dynamic ports (ports that are not hardened and open by AD. If AD is hardened, ports 50152-51151 need to be opened) |
TCP | 88 | Kerberos Key Distribution Center Service |
UDP | 88 | Kerberos Key Distribution Center Service |
UDP | 123 | Port used by NTP service |
TCP | 389 | LDAP server |
UDP | 389 | LDAP server |
TCP | 464 | Kerberos authentication protocol |
UDP | 464 | Kerberos Authentication Protocol |
UDP | 500 | isakmp |
TCP | 593 | RPC over HTTP |
TCP | 636 | LDAP SSL |
TCP | 53 | DNS server |
UDP | 53 | DNS server |
Register the Workspace service and use local authentication
using System.Collections.Generic;
using Pulumi;
using Huaweicloud = Pulumi.Huaweicloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var vpcId = config.RequireObject<dynamic>("vpcId");
var networkIds = config.RequireObject<dynamic>("networkIds");
var test = new Huaweicloud.Workspace.Service("test", new()
{
AccessMode = "INTERNET",
VpcId = vpcId,
NetworkIds = networkIds,
});
});
package main
import (
"github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Workspace"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
vpcId := cfg.RequireObject("vpcId")
networkIds := cfg.Require("networkIds")
_, err := Workspace.NewService(ctx, "test", &Workspace.ServiceArgs{
AccessMode: pulumi.String("INTERNET"),
VpcId: pulumi.Any(vpcId),
NetworkIds: networkIds,
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.huaweicloud.Workspace.Service;
import com.pulumi.huaweicloud.Workspace.ServiceArgs;
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) {
final var config = ctx.config();
final var vpcId = config.get("vpcId");
final var networkIds = config.get("networkIds");
var test = new Service("test", ServiceArgs.builder()
.accessMode("INTERNET")
.vpcId(vpcId)
.networkIds(networkIds)
.build());
}
}
import pulumi
import pulumi_huaweicloud as huaweicloud
config = pulumi.Config()
vpc_id = config.require_object("vpcId")
network_ids = config.require_object("networkIds")
test = huaweicloud.workspace.Service("test",
access_mode="INTERNET",
vpc_id=vpc_id,
network_ids=network_ids)
import * as pulumi from "@pulumi/pulumi";
import * as pulumi from "@huaweicloudos/pulumi";
const config = new pulumi.Config();
const vpcId = config.requireObject("vpcId");
const networkIds = config.requireObject("networkIds");
const test = new huaweicloud.workspace.Service("test", {
accessMode: "INTERNET",
vpcId: vpcId,
networkIds: networkIds,
});
configuration:
vpcId:
type: dynamic
networkIds:
type: list(string)
resources:
test:
type: huaweicloud:Workspace:Service
properties:
accessMode: INTERNET
vpcId: ${vpcId}
networkIds: ${networkIds}
Create Service Resource {#create}
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
ad_domain: Optional[_workspace.ServiceAdDomainArgs] = None,
auth_type: Optional[str] = None,
dedicated_subnets: Optional[Sequence[str]] = None,
enterprise_id: Optional[str] = None,
internet_access_port: Optional[int] = None,
management_subnet_cidr: Optional[str] = None,
network_ids: Optional[Sequence[str]] = None,
region: Optional[str] = None,
vpc_id: Optional[str] = None)
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: huaweicloud:Workspace:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties {#properties}
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Service resource accepts the following input properties:
-
Access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
Network
Ids List<string> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
Vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
Ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
Auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
Dedicated
Subnets List<string> The subnet segments of the dedicated access.
-
Enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
Internet
Access intPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
Management
Subnet stringCidr The subnet segment of the management component.
- Region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
-
Access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
Network
Ids []string The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
Vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
Ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
Auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
Dedicated
Subnets []string The subnet segments of the dedicated access.
-
Enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
Internet
Access intPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
Management
Subnet stringCidr The subnet segment of the management component.
- Region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
-
access
Mode String Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
network
Ids List<String> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
vpc
Id String Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type String Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets List<String> The subnet segments of the dedicated access.
-
enterprise
Id String Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
internet
Access IntegerPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet StringCidr The subnet segment of the management component.
- region String
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
-
access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
network
Ids string[] The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets string[] The subnet segments of the dedicated access.
-
enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
internet
Access numberPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet stringCidr The subnet segment of the management component.
- region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
-
access_
mode str Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
network_
ids Sequence[str] The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
vpc_
id str Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
ad_
domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth_
type str Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated_
subnets Sequence[str] The subnet segments of the dedicated access.
-
enterprise_
id str Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
internet_
access_ intport Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management_
subnet_ strcidr The subnet segment of the management component.
- region str
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
-
access
Mode String Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
network
Ids List<String> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.-
vpc
Id String Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
ad
Domain Property Map Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type String Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets List<String> The subnet segments of the dedicated access.
-
enterprise
Id String Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
internet
Access NumberPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet StringCidr The subnet segment of the management component.
- region String
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
-
Desktop
Security List<ServiceGroups Desktop Security Group> The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
-
Infrastructure
Security List<ServiceGroups Infrastructure Security Group> The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- Status string
The current status of the Workspace service.
-
Desktop
Security []ServiceGroups Desktop Security Group The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- Id string
The provider-assigned unique ID for this managed resource.
-
Infrastructure
Security []ServiceGroups Infrastructure Security Group The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- Status string
The current status of the Workspace service.
-
desktop
Security List<ServiceGroups Desktop Security Group> The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- id String
The provider-assigned unique ID for this managed resource.
-
infrastructure
Security List<ServiceGroups Infrastructure Security Group> The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access StringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- status String
The current status of the Workspace service.
-
desktop
Security ServiceGroups Desktop Security Group[] The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- id string
The provider-assigned unique ID for this managed resource.
-
infrastructure
Security ServiceGroups Infrastructure Security Group[] The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- status string
The current status of the Workspace service.
-
desktop_
security_ Servicegroups Desktop Security Group] The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- id str
The provider-assigned unique ID for this managed resource.
-
infrastructure_
security_ Servicegroups Infrastructure Security Group] The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet_
access_ straddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- status str
The current status of the Workspace service.
-
desktop
Security List<Property Map>Groups The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
- id String
The provider-assigned unique ID for this managed resource.
-
infrastructure
Security List<Property Map>Groups The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access StringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
- status String
The current status of the Workspace service.
Look up Existing Service Resource {#look-up}
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Service
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
ad_domain: Optional[_workspace.ServiceAdDomainArgs] = None,
auth_type: Optional[str] = None,
dedicated_subnets: Optional[Sequence[str]] = None,
desktop_security_groups: Optional[Sequence[_workspace.ServiceDesktopSecurityGroupArgs]] = None,
enterprise_id: Optional[str] = None,
infrastructure_security_groups: Optional[Sequence[_workspace.ServiceInfrastructureSecurityGroupArgs]] = None,
internet_access_address: Optional[str] = None,
internet_access_port: Optional[int] = None,
management_subnet_cidr: Optional[str] = None,
network_ids: Optional[Sequence[str]] = None,
region: Optional[str] = None,
status: Optional[str] = None,
vpc_id: Optional[str] = None) -> Service
func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
-
Access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
Ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
Auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
Dedicated
Subnets List<string> The subnet segments of the dedicated access.
-
Desktop
Security List<ServiceGroups Desktop Security Group Args> The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
Infrastructure
Security List<ServiceGroups Infrastructure Security Group Args> The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
Internet
Access intPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
Management
Subnet stringCidr The subnet segment of the management component.
-
Network
Ids List<string> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- Region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- Status string
The current status of the Workspace service.
-
Vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
Access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
Ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
Auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
Dedicated
Subnets []string The subnet segments of the dedicated access.
-
Desktop
Security []ServiceGroups Desktop Security Group Args The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
Infrastructure
Security []ServiceGroups Infrastructure Security Group Args The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
Internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
Internet
Access intPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
Management
Subnet stringCidr The subnet segment of the management component.
-
Network
Ids []string The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- Region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- Status string
The current status of the Workspace service.
-
Vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
access
Mode String Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type String Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets List<String> The subnet segments of the dedicated access.
-
desktop
Security List<ServiceGroups Desktop Security Group Args> The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
enterprise
Id String Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
infrastructure
Security List<ServiceGroups Infrastructure Security Group Args> The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access StringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
internet
Access IntegerPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet StringCidr The subnet segment of the management component.
-
network
Ids List<String> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- region String
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- status String
The current status of the Workspace service.
-
vpc
Id String Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
access
Mode string Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
ad
Domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type string Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets string[] The subnet segments of the dedicated access.
-
desktop
Security ServiceGroups Desktop Security Group Args[] The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
enterprise
Id string Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
infrastructure
Security ServiceGroups Infrastructure Security Group Args[] The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access stringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
internet
Access numberPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet stringCidr The subnet segment of the management component.
-
network
Ids string[] The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- region string
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- status string
The current status of the Workspace service.
-
vpc
Id string Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
access_
mode str Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
ad_
domain ServiceAd Domain Args Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth_
type str Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated_
subnets Sequence[str] The subnet segments of the dedicated access.
-
desktop_
security_ Servicegroups Desktop Security Group Args] The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
enterprise_
id str Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
infrastructure_
security_ Servicegroups Infrastructure Security Group Args] The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet_
access_ straddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
internet_
access_ intport Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management_
subnet_ strcidr The subnet segment of the management component.
-
network_
ids Sequence[str] The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- region str
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- status str
The current status of the Workspace service.
-
vpc_
id str Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
-
access
Mode String Specifies the access mode of Workspace service. The valid values are as follows:
- INTERNET: internet access.
- DEDICATED: dedicated line access.
- BOTH: both internet access and dedicated access are supported.
-
ad
Domain Property Map Specifies the configuration of AD domain. Required if
auth_type
is LOCAL_AD. Make sure that the selected VPC network and the network to which AD belongs can be connected. The object structure is documented below.-
auth
Type String Specifies the authentication type of Workspace service. The valid values are as follows:
- LITE_AS: Local authentication.
- LOCAL_AD: Connect to AD domain.
-
dedicated
Subnets List<String> The subnet segments of the dedicated access.
-
desktop
Security List<Property Map>Groups The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
enterprise
Id String Specifies the enterprise ID. The enterprise ID is the unique identification in the Workspace service. If omitted, the system will automatically generate an enterprise ID. The ID can contain
1
to32
characters, only letters, digits, hyphens (-) and underscores (_) are allowed.-
infrastructure
Security List<Property Map>Groups The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.
-
internet
Access StringAddress The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.
-
internet
Access NumberPort Specifies the internet access port. The valid value is range from
1,025
to65,535
.-
management
Subnet StringCidr The subnet segment of the management component.
-
network
Ids List<String> The network ID list of subnets that the service have. The subnets corresponding to this parameter must be included in the VPC resource corresponding to
vpc_id
. These subnet segments cannot conflict with172.16.0.0/12
.- region String
The region in which to register the Workspace service. If omitted, the provider-level region will be used. Changing this will create a new resource.
- status String
The current status of the Workspace service.
-
vpc
Id String Specifies the VPC ID to which the service belongs. Changing this will create a new resource.
Supporting Types
ServiceAdDomain
-
Active
Domain stringIp Specifies the IP address of primary domain controller.
-
Active
Domain stringName Specifies the name of primary domain controller.
-
Admin
Account string Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- Name string
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- Password string
Specifies the account password of domain administrator.
-
Active
Dns stringIp Specifies the primary DNS IP address.
-
Delete
Computer boolObject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
Standby
Dns stringIp Specifies the standby DNS IP address.
-
Standby
Domain stringIp Specifies the IP address of the standby domain controller.
-
Standby
Domain stringName Specifies the name of the standby domain controller.
-
Active
Domain stringIp Specifies the IP address of primary domain controller.
-
Active
Domain stringName Specifies the name of primary domain controller.
-
Admin
Account string Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- Name string
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- Password string
Specifies the account password of domain administrator.
-
Active
Dns stringIp Specifies the primary DNS IP address.
-
Delete
Computer boolObject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
Standby
Dns stringIp Specifies the standby DNS IP address.
-
Standby
Domain stringIp Specifies the IP address of the standby domain controller.
-
Standby
Domain stringName Specifies the name of the standby domain controller.
-
active
Domain StringIp Specifies the IP address of primary domain controller.
-
active
Domain StringName Specifies the name of primary domain controller.
-
admin
Account String Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- name String
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- password String
Specifies the account password of domain administrator.
-
active
Dns StringIp Specifies the primary DNS IP address.
-
delete
Computer BooleanObject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
standby
Dns StringIp Specifies the standby DNS IP address.
-
standby
Domain StringIp Specifies the IP address of the standby domain controller.
-
standby
Domain StringName Specifies the name of the standby domain controller.
-
active
Domain stringIp Specifies the IP address of primary domain controller.
-
active
Domain stringName Specifies the name of primary domain controller.
-
admin
Account string Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- name string
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- password string
Specifies the account password of domain administrator.
-
active
Dns stringIp Specifies the primary DNS IP address.
-
delete
Computer booleanObject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
standby
Dns stringIp Specifies the standby DNS IP address.
-
standby
Domain stringIp Specifies the IP address of the standby domain controller.
-
standby
Domain stringName Specifies the name of the standby domain controller.
-
active_
domain_ strip Specifies the IP address of primary domain controller.
-
active_
domain_ strname Specifies the name of primary domain controller.
-
admin_
account str Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- name str
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- password str
Specifies the account password of domain administrator.
-
active_
dns_ strip Specifies the primary DNS IP address.
-
delete_
computer_ boolobject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
standby_
dns_ strip Specifies the standby DNS IP address.
-
standby_
domain_ strip Specifies the IP address of the standby domain controller.
-
standby_
domain_ strname Specifies the name of the standby domain controller.
-
active
Domain StringIp Specifies the IP address of primary domain controller.
-
active
Domain StringName Specifies the name of primary domain controller.
-
admin
Account String Specifies the domain administrator account. It must be an existing domain administrator account on the AD server.
- name String
Specifies the domain name. The domain name must be an existing domain name on the AD server, and the length cannot exceed
55
.- password String
Specifies the account password of domain administrator.
-
active
Dns StringIp Specifies the primary DNS IP address.
-
delete
Computer BooleanObject Specifies whether to delete the corresponding computer object on AD while deleting the desktop.
-
standby
Dns StringIp Specifies the standby DNS IP address.
-
standby
Domain StringIp Specifies the IP address of the standby domain controller.
-
standby
Domain StringName Specifies the name of the standby domain controller.
ServiceDesktopSecurityGroup
ServiceInfrastructureSecurityGroup
Import
Service can be imported using the id
, e.g.
$ pulumi import huaweicloud:Workspace/service:Service test fd3f81cb-d95f-43ce-b342-81b6b5dcadda
Package Details
- Repository
- https://github.com/huaweicloud/pulumi-huaweicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
huaweicloud
Terraform Provider.