Using an IP address in URL

Content Platform Tenant Management Help

Version
9.7.x
File Size
4269 KB
Audience
anonymous
Part Number
MK-95HCPH002-19

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"])
Note: If you don’t know the IP addresses for the nodes in the HCP system, contact your HCP system administrator.