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
## Example Usage

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:

AccessMode 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.
NetworkIds 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 with 172.16.0.0/12.

VpcId string

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

AdDomain ServiceAdDomainArgs

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.

AuthType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
DedicatedSubnets List<string>

The subnet segments of the dedicated access.

EnterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

InternetAccessPort int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

ManagementSubnetCidr string

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.

AccessMode 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.
NetworkIds []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 with 172.16.0.0/12.

VpcId string

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

AdDomain ServiceAdDomainArgs

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.

AuthType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
DedicatedSubnets []string

The subnet segments of the dedicated access.

EnterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

InternetAccessPort int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

ManagementSubnetCidr string

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.

accessMode 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.
networkIds 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 with 172.16.0.0/12.

vpcId String

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

adDomain ServiceAdDomainArgs

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.

authType String

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets List<String>

The subnet segments of the dedicated access.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

internetAccessPort Integer

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr String

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.

accessMode 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.
networkIds 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 with 172.16.0.0/12.

vpcId string

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

adDomain ServiceAdDomainArgs

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.

authType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets string[]

The subnet segments of the dedicated access.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

internetAccessPort number

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr string

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 with 172.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 ServiceAdDomainArgs

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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

internet_access_port int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

management_subnet_cidr str

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.

accessMode 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.
networkIds 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 with 172.16.0.0/12.

vpcId String

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

adDomain 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.

authType String

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets List<String>

The subnet segments of the dedicated access.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

internetAccessPort Number

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr String

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:

DesktopSecurityGroups List<ServiceDesktopSecurityGroup>

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.

InfrastructureSecurityGroups List<ServiceInfrastructureSecurityGroup>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

InternetAccessAddress string

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.

DesktopSecurityGroups []ServiceDesktopSecurityGroup

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.

InfrastructureSecurityGroups []ServiceInfrastructureSecurityGroup

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

InternetAccessAddress string

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.

desktopSecurityGroups List<ServiceDesktopSecurityGroup>

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.

infrastructureSecurityGroups List<ServiceInfrastructureSecurityGroup>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress String

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.

desktopSecurityGroups ServiceDesktopSecurityGroup[]

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.

infrastructureSecurityGroups ServiceInfrastructureSecurityGroup[]

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress string

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_groups ServiceDesktopSecurityGroup]

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_groups ServiceInfrastructureSecurityGroup]

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internet_access_address str

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.

desktopSecurityGroups List<Property Map>

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.

infrastructureSecurityGroups List<Property Map>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress String

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.
The following state arguments are supported:
AccessMode 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.
AdDomain ServiceAdDomainArgs

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.

AuthType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
DedicatedSubnets List<string>

The subnet segments of the dedicated access.

DesktopSecurityGroups List<ServiceDesktopSecurityGroupArgs>

The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

EnterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

InfrastructureSecurityGroups List<ServiceInfrastructureSecurityGroupArgs>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

InternetAccessAddress string

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

InternetAccessPort int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

ManagementSubnetCidr string

The subnet segment of the management component.

NetworkIds 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 with 172.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.

VpcId string

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

AccessMode 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.
AdDomain ServiceAdDomainArgs

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.

AuthType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
DedicatedSubnets []string

The subnet segments of the dedicated access.

DesktopSecurityGroups []ServiceDesktopSecurityGroupArgs

The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

EnterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

InfrastructureSecurityGroups []ServiceInfrastructureSecurityGroupArgs

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

InternetAccessAddress string

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

InternetAccessPort int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

ManagementSubnetCidr string

The subnet segment of the management component.

NetworkIds []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 with 172.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.

VpcId string

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

accessMode 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.
adDomain ServiceAdDomainArgs

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.

authType String

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets List<String>

The subnet segments of the dedicated access.

desktopSecurityGroups List<ServiceDesktopSecurityGroupArgs>

The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

infrastructureSecurityGroups List<ServiceInfrastructureSecurityGroupArgs>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress String

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

internetAccessPort Integer

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr String

The subnet segment of the management component.

networkIds 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 with 172.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.

vpcId String

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

accessMode 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.
adDomain ServiceAdDomainArgs

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.

authType string

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets string[]

The subnet segments of the dedicated access.

desktopSecurityGroups ServiceDesktopSecurityGroupArgs[]

The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

infrastructureSecurityGroups ServiceInfrastructureSecurityGroupArgs[]

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress string

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

internetAccessPort number

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr string

The subnet segment of the management component.

networkIds 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 with 172.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.

vpcId 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 ServiceAdDomainArgs

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_groups ServiceDesktopSecurityGroupArgs]

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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

infrastructure_security_groups ServiceInfrastructureSecurityGroupArgs]

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internet_access_address str

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

internet_access_port int

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

management_subnet_cidr str

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 with 172.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.

accessMode 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.
adDomain 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.

authType String

Specifies the authentication type of Workspace service. The valid values are as follows:

  • LITE_AS: Local authentication.
  • LOCAL_AD: Connect to AD domain.
dedicatedSubnets List<String>

The subnet segments of the dedicated access.

desktopSecurityGroups List<Property Map>

The desktop security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

enterpriseId 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 to 32 characters, only letters, digits, hyphens (-) and underscores (_) are allowed.

infrastructureSecurityGroups List<Property Map>

The management component security group automatically created under the specified VPC after the service is registered. The object structure is documented below.

internetAccessAddress String

The internet access address. This attribute is returned only when the access_mode is INTERNET or BOTH.

internetAccessPort Number

Specifies the internet access port. The valid value is range from 1,025 to 65,535.

managementSubnetCidr String

The subnet segment of the management component.

networkIds 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 with 172.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.

vpcId String

Specifies the VPC ID to which the service belongs. Changing this will create a new resource.

Supporting Types

ServiceAdDomain

ActiveDomainIp string

Specifies the IP address of primary domain controller.

ActiveDomainName string

Specifies the name of primary domain controller.

AdminAccount 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.

ActiveDnsIp string

Specifies the primary DNS IP address.

DeleteComputerObject bool

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

StandbyDnsIp string

Specifies the standby DNS IP address.

StandbyDomainIp string

Specifies the IP address of the standby domain controller.

StandbyDomainName string

Specifies the name of the standby domain controller.

ActiveDomainIp string

Specifies the IP address of primary domain controller.

ActiveDomainName string

Specifies the name of primary domain controller.

AdminAccount 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.

ActiveDnsIp string

Specifies the primary DNS IP address.

DeleteComputerObject bool

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

StandbyDnsIp string

Specifies the standby DNS IP address.

StandbyDomainIp string

Specifies the IP address of the standby domain controller.

StandbyDomainName string

Specifies the name of the standby domain controller.

activeDomainIp String

Specifies the IP address of primary domain controller.

activeDomainName String

Specifies the name of primary domain controller.

adminAccount 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.

activeDnsIp String

Specifies the primary DNS IP address.

deleteComputerObject Boolean

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

standbyDnsIp String

Specifies the standby DNS IP address.

standbyDomainIp String

Specifies the IP address of the standby domain controller.

standbyDomainName String

Specifies the name of the standby domain controller.

activeDomainIp string

Specifies the IP address of primary domain controller.

activeDomainName string

Specifies the name of primary domain controller.

adminAccount 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.

activeDnsIp string

Specifies the primary DNS IP address.

deleteComputerObject boolean

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

standbyDnsIp string

Specifies the standby DNS IP address.

standbyDomainIp string

Specifies the IP address of the standby domain controller.

standbyDomainName string

Specifies the name of the standby domain controller.

active_domain_ip str

Specifies the IP address of primary domain controller.

active_domain_name str

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_ip str

Specifies the primary DNS IP address.

delete_computer_object bool

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

standby_dns_ip str

Specifies the standby DNS IP address.

standby_domain_ip str

Specifies the IP address of the standby domain controller.

standby_domain_name str

Specifies the name of the standby domain controller.

activeDomainIp String

Specifies the IP address of primary domain controller.

activeDomainName String

Specifies the name of primary domain controller.

adminAccount 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.

activeDnsIp String

Specifies the primary DNS IP address.

deleteComputerObject Boolean

Specifies whether to delete the corresponding computer object on AD while deleting the desktop.

standbyDnsIp String

Specifies the standby DNS IP address.

standbyDomainIp String

Specifies the IP address of the standby domain controller.

standbyDomainName String

Specifies the name of the standby domain controller.

ServiceDesktopSecurityGroup

Id string

Security group ID.

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.

Id string

Security group ID.

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.

id String

Security group ID.

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.

id string

Security group ID.

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.

id str

Security group ID.

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.

id String

Security group ID.

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.

ServiceInfrastructureSecurityGroup

Id string

Security group ID.

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.

Id string

Security group ID.

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.

id String

Security group ID.

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.

id string

Security group ID.

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.

id str

Security group ID.

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.

id String

Security group ID.

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.

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.