Examples

PUT /api/smart_proxies/980190962-DHCP%20Proxy
{
  "smart_proxy": {
    "organization_ids": [
      61304186,
      114267492
    ]
  }
}
200
{
  "created_at": "2018-11-15 19:01:27 UTC",
  "updated_at": "2018-11-15 19:01:27 UTC",
  "name": "DHCP Proxy",
  "id": 980190962,
  "url": "https://somewhere.net:8443",
  "features": [
    {
      "name": "DHCP",
      "id": 219245707
    },
    {
      "name": "DNS",
      "id": 49142851
    },
    {
      "name": "TFTP",
      "id": 303403661
    },
    {
      "name": "Puppet CA",
      "id": 783807086
    },
    {
      "name": "Logs",
      "id": 814728799
    },
    {
      "name": "BMC",
      "id": 821748566
    },
    {
      "name": "Chef Proxy",
      "id": 848995175
    },
    {
      "name": "Realm",
      "id": 982965213
    },
    {
      "name": "Puppet",
      "id": 1006510553
    }
  ],
  "locations": [
    {
      "id": 255093256,
      "name": "Location 1",
      "title": "Location 1",
      "description": null
    }
  ],
  "organizations": [
    {
      "id": 61304186,
      "name": "Organization 2",
      "title": "Organization 2",
      "description": null
    },
    {
      "id": 114267492,
      "name": "Empty Organization",
      "title": "Empty Organization",
      "description": null
    }
  ]
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String

smart_proxy
required

Validations:

  • Must be a Hash

smart_proxy[name]
optional

Validations:

  • Must be a String

smart_proxy[url]
optional

Validations:

  • Must be a String

smart_proxy[location_ids]
optional , nil allowed

REPLACE locations with given ids

Validations:

  • Must be an array of any type

smart_proxy[organization_ids]
optional , nil allowed

REPLACE organizations with given ids.

Validations:

  • Must be an array of any type