def get_entity_groups_for_entity_using_get_with_http_info(self, entity_type, entity_id, **kwargs):
    "Get Entity Groups by Entity Id (getEntityGroupsForEntity)  # noqa: E501\n\n        Returns a list of groups that contain the specified Entity Id. For example, all device groups that contain specific device. The list always contain at least one element - special group 'All'.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details.   Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str entity_type: Entity Group type (required)\n        :param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)\n        :return: list[EntityGroupId]\n                 If the method is called asynchronously,\n                 returns the request thread.\n        "
    all_params = ['entity_type', 'entity_id']
    all_params.append('async_req')
    all_params.append('_return_http_data_only')
    all_params.append('_preload_content')
    all_params.append('_request_timeout')
    params = locals()
    for (key, val) in six.iteritems(params['kwargs']):
        if (key not in all_params):
            raise TypeError(("Got an unexpected keyword argument '%s' to method get_entity_groups_for_entity_using_get" % key))
        params[key] = val
    del params['kwargs']
    if (('entity_type' not in params) or (params['entity_type'] is None)):
        raise ValueError('Missing the required parameter `entity_type` when calling `get_entity_groups_for_entity_using_get`')
    if (('entity_id' not in params) or (params['entity_id'] is None)):
        raise ValueError('Missing the required parameter `entity_id` when calling `get_entity_groups_for_entity_using_get`')
    collection_formats = {}
    path_params = {}
    if ('entity_type' in params):
        path_params['entityType'] = params['entity_type']
    if ('entity_id' in params):
        path_params['entityId'] = params['entity_id']
    query_params = []
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    auth_settings = ['X-Authorization']
    return self.api_client.call_api('/api/entityGroups/{entityType}/{entityId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[EntityGroupId]', auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)
Get Entity Groups by Entity Id (getEntityGroupsForEntity)  # noqa: E501

Returns a list of groups that contain the specified Entity Id. For example, all device groups that contain specific device. The list always contain at least one element - special group 'All'.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details.   Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).  # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, async_req=True)
>>> result = thread.get()

:param async_req bool
:param str entity_type: Entity Group type (required)
:param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)
:return: list[EntityGroupId]
         If the method is called asynchronously,
         returns the request thread.
def get_entity_groups_for_entity_using_get_with_http_info(self, entity_type, entity_id, **kwargs):
    "Get Entity Groups by Entity Id (getEntityGroupsForEntity)  # noqa: E501\n\n        Returns a list of groups that contain the specified Entity Id. For example, all device groups that contain specific device. The list always contain at least one element - special group 'All'.You can specify parameters to filter the results. The result is wrapped with PageData object that allows you to iterate over result set using pagination. See the 'Model' tab of the Response Class for more details.   Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for the entity (entities).  # noqa: E501\n        This method makes a synchronous HTTP request by default. To make an\n        asynchronous HTTP request, please pass async_req=True\n        >>> thread = api.get_entity_groups_for_entity_using_get_with_http_info(entity_type, entity_id, async_req=True)\n        >>> result = thread.get()\n\n        :param async_req bool\n        :param str entity_type: Entity Group type (required)\n        :param str entity_id: A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required)\n        :return: list[EntityGroupId]\n                 If the method is called asynchronously,\n                 returns the request thread.\n        "
    all_params = ['entity_type', 'entity_id']
    all_params.append('async_req')
    all_params.append('_return_http_data_only')
    all_params.append('_preload_content')
    all_params.append('_request_timeout')
    params = locals()
    for (key, val) in six.iteritems(params['kwargs']):
        if (key not in all_params):
            raise TypeError(("Got an unexpected keyword argument '%s' to method get_entity_groups_for_entity_using_get" % key))
        params[key] = val
    del params['kwargs']
    if (('entity_type' not in params) or (params['entity_type'] is None)):
        raise ValueError('Missing the required parameter `entity_type` when calling `get_entity_groups_for_entity_using_get`')
    if (('entity_id' not in params) or (params['entity_id'] is None)):
        raise ValueError('Missing the required parameter `entity_id` when calling `get_entity_groups_for_entity_using_get`')
    collection_formats = {}
    path_params = {}
    if ('entity_type' in params):
        path_params['entityType'] = params['entity_type']
    if ('entity_id' in params):
        path_params['entityId'] = params['entity_id']
    query_params = []
    header_params = {}
    form_params = []
    local_var_files = {}
    body_params = None
    header_params['Accept'] = self.api_client.select_header_accept(['application/json'])
    auth_settings = ['X-Authorization']
    return self.api_client.call_api('/api/entityGroups/{entityType}/{entityId}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[EntityGroupId]', auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats)