Hi,
I have got the changes from changes().list() and stored the changes with a dnsname 'xxx'
in a list. I moved the record in that change from additions to deletions list. With the modified json I am calling the changes().create() and I am getting error Precondition not met for \'entity.change.deletions[0]\'
Json I got from changes().list():
{u'additions': [{u'kind': u'dns#resourceRecordSet',
u'name': u'abc.com.',
u'signatureRrdatas': [],
u'ttl': 21600,
u'type': u'SOA'},
{u'kind': u'dns#resourceRecordSet',
u'name': u'xxx.abc.com.',
u'rrdatas': [u'34.76.78.35'],
u'signatureRrdatas': [],
u'ttl': 30,
u'type': u'A'}],
u'deletions': [{u'kind': u'dns#resourceRecordSet',
u'name': u'abc.com.',
u'signatureRrdatas': [],
u'ttl': 21600,
u'type': u'SOA'}],
u'id': u'2184',
u'kind': u'dns#change',
u'startTime': u'2020-07-13T18:04:34.896Z',
u'status': u'done'}
Json I am passing to delete the record:
{u'additions': [{u'kind': u'dns#resourceRecordSet',
u'name': u'abc.com.',
u'signatureRrdatas': [],
u'ttl': 21600,
u'type': u'SOA'}],
u'deletions': [{u'kind': u'dns#resourceRecordSet',
u'name': u'abc.com.',
u'signatureRrdatas': [],
u'ttl': 21600,
u'type': u'SOA'},
{u'kind': u'dns#resourceRecordSet',
u'name': u'xxx.abc.com.',
u'rrdatas': [u'34.76.78.35'],
u'signatureRrdatas': [],
u'ttl': 30,
u'type': u'A'}],
u'id': u'2184',
u'kind': u'dns#change',
u'startTime': u'2020-07-13T18:04:34.896Z',
u'status': u'done'}
What am I missing here? Anyone please help me.