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": 0,
"environments_updated_puppetclasses": 1,
"environments_obsolete": 1,
"environments_ignored": 1,
"results": [
{
"name": "env1",
"actions": [
"ignored"
],
"ignored_environment": "env1"
},
{
"name": "env2",
"actions": [
"updated",
"obsolete"
],
"updated_puppetclasses": [
"a"
],
"obsolete_puppetclasses": [
"b",
"c"
]
}
]
}
| 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:
|