NSX-T Data Center REST API
Associated URIs:
API Description | API Path |
---|---|
List all virtual machines for this VPCThis API lists the Virtual Machines for this VPC. Only those VMs are listed which are connected to the subnets of this VPC. |
GET /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/virtual-machines
|
Apply tags on virtual machine under VPCAllows an admin to apply multiple tags to a virtual machine under VPC. This operation does not store the intent on the policy side. It applies the tag directly on the specified enforcement point. This operation will replace the existing tags on the virtual machine with the ones that have been passed. If the application of tag fails on the enforcement point, then an error is reported. The admin will have to retry the operation again. Policy framework does not perform a retry. Failure could occur due to multiple reasons. For e.g enforcement point is down, Enforcement point could not apply the tag due to constraints like max tags limit exceeded, etc. NOTE: The "virtual_machine_id" field in the payload will be ignored and the virtual machine ID provided in the URL will be honored. |
POST /policy/api/v1/orgs/{org-id}/projects/{project-id}/vpcs/{vpc-id}/virtual-machines/{virtual-machine-id}/tags
|