This repository has been archived by the owner on May 22, 2023. It is now read-only.
TemplateResource
Nick Douma edited this page Mar 6, 2012
·
2 revisions
Retrieves an existing DNS template.
{
{
"identifier": <string>,
"description": <string>,
"entries": [ {
"name": <string>,
"type": <string>,
"content": <string>,
"ttl": <int>,
"priority": <int>
},0..n ]
},0..n
]
- 500 - Failed to connect to database or query execution error.
- 500 - Failed to connect to database or query execution error.
- 404 - Could not find template.
Create a new DNS template.
{
"identifier": <string>,
"description": <string>,
"entries": [ {
"name": <string>,
"type": <string>,
"content": <string>,
"ttl": <int>,
"priority": <int>
},0..n ]
}
true
- 508 - Invalid request, missing required parameters or input validation failed.
- 500 - Failed to connect to database or query execution error.
- 409 - Template already exists.
Update an existing DNS template. This method will overwrite the entire Template.
{
"identifier": <string>,
"description": <string>,
"entries": [ {
"name": <string>,
"type": <string>,
"content": <string>,
"ttl": <int optional>,
"priority": <int optional>
},0..n ]
}
true
- 508 - Invalid request, missing required parameters or input validation failed.
- 500 - Failed to connect to database or query execution error.
- 404 - Could not find template.
Delete an existing DNS template.
true
- 508 - Invalid request, missing required parameters or input validation failed.
- 500 - Failed to connect to database or query execution error.
- 404 - Could not find template.
Validates the properties of a template.
To validator Template records, use the RecordResource.
{
"identifier": <string>,
"description": <string>
}
true
- 508 - Invalid request, missing required parameters or input validation failed.