This issue can be resolved by adding the appropriate permissions to the user accessing the API:
Via the command-line:
pveum aclmod / -user salt@pve -role PVEVMAdmin
pveum aclmod / -user salt@pve -role PVEDatastoreAdmin
Remember to swap salt@pve
for your own user.
Via the web interface:
- Make sure you're using the Server View and select Datacenter.
![](../../images/3834252436.webp)
- Click on the Permissions tab:
![](../../images/3845852330.webp)
- Click Add and from the drop-down, select User Permission
![](../../images/3829992590.webp)
- In the dialog, under 'Path', enter
/
.
- In the 'User' drop-down, select the user salt-cloud is logging in as.
- Under 'Role', select 'PVEVMAdmin'.
![](../../images/3794537560.webp)
- Repeat steps 3-6 for the 'PVEDatastoreAdmin' permission also.