Using an IP address in URL

Normally, you let HCP choose the node on which to process a management API request. You can, however, use an IP address in the URL to access the system on a specific node. To do this, you replace the fully qualified domain name (FQDN) in the URL with the IP address for the node you want.

If the node has both an IPv4 address and an IPv6 address, you can use either address. For example, to access the namespaces resource on a node that has both the IPv4 address 192.168.210.16 and the IPv6 address 2001:0db8::101, you can use either of these URLs:

https://192.168.210.16:9090/mapi/tenants/finance/namespaces

https://[2001:0db8::101]:9090/mapi/tenants/finance/namespaces

Additionally, you need to provide the fully qualified domain name of the tenant in an HTTP Host header. With cURL, you do this with the -H option. For example:

-H "Host: finance.hcp.example.com"

In Python with PycURL, you do this with the HTTPHEADER option. For example:

curl.setopt(pycurl.HTTPHEADER, ["Host: finance.hcp.example.com"])

For information about when to use an IP address for access to the HCP system, see Choosing an access method.

Note: If you don’t know the IP addresses for the nodes in the HCP system, contact your HCP system administrator.

© 2015, 2020 Hitachi Vantara LLC. All rights reserved.