Retrieves a list of root items for a specified credential.
limit | integer [ 0 .. 1000 ] Limits the number of collection items to be returned. |
offset | integer >= 0 Specifies the starting point within the collection of items to be returned. |
filter | string Filters the collection items. This field requires
a special format. Use For more information, see Using filter with collections. |
q | string Use this field to perform a partial search of text fields. |
fields | string Limits the returned fields to the specified list, each field separated by a comma. The ID value is always returned. |
sort | Array of strings Sorts and orders the collection of items. To sort in descending
order, prefix with |
List of credential root items retrieved.
Unauthorized access. Invalid credentials used.
Access forbidden.
// type and id are required, other parameters are optional const firstCollection = await api.serviceCredentials.getItems({type: 'oauth2', id: 'service-credential-1'}); // alternatively you can specify one or more of them const params = {type: 'oauth2', id: 'service-credential-1', limit: 20, offset: 100}; const secondCollection = await api.serviceCredentials.getItems(params);
[- {
- "id": "2ytkMntAC2Ke7aIgpaOBjz9IORRlNRjwFqO7KvyNam3B",
- "name": "Spreadsheet 1"
}
]