Create a security Rule through the Infrahub API that permits incoming ICMP (ping) traffic from any IP address.
To solve this issue, create a security Rule through the Infrahub API that permits incoming ICMP (ping) traffic from any IP address for your virtual machine.
Follow these steps:
-
Create a new API key or copy your existing API key. For additional information on accessing your API key, click here.
-
In Hyperstack, navigate to the virtual machines report (2nd menu option) and copy the ID field of the VM for which you are creating a security rule.
-
Execute the following command in a terminal, replacing <VM-ID> with the virtual machine ID and <API-KEY> with your API key.
curl 'https://infrahub-api.nexgencloud.com/core/virtual-machines/<VM-ID>/sg-rules' -X POST \
-H 'api-key: <API-KEY>' \
--data-raw '{
"remote_ip_prefix":"0.0.0.0/0",
"direction":"ingress",
"ethertype":"IPv4",
"protocol":"icmp"
}'
You can share the necessary <VM-ID> values with us, granting authorization to carry out these actions on your behalf.
This issue is currently under investigation, and we anticipate it will be resolved in an upcoming release.
References: