GET /api/http_proxies 200 { "total": 0, "subtotal": 0, "page": 1, "per_page": 20, "search": null, "sort": { "by": null, "order": null }, "results": [] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. '<field> DESC' Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return, 'all' to return all results Validations:
|
Field name | Type | Possible values |
---|---|---|
id | integer | |
location | string | |
location_id | integer | |
name | string | |
organization | string | |
organization_id | integer | |
url | string |
GET /api/http_proxies/1 200 { "id": 1, "name": "http_proxies", "url": "http://url_3", "username": null }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Identifier of the HTTP Proxy Validations:
|
POST /api/http_proxies { "http_proxy": { "name": "http_proxy_is_smart", "url": "http://what????:5000" } } 201 { "id": 1, "name": "http_proxy_is_smart", "url": "http://what????:5000", "username": null, "password": null }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
http_proxy required |
Validations:
|
http_proxy[name] required |
The HTTP Proxy name Validations:
|
http_proxy[url] required |
URL of the HTTP Proxy Validations:
|
http_proxy[username] optional , nil allowed |
Username used to authenticate with the HTTP Proxy Validations:
|
http_proxy[password] optional , nil allowed |
Password used to authenticate with the HTTP Proxy Validations:
|
http_proxy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
http_proxy[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
PUT /api/http_proxies/1 { "http_proxy": { "url": "https://some_other_url" } } 200 { "id": 1, "url": "https://some_other_url", "name": "http_proxies", "username": null, "password": null }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
http_proxy required |
Validations:
|
http_proxy[name] optional |
The HTTP Proxy name Validations:
|
http_proxy[url] optional |
URL of the HTTP Proxy Validations:
|
http_proxy[username] optional , nil allowed |
Username used to authenticate with the HTTP Proxy Validations:
|
http_proxy[password] optional , nil allowed |
Password used to authenticate with the HTTP Proxy Validations:
|
http_proxy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
http_proxy[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
DELETE /api/http_proxies/1 { "http_proxy": {} } 200 { "id": 1, "name": "http_proxies", "url": "http://url_1", "username": null, "password": null }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|