Примеры

POST /api/smart_proxies
{
  "smart_proxy": {
    "name": "master02",
    "url": "http://server:8443"
  }
}
201
{
  "created_at": "2019-11-07 08:34:32 UTC",
  "updated_at": "2019-11-07 08:34:32 UTC",
  "name": "master02",
  "id": 982965219,
  "url": "http://server:8443",
  "features": [
    {
      "capabilities": [],
      "name": "DNS",
      "id": 49142851
    },
    {
      "capabilities": [],
      "name": "TFTP",
      "id": 303403661
    },
    {
      "capabilities": [],
      "name": "DHCP",
      "id": 219245707
    },
    {
      "capabilities": [],
      "name": "Puppet CA",
      "id": 783807086
    },
    {
      "capabilities": [],
      "name": "Puppet",
      "id": 1006510553
    },
    {
      "capabilities": [],
      "name": "BMC",
      "id": 821748566
    },
    {
      "capabilities": [],
      "name": "Chef Proxy",
      "id": 848995175
    },
    {
      "capabilities": [],
      "name": "Realm",
      "id": 982965213
    },
    {
      "capabilities": [],
      "name": "Logs",
      "id": 814728799
    }
  ],
  "locations": [],
  "organizations": []
}

Параметры

Имя параметра Описание
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

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]
необязательно , nil разрешен

ЗАМЕСТИТЬ местоположения с заданным кодом

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
необязательно , nil разрешен

ЗАМЕСТИТЬ организации с заданным кодом

Validations:

  • Must be an array of any type