PUT /api/smart_proxies/:smart_proxy_id/hosts/:host_id
Assign a host to the smart proxy

Examples

PUT /api/smart_proxies/982965828/hosts/12345
{
  "smart_proxy_host": {}
}
404
{
  "error": {
    "message": "Resource smart_proxy_host not found by id '12345'"
  }
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

smart_proxy_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.

host_id
optional

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


GET /api/smart_proxies/:smart_proxy_id/hosts
Get hosts forming the smart proxy

Examples

GET /api/smart_proxies/982965222/hosts
422
{
  "error": {
    "message": "Couldn't find SmartProxy with 'id'=982965222"
  }
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer


DELETE /api/smart_proxies/:smart_proxy_id/hosts/:host_id
Unassign a given host from the smart proxy

Examples

DELETE /api/smart_proxies/982965223/hosts/94
{
  "smart_proxy_host": {}
}
204

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer