虚拟资源变更消息通知
订阅消息接口
接口功能
根据第三方系统 ID、第三方系统消息接收接口凭证 openID、第三方系统消息接收接口 URL 和订阅操作描述,订阅虚拟资源变更消息通知。
URI路径
/rest/openapi/notification/virtual/res/event
访问方法
PUT
参数说明
参数名 |
必选/可选 |
参数位置 |
参数类型 |
参数说明 |
---|---|---|---|---|
openid |
必选 |
请求头参数列表 |
String |
会话标识,用于Open API的鉴权。 说明:
该参数由第三方调用安全管理登录接口获取openid。 |
systemID |
必选 |
请求实体参数列表 |
String |
第三方系统标识。 说明:
可为IP地址,1~64个字符,字符集合为英文半角:0-9a-zA-Z@_-(),.^$~`! |
openID |
必选 |
请求实体参数列表 |
String |
网管主动连接第三方系统的认证凭证,由第三方系统分配和利用此字符串认证。 说明:
1~1024个字符,字符集同 systemID。 |
url |
必选 |
请求实体参数列表 |
String |
网管以 POST 方式向该 URL发送通知消息。 说明:
例如 http://10.10.10.10:8080/device。需要通知消息订阅者确保URL的正确性,IP地址为OpenAPI白名单列表中地址。长度1~1024,字符串符合HTTP URL编码规范。 |
dataType |
可选 |
请求实体参数列表 |
String |
通知报文的 data 字段类型。 说明:
目前仅支持“JSON”,缺省为“JSON”。 |
desc |
可选 |
请求实体参数列表 |
String |
第三方系统描述。 说明:
缺省为null 不设置。如设置长度限制0~1024字符,字符集合不限制。 |
返回结果
字段名 |
类型 |
说明 |
---|---|---|
code |
int |
操作返回码。可以是如下值之一:
|
data |
String |
此处为 null。 |
description |
String |
接口调用结果的描述信息。 |
注意事项
无。
调用示例
数据段 |
值 |
---|---|
请求 URL |
PUT https://eSightIP: port/rest/openapi/notification/virtual/res/event HTTP/1.1 |
请求头 |
openid: 775c47f9-9a1b-43f9-a24b-2c3db1a55622; |
请求实体 |
systemID=example%40system&openID=1b7a6992-5d5f-4091-a49f-ec2e09640a05&url=https%3A%2F%2FdemoIP%3AdemoPort%2Fnotification&dataType=JSON&desc=eSight+DesignIn+Demo |
响应实体 |
{"code":0,"data":null,"description":"Operation success."} |
退订消息接口
接口功能
退订虚拟资源变更消息通知。
URI路径
/rest/openapi/notification/virtual/res/event
访问方法
DELETE
参数说明
参数名 |
必选/可选 |
参数位置 |
参数类型 |
参数说明 |
---|---|---|---|---|
openid |
必选 |
消息头参数列表 |
String |
会话标识,用于Open API的鉴权。 说明:
该参数由第三方调用安全管理登录接口获取openid。 |
systemID |
必选 |
URL 参数列表 |
String |
第三方系统标识。 说明:
可为IP地址,1~64个字符,字符集合为英文半角:0-9a-zA-Z@_-(),.^$~`! |
desc |
可选 |
URL 参数列表 |
String |
三方系统描述。 说明:
缺省为null 不设置。如设置长度限制0~1024字符,字符集合不限制。 |
返回结果
字段名 |
类型 |
说明 |
---|---|---|
code |
int |
操作返回码。可以是如下值之一:
|
data |
String |
此处为 null。 |
description |
String |
接口调用结果的描述信息。 |
注意事项
MIME type 为 application/x-www-form-urlencoded 的请求中,空格将会编码为加号,加号则编码为%2B。
调用示例
数据段 |
值 |
---|---|
请求 URL |
DELETE https://eSightIP:port/rest/openapi/notification/virtual/res/event?systemID=example%40system&desc=eSight+DesignIn+Demo+Unsubscription. HTTP/1.1 |
请求头 |
openid: 775c47f9-9a1b-43f9-a24b-2c3db1a55622; |
请求实体 |
N/A |
响应实体 |
{"code":0,"data":null,"description":"Operation success."} |
发送消息通知
消息数据
字段名 |
类型 |
说明 |
---|---|---|
resourceURI |
String |
资源类型 URI,与订阅消息的URI定义一致,该变更通知固定为“/rest/openapi/notification/virtual/res/event”字符串。 |
msgType |
int |
消息类型。取值范围:
|
data |
list |
以 JSON 数组形式描述的数据对象。告警相关数据的结构,参见下面定义 说明: 如果消息接收地址为 HTTP 协议,则 data 的值为加密字符串,需要第三方系统根据配置文件中的 KEY 和 IV 值解密,之后再解析数据对象。 |
extendedData |
String |
以字符串表示的 JSON 附加数据对象,此处为空对象 “{}”。 |
description |
String |
消息通知描述。 |
timestamp |
String |
消息发出的时间戳,eSight 服务器协调时间格式。 |
data中的每一个信息包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
generatedTime |
String |
事件产生时间,“2017-06-26T15:45:07.501000” |
resourceType |
String |
资源类型,支持类型:VM、HOST、PORT、VOLUME、HOSTNIC和BOND。 |
eventType |
String |
变更类型 消息类型:
|
resourceDetail |
Object |
资源变更详细信息(不同资源类型的变更,内容不同),以字符串表示的 JSON 附加数据对象,此处为空对象 “{}”。 |
如果是虚拟机变更信息则resourceDetail为FsVmData对象
FsVmData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
vmId |
String |
虚拟机ID |
systemDn |
String |
归属OpenStack实例DN |
vmName |
String |
虚拟机名称 |
vmStatus |
String |
运行状态,虚拟机的原生状态 |
projectId |
String |
项目ID |
domainId |
String |
域ID |
projectName |
String |
项目名称 |
domainName |
String |
域名称 |
description |
String |
描述 |
vmUuid |
String |
虚拟UUID |
ipAddrList |
String |
IP地址列表,以英文半角分号分隔的字符串 |
macList |
String |
MAC地址列表,以英文半角分号分隔的字符串 |
flavorInfo |
String |
虚拟机规格 |
flavorName |
String |
规格名称 |
imageId |
String |
镜像ID |
imageName |
String |
镜像名称 |
securityGroupName |
String |
安全组名称 |
powerStatus |
int |
电源状态,取值范围:
|
virtualType |
String |
虚拟化平台类型 |
createTime |
long |
创建时间 |
azId |
String |
归属AZID |
hostId |
String |
归属OpenStack主机ID |
vmGroupId |
String |
归属虚拟机组ID |
vmIdOnvEnv |
String |
归属的FC或者vCenter 虚拟机标识 |
mergeStatus |
String |
归并后虚拟机状态,取值范围:
|
volumeIdList |
String |
绑定的卷ID列表 |
capacityData |
CapacityData |
虚拟机的容量信息 |
CapacityData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
cpuCores |
int |
CPU核数 |
cpuFreqsGhz |
int |
CPU频率(GHz) |
memSize |
int |
内存(MB) |
diskSize |
int |
磁盘容量(GB) |
rootSize |
int |
根磁盘(GB) |
swapSize |
int |
交换磁盘(GB) |
ephemeralSize |
int |
临时磁盘(GB) |
如果是主机资源变更则resourceDetail为HostData对象
HostData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
hostId |
String |
主机标识 |
systemDn |
String |
云平台的网元DN |
physicalServerDn |
String |
物理服务器DN |
hostName |
String |
主机名称 |
hostDesc |
String |
描述 |
ipAddr |
String |
主机ip |
bmcIp |
String |
bmc的IP地址 |
mgrIpAddr |
String |
管理ip地址 |
status |
String |
原始状态 |
physicalCpu |
int |
物理CPU个数 |
mergeStatus |
String |
运行状态 如果请求参数:系统类型为FusionSphere,则该值取值范围:
如果请求参数:系统类型为FusionCompute或者vCenter Server,则取值范围:
|
isolationStatus |
String |
隔离状态 如果请求参数:系统类型为FusionSphere,则该值取值范围:
如果请求参数:系统类型为非FusionSphere,则该值固定为空 |
vendor |
String |
服务器厂商 |
model |
String |
服务器型号 |
ntpIp1 |
String |
NTP服务器ip地址或域名1 |
ntpIp2 |
String |
NTP服务器ip地址或域名2 |
ntpIp3 |
String |
NTP服务器ip地址或域名3 |
primaryDnsIp |
String |
主DNS IP地址 |
secondaryDnsIps |
String |
备用DNS IP地址 |
domainName |
String |
域名 |
nicQuantity |
int |
网卡总数 |
platformType |
String |
如果请求参数:系统类型为FusionSphere,则该值取值范围:
如果请求参数:系统类型为FusionCompute,则该值固定为FusionCompute;如果请求参数:系统类型为vCenter Server,则该值固定是vCenter Server |
fcHostExtData |
FcHostExtData |
FC类型的主机扩展属性 |
vcenterHostExtData |
VcenterHostExtData |
vCenter类型的主机扩展属性 |
fsHostExtData |
FsHostExtData |
FS类型的主机扩展属性 |
capacityData |
CapacityData |
容量数据结构定义 |
FcHostExtData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
multiPathMode |
String |
用户设置的多路径类型 |
hostMultiPathMode |
String |
主机实际生效的多路径类型 |
ntpCycle |
int |
ntp同步周期,秒 |
imcSetting |
String |
当前IMC设置 |
maxImcSetting |
String |
主机CPU最大能够支持的IMC模式 |
haState |
String |
HA状态 |
haRole |
String |
HA角色 |
isFailOverHost |
int |
被指定为故障切换主机 |
VcenterHostExtData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
uuid |
String |
硬件UUID |
overallStatus |
String |
健康状态,取值范围:
|
powerState |
int |
电源状态 |
bmcMacAddress |
String |
BMC MAC地址 |
isDhcp |
int |
主机启动DHCP |
osType |
String |
主机操作系统类型 |
version |
String |
主机版本号 |
autoStartEnabled |
int |
使能自动启动 |
autoStartstartDelay |
int |
自动启动延时 |
autoStartstopAction |
String |
停止动作 |
autoStartstopDelay |
int |
停止延时 |
autoStartwaitForHeartbeat |
int |
心跳检测 |
zoneName |
String |
时区名称 |
zonekey |
String |
时区属性 |
zonegmtOffset |
int |
时区偏移量 |
zonedescription |
String |
时区描述 |
biosVersion |
String |
BIOS版本号 |
biosReleaseDate |
String |
BIOS发布日期 |
cpuModel |
String |
CPU型号 |
numHBAs |
int |
HBA总数 |
powerCurrentPolicy |
String |
当前电源策略 |
powerHardwareSupport |
String |
电源可支持策略(电源管理技术) |
powerSystemInfo |
String |
电源系统信息 |
maxRunningVMs |
int |
最大可运行VM总数 |
maxSupportedVMs |
int |
最大支持VM总数 |
maxRegisteredVMs |
int |
最大注册VM总数 |
maxVcpusPerFtVm |
int |
每VM最大CPU数 |
vmotionSupported |
int |
支持VM迁移 |
EvcSupported |
int |
支持EVC模式 |
FsHostExtData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
hypervisorID |
List |
Hypervisor标识列表,list成员类型是String |
azId |
String |
归属AZID |
hostGroupName |
String |
归属主机组名称 |
clusterID |
List |
云平台集群ID列表,list成员类型是String |
serviceStatus |
String |
服务状态,取值范围:
|
CapacityData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
totalCapacity |
Capacity |
主机内总容量 |
freeCapacity |
Capacity |
主机内剩余容量 |
vmStatistics |
Statistics |
主机内虚拟机统计 |
Capacity对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
cpuCore |
int |
CPU总核数;如果返回值为-1表示不支持查询 |
cpuHz |
int |
CPU主频(MHz);仅适用FusionCompute和vCenter Server类型;如果返回值为-1表示不支持查询 |
memSize |
long |
内存总数(MB);如果返回值为-1表示不支持查询 |
diskSize |
long |
磁盘总数(GB);仅适用FusionSphere类型;如果返回值为-1表示不支持查询 |
Statistics对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
total |
int |
总数 |
running |
int |
运行状态总数 |
fault |
int |
故障状态总数 |
poweroff |
int |
关机状态总数 |
other |
int |
其他状态总数 |
如果是虚拟磁盘变更信息则resourceDetail为VolumeData对象
VolumeData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
vDiskId |
string |
磁盘卷ID |
systemDn |
string |
平台标识 |
name |
String |
卷名称 |
status |
String |
原始卷状态 |
quantitySize |
int |
卷的最大容量(GB) |
isBindtoVm |
int |
卷的绑定状态,取值范围:
|
bindToVmIdList |
String |
绑定虚拟机Id列表。以英文半角分号;分隔的字符串 |
srcVolumeUrn |
String |
原卷ID |
description |
String |
卷描述信息 |
shareType |
String |
卷共享类型 |
uuid |
String |
卷uuid |
mergeStatus |
String |
归并后状态,取值范围:
|
projectId |
String |
项目 |
domainId |
String |
域 |
projectName |
String |
项目名称 |
domainName |
String |
域名称 |
azName |
String |
可用分区 |
snapshotId |
String |
卷源自快照ID |
createdAt |
long |
创建时间(毫秒),UTC时间 |
updatedAt |
long |
更新时间(毫秒),UTC时间 |
hostId |
String |
卷所在主机ID |
vDiskTypeId |
String |
卷归属的磁盘类型ID |
lunId |
String |
对应的存储设备LUNId |
如果是虚拟端口变更信息则resourceDetail为VnicData对象
VnicData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
vNicId |
String |
虚拟端口ID |
systemDn |
String |
云平台的网元DN |
name |
String |
端口名称 |
status |
String |
状态,取值范围:
|
adminStateUp |
String |
管理状态,取值范围:
|
vifType |
String |
vif类型 |
macAddress |
String |
mac地址列表,以英文半角分号分隔的字符串 |
description |
String |
描述信息 |
networkId |
String |
虚拟网络ID |
hostId |
String |
主机ID |
deviceId |
String |
挂载设备ID,若关联虚拟机,则为虚拟机uuid |
deviceOwner |
String |
归属设备owner |
ipAddress |
String |
ip地址列表,以英文半角分号分隔的字符串 |
projectId |
String |
所属租户ID |
pNicId |
String |
如果主机端口类型为pNic,则为主机端口ID; 如果主机端口类型为bond,则为bond名称。 |
pNicType |
String |
主机端口类型,取值范围:
|
overlayType |
String |
是否是混合overlay场景,若是则vSwitch类型为CE1800V,取值范围
|
createTime |
long |
创建时间(毫秒),UTC时间 |
updateTime |
long |
更新时间(毫秒),UTC时间 |
如果是主机物理网口变更信息则resourceDetail为PnicData对象
PnicData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
pNicId |
String |
主机物理端口ID |
systemDn |
String |
云平台的网元DN |
name |
String |
端口名称 |
hostId |
String |
主机ID |
devName |
String |
设备名称 |
permanentMac |
String |
mac地址 |
description |
String |
描述信息 |
bondName |
String |
bond名称 |
mappingType |
String |
映射类型,取值范围:
|
physicalNetworkName |
String |
物理网络名称 |
status |
String |
端口状态,取值范围:
|
speed |
String |
速率 |
如果是主机trunck口变更信息则resourceDetail为BondData对象
BondData对象包含以下字段:
字段名 |
类型 |
说明 |
---|---|---|
systemDn |
String |
云平台的网元DN |
name |
String |
bond名称 |
hostId |
String |
主机id |
mode |
String |
工作模式,取值范围:
|
pNicName |
String |
主物理端口名称 如果工作模式为主备模式,则该值取值为主端口名称 如果工作模式为lacp,则该值固定为空 |
macAddress |
String |
mac地址 |
status |
String |
状态,取值范围:
|
mappingType |
String |
映射类型,取值范围:
|
physicalNetworkName |
String |
物理网络名称 |
注意事项
- 当前只支持FusionSphere类型的虚拟资源主机、虚拟机、虚拟端口、虚拟磁盘、主机物理网口、主机trunck口变更消息通知
- 虚拟机支持变更的字段有:vmName、vmStatus、powerStatus、hostId、mergeStatus、cpuCores、memSize、diskSize、rootSize、swapSize、ephemeralSize、flavorInfo、flavorName
- 主机支持变更的字段有:mergeStatus、status
- 物理主机网口支持变更的字段有:status
- bond支持变更的字段有:status、macAddress
- 虚拟磁盘支持变更的字段有:name、status、quantitySize、isBindtoVm、bindToVmIdList
- 虚拟端口支持变更字段有:name、deviceId、deviceOwner、hostId、vifType
- 第三方系统收到虚拟机创建的消息通知后,需要主动查询虚拟机以及相连的虚拟端口、虚拟磁盘信息
通知示例
消息通知以 POST 方式提交,所有通知数据都保存在 HTTP 报文 Body 中。假设第三方系统 WebService 提供 javax.servlet.http.HttpServletRequest 的实现 request 实例(其他语言也有类似库实现),可如下获取消息数据:
调用方法 |
取得的值 |
---|---|
request.getParameter("resourceURI") |
"/rest/openapi/notification/virtual/res/event" |
request.getParameter("msgType") |
1 |
request.getParameter("data") |
"[{}]" |
request.getParameter("description") |
"" |
request.getParameter("timestamp") |
"2016-11-26 17:44:20" |
request.getParameter("extendedData") |
"{}" |
虚拟机变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType":3, "resourceType":"VM", "resourceDetail":{ "vmId":"584d4232-91a0-4493-aff2-f9d2e76b211d", "systemDn":"NE=34605412", "vmName":"VM002", "vmStatus":"ACTIVE", "projectId":"9e97ce0119784a8890bfb86f8d8fc0ad", "domainId":"default", "projectName":"dc_system_dc1", "domainName":"Default", "description":null, "vmUuid":"584d4232-91a0-4493-aff2-f9d2e76b211d", "ipAddrList":"10.137.0.68;10.137.0.87", "macList":"fa:16:3e:e6:5d:5e;fa:16:3e:59:ab:0e", "flavorInfo":"1.00 MB-1.00 GB", "flavorName":"l", "imageId":"e09f62fb-ee85-4a8c-86cd-2beeb0f046a5", "imageName":"test_image", "securityGroupName":"ae793345_5655_485e_8933_fe0a4d863c13;ae793345_5655_485e_8933_fe0a4d863c13", "powerStatus":0, "virtualType":"KVM", "createTime":1499935410000, "azId":"az1.dc1", "hostId":"602DD764-8145-E611-893E-75C951100860", "vmGroupId" : "25baa427-9c35-47d7-b3d9-7ba2022bd209", "vmIdOnvEnv":null, "mergeStatus":"normal", "volumeIdList":"", "capacityData":{ "cpuCores":1, "cpuFreqsGhz":0, "memSize":512, "diskSize":1, "rootSize":1, "swapSize":0, "ephemeralSize":0 } } } ], "msgType":1 }
主机变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType":3, "resourceType":"HOST", "resourceDetail":{ "hostId":"C0CFC3E4-465D-E511-8926-F40125E894D4", "systemDn":"NE=34605909", "physicalServerDn":null, "hostName":"C0CFC3E4-465D-E511-8926-F40125E894D4", "hostDesc":null, "ipAddr":"172.28.0.3", "bmcIp":"10.137.62.255", "mgrIpAddr" : "192.168.16.213", "status":"up", "mergeStatus":"normal", "isolationStatus" : "nonisolated", "vendor":null, "model":null, "ntpIp1":null, "ntpIp2":null, "ntpIp3":null, "primaryDnsIp":null, "secondaryDnsIps":null, "domainName":null, "nicQuantity":0, "physicalCpu":4, "platformType":"KVM", "fcHostExtData":null, "vcenterHostExtData":null, "fsHostExtData":{ "hostGroupName":null, "serviceStatus":"down", "azId":"az1.dc1", "hypervisorID": ["1"], "clusterID": [] }, "capacityData":{ "totalCapacity":{ "cpuCore":62, "cpuHz":-1, "memSize":65350, "diskSize":2 }, "freeCapacity":{ "cpuCore":-1, "cpuHz":-1, "memSize":-1, "diskSize":-1 }, "vmStatistics":{ "total":4, "running":4, "fault":0, "poweroff":0, "other":0 } } } } ], "msgType":1 }
虚拟磁盘变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType":3, "resourceType":"VOLUME", "resourceDetail":{ "vDiskId": "3d43f0e1-2beb-4c53-b428-105eb4899281", "systemDn": "NE=34604315", "name": "EVSin_WLT-volume-7d49", "status": "in-use", "quantitySize": 100, "isBindtoVm": 1, "bindToVmIdList": "b486c594-ef5c-4df3-b73f-df74f0d8e4af", "srcVolumeUrn": null, "description": null, "shareType": "false", "uuid": "3d43f0e1-2beb-4c53-b428-105eb4899281", "mergeStatus": "used", "projectId": "caf24fd36c74495e9ccc9db716de3831", "domainId": "default", "projectName": "vdc_WLT3", "domainName": "Default", "azName": "az1.dc3", "snapshotId": null, "createdAt": 1510539664000, "updatedAt": 1510539754000, "hostId": "cinder@ipsan1#StoragePool008", "vDiskTypeId": "e89d2a47-46d1-4c1e-9d93-2df49f474d0b", "lunId": "74495caf2c9db7cce38311g46d4fd36c" } } ], "msgType":1 }
虚拟端口变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType":3, "resourceType":"PORT", "resourceDetail":{ "vNicId": "291f77a5-d738-4aa4-817f-9547a293eab6", "systemDn": "NE=34603013", "name": "", "status": "ACTIVE", "adminStateUp": "true", "vifType": "ovs", "macAddress": "fa:16:3e:d6:fb:ed", "description": "", "networkId": "0941d81c-a94d-4d11-a731-fa5d8bfd6b4c", "hostId": "0FAD8A38-98F0-F794-E611-D7D4ACE5C338", "deviceId": "9a8c3c45-839f-4f29-945f-7b03078474a2", "deviceOwner": "compute:az1.dc1", "ipAddress": "192.168.123.75", "projectId": "caf24fd36c74495e9ccc9db716de3831", "pNicId": "trunk0", "pNicType": "bond", "overlayType": "Hybrid", "createTime": 1512725375000, "updateTime": 1521531561000 } } ], "msgType":1 }
主机物理端口变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType": 3, "resourceType": "HOSTNIC", "resourceDetail": { "portId": "eth0", "systemDn": "NE=34603009", "name": "nic0", "hostId": "0DAD8A38-98F0-B3A3-E611-D7D42A431615", "devName": "eth0", "permanentMac": "48:7B:6B:DA:36:1E", "description": "Emulex Corporation OneConnect NIC (Lancer)", "bondName": "trunk0", "mappingType": "ovs", "providerPhysicalNetwork": "physnet1", "status": "UP", "speed": "10000Mbps" } } ], "msgType":3 }
bond变更消息示例:
{ "timestamp":"2017-07-06 21:02:20", "extendedData":{ }, "resourceURI":"/rest/openapi/notification/virtual/res/event", "description":"Virtual Resource notification.", "data":[ { "eventType": 3, "resourceType": "BOND", "resourceDetail": { "systemDn": "NE=34603009", "name": "trunk0", "hostId": "0DAD8A38-98F0-B3A3-E611-D7D42A431615", "mode": "nobond", "macAddress": "48:7B:6B:DA:36:1E", "status": "UP", "mappingType": "ovs", "providerPhysicalNetwork": "physnet1", "pnicName": "nic0" } } ], "msgType":3 }
返回值为“null”时,表示属性实际值为空。