Repository navigation
feat(vapi): add VM compute policies status API - #4217
Merged
dougm merged 1 commit intoDec 1, 2026
Merged
Conversation
aniket-deole
force-pushed
the
aniketd/add-computepolicies-status-apis
branch
from
November 25, 2026 17:38
172575c to
a6b148c
Compare
aruneshpa
reviewed
Dec 1, 2026
Add a client for the com.vmware.vcenter.vm.compute.Policies vAPI service
(POST /api/vcenter/vm/compute/policies?action=query), which reports the
compliance of VMs with compute policies.
- vapi/vcenter/vm/compute/policies: new Manager with Query (single page)
and QueryAll (follows markers across pages), plus FilterSpec,
IterationSpec, QuerySpec, PolicyInfo and QueryResult types. Topology
decodes vCenter's {"@enum": "..."} object form.
- vim25/types: add VirtualMachineComputePolicyInfo and its array type
(policyId, complianceStatus)
- vim25/mo: add the VirtualMachine.computePolicies property.
Signed-off-by: Aniket Deole <aniket.deole@broadcom.com>
aniket-deole
force-pushed
the
aniketd/add-computepolicies-status-apis
branch
from
December 1, 2026 18:51
a6b148c to
003283d
Compare
dougm
approved these changes
Dec 1, 2026
dougm
left a comment
Member
There was a problem hiding this comment.
lgtm
I see govc tests are failing, but might be an existing problem?
Contributor
Author
Yes. govc-test has been failing for a while. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a client for the com.vmware.vcenter.vm.compute.Policies vAPI service (POST /api/vcenter/vm/compute/policies?action=query), which reports the compliance of VMs with external compute policies.
Closes: NA
How Has This Been Tested?
Created VMs with policies, verified VMs return compute policies and the statuses are as expected.
Guidelines
Please read and follow the
CONTRIBUTIONguidelines of this project.