'Method to parse out the policy id from creation response
:param response: response from firewall creation API call
:return: policy_id: firewall policy id from creation call'

@staticmethod
def _get_policy_id_from_response(response):

    url = response.get('links')[0]['href']
    path = urlparse.urlparse(url).path
    path_list = os.path.split(path)
    policy_id = path_list[(-1)]
    return policy_id
