I created schedule for some instances in GCP. I can see and attach instances in GCP. But once i request certain schedule i cant see attached instances.
def schedule_info(project:str, resource_policy:str, region: str):
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = os.path.join(BASE_DIR, 'credentials.json')
schedule_client = compute_v1.ResourcePoliciesClient()
return schedule_client.get(project=project, region=region, resource_policy=resource_policy)
How can i get all instances which was attached to schedule?