Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Last active January 9, 2017 12:31
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/6d6349f8ba20af0d4bc78ba33ddaece7 to your computer and use it in GitHub Desktop.
Save jonathanmedd/6d6349f8ba20af0d4bc78ba33ddaece7 to your computer and use it in GitHub Desktop.
ConvertTo-JSON-Level-10
$Reservation | ConvertTo-Json -Depth 10
{
"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": {
"type": "complex",
"componentTypeId": null,
"componentId": null,
"classId": null,
"typeFilter": null,
"values": {
"entries": [
{
"key": "computeResourceMemoryTotalSizeMB",
"value": {
"type": "integer",
"value": 8192
}
},
{
"key": "computeResourceMemoryReservedTotalSizeMB",
"value": {
"type": "integer",
"value": 0
}
},
{
"key": "memoryReservedSizeMb",
"value": {
"type": "integer",
"value": 4096
}
},
{
"key": "computeResourceMemoryAllocatedTotalSizeMB",
"value": {
"type": "integer",
"value": 0
}
}
]
}
}
},
{
"key": "reservationStorages",
"value": {
"type": "multiple",
"elementTypeId": "COMPLEX",
"items": [
{
"type": "complex",
"componentTypeId": null,
"componentId": null,
"classId": null,
"typeFilter": null,
"values": {
"entries": [
{
"key": "permissible_value_selected",
"value": {
"type": "boolean",
"value": true
}
},
{
"key": "storageReservedSizeGB",
"value": {
"type": "integer",
"value": 30
}
},
{
"key": "storageReservationPriority",
"value": {
"type": "integer",
"value": 1
}
},
{
"key": "storageAllocatedSizeGB",
"value": {
"type": "integer",
"value": 0
}
},
{
"key": "computeResourceStorageTotalSizeGB",
"value": {
"type": "integer",
"value": 48
}
},
{
"key": "isStorageCluster",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "storagePath",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "Storage",
"id": "0c5f55d1-c14d-49b0-8cd0-432c9541b4ab",
"label": "NFS001"
}
},
{
"key": "storageEnabled",
"value": {
"type": "boolean",
"value": true
}
},
{
"key": "computeResourceStorageReservedSizeGB",
"value": {
"type": "integer",
"value": 0
}
},
{
"key": "isSDRSEnabled",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "computeResourceStorageFreeSizeGB",
"value": {
"type": "integer",
"value": 37
}
},
{
"key": "diskCost",
"value": {
"type": "integer",
"value": 0
}
}
]
}
}
]
}
},
"key": "computeResource",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "ComputeResource",
"id": "f1c2156e-90dd-4ff3-8086-45df90949adb",
"label": "Cluster01 (vCenter)"
}
},
{
"key": "reservationNetworks",
"value": {
"type": "multiple",
"elementTypeId": "COMPLEX",
"items": [
{
"type": "complex",
"componentTypeId": "com.vmware.csp.iaas.blueprint.service",
"componentId": null,
"classId": "Infrastructure.Reservation.Network",
"typeFilter": null,
"values": {
"entries": [
{
"key": "networkPath",
"value": {
"type": "entityRef",
"componentId": null,
"classId": "Network",
"id": "ae4837cf-ec78-4b0d-b7ca-f2fd0c702ff1",
"label": "VM Network"
}
}
]
}
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment