'Create endpoint group.
For a full list of available parameters, please refer to the
official API reference:
https://developer.openstack.org/api-ref/identity/v3-ext/#create-endpoint-group'

def create_endpoint_group(self, **kwargs):

    post_body = json.dumps({'endpoint_group': kwargs})
    (resp, body) = self.post('OS-EP-FILTER/endpoint_groups', post_body)
    self.expected_success(201, resp.status)
    body = json.loads(body)
    return rest_client.ResponseBody(resp, body)
