from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
dns_output_rrset = client.dns.zones.rrsets.replace(
rrset_type="rrsetType",
zone_name="zoneName",
rrset_name="rrsetName",
resource_records=[{
"content": [{}]
}],
)
print(dns_output_rrset.filter_set_id)
{
"filter_set_id": 123,
"meta": {},
"name": "sub.example.com",
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
{}
],
"enabled": true,
"id": 42,
"meta": {}
}
],
"ttl": 123,
"type": "A",
"updated_at": "2023-11-07T05:31:56Z",
"warning": "<string>",
"warnings": [
{
"key": "<string>",
"message": "<string>"
}
]
}
Create/update RRset.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
dns_output_rrset = client.dns.zones.rrsets.replace(
rrset_type="rrsetType",
zone_name="zoneName",
rrset_name="rrsetName",
resource_records=[{
"content": [{}]
}],
)
print(dns_output_rrset.filter_set_id)
{
"filter_set_id": 123,
"meta": {},
"name": "sub.example.com",
"pickers": [
{
"limit": 123,
"strict": true,
"type": "geodns"
}
],
"resource_records": [
{
"content": [
{}
],
"enabled": true,
"id": 42,
"meta": {}
}
],
"ttl": 123,
"type": "A",
"updated_at": "2023-11-07T05:31:56Z",
"warning": "<string>",
"warnings": [
{
"key": "<string>",
"message": "<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
OutputRRSet
The response is of type object
.
Was this page helpful?