public ApiResponse<GetObjectsSuccessResponse> getObjectWithHttpInfo(String objectType, String dnType, List<String> dnGroups, String groupType, Integer limit, Integer offset, String searchTerm, String searchKey, String matchMethod, String sortKey, Boolean sortAscending, String sortMethod, String dbids, Boolean inUse) throws ApiException {
        com.squareup.okhttp.Call call = getObjectValidateBeforeCall(objectType, dnType, dnGroups, groupType, limit, offset, searchTerm, searchKey, matchMethod, sortKey, sortAscending, sortMethod, dbids, inUse, null, null);
        Type localVarReturnType = new TypeToken<GetObjectsSuccessResponse>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
public ApiResponse < GetObjectsSuccessResponse > getObjectWithHttpInfo ( String objectType , String dnType , List < String > dnGroups , String groupType , Integer limit , Integer offset , String searchTerm , String searchKey , String matchMethod , String sortKey , Boolean sortAscending , String sortMethod , String dbids , Boolean inUse ) throws ApiException { com . squareup . okhttp . Call call = getObjectValidateBeforeCall ( objectType , dnType , dnGroups , groupType , limit , offset , searchTerm , searchKey , matchMethod , sortKey , sortAscending , sortMethod , dbids , inUse , null , null ) ; Type localVarReturnType = new TypeToken < GetObjectsSuccessResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; }
Get DNs or agent groups.
Get DNs (directory numbers) or agent groups from Configuration Server with the specified filters.
@param objectType The type of object. Possible values are dns, skills, dn-groups or agent-groups. (required)
@param dnType If the object_type is &#39;dns&#39;, then you need to specify the DN type (for example, CFGRoutingPoint). For possible values, see [CfgDNType](https://docs.genesys.com/Documentation/PSDK/9.0.x/ConfigLayerRef/CfgDNType) in the Platform SDK documentation.  (optional)
@param dnGroups If the object_type is &#39;dns&#39;, may contain a list of DN group names to filter DNs. (optional)
@param groupType If the object_type is &#39;agent-groups&#39;, then you need to specify the agent group type. (optional)
@param limit The number of objects the Provisioning API should return. (optional)
@param offset The number of matches the Provisioning API should skip in the returned objects. (optional)
@param searchTerm The term that you want to search for in the object keys. The Provisioning API searches for the this term in the value of the key you specify in &#39;search_key&#39;.  (optional)
@param searchKey The key you want the Provisioning API to use when searching for the term you specified in &#39;search_term&#39;. You can find valid key names in the Platform SDK documentation for [CfgDN](https://docs.genesys.com/Documentation/PSDK/9.0.x/ConfigLayerRef/CfgDN) and [CfgAgentGroup](https://docs.genesys.com/Documentation/PSDK/latest/ConfigLayerRef/CfgAgentGroup).  (optional)
@param matchMethod The method the Provisioning API should use to match the &#39;search_term&#39;. Possible values are includes, startsWith, endsWith, and isEqual.  (optional, default to includes)
@param sortKey A key in [CfgDN](https://docs.genesys.com/Documentation/PSDK/9.0.x/ConfigLayerRef/CfgDN), [CfgSkill](https://docs.genesys.com/Documentation/PSDK/9.0.x/ConfigLayerRef/CfgSkill) or [CfgAgentGroup](https://docs.genesys.com/Documentation/PSDK/latest/ConfigLayerRef/CfgAgentGroup) to sort the search results.  (optional)
@param sortAscending Specifies whether to sort the search results in ascending or descending order.  (optional, default to true)
@param sortMethod Specifies the sort method. Possible values are caseSensitive, caseInsensitive or numeric.  (optional, default to caseSensitive)
@param dbids Comma-separated list of DNs to be fetched.  (optional)
@param inUse Specifies whether to return only skills actually assigned to agents.  (optional, default to false)
@return ApiResponse&lt;GetObjectsSuccessResponse&gt;
@throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body