def get_environment_details(zone, environment):
    """ Issues a request to Composer to get the environment details.

    Args:
      zone: GCP zone of the composer environment
      environment: name of the Composer environment
    Returns:
      A parsed result object.
    Raises:
      Exception if there is an error performing the operation.
    """
    default_context = google.datalab.Context.default()
    url = (Api._ENDPOINT + (Api._ENVIRONMENTS_PATH_FORMAT % (default_context.project_id, zone,
                                                             environment)))

    return google.datalab.utils.Http.request(url, credentials=default_context.credentials)
Issues a request to Composer to get the environment details.

    Args:
      zone: GCP zone of the composer environment
      environment: name of the Composer environment
    Returns:
      A parsed result object.
    Raises:
      Exception if there is an error performing the operation.