alicloud.eds.SimpleOfficeSite
Explore with Pulumi AI
Provides a ECD Simple Office Site resource.
For information about ECD Simple Office Site and how to use it, see What is Simple Office Site.
NOTE: Available since v1.140.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultSimpleOfficeSite = new alicloud.eds.SimpleOfficeSite("default", {
cidrBlock: "172.16.0.0/12",
enableAdminAccess: true,
desktopAccessType: "Internet",
officeSiteName: `terraform-example-${_default.result}`,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
min=10000,
max=99999)
default_simple_office_site = alicloud.eds.SimpleOfficeSite("default",
cidr_block="172.16.0.0/12",
enable_admin_access=True,
desktop_access_type="Internet",
office_site_name=f"terraform-example-{default['result']}")
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eds"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
_, err = eds.NewSimpleOfficeSite(ctx, "default", &eds.SimpleOfficeSiteArgs{
CidrBlock: pulumi.String("172.16.0.0/12"),
EnableAdminAccess: pulumi.Bool(true),
DesktopAccessType: pulumi.String("Internet"),
OfficeSiteName: pulumi.Sprintf("terraform-example-%v", _default.Result),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultSimpleOfficeSite = new AliCloud.Eds.SimpleOfficeSite("default", new()
{
CidrBlock = "172.16.0.0/12",
EnableAdminAccess = true,
DesktopAccessType = "Internet",
OfficeSiteName = $"terraform-example-{@default.Result}",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.eds.SimpleOfficeSite;
import com.pulumi.alicloud.eds.SimpleOfficeSiteArgs;
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 default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultSimpleOfficeSite = new SimpleOfficeSite("defaultSimpleOfficeSite", SimpleOfficeSiteArgs.builder()
.cidrBlock("172.16.0.0/12")
.enableAdminAccess(true)
.desktopAccessType("Internet")
.officeSiteName(String.format("terraform-example-%s", default_.result()))
.build());
}
}
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
defaultSimpleOfficeSite:
type: alicloud:eds:SimpleOfficeSite
name: default
properties:
cidrBlock: 172.16.0.0/12
enableAdminAccess: true
desktopAccessType: Internet
officeSiteName: terraform-example-${default.result}
Create SimpleOfficeSite Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SimpleOfficeSite(name: string, args: SimpleOfficeSiteArgs, opts?: CustomResourceOptions);
@overload
def SimpleOfficeSite(resource_name: str,
args: SimpleOfficeSiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SimpleOfficeSite(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr_block: Optional[str] = None,
bandwidth: Optional[int] = None,
cen_id: Optional[str] = None,
cen_owner_id: Optional[str] = None,
desktop_access_type: Optional[str] = None,
enable_admin_access: Optional[bool] = None,
enable_cross_desktop_access: Optional[bool] = None,
enable_internet_access: Optional[bool] = None,
mfa_enabled: Optional[bool] = None,
office_site_name: Optional[str] = None,
sso_enabled: Optional[bool] = None)
func NewSimpleOfficeSite(ctx *Context, name string, args SimpleOfficeSiteArgs, opts ...ResourceOption) (*SimpleOfficeSite, error)
public SimpleOfficeSite(string name, SimpleOfficeSiteArgs args, CustomResourceOptions? opts = null)
public SimpleOfficeSite(String name, SimpleOfficeSiteArgs args)
public SimpleOfficeSite(String name, SimpleOfficeSiteArgs args, CustomResourceOptions options)
type: alicloud:eds:SimpleOfficeSite
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 SimpleOfficeSiteArgs
- 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 SimpleOfficeSiteArgs
- 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 SimpleOfficeSiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SimpleOfficeSiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SimpleOfficeSiteArgs
- 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 simpleOfficeSiteResource = new AliCloud.Eds.SimpleOfficeSite("simpleOfficeSiteResource", new()
{
CidrBlock = "string",
CenId = "string",
CenOwnerId = "string",
DesktopAccessType = "string",
EnableAdminAccess = false,
EnableCrossDesktopAccess = false,
MfaEnabled = false,
OfficeSiteName = "string",
SsoEnabled = false,
});
example, err := eds.NewSimpleOfficeSite(ctx, "simpleOfficeSiteResource", &eds.SimpleOfficeSiteArgs{
CidrBlock: pulumi.String("string"),
CenId: pulumi.String("string"),
CenOwnerId: pulumi.String("string"),
DesktopAccessType: pulumi.String("string"),
EnableAdminAccess: pulumi.Bool(false),
EnableCrossDesktopAccess: pulumi.Bool(false),
MfaEnabled: pulumi.Bool(false),
OfficeSiteName: pulumi.String("string"),
SsoEnabled: pulumi.Bool(false),
})
var simpleOfficeSiteResource = new SimpleOfficeSite("simpleOfficeSiteResource", SimpleOfficeSiteArgs.builder()
.cidrBlock("string")
.cenId("string")
.cenOwnerId("string")
.desktopAccessType("string")
.enableAdminAccess(false)
.enableCrossDesktopAccess(false)
.mfaEnabled(false)
.officeSiteName("string")
.ssoEnabled(false)
.build());
simple_office_site_resource = alicloud.eds.SimpleOfficeSite("simpleOfficeSiteResource",
cidr_block="string",
cen_id="string",
cen_owner_id="string",
desktop_access_type="string",
enable_admin_access=False,
enable_cross_desktop_access=False,
mfa_enabled=False,
office_site_name="string",
sso_enabled=False)
const simpleOfficeSiteResource = new alicloud.eds.SimpleOfficeSite("simpleOfficeSiteResource", {
cidrBlock: "string",
cenId: "string",
cenOwnerId: "string",
desktopAccessType: "string",
enableAdminAccess: false,
enableCrossDesktopAccess: false,
mfaEnabled: false,
officeSiteName: "string",
ssoEnabled: false,
});
type: alicloud:eds:SimpleOfficeSite
properties:
cenId: string
cenOwnerId: string
cidrBlock: string
desktopAccessType: string
enableAdminAccess: false
enableCrossDesktopAccess: false
mfaEnabled: false
officeSiteName: string
ssoEnabled: false
SimpleOfficeSite 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 SimpleOfficeSite resource accepts the following input properties:
- Cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- Bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- Cen
Id string - Cloud Enterprise Network Instance ID.
- Cen
Owner stringId - The cen owner id.
- Desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - Enable
Admin boolAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- Enable
Cross boolDesktop Access - Enable Cross-Desktop Access.
- Enable
Internet boolAccess - Whether the Open Internet Access Function.
- Mfa
Enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- Office
Site stringName - The office site name.
- Sso
Enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- Cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- Bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- Cen
Id string - Cloud Enterprise Network Instance ID.
- Cen
Owner stringId - The cen owner id.
- Desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - Enable
Admin boolAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- Enable
Cross boolDesktop Access - Enable Cross-Desktop Access.
- Enable
Internet boolAccess - Whether the Open Internet Access Function.
- Mfa
Enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- Office
Site stringName - The office site name.
- Sso
Enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- cidr
Block String - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- bandwidth Integer
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id String - Cloud Enterprise Network Instance ID.
- cen
Owner StringId - The cen owner id.
- desktop
Access StringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin BooleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross BooleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet BooleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled Boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site StringName - The office site name.
- sso
Enabled Boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- bandwidth number
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id string - Cloud Enterprise Network Instance ID.
- cen
Owner stringId - The cen owner id.
- desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin booleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross booleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet booleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site stringName - The office site name.
- sso
Enabled boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- cidr_
block str - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen_
id str - Cloud Enterprise Network Instance ID.
- cen_
owner_ strid - The cen owner id.
- desktop_
access_ strtype - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable_
admin_ boolaccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable_
cross_ booldesktop_ access - Enable Cross-Desktop Access.
- enable_
internet_ boolaccess - Whether the Open Internet Access Function.
- mfa_
enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- office_
site_ strname - The office site name.
- sso_
enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- cidr
Block String - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- bandwidth Number
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id String - Cloud Enterprise Network Instance ID.
- cen
Owner StringId - The cen owner id.
- desktop
Access StringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin BooleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross BooleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet BooleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled Boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site StringName - The office site name.
- sso
Enabled Boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
Outputs
All input properties are implicitly available as output properties. Additionally, the SimpleOfficeSite resource produces the following output properties:
Look up Existing SimpleOfficeSite Resource
Get an existing SimpleOfficeSite 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?: SimpleOfficeSiteState, opts?: CustomResourceOptions): SimpleOfficeSite
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[int] = None,
cen_id: Optional[str] = None,
cen_owner_id: Optional[str] = None,
cidr_block: Optional[str] = None,
desktop_access_type: Optional[str] = None,
enable_admin_access: Optional[bool] = None,
enable_cross_desktop_access: Optional[bool] = None,
enable_internet_access: Optional[bool] = None,
mfa_enabled: Optional[bool] = None,
office_site_name: Optional[str] = None,
sso_enabled: Optional[bool] = None,
status: Optional[str] = None) -> SimpleOfficeSite
func GetSimpleOfficeSite(ctx *Context, name string, id IDInput, state *SimpleOfficeSiteState, opts ...ResourceOption) (*SimpleOfficeSite, error)
public static SimpleOfficeSite Get(string name, Input<string> id, SimpleOfficeSiteState? state, CustomResourceOptions? opts = null)
public static SimpleOfficeSite get(String name, Output<String> id, SimpleOfficeSiteState 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.
- Bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- Cen
Id string - Cloud Enterprise Network Instance ID.
- Cen
Owner stringId - The cen owner id.
- Cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- Desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - Enable
Admin boolAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- Enable
Cross boolDesktop Access - Enable Cross-Desktop Access.
- Enable
Internet boolAccess - Whether the Open Internet Access Function.
- Mfa
Enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- Office
Site stringName - The office site name.
- Sso
Enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- Status string
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
- Bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- Cen
Id string - Cloud Enterprise Network Instance ID.
- Cen
Owner stringId - The cen owner id.
- Cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- Desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - Enable
Admin boolAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- Enable
Cross boolDesktop Access - Enable Cross-Desktop Access.
- Enable
Internet boolAccess - Whether the Open Internet Access Function.
- Mfa
Enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- Office
Site stringName - The office site name.
- Sso
Enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- Status string
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
- bandwidth Integer
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id String - Cloud Enterprise Network Instance ID.
- cen
Owner StringId - The cen owner id.
- cidr
Block String - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- desktop
Access StringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin BooleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross BooleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet BooleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled Boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site StringName - The office site name.
- sso
Enabled Boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- status String
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
- bandwidth number
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id string - Cloud Enterprise Network Instance ID.
- cen
Owner stringId - The cen owner id.
- cidr
Block string - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- desktop
Access stringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin booleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross booleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet booleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site stringName - The office site name.
- sso
Enabled boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- status string
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
- bandwidth int
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen_
id str - Cloud Enterprise Network Instance ID.
- cen_
owner_ strid - The cen owner id.
- cidr_
block str - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- desktop_
access_ strtype - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable_
admin_ boolaccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable_
cross_ booldesktop_ access - Enable Cross-Desktop Access.
- enable_
internet_ boolaccess - Whether the Open Internet Access Function.
- mfa_
enabled bool - Whether to Enable Multi-Factor Authentication MFA.
- office_
site_ strname - The office site name.
- sso_
enabled bool - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- status str
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
- bandwidth Number
- The Internet Bandwidth Peak. It has been deprecated from version 1.142.0 and can be found in the new resource alicloud_ecd_network_package.
- cen
Id String - Cloud Enterprise Network Instance ID.
- cen
Owner StringId - The cen owner id.
- cidr
Block String - Workspace Corresponds to the Security Office Network of IPv4 Segment.
- desktop
Access StringType - Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values:
Any
,Internet
,VPC
. - enable
Admin BooleanAccess - Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions.
- enable
Cross BooleanDesktop Access - Enable Cross-Desktop Access.
- enable
Internet BooleanAccess - Whether the Open Internet Access Function.
- mfa
Enabled Boolean - Whether to Enable Multi-Factor Authentication MFA.
- office
Site StringName - The office site name.
- sso
Enabled Boolean - Whether to Enable Single Sign-on (SSO) for User-Based SSO.
- status String
- Workspace State. Valid Values:
REGISTERED
,REGISTERING
.
Import
ECD Simple Office Site can be imported using the id, e.g.
$ pulumi import alicloud:eds/simpleOfficeSite:SimpleOfficeSite example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.