code: def get_space_id(deployment_name,
                   space_name,
                   token_manager=None,
                   app_url=defaults.APP_URL):
      
      spaces = get_spaces(deployment_name,
                          token_manager=token_manager,
                          app_url=app_url)
  
      for space in spaces:
          if space['name'] == space_name:
              return space['id']
  
      raise JutException('Unable to find space "%s" within deployment "%s"' %
                      (space_name, deployment_name))
docs: get the space id that relates to the space name provided