URI | /v1/accounts/{username}/computers/{computer_id}/notifications/emails/{email_id} |
URI Parameters |
|
Methods | GET, PUT, DELETE |
GET /v1/accounts/{username}/computers/{computer_id}/notifications/emails/{email_id}
Gets an email's information.
Scope | computers_read |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
GET /v1/accounts/barracuda/computers/0000/notifications/emails/10 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"email": "support@barracudamsp.com",
"backup_completed": false,
"backup_warning": false,
"backup_failed": false,
"backup_missed": true,
"no_recent_backup": false,
}
Example XML
Request:
GET /v1/accounts/barracuda/computers/0000/notifications/emails/10 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/xml
Response:
HTTP/1.1 200 OK
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<email>
<email>support@barracudamsp.com</email>
<backup_completed>false</backup_completed>
<backup_warning>false</backup_warning>
<backup_failed>false</backup_failed>
<backup_missed>true</backup_missing>
<no_recent_backup>false</no_recent_backup>
</email>
PUT /v1/accounts/{username}/computers/{computer_id}/notifications/emails/{email_id}
Edits an email's information.
Scope | computers_write |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
POST /v1/accounts/barracuda/computers/0000/notifications/emails/10 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/json
{
"email": "support@barracudamsp.com",
"backup_completed": false,
"backup_warning": false,
"backup_failed": false,
"backup_missed": true,
"no_recent_backup": false,
}
Response:
HTTP/1.1 204 No Content
Example XML
Request:
GET /v1/accounts/barracuda/computers/0000/notifications/emails/10 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<email>
<email>support@barracudamsp.com</email>
<backup_completed>false</backup_completed>
<backup_warning>false</backup_warning>
<backup_failed>false</backup_failed>
<backup_missed>true</backup_missing>
<no_recent_backup>false</no_recent_backup>
</email>
Response:
HTTP/1.1 204 No Content
DELETE /v1/accounts/{username}/computers/{computer_id}/notifications/emails/{email_id}
Deletes an email from a computer's notifications. The 0 email_id cannot be deleted and the server responds with 405 Method Not Allowed.
Scope | computers_write |
Request Body Parameters |
|
Response Attributes |
|
Example
Request:
DELETE /v1/accounts/barracuda/computers/0000/notifications/emails/10 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 204 No Content
Example 0 email_id
Request:
DELETE /v1/accounts/barracuda/computers/0000/notifications/emails/0 HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Response:
HTTP/1.1 405 Method Not Allowed