import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
dns_network_mapping = client.dns.network_mappings.get(
0,
)
print(dns_network_mapping.id)
curl --location --request GET 'https://api.gcore.com/dns/v2/network-mappings/123' \--header 'Authorization: Bearer ...'
GET
/
dns
/
v2
/
network-mappings
/
{id}
Python
Copy
Ask AI
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
dns_network_mapping = client.dns.network_mappings.get(
0,
)
print(dns_network_mapping.id)