PUT /api/hosts/980191316/subscriptions/content_override
{
"content_overrides": [
{
"content_label": "some-content",
"value": 1
}
],
"value": "yes",
"host_subscription": {
"content_overrides": [
{
"content_label": "some-content",
"value": 1
}
],
"value": "yes"
}
}
200
{
"total": 1,
"subtotal": 1,
"selectable": 1,
"page": 1,
"per_page": 1,
"error": null,
"search": null,
"sort": {
"by": null,
"order": null
},
"results": [
{
"enabled": false,
"product": {
"id": null,
"name": "Product 54"
},
"content": {
"id": null,
"name": "content-name13",
"label": "some-content",
"vendor": null,
"content_type": null,
"content_url": null,
"gpg_url": null
},
"repositories": [],
"name": "content-name13",
"vendor": null,
"label": "some-content",
"id": null,
"type": null,
"gpgUrl": null,
"contentUrl": null,
"archRestricted": null,
"osRestricted": null,
"override": "default",
"overrides": [],
"enabled_content_override": null,
"redhat": false
}
]
}
| Param name | Description |
|---|---|
|
host_id
required |
Id of the content host Validations:
|
|
value
optional |
Override to a boolean value or 'default' Validations:
|
|
content_overrides
optional |
Array of Content override parameters Validations:
|
|
content_overrides[content_label]
required |
Label of the content Validations:
|
|
content_overrides[value]
optional |
Override value. Provide a boolean value if name is 'enabled' Validations:
|
|
content_overrides[name]
optional |
Override key or name. Note if name is not provided the default name will be 'enabled' Validations:
|
|
content_overrides[remove]
optional |
Set true to remove an override and reset it to 'default' Validations:
|
|
content_overrides_search
optional |
Content override search parameters Validations:
|
|
content_overrides_search[search]
optional |
Search string Validations:
|
|
content_overrides_search[page]
optional |
Page number, starting at 1 Validations:
|
|
content_overrides_search[per_page]
optional |
Number of results per page to return Validations:
|
|
content_overrides_search[order]
optional |
Sort field and order, eg. 'id DESC' Validations:
|
|
content_overrides_search[full_result]
optional |
Whether or not to show all results Validations:
|
|
content_overrides_search[sort_by]
optional |
Field to sort the results on Validations:
|
|
content_overrides_search[sort_order]
optional |
How to order the sorted results (e.g. ASC for ascending) Validations:
|
|
content_overrides_search[enabled]
optional |
Set true to override to enabled; Set false to override to disabled.' Validations:
|
|
content_overrides_search[remove]
optional |
Set true to remove an override and reset it to 'default' Validations:
|