你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Machines - Get All Machines In Site
获取计算机的方法。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/VMwareSites/{siteName}/machines?api-version=2020-01-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OffAzure/VMwareSites/{siteName}/machines?api-version=2020-01-01&$filter={$filter}&$top={$top}&continuationToken={continuationToken}&totalRecordCount={totalRecordCount}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
resource
|
path | True |
string |
资源组的名称。 此名称不区分大小写。 |
site
|
path | True |
string |
站点名称。 |
subscription
|
path | True |
string |
目标订阅的 ID。 |
api-version
|
query | True |
string |
要用于此操作的 API 版本。 |
$filter
|
query |
string |
||
$top
|
query |
integer int32 |
||
continuation
|
query |
string |
继续标记的可选参数。 |
|
total
|
query |
integer int32 |
给定站点中的计算机总数。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
示例
Get VMware machines
Sample Request
GET https://management.azure.com/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.OffAzure/VMwareSites/pajind_site1/machines?api-version=2020-01-01
Sample Response
{
"value": [
{
"id": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.OffAzure/VMwareSites/pajind_site1/machines/machine1",
"name": "machine1",
"type": "Microsoft.OffAzure/VMwareSites/machines",
"properties": {
"dataCenterScope": "vCenter60-2",
"firmware": "bios",
"description": "",
"vCenterFQDN": "10.150.8.52",
"vCenterId": "/subscriptions/75dd7e42-4fd1-4512-af04-83ad9864335b/resourceGroups/myResourceGroup/providers/Microsoft.OffAzure/VMwareSites/pajind_site1/vcenters/10-150-8-52-b090bef3-b733-5e34-bc8f-eb6f2701432a",
"vMwareToolsStatus": "NotInstalled",
"changeTrackingSupported": true,
"changeTrackingEnabled": true,
"maxSnapshots": -1,
"disks": [
{
"uuid": "6000C299-7390-714b-91c1-8af030cfadf9",
"label": "Hard disk 1",
"diskProvisioningPolicy": "ThinProvisioned",
"diskScrubbingPolicy": "LazilyScrubbed",
"diskMode": "persistent",
"maxSizeInBytes": 42949672960,
"name": "scsi0:0",
"diskType": "Static",
"lun": 0,
"path": "[DS-FC-5TB-38-4] FPLWIN8R264-03/FPLWIN8R264-03.vmdk"
}
],
"appsAndRoles": null,
"hostInMaintenanceMode": false,
"hostName": "10.150.8.38",
"hostPowerState": "unknown",
"hostVersion": "6.0.0",
"networkAdapters": [
{
"label": "Network adapter 1",
"nicId": "4000",
"macAddress": "00:50:56:88:0d:3c",
"ipAddressList": [],
"networkName": "VM Network",
"ipAddressType": "Static"
}
],
"dependencyMapping": "Disabled",
"dependencyMappingStartTime": null,
"displayName": "FPLWIN8R264-03",
"numberOfProcessorCore": 1,
"allocatedMemoryInMB": 4096,
"vmConfigurationFileLocation": "[DS-FC-5TB-38-4] FPLWIN8R264-03/FPLWIN8R264-03.vmx",
"operatingSystemDetails": {
"osType": "windowsguest",
"osName": "Microsoft Windows Server 2008 R2 (64-bit)",
"osVersion": null
},
"guestOSDetails": {
"osType": null,
"osName": null,
"osVersion": null
},
"numberOfApplications": 0,
"guestDetailsDiscoveryTimestamp": null,
"isGuestDetailsDiscoveryInProgress": true,
"createdTimestamp": "2019-10-14T08:52:34.0679641Z",
"updatedTimestamp": "2019-10-17T09:32:15.8814969Z",
"instanceUuid": "5008f0e5-71aa-84d6-6042-a118fb8e07c5",
"powerStatus": "ON",
"biosSerialNumber": "4208ef12-4a97-56d5-5fab-268058d3e3b5",
"biosGuid": "4208ef12-4a97-56d5-5fab-268058d3e3b5",
"vmFqdn": "",
"isDeleted": false,
"errors": []
}
}
],
"nextLink": null
}
定义
名称 | 说明 |
---|---|
Application |
来宾虚拟机中的应用程序。 |
Apps |
来宾虚拟机中的 AppsAndRoles。 |
Biz |
来宾虚拟机中的 BizTalkServer。 |
Exchange |
来宾虚拟机中的 ExchangeServer。 |
Feature |
来宾虚拟机中的功能。 |
Guest |
与计算机操作系统相关的数据。 序列化并存储为 Machine Rest 对象的一部分。 |
Health |
当 Rest API 中发生某种异常时返回错误协定。 |
Operating |
作为计算机 REST 资源的一部分返回的二级对象。 |
Other |
来宾虚拟机中的 OtherDatabase。 |
Share |
来宾虚拟机中的 SharePointServer。 |
SQLServer |
来宾虚拟机中的 SQLServer。 |
System |
来宾虚拟机中的 SystemCenter。 |
Virtual |
用于标识独立磁盘的磁盘模式属性。 |
VMware |
作为计算机 REST 资源的一部分返回的二级对象。 |
VMware |
计算机 REST 资源。 |
VMware |
VMware 计算机的集合。 |
VMware |
计算机属性的类。 |
VMware |
响应中表示为计算机 REST 资源的一部分的二级对象。 |
Web |
来宾虚拟机中的 WebApplication。 |
Application
来宾虚拟机中的应用程序。
名称 | 类型 | 说明 |
---|---|---|
name |
string |
应用程序的名称。 |
provider |
string |
应用程序的提供程序。 |
version |
string |
应用程序的版本。 |
AppsAndRoles
来宾虚拟机中的 AppsAndRoles。
名称 | 类型 | 说明 |
---|---|---|
applications |
AppsAndRoles 的应用程序。 |
|
bizTalkServers |
AppsAndRoles 的 BizTalkServers。 |
|
exchangeServers |
AppsAndRoles 的 ExchangeServers。 |
|
features |
Feature[] |
AppsAndRoles 的功能。 |
otherDatabases |
AppsAndRoles 的 OtherDatabaseServers。 |
|
sharePointServers |
AppsAndRoles 的 SharePointServers。 |
|
sqlServers |
AppsAndRoles 的 SQLServers。 |
|
systemCenters |
AppsAndRoles 的 SystemCenters。 |
|
webApplications |
AppsAndRoles 的 WebApplications。 |
BizTalkServer
来宾虚拟机中的 BizTalkServer。
名称 | 类型 | 说明 |
---|---|---|
productName |
string |
BizTalkServer 的 ProductName。 |
status |
string |
BizTalkServer 的状态。 |
ExchangeServer
来宾虚拟机中的 ExchangeServer。
名称 | 类型 | 说明 |
---|---|---|
edition |
string |
ExchangeServer 的版本。 |
productName |
string |
ExchangeServer 的 ProductName。 |
roles |
string |
ExchangeServer 的角色。 |
servicePack |
string |
ExchangeServer 的 ServicePack。 |
version |
string |
ExchangeServer 的版本。 |
Feature
来宾虚拟机中的功能。
名称 | 类型 | 说明 |
---|---|---|
featureType |
string |
功能的 FeatureType。 |
name |
string |
功能的名称。 |
parent |
string |
功能的父级。 |
status |
string |
功能的状态。 |
GuestOSDetails
与计算机操作系统相关的数据。 序列化并存储为 Machine Rest 对象的一部分。
名称 | 类型 | 说明 |
---|---|---|
osName |
string |
操作系统的名称。 |
osType |
string |
操作系统的类型。 |
osVersion |
string |
操作系统的版本。 |
HealthErrorDetails
当 Rest API 中发生某种异常时返回错误协定。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误名称。 |
id |
integer |
错误 ID。 |
message |
string |
错误消息。 |
messageParameters |
object |
消息参数。 |
possibleCauses |
string |
可能的错误原因。 |
recommendedAction |
string |
建议的操作来解决错误。 |
severity |
string |
错误严重性。 |
source |
string |
错误源。 |
summaryMessage |
string |
错误摘要消息。 |
OperatingSystem
作为计算机 REST 资源的一部分返回的二级对象。
名称 | 类型 | 说明 |
---|---|---|
osName |
string |
操作系统的名称。 |
osType |
string |
操作系统的类型。 |
osVersion |
string |
操作系统的版本。 |
OtherDatabase
来宾虚拟机中的 OtherDatabase。
名称 | 类型 | 说明 |
---|---|---|
databaseType |
string |
OtherDatabase 的 DatabaseType。 |
instance |
string |
OtherDatabase 的实例。 |
version |
string |
OtherDatabase 的版本。 |
SharePointServer
来宾虚拟机中的 SharePointServer。
名称 | 类型 | 说明 |
---|---|---|
isEnterprise |
boolean |
指示 SharePointServer 是否为 Enterprise 的值。 |
productName |
string |
SharePointServer 的 ProductName。 |
status |
string |
SharePointServer 的状态。 |
version |
string |
SharePointServer 的版本。 |
SQLServer
来宾虚拟机中的 SQLServer。
名称 | 类型 | 说明 |
---|---|---|
clusterName |
string |
SQLServer 的 ClusterName。 |
clustered |
string |
SQLServer 的群集。 |
edition |
string |
SQLServer 的版本。 |
name |
string |
SQLServer 的名称。 |
servicePack |
string |
SQLServer 的 ServicePack。 |
version |
string |
SQLServer 的版本。 |
SystemCenter
来宾虚拟机中的 SystemCenter。
名称 | 类型 | 说明 |
---|---|---|
productName |
string |
SystemCenter 的 ProductName。 |
status |
string |
SystemCenter 的状态。 |
version |
string |
SystemCenter 的版本。 |
VirtualDiskMode
用于标识独立磁盘的磁盘模式属性。
名称 | 类型 | 说明 |
---|---|---|
append |
string |
|
independent_nonpersistent |
string |
|
independent_persistent |
string |
|
nonpersistent |
string |
|
persistent |
string |
|
undoable |
string |
VMwareDisk
作为计算机 REST 资源的一部分返回的二级对象。
名称 | 类型 | 说明 |
---|---|---|
diskMode |
用于标识独立磁盘的磁盘模式属性。 |
|
diskProvisioningPolicy |
string |
磁盘的预配策略。 VMWare 的精简或厚或未知。 |
diskScrubbingPolicy |
string |
磁盘的清理策略,可以急切地归零或延迟归零。 |
diskType |
string |
磁盘的类型。 |
label |
string |
磁盘的标签。 |
lun |
integer |
磁盘的 LUN。 |
maxSizeInBytes |
integer |
为磁盘分配的字节数。 |
name |
string |
磁盘的名称。 |
path |
string |
磁盘的路径。 |
uuid |
string |
磁盘 UUID。 |
VMwareMachine
计算机 REST 资源。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
站点的名称。 |
properties |
嵌套属性。 |
|
type |
string |
资源的类型。 类型 = Microsoft.OffAzure/VMWareSites/Machines。 |
VMwareMachineCollection
VMware 计算机的集合。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
下一个链接的值。 |
value |
计算机列表。 |
VMwareMachineProperties
计算机属性的类。
名称 | 类型 | 说明 |
---|---|---|
allocatedMemoryInMB |
number |
分配的内存(以 MB 为单位)。 |
appsAndRoles |
VM 的应用和角色。 |
|
biosGuid |
string |
BIOS GUID。 |
biosSerialNumber |
string |
计算机 BIOS 序列号。 |
changeTrackingEnabled |
boolean |
指示是否启用更改跟踪的值。 |
changeTrackingSupported |
boolean |
指示是否支持更改跟踪的值。 |
createdTimestamp |
string |
标记计算机创建的时间戳。 |
dataCenterScope |
string |
数据中心的范围。 |
dependencyMapping |
string |
是否为 VM 启用了依赖项映射功能。 |
dependencyMappingStartTime |
string |
上次启动依赖项映射集合时。 |
description |
string |
计算机的用户说明。 |
disks |
附加到计算机的磁盘。 |
|
displayName |
string |
计算机的显示名称。 |
errors |
计算机错误。 |
|
firmware |
string |
计算机的固件。 |
guestDetailsDiscoveryTimestamp |
string |
上次发现来宾详细信息的时间或基于计算机发现来宾详细信息时出错的时间。 |
guestOSDetails |
从来宾 VM 中的来宾 bu 执行脚本中提取的操作系统详细信息。 |
|
hostInMaintenanceMode |
boolean |
指示主机是否处于维护模式。 |
hostName |
string |
主机名。 |
hostPowerState |
string |
主机电源状态。 |
hostVersion |
string |
主机版本。 |
instanceUuid |
string |
计算机的本地实例 UUID。 |
isDeleted |
boolean |
指示是否删除 VM 的值。 |
isGuestDetailsDiscoveryInProgress |
boolean |
刷新结构布局来宾详细信息是否已完成一次。 如果此值为 true,门户将显示正在进行的发现。 |
maxSnapshots |
integer |
VM 的最大快照数。 默认值为 -1。 |
networkAdapters |
连接到计算机的网络适配器。 |
|
numberOfApplications |
integer |
来宾 VM 中安装的应用程序数。 |
numberOfProcessorCore |
integer |
为计算机分配的处理器核心数。 |
operatingSystemDetails |
计算机上安装的操作系统详细信息。 |
|
powerStatus |
string |
计算机电源状态。 |
updatedTimestamp |
string |
标记上次在计算机上更新的时间戳。 |
vCenterFQDN |
string |
VCenter FQDN/IPAddress。 |
vCenterId |
string |
VCenter ARM ID。 |
vMwareToolsStatus |
string |
VMware 工具状态。 |
vmConfigurationFileLocation |
string |
VM 配置文件的根位置。 |
vmFqdn |
string |
计算机 FQDN。 |
VMwareNetworkAdapter
响应中表示为计算机 REST 资源的一部分的二级对象。
名称 | 类型 | 说明 |
---|---|---|
ipAddressList |
string[] |
计算机的 IP 地址。 |
ipAddressType |
string |
IP 地址的类型。 |
label |
string |
NIC 的标签。 |
macAddress |
string |
NIC 的 Mac 地址。 |
networkName |
string |
网络名称。 |
nicId |
string |
NIC ID。 |
WebApplication
来宾虚拟机中的 WebApplication。
名称 | 类型 | 说明 |
---|---|---|
applicationPool |
string |
WebApplication 的 ApplicationPool。 |
groupName |
string |
WebApplication 的 GroupName。 |
name |
string |
WebApplication 的名称。 |
platform |
string |
WebApplication 的平台。 |
status |
string |
WebApplication 的状态。 |
webServer |
string |
WebApplication 的 WebServer。 |