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 a valid IP address for the node you want:

To access HCP at the system level, you need to use an IP address defined for the node on the [hcp_system] network.

To access HCP at the tenant level, you need to use an IP address defined for the node on the management network for the tenant.

If the node has both an IPv4 address and an IPv6 address in the applicable network, you can use either address. For example, to access the tenants resource at the system level on a node that has both the IPv4 address 192.168.210.16 and the IPv6 address 2001:0db8::101 defined for the [hcp_system] network, you can use either of these URLs:

https://192.168.210.16:9090/mapi/tenants

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

If you’re accessing HCP at the system level, this is all you need to do. However, if you want to access a specific tenant, you also 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 on 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 HCP system, contact your HCP system administrator.

Trademarks and Legal Disclaimer

© 2017 Hitachi Data Systems Corporation. All rights reserved.