示例

POST /api/smart_proxies
{
  "smart_proxy": {
    "name": "",
    "url": "http://server:8443"
  }
}
422
{
  "error": {
    "id": null,
    "errors": {
      "name": [
        "can't be blank"
      ]
    },
    "full_messages": [
      "Name can't be blank"
    ]
  }
}

參數

參數名字 描述
location_id
選填

位置範圍

Validations:

  • Must be a Integer

organization_id
選填

組織範圍

Validations:

  • Must be a Integer

smart_proxy
必填

Validations:

  • Must be a Hash

smart_proxy[name]
必填

Validations:

  • Must be a String

smart_proxy[url]
必填

Validations:

  • Must be a String

smart_proxy[location_ids]
選填 , 允許空值

將位置取代為特定 ID

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
選填 , 允許空值

將組織取代為特定 ID。

Validations:

  • Must be an array of any type