Just wondering if there’s a way to dynamically create say a Web API donut tile for each item in a list of returned values. For example I have a server with 3 datastores, rather than explicitly create a tile naming each datastore, is it possible to have a section that displays the same tile for each sub item?
e.g.
my API call returns
{
"items": [
{
"datastoreId": 9,
"moRef": "datastore-29015",
"parentId": 13,
"parentType": "DatastoreFolder",
"name": "CD-ESX1-DS1-SSD",
"type": "Vmfs",
"connectionState": "Connected",
"path": "ds:///vmfs/volumes/5e7e078a-0c4ff494-e4dd-782bcb4adaff/",
"capacityBytes": 255282118656,
"freeSpaceBytes": 119919345664,
"vmCount": 2,
"hostCount": 1,
"businessViewGroupIds": [
68
]
},
{
"datastoreId": 10,
"moRef": "datastore-29016",
"parentId": 13,
"parentType": "DatastoreFolder",
"name": "CD-ESX1-DS2-HDD",
"type": "Vmfs",
"connectionState": "Connected",
"path": "ds:///vmfs/volumes/5e7e07a0-4e177db2-7041-782bcb4adaff/",
"capacityBytes": 499289948160,
"freeSpaceBytes": 217254461440,
"vmCount": 8,
"hostCount": 1,
"businessViewGroupIds": [
68
]
},
{
"datastoreId": 11,
"moRef": "datastore-29057",
"parentId": 13,
"parentType": "DatastoreFolder",
"name": "CD-LAB-NFS2",
"type": "Nfs",
"connectionState": "Connected",
"path": "ds:///vmfs/volumes/1d2d30a4-4d810594/",
"capacityBytes": 494650949632,
"freeSpaceBytes": 494650826752,
"vmCount": 0,
"hostCount": 1,
"businessViewGroupIds": [
68
]
},
{
"datastoreId": 12,
"moRef": "datastore-600",
"parentId": 13,
"parentType": "DatastoreFolder",
"name": "CD-LAB-NFS1",
"type": "Nfs",
"connectionState": "Connected",
"path": "ds:///vmfs/volumes/88ef1926-eb73b466/",
"capacityBytes": 782585634816,
"freeSpaceBytes": 494650826752,
"vmCount": 16,
"hostCount": 1,
"businessViewGroupIds": [
68
]
}
],
"totalCount": 4
}
I would like a section that creates a donut tile with name, capacityBytes,freeSpaceBytes for each datastore
Is this possible?