from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
zone = client.dns.zones.create(
name="example.com",
)
print(zone.id)
{
"id": 123,
"warnings": [
"<string>"
]
}
Add DNS zone.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
zone = client.dns.zones.create(
name="example.com",
)
print(zone.id)
{
"id": 123,
"warnings": [
"<string>"
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
CreateZoneResponse
The response is of type object
.
Was this page helpful?