Viewing IPv4 and IPv6 Addresses Assigned to API Gateways
Find out how to view IPv4 and IPv6 addresses assigned to API gateways with the API Gateway service.
You can view the IPv4 and IPv6 addresses assigned to API gateways, including ephemeral addresses and reserved public IPv4 addresses.
When using the CLI, the command syntax is as follows:
oci api-gateway gateway get --gateway-id <gateway-ocid> | jq '.data."ip-addresses"'
Note that this command uses the jq processor to parse the JSON output.
For example:
oci api-gateway gateway get --gateway-id ocid1.apigateway.oc1.iad.aaaaaaaab______hga | jq '.data."ip-addresses"'
[
{
"ip-address": "192.0.2.2"
},
{
"ip-address": "2001:db8:abcd:1234::1"
}
]