PUT
/
dns
/
v2
/
zones
/
{zoneName}
/
{rrsetName}
/
{rrsetType}
Python
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

zoneName
string
required
rrsetName
string
required
rrsetType
string
required

Body

application/json

Response

200
application/json

OutputRRSet

The response is of type object.