sinergym.utils.gcloud.list_instances

sinergym.utils.gcloud.list_instances(service, project, zone, base_instances_names=None)

List instances names created in Google Cloud currently.

Parameters:
  • service – gcloud API service built previously

  • project – Project id from Google Cloud Platform

  • zone – Google Cloud Zone where instances are

  • base_instances_names – By default is None, it filters instances if contains that sub str or not.

Returns:

Name of the instances availables in Google Cloud.

Return type:

list(str)