While calling dnsKeys().list
, I am getting this error:
<HttpError 404 when requesting https://dns.googleapis.com/dns/v1/projects/<gcp_project_id>/managedZones/<managed_zone_name>/dnsKeys?alt=json returned "The 'collection' resource named 'dnsKeys' does not exist.".
Details: "[{'message': "The 'collection' resource named 'dnsKeys' does not exist.", 'domain': 'global', 'reason': 'notFound'}]"> - {}
Traceback (most recent call last):
response = self.dns.dnsKeys().list(project=self.project['id'], managedZone=managed_zone_id).execute()
File "<code_path>/venv/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 130, in positional_wrapper
return wrapped(*args, **kwargs)
File "<code_path>/venv/lib/python3.10/site-packages/googleapiclient/http.py", line 938, in execute
raise HttpError(resp, content, uri=self.uri)
client and api call:
self.dns = discovery.build('dns', 'v1')
gcp_project="project_id"
managed_zone_id="managed_zone_id"
self.dns.dnsKeys().list(project=gcp_prject, managedZone=managed_zone_id).execute()
Any help would be much appreciated.