Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created January 9, 2017 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmedd/2ef5c3f6e81e1919569256f1edcf28ad to your computer and use it in GitHub Desktop.
Save jonathanmedd/2ef5c3f6e81e1919569256f1edcf28ad to your computer and use it in GitHub Desktop.
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