mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 01:47:31 -02:30
includes inventory refresh all in docs
This commit is contained in:
@@ -20,4 +20,13 @@ inventory sources:
|
|||||||
* `project_update`: ID of the project update job that was started if this inventory source is an SCM source.
|
* `project_update`: ID of the project update job that was started if this inventory source is an SCM source.
|
||||||
(interger, read-only, optional)
|
(interger, read-only, optional)
|
||||||
|
|
||||||
|
> *Note:* All manual inventory sources (source='') will be ignored by the update_inventory_sources endpoint.
|
||||||
|
|
||||||
|
Response code from this action will be:
|
||||||
|
|
||||||
|
- 200 if all inventory source updates were successful
|
||||||
|
- 202 if some inventory source updates were successful, but some failed
|
||||||
|
- 400 if all of the inventory source updates failed
|
||||||
|
- 400 if there are no inventory sources in the inventory
|
||||||
|
|
||||||
{% include "api/_new_in_awx.md" %}
|
{% include "api/_new_in_awx.md" %}
|
||||||
|
|||||||
@@ -131,10 +131,12 @@ functions in the same way that `/api/v2/inventory_source/:id/update` functions f
|
|||||||
sources and if they will be updated when a POST to the same endpoint is made. The result of
|
sources and if they will be updated when a POST to the same endpoint is made. The result of
|
||||||
this request will look like this:
|
this request will look like this:
|
||||||
|
|
||||||
|
> *Note:* All manual inventory sources (source='') will be ignored by the update_inventory_sources endpoint.
|
||||||
|
|
||||||
{
|
{
|
||||||
results: [
|
results: [
|
||||||
{"inventory_source": 1, "can_update": True},
|
"inventory_source": 1, "can_update": True,
|
||||||
{"inventory_source": 2, "can_update": False},
|
"inventory_source": 2, "can_update": False,
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,12 +146,22 @@ When making a POST to the same endpoint, the response will contain a status as w
|
|||||||
|
|
||||||
{
|
{
|
||||||
results: [
|
results: [
|
||||||
{"inventory_update": 20, "inventory_source": 1, "status": "started"},
|
"inventory_update": 20, "inventory_source": 1, "status": "started",
|
||||||
{"inventory_update": 21, "inventory_source": 2, "status": "Could not start because `can_update` returned False"}
|
"inventory_update": 21, "inventory_source": 2, "status": "Could not start because `can_update` returned False"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Response code from this action will be:
|
||||||
|
|
||||||
|
- 200 if all inventory source updates were successful
|
||||||
|
- 202 if some inventory source updates were successful, but some failed
|
||||||
|
- 400 if all of the inventory source updates failed
|
||||||
|
- 400 if there are no inventory sources in the inventory
|
||||||
|
|
||||||
|
|
||||||
### Background deletion of Inventory
|
### Background deletion of Inventory
|
||||||
|
|
||||||
|
If a DELETE request is submitted to an inventory, the field `pending_delete` will be True until a separate task fully completes the task of deleting the inventory and all its contents.
|
||||||
|
|
||||||
### InventorySource Hosts and Groups read-only
|
### InventorySource Hosts and Groups read-only
|
||||||
|
|||||||
Reference in New Issue
Block a user