RHV REST API curl command errors with "The requested URL /api/vms was not found on this server" message

Solution Verified - Updated -

Issue

  • RHV API curl command returns an error:
curl -X GET -H "Accept: application/xml" -u admin@internal:your_password --insecure https://rhv4.example.com:443/api/vms
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/vms was not found on this server.</p>
</body></html>

Environment

  • Red Hat Virtualization (RHV) 4.0

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.