示例

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
}

參數

參數名字 描述
location_id
選填

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
選填

Set the current organization context for the request

Validations:

  • Must be a Integer

http_proxy
必填

Validations:

  • Must be a Hash

http_proxy[name]
必填

The HTTP Proxy name

Validations:

  • Must be a String

http_proxy[url]
必填

URL of the HTTP Proxy

Validations:

  • Must be a String

http_proxy[username]
選填 , 允許空值

Username used to authenticate with the HTTP Proxy

Validations:

  • Must be a String

http_proxy[password]
選填 , 允許空值

Password used to authenticate with the HTTP Proxy

Validations:

  • Must be a String

http_proxy[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

http_proxy[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type