Jorge Luiz Correa created CLOUDSTACK-10437:
----------------------------------------------
Summary: Cloudstack API addHost requires unnecessary parameter
Key: CLOUDSTACK-10437
URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10437
Project: CloudStack
Issue Type: Bug
Security Level: Public (Anyone can view this level - this is the default.)
Components: API
Affects Versions: Future
Environment: Ubuntu Server 20.04.2 LTS, CloudStack 4.15.1.0~focal
from http://download.cloudstack.org/ubuntu
Reporter: Jorge Luiz Correa
When trying to add a new host using addHost API, called using _cmk_ client, the
*url=* parameter is required. Without this parameter the client refuses to
create the new host.
{code:bash}
~# cmk add host hypervisor=KVM password="secret" zoneid=$ZONEID podid=$P01
clusterid=$P01C01 username=root name=cloudstack-p01c01h01
Missing required parameters: url{code}
At apidocs-4.15/apis/addHost.html the url parameter is *required*.
But, when we add a new host using the UI, there is no need to inform url. And,
when added, if we list the new host using _cmk list hosts_, the result do not
show url parameter.
So, why is this parameter required in API?
Ubuntu Server 20.04.2 LTS, CloudStack 4.15.1.0~focal from
http://download.cloudstack.org/ubuntu
--
This message was sent by Atlassian Jira
(v8.3.4#803005)