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, 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