{
    "id": "tsigkey",

    "$schema": "http://json-schema.org/draft-03/hyper-schema",

    "title": "tsigkey",
    "description": "TSIG Key",
    "additionalProperties": false,

    "properties": {
        "id": {
            "type": "string",
            "description": "TSIG Key Identifier",
            "format": "uuid",
            "readonly": true
        },
        "name": {
            "type": "string",
            "description": "TSIG Key Name",
            "maxLength": 255,
            "required": true
        },
        "algorithm": {
            "type": "string",
            "description": "TSIG Algorithm",
            "enum": ["hmac-md5", "hmac-sha1", "hmac-sha224", "hmac-sha256", "hmac-sha384", "hmac-sha512"],
            "required": true
        },
        "secret": {
            "type": "string",
            "description": "TSIG Secret",
            "maxLength": 255,
            "required": true
        }
    },
    "links": [{
        "rel": "self",
        "href": "/tsigkeys/{id}"
    }, {
        "rel": "collection",
        "href": "/tsigkeys"
    }]
}
