{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "GET JSON Schema for VirtualServers",
"type": "object",
"definitions": {
"GUID": {
"type" : "string",
"pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$"
},
"resourceMetadata": {
"properties": {
"client": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"groupId": {
"type": "string"
},
"resourceName": {
"type": "string"
},
"originalHref": {
"type": "string"
}
}
},
"provisioningState": {
"enum": [ "Succeeded", "Updating", "Deleting", "Failed" ]
}
},
"properties": {
"resourceRef": {
"type": "string"
},
"resourceId": {
"type": "string"
},
"etag": {
"type": "string"
},
"instanceId": {
"$ref": "#/definitions/resourceMetadata"
},
"resourceMetadata": {
"$ref": "#/definitions/resourceMetadata"
},
"properties": {
"type": "object",
"properties": {
"provisioningState": {
"$ref": "#/definitions/provisioningState"
},
"connections": {
"type": "array",
"items": {
"type": "object",
"properties": {
"managementAddresses": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
},
"credential": {
"type": "object",
"properties": {
"resourceRef": {
"type": "string"
}
},
"required": [
"resourceRef"
]
},
"credentialType": {
"enum": [ "usernamePassword", "X509Certificate" ]
}
},
"required": [
"managementAddresses",
"credential",
"credentialType"
]
}
},
"vmGuid": {
"type": "string"
}
},
"required": [
"provisioningState",
"connections",
"vmGuid"
]
},
"markServerReadOnly": {
"type": "boolean"
},
"tags": {
"additionalProperties": { "type": "string" }
}
},
"required": [
"resourceRef",
"resourceId",
"etag",
"instanceId",
"properties",
"markServerReadOnly"
]
}