1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
[
{
"operation": "shift",
"spec": {
"server": {
"id": "id",
"name": "name",
"locked": "tempList[].inMaintenance",
"OS-EXT-SRV-ATTR:hostname": "tempList[].hostname",
"image": {
"id": "tempList[].imageId"
},
"status": "tempList[].status",
"OS-EXT-STS:vm_state" : "tempList[].vmState",
"user_id" : "tempList[].userId",
"tenant_id" : "tempList[].tenantId",
"hostId" : "tempList[].hostId",
"OS-EXT-SRV-ATTR:host" : "tempList[].host",
"host_status" : "tempList[].hostStatus"
}
}
}
,
{
"operation": "shift",
"spec": {
"tempList": {
"*": {
"*" : {
"$": "attributeList[#3].name",
"@": "attributeList[#3].value"
},
"#ok": "attributeList[#2].dataQuality.status"
}
},
"*": {
"@" : "&"
},
"#vserver": "type",
"#ok": "dataQuality.status"
}
}
]
|