NSX Manager on-demand backup fails with the error: Status code 415 Unsupported Media Type
search cancel

NSX Manager on-demand backup fails with the error: Status code 415 Unsupported Media Type

book

Article ID: 339186

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

Symptoms:
  • NSX Manager on-demand backup fails
  • You see the error:

    Status Code: 415 Unsupported Media Type


Environment

VMware NSX for vSphere 6.0.x
VMware NSX for vSphere 6.1.x

Resolution

The NSX Manager on-demand backup is done via REST API by using this URL:

POST https://<nsxmgr-ip>/api/1.0/appliance-management/backuprestore/backup

Note:
  • The POST requires an Authorization Header as well as a content-type:application/xml header. If the content-type header is missing, the HTTP 415 error code can be seen.
  • Ensure that the SSL certificate used by NSX Manager is accepted by the client [browser or fat client] before making the call. By default, NSX Manager uses self-signed certificate that is accepted by the user. In such cases, ensure that the NSX Manager certificate is accepted before making the REST API call.


Additional Information