POST /api/environments/env1/smart_proxies/182953976/import_puppetclasses
{
"smart_proxy": {}
}
200
{
"message": "Successfully updated environment and puppetclasses from the on-disk puppet installation",
"results": {
"name": "env1",
"actions": [
"new"
],
"new_puppetclasses": [
"a"
]
}
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|
|
smart_proxy_id optional |
Validations:
|
|
environment_id optional |
Validations:
|
|
dryrun optional |
Validations:
|
|
except optional |
Optional comma-delimited string containing either ‘new’, ‘updated’, or ‘obsolete’ that is used to limit the imported Puppet classes Validations:
|
GET /api/smart_proxies
200
{
"total": 8,
"subtotal": 8,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "A proxy with Logs feature",
"id": 814728799,
"url": "http://else.where:45674",
"features": [
{
"name": "DHCP",
"id": 219245707
},
{
"name": "DNS",
"id": 49142851
},
{
"name": "Puppet",
"id": 1006510553
},
{
"name": "Logs",
"id": 814728799
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "BMC proxy",
"id": 821748566,
"url": "http://else.where:45673",
"features": [
{
"name": "BMC",
"id": 821748566
}
]
},
{
"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
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "DNS Proxy",
"id": 113629430,
"url": "http://else.where:45671",
"features": [
{
"name": "DNS",
"id": 49142851
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "Puppetmaster Proxy",
"id": 182953976,
"url": "http://else.where:4567",
"features": [
{
"name": "Puppet",
"id": 1006510553
},
{
"name": "Puppet CA",
"id": 783807086
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "Realm Proxy",
"id": 982965213,
"url": "http://else.where:1337",
"features": [
{
"name": "Realm",
"id": 982965213
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "TFTP Proxy",
"id": 298486374,
"url": "http://somewhere.else",
"features": [
{
"name": "TFTP",
"id": 303403661
}
]
},
{
"created_at": "2018-11-15 19:01:27 UTC",
"updated_at": "2018-11-15 19:01:27 UTC",
"name": "Unused Proxy",
"id": 281110143,
"url": "http://else.where:45672",
"features": []
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
search optional |
filter results Validations:
|
|
order optional |
Sort field and order, eg. ‘id DESC’ Validations:
|
|
page optional |
paginate results Validations:
|
|
per_page optional |
number of entries per request Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| feature | string | |
| location | string | |
| location_id | integer | |
| name | string | |
| organization | string | |
| organization_id | integer | |
| url | string |
GET /api/smart_proxies/980190962-DHCP%20Proxy
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
}
],
"locations": [
{
"id": 255093256,
"name": "Location 1",
"title": "Location 1",
"description": null
}
],
"organizations": [
{
"id": 447626438,
"name": "Organization 1",
"title": "Organization 1",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|
POST /api/smart_proxies
{
"smart_proxy": {
"name": "master02",
"url": "http://server:8443"
}
}
201
{
"created_at": "2018-11-15 19:02:28 UTC",
"updated_at": "2018-11-15 19:02:28 UTC",
"name": "master02",
"id": 982965214,
"url": "http://server:8443",
"features": [
{
"name": "DNS",
"id": 49142851
},
{
"name": "DHCP",
"id": 219245707
},
{
"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": [],
"organizations": []
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
smart_proxy required |
Validations:
|
|
smart_proxy[name] required |
Validations:
|
|
smart_proxy[url] required |
Validations:
|
|
smart_proxy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
smart_proxy[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
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
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|
|
smart_proxy required |
Validations:
|
|
smart_proxy[name] optional |
Validations:
|
|
smart_proxy[url] optional |
Validations:
|
|
smart_proxy[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
|
smart_proxy[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|
DELETE /api/smart_proxies/281110143-Unused%20Proxy
{
"smart_proxy": {}
}
200
{
"id": 281110143,
"name": "Unused Proxy",
"url": "http://else.where:45672",
"created_at": "2018-11-15T19:01:27.681Z",
"updated_at": "2018-11-15T19:01:27.681Z",
"expired_logs": "0"
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|
POST /api/smart_proxies/980190962-DHCP%20Proxy/refresh
{
"smart_proxy": {}
}
201
{
"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": 447626438,
"name": "Organization 1",
"title": "Organization 1",
"description": null
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Scope by locations Validations:
|
|
organization_id optional |
Scope by organizations Validations:
|
|
id required |
Validations:
|