Exemplos

PUT /api/http_proxies/4
{
  "http_proxy": {
    "url": "https://some_other_url"
  }
}
200
{
  "id": 4,
  "url": "https://some_other_url",
  "name": "http_proxy_226",
  "username": null,
  "password": null
}

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
requerido

Validations:

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

http_proxy
requerido

Validations:

  • Must be a Hash

http_proxy[name]
opcional

O nome do proxy HTTP

Validations:

  • Must be a String

http_proxy[url]
opcional

URL do proxy HTTP

Validations:

  • Must be a String

http_proxy[username]
opcional , nulo permitido

Nome de usuário usado para autenticar com o proxy HTTP

Validations:

  • Must be a String

http_proxy[password]
opcional , nulo permitido

A senha usada para autenticar com o proxy HTTP

Validations:

  • Must be a String

http_proxy[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

http_proxy[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type