{
    "id": "http://schema.management.azure.com/schemas/2015-07-01-preview/Microsoft.ServerManagement.json#",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Microsoft.ServerManagement",
    "description": "Microsoft.ServerManagement Resource Types",
    "resourceDefinitions": {
        "gateway": {
            "type": "object",
            "description": "A Server management tools gateway",
            "properties": {
                "apiVersion": {
                    "enum": [
                        "2015-07-01-preview"
                    ]
                },
                "type": {
                    "enum": [
                        "Microsoft.ServerManagement/gateways"
                    ]
                },
                "properties": {
                    "type": "object",
                    "additionalProperties": false
                }
            },
            "required": [
                "location",
                "name",
                "properties"
            ]
        },
        "node": {
            "type": "object",
            "description": "A Server management tools node",
            "properties": {
                "apiVersion": {
                    "enum": [
                        "2015-07-01-preview"
                    ]
                },
                "type": {
                    "enum": [
                        "Microsoft.ServerManagement/nodes"
                    ]
                },
                "properties": {
                    "type": "object",
                    "properties": {
                        "gatewayId": {
                            "description": "The gateway to to which this node belongs. This is the ARM resource id for the gateway",
                            "type": "string"
                        },
                        "connectionName": {
                            "description": "The node name to connect to. It can be one of NetBios name, IP (v4/v6), FQDN",
                            "type": "string"
                        }
                    },
                    "required": [
                        "gatewayId",
                        "connectionName"
                    ],
                    "additionalProperties": false
                }
            },
            "required": [
                "name",
                "location",
                "properties"
            ]
        }
    },
    "properties": {
        "resourceDefinitions.gateway": {
            "$ref": "#/resourceDefinitions/gateway"
        },
        "resourceDefinitions.node": {
            "$ref": "#/resourceDefinitions/node"
        }
    },
    "required": [
        "resourceDefinitions.gateway",
        "resourceDefinitions.node"
    ]
}