PUT /api/hosts/bulk/add_subscriptions
{
"included": {
"ids": [
980191249,
980191250
]
},
"organization_id": 114267492,
"subscriptions": [
{
"id": 128914721,
"quantity": 1
}
],
"hosts_bulk_action": {
"included": {
"ids": [
980191249,
980191250
]
},
"organization_id": 114267492,
"subscriptions": [
{
"id": 128914721,
"quantity": 1
}
]
}
}
202
{
"id": null,
"label": null,
"pending": null,
"username": null,
"started_at": null,
"ended_at": null,
"state": null,
"result": null,
"progress": null,
"input": null,
"output": {},
"humanized": null,
"cli_example": null,
"available_actions": {
"cancellable": null,
"resumable": null
}
}
| Param name | Description |
|---|---|
|
organization_id required |
ID of the organization Validations:
|
|
included required |
Validations:
|
|
included[search] optional , nil allowed |
Search string for hosts to perform an action on Validations:
|
|
included[ids] optional , nil allowed |
List of host ids to perform an action on Validations:
|
|
excluded required |
Validations:
|
|
excluded[ids] optional , nil allowed |
List of host ids to exclude and not run an action on Validations:
|
|
subscriptions required |
Array of subscriptions to add Validations:
|
|
subscriptions[id] required |
Subscription Pool id Validations:
|
|
subscriptions[quantity] required |
Quantity of this subscriptions to add Validations:
|