POST /api/smart_proxies/182953976/import_puppetclasses
{
"smart_proxy": {}
}
200
{
"message": "Successfully updated environment and puppetclasses from the on-disk puppet installation",
"environments_with_new_puppetclasses": 2,
"environments_updated_puppetclasses": 0,
"environments_obsolete": 3,
"environments_ignored": 0,
"results": [
{
"name": "env1",
"actions": [
"new"
],
"new_puppetclasses": [
"a"
]
},
{
"name": "env2",
"actions": [
"new"
],
"new_puppetclasses": [
"b"
]
},
{
"name": "global_puppetmaster",
"actions": [
"obsolete"
],
"removed_environment": "global_puppetmaster"
},
{
"name": "production",
"actions": [
"obsolete"
],
"removed_environment": "production"
},
{
"name": "testing",
"actions": [
"obsolete"
],
"removed_environment": "testing"
}
]
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request 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:
|
| 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 |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return Validations:
|
| Field name | Type | Possible values |
|---|---|---|
| feature | string | |
| location | string | |
| location_id | integer | |
| name | string | |
| organization | string | |
| organization_id | integer | |
| url | string |
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request 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:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request 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:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
id required |
Validations:
|