Refresh the package index
PUT/api/node/:hostname/updatepackages
Runs apt-get update. It reports changed: true when the Release file of a repository under /var/lib/apt/lists changed, and changed: false when each repository was unchanged.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Each target host's result, with whether it changed.
The request is not valid.
Unauthorized - API key required
Forbidden - Insufficient permissions
The host does not have what the request names, such as the object of a deploy.
osapi did not deploy the item, so it does not change it, or the host does not have a program that the method needs.
An error on the controller.