{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "GET JSON Schema for discovery resource",
"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}$"
},
"provisioningState": {
"enum": [ "Succeeded", "Updating", "Deleting", "Failed" ]
}
},
"properties": {
"resourceRef": {
"type": "string"
},
"resourceId": {
"type": "string"
},
"instanceId": {
"type": "string"
},
"properties": {
"type": "object",
"properties": {
"provisioningState": {
"$ref": "#/definitions/provisioningState"
},
"networkControllerVersion": {
"type": "string"
},
"currentRestVersion": {
"type": "string",
"enum": [ "v1", "v2", "v3", "V1", "V2", "V3" ]
},
"supportedRestVersions": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "string",
"enum": [ "v1", "v2", "v3", "V1", "V2", "V3" ]
}
]
}
},
"required": [
"provisioningState",
"currentRestVersion",
"networkControllerVersion",
"supportedRestVersions"
]
}
},
"required": [
"resourceRef",
"resourceId",
"instanceId",
"properties"
]
}