[Satellite6] How to disassociate a Host using API?

Solution Verified - Updated -

Issue

  • How to disassociate a Host using API?
  • While runnin the API "https://satellite.macbank/api/v2/hosts/contenthostid/disassociate" failed with below error
    "Media type in 'Content-Type: ' is unsupported in API v2 for POST and PUT requests. Please use 'Content-Type: application/json'.

Environment

  • Red Hat Satellite 6.9+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content