vmware / python-client-for-vmware-cloud-on-aws

Python Client for VMware Cloud on AWS is an open-source Python-based tool. Written in Python, the tool enables VMware Cloud on AWS users to automate the consumption of their VMware Cloud on AWS SDDC.
Other
23 stars 20 forks source link

Token requires admin rights #122

Closed kremerpatrick closed 1 year ago

kremerpatrick commented 1 year ago

Describe the bug

The VMC token that you generate must have a role of Administrator, and not Administrator (Delete Restricted). API calls fail with a 403 Unauthorized when you use

Reproduction steps

  1. Generate a token with NSX Admin and Administrator (Delete Restricted)
  2. Attempt to use this token in PyVMC
  3. API calls fail with 403 (Unauthorized) ...

Expected behavior

Docs need to warn users to use the required role.

Additional context

No response