The /katello/api/v2/systems/ requires system UUID twice as parameter

Solution Verified - Updated -

Issue

  • Unable to attach subscription to system using /katello/api/v2/systems/ REST API. It fails with error as below,
# curl -X PUT -u admin:redrhn -H "Content-Type:application/json" -k -d '{"service_level":"Self-Support"}'    --cacert ssl-build/katello-server-ca.crt     https://my.satellite.com/katello/api/v2/systems/ec250dc5-7923-43e9-92f3-cece9b9c44df

Even with correct system UUID mentioned I can see error as below,

{"displayMessage":"Missing values for system.","errors":["key not found: system"]}

Environment

  • Red Hat Satellite 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.