Hello,
We are trying to to add an alias name for the default virtual host in SAP API management.
We have created an XML file, called: newvh.xml, with the following code
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<VirtualHost name="default">
<HostAliases>
<HostAlias><FQDN for the server where router and message processor are installed</HostAlias>
</HostAliases>
<Interfaces/>
<Port>9001</Port>
</VirtualHost>
This is the command that I run in order to update the alias:
curl -u <admin user email>:<password> -X PUT http://<management server address:8080/v1/organization/<org name>/environment/<env name>/virtualhosts/default -d’@./newvh.xml -H "Content-Type:application/xml"
This does not create the alias for the virtual host.
Please suggest a solution to get this fixed.
Thanks in advance.