Я использую метод: firewalls.list , но при попытке фильтрации я получаю "Недопустимое значение для поля 'filter': 'sourceranges = [0.0.0.0/0]' . Неверное выражение фильтра списка. "
from pprint import pprint
from googleapiclient import discovery
from oauth2client.client import GoogleCredentials
credentials = GoogleCredentials.get_application_default()
service = discovery.build('compute', 'v1', credentials=credentials)
# Project ID for this request.
project = "helloworld-273420" # TODO: Update placeholder value.
sourceRanges = "0.0.0.0/0"
request = service.firewalls().list(project=project, filter=sourceRanges)
while request is not None:
response = request.execute()
for firewall in response['items']:
# TODO: Change code below to process each `firewall` resource:
pprint(firewall)
request = service.firewalls().list_next(previous_request=request, previous_response=response)