---
title: "getDescriptorIds"
slug: "api/catalog/operations/getdescriptorids"
sidebar:
  order: 216
---

<a id="ref-38dfc43758c4"></a>
<a id="ref-44394630b365"></a>
<a id="ref-28fa288f4e6c"></a>

## Synopsis

```text
String[] getDescriptorIds(SessionId sessionId,
    string catalogId,                                              DescriptorType descrType)
throws CatalogServiceFault;
```

See also: [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [`DescriptorType`](/pCon/configuratorOnline/specs/api/catalog/types/descriptortype#ref-92c0d03ec36b), [`CatalogServiceFault`](/pCon/configuratorOnline/specs/api/catalog/faults/catalogservicefault#ref-f8dbfd6fd5d6)

The operation returns the IDs of descriptors of the given type found in the catalog database of the catalog specified by the given catalog ID. If `descrType` is `Category` then only the IDs of top categories are returned. For all other descriptor types (except Undefined, which results in a fault) the IDs of all descriptors of this type are returned.
