{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "PUT JSON Schema for Route Tables",
"type": "object",
"definitions": {
"resourceMetadata": {
"properties": {
"client": {
"type": "string"
},
"tenantId": {
"type": "string"
},
"groupId": {
"type": "string"
},
"resourceName": {
"type": "string"
},
"originalHref": {
"type": "string"
}
}
}
},
"properties": {
"resourceId": {
"type": "string"
},
"resourceMetadata": {
"$ref": "#/definitions/resourceMetadata"
},
"properties": {
"type": "object",
"properties": {
"routes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"resourceId": {
"type": "string"
},
"resourceMetadata": {
"$ref": "#/definitions/resourceMetadata"
},
"properties": {
"type": "object",
"properties": {
"addressPrefix": {
"type": "string"
},
"nextHopType": {
"enum": [ "VirtualAppliance", "VnetLocal", "Internet", "VirtualNetworkGateway", "None" ]
},
"nextHopIpAddress": {
"type": "string"
}
},
"required": [
"addressPrefix",
"nextHopType"
]
}
},
"required": [
"resourceId",
"properties"
]
}
}
},
"required": [
"routes"
]
}
},
"required": [
"properties"
]
}