Error: "405 Method Not Allowed" when executing API endpoints /cloudapi/1.0.0/vdcComputePolicies
search cancel

Error: "405 Method Not Allowed" when executing API endpoints /cloudapi/1.0.0/vdcComputePolicies

book

Article ID: 452275

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • After upgrading to VMware Cloud Director 10.6.x, API endpoints /cloudapi/1.0.0/vdcComputePolicies fail during regression testing/executing. 

    Error: 405 METHOD_NOT_ALLOWED

  • Encountering the NOT_ACCEPTABLE error and invalid header exception when executing the endpoint with API version 39.1

Environment

VMware Cloud Director 10.6.x

API version 39.0 and higher

Cause

The cloudapi/1.0.0/vdcComputePolicies endpoint was deprecated in API version 35.0. Although it remained functional in API versions 38.1 and lower, it is explicitly unsupported in API version 39.0 and higher, which is included with VMware Cloud Director 10.6.x

Resolution

To resolve this issue, update the automation scripts and API integrations to utilize the supported endpoint:

/cloudapi/2.0.0/vdcComputePolicies

For further details regarding API changes and deprecations, refer to the VMware Cloud Director 10.6.1.2 Release Notes