71 lines
1.8 KiB
JSON
71 lines
1.8 KiB
JSON
{
|
|
"id": "/schemas/domain",
|
|
|
|
"$schema": "http://json-schema.org/draft-03/hyper-schema",
|
|
|
|
"title": "domain",
|
|
"description": "Domain",
|
|
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"description": "Domain Identifier",
|
|
"pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",
|
|
"readonly": true
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Domain name",
|
|
"format": "domain-name",
|
|
"maxLength": 255,
|
|
"required": true,
|
|
"readonly": true
|
|
},
|
|
"email": {
|
|
"type": "string",
|
|
"description": "Hostmaster email address",
|
|
"format": "email",
|
|
"maxLength": 255,
|
|
"required": true
|
|
},
|
|
"ttl": {
|
|
"type": "integer",
|
|
"description": "Time to live",
|
|
"min": 1,
|
|
"max": 4294967295
|
|
},
|
|
"serial": {
|
|
"type": "integer",
|
|
"description": "Serial Number",
|
|
"min": 1,
|
|
"max": 4294967295,
|
|
"readonly": true
|
|
},
|
|
"created_at": {
|
|
"type": "string",
|
|
"description": "Date and time of image registration",
|
|
"format": "date-time",
|
|
"readonly": true
|
|
},
|
|
"updated_at": {
|
|
"type": ["string", "null"],
|
|
"description": "Date and time of image registration",
|
|
"format": "date-time",
|
|
"readonly": true
|
|
}
|
|
},
|
|
"links": [{
|
|
"rel": "self",
|
|
"href": "/domains/{id}"
|
|
}, {
|
|
"rel": "records",
|
|
"href": "/domains/{id}/records"
|
|
}, {
|
|
"rel": "servers",
|
|
"href": "/domains/{id}/servers"
|
|
}, {
|
|
"rel": "collection",
|
|
"href": "/domains"
|
|
}]
|
|
}
|