Queries office network (formerly workspace) properties, including office network ID, name, status, and creation time.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID. You can call the DescribeRegions operation to query the most recent region list. | cn-hangzhou |
OfficeSiteType | string | No | The account type of the office network. Valid values:
| SIMPLE |
MaxResults | integer | No | The number of entries to return on each page.
| 10 |
NextToken | string | No | The token that determines the start point of the next query. | caeba0bbb2be03f84eb48b699f0a4883 |
OfficeSiteId | array | No | The office network IDs. You can specify the IDs of 1 to 100 office networks. | |
string | No | The office network ID. | cn-hangzhou+dir-363353**** | |
Status | string | No | The office network status. Valid values:
| REGISTERED |
Response parameters
Examples
Sample success responses
JSON
format
{
"NextToken": "caeba0bbb2be03f84eb48b699f0a4883",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"OfficeSites": [
{
"Status": "REGISTERED",
"CreationTime": "2021-05-06T05:58Z",
"VpcId": "vpc-uf6tz5k67puge5jn8****",
"VpcType": "Basic",
"EnableAdminAccess": true,
"EnableCrossDesktopAccess": false,
"DesktopVpcEndpoint": "http://ep-bp1s2vmbj55r5rzc****.epsrv-bp1pcfhpwvlpny01****.cn-hangzhou.privatelink.aliyuncs.com",
"DesktopAccessType": "INTERNET",
"DomainName": "example.com\t",
"SsoEnabled": false,
"CidrBlock": "172.16.0.0/16",
"Bandwidth": 10,
"TrustPassword": "null",
"Name": "test",
"EnableInternetAccess": false,
"DomainPassword": "testPassword",
"CustomSecurityGroupId": "sg-bp1ce64o4g9mdf5u****",
"OuName": "example.com/Domain Controllers",
"DomainUserName": "Administrator",
"SubDomainName": "testSubDnsUserName",
"OfficeSiteId": "cn-hangzhou+dir-363353****",
"CenId": "cen-3gwy16dojz1m65****",
"CenAttachStatus": "attached",
"MfaEnabled": false,
"NetworkPackageId": "np-amtp8e8q1o9e4****",
"DnsUserName": "testDnsUserName\t",
"OfficeSiteType": "AD_CONNECTOR",
"ADConnectors": [
{
"ConnectorStatus": "RUNNING",
"VSwitchId": "vsw-bp19ocz3erfx15uon****",
"ADConnectorAddress": "172.24.*.*",
"TrustKey": "password123***",
"NetworkInterfaceId": "eni-bp1i4wx78lgosrj6****",
"Specification": "1"
}
],
"Logs": [
{
"Step": "CREATE_CONNECTOR",
"Message": "code:success | message:Create Connector complete",
"TimeStamp": "2021-05-12T09:42Z",
"Level": "INFO"
}
],
"VSwitchIds": [
"vsw-bp19ocz3erfx15uon****"
],
"FileSystemIds": [
"[\"05b534****\"]"
],
"SubDnsAddress": [
" [\"172.24.*.*\"]"
],
"DnsAddress": [
" [\"172.24.*.*\"]"
],
"NeedVerifyLoginRisk": false,
"DesktopCount": 1,
"TotalEdsCount": 0,
"TotalEdsCountForGroup": 0,
"NeedVerifyZeroDevice": true,
"CloudBoxOfficeSite": true,
"SsoType": "null",
"ProtocolType": "ASP",
"AdHostname": "beijing-ad01",
"RdsLicenseStatus": "2",
"RdsLicenseAddress": "47.100.XX.XX",
"RdsLicenseDomainName": "test.com"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||
---|---|---|---|---|
2023-07-12 | The response structure of the API has changed | see changesets | ||
| ||||
2023-06-13 | The response structure of the API has changed | see changesets | ||
| ||||
2023-04-19 | The response structure of the API has changed | see changesets | ||
| ||||
2021-08-19 | The response structure of the API has changed | see changesets | ||
| ||||
2021-08-19 | The response structure of the API has changed | see changesets | ||
| ||||
2021-08-19 | The response structure of the API has changed | see changesets | ||
|