GET /api/smart_class_parameters/328495940-cluster/override_values
200
{
"total": 2,
"subtotal": 2,
"page": 1,
"per_page": 20,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"created_at": "2020-05-20 13:12:46 UTC",
"updated_at": "2020-05-20 13:12:46 UTC",
"id": 674471636,
"match": "fqdn=temp.yourdomain.net",
"value": "8080",
"omit": false
},
{
"created_at": "2020-05-20 13:12:46 UTC",
"updated_at": "2020-05-20 13:12:46 UTC",
"id": 874520030,
"match": "hostgroup=Common",
"value": "8080",
"omit": false
}
]
}
| 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_class_parameter_id optional |
Validations:
|
|
show_hidden optional |
Display hidden values Validations:
|
|
page optional |
Page number, starting at 1 Validations:
|
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
GET /api/smart_class_parameters/328495940-cluster/override_values/hostgroup=Common
200
{
"created_at": "2020-05-20 13:12:46 UTC",
"updated_at": "2020-05-20 13:12:46 UTC",
"id": 874520030,
"match": "hostgroup=Common",
"value": "8080",
"omit": false
}
| 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_class_parameter_id optional |
Validations:
|
|
id required |
Validations:
|
|
show_hidden optional |
Display hidden values Validations:
|
POST /api/smart_class_parameters/1018350796/override_values
{
"override_value": {
"value": "xyz=10"
}
}
500
{
"error": {
"message": "Validation failed: Match can't be blank, Match is invalid"
}
}
| 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_class_parameter_id optional |
Validations:
|
|
override_value required |
Validations:
|
|
override_value[match] required |
Override match Validations:
|
|
override_value[value] optional , nil allowed |
Override value, required if omit is false Validations:
|
|
override_value[omit] optional , nil allowed |
Foreman will not send this parameter in classification output Validations:
|
PUT /api/smart_class_parameters/328495940-cluster/override_values/874520030
{
"override_value": {
"match": "os=abc"
}
}
200
{
"created_at": "2020-05-20 13:12:46 UTC",
"updated_at": "2020-05-20 13:12:48 UTC",
"id": 874520030,
"match": "os=abc",
"value": "8080",
"omit": false
}
| 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_class_parameter_id optional |
Validations:
|
|
override_value required |
Validations:
|
|
override_value[match] optional |
Override match Validations:
|
|
override_value[value] optional , nil allowed |
Override value, required if omit is false Validations:
|
|
override_value[omit] optional , nil allowed |
Foreman will not send this parameter in classification output Validations:
|
DELETE /api/smart_class_parameters/328495940-cluster/override_values/hostgroup=Common
{
"override_value": {}
}
200
{
"created_at": "2020-05-20 13:12:46 UTC",
"updated_at": "2020-05-20 13:12:46 UTC",
"id": 874520030,
"match": "hostgroup=Common",
"value": "8080",
"omit": false
}
| 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_class_parameter_id optional |
Validations:
|
|
id required |
Validations:
|