Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ConvertTo-JSON Level 2
$Reservation | ConvertTo-Json
{
"createdDate": "2016-09-15T16:28:26.51Z",
"lastUpdated": "2016-09-15T16:28:26.51Z",
"version": 0,
"id": "8731ceb3-01cd-4dd6-834e-49a9aa8057d8",
"name": "Reservation01",
"reservationTypeId": "Infrastructure.Reservation.Virtual.vSphere",
"tenantId": "Tenant01",
"subTenantId": "b010265c-bd9c-4dd3-84e0-7ee8beee8e5c",
"enabled": true,
"priority": 1,
"reservationPolicyId": null,
"alertPolicy": {
"enabled": false,
"frequencyReminder": 0,
"emailBgMgr": true,
"recipients": [
],
"alerts": [
"@{alertPercentLevel=80; referenceResourceId=storage}",
"@{alertPercentLevel=80; referenceResourceId=memory}",
"@{alertPercentLevel=80; referenceResourceId=cpu}",
"@{alertPercentLevel=80; referenceResourceId=machine}"
]
},
"extensionData": {
"entries": [
"@{key=reservationMemory; value=}",
"@{key=reservationStorages; value=}",
"@{key=computeResource; value=}",
"@{key=reservationNetworks; value=}"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment