示例

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