URI | /v1/accounts/{username}/computers/{computer_id}/info |
URI Parameters |
|
Methods | GET, PUT |
GET /v1/accounts/{username}/computers/{computer_id}/info
Gets a computer's customer controllable properties.
Scope | computers_read |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
GET /v1/accounts/barracuda/computers/0000/info HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Accept: application/json
Response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"name": "Mail Server",
"email": "jsmith@barracuda.com",
"phone": "617-948-5300"
}
Example XML
Request:
GET /v1/accounts/barracuda/computers/0000/info 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"?>
<computer>
<name>Mail Server</name>
<email>jsmith@barracuda.com</email>
<phone>617-948-5300</phone>
</computer>
PUT /v1/accounts/{username}/computers/{computer_id}/info
Edits a computer's customer controllable properties.
Scope | computers_write |
Request Body Parameters |
|
Response Attributes |
|
Example JSON
Request:
PUT /v1/accounts/barracuda/computers/0000/info HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/json
{
"name": "Mail Server",
"email": "jsmith@barracuda.com",
"phone": "617-948-5300"
}
Response:
HTTP/1.1 204 No Content
Example XML
Request:
GET /v1/accounts/barracuda/computers/0000/info HTTP/1.1
Host: api.intronis.com
Authorization: OAuth vF9dft4qmT
Content-Type: application/xml
<?xml version="1.0" encoding="UTF-8"?>
<computer>
<name>Mail Server</name>
<email>jsmith@barracuda.com</email>
<phone>617-948-5300</phone>
</computer>
Response:
HTTP/1.1 204 No Content