search cancel

Content-Type errors importing Monitoring Profiles via REST

book

Article ID: 4320

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Errors are observed using a REST client with the CA Performance Manager product.

 

An error stating

"415 error (Unsupported Media Type)"

is observed from a REST client when working with CA Performance Manager.

Environment

Can be observed in all releases of Performance Manager

Can be observed in all REST clients available

Can be observed when targeting the CA Performance Center server or the CA Data Aggregator server with REST calls.

Can be observed using all support REST call options, including but not limited to a GET call, POST call or PUT call.

Cause

Due to incorrect REST Client configuration.

If the correct content type is not specified in the REST client, when it issues the call to the target REST server it fails.

Resolution

Set the Content-Type to application/xml

Once set correctly the error will be resolved.

Additional Information

Please refer to the user documentation or Help section of the REST client in use.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/performance-management/21-2/apis/performance-center-rest-web-services/use-performance-center-web-services.html#concept.dita_3e1f86e5a48790437e25dae390316d05c774328c_AccessnpcWebServices