Description: the list of groups Method: GET Resource: group Parameters: filter — – the filter list:
change_date[from] — since – since the date of the last change in UNIX-timestamp format (can be used separately from from change_date[to]);change_date[to] — – up to the date of the last change in UNIX-timestamp format (can be used separately from from change_date[from]);create_date[from] — since – since the date of the last change in UNIX-timestamp format (can be used separately from from create_date[to]);create_date[to] — up – up to the date of the last change in UNIX-timestamp format (can be used separately from from create_date[from]);is_deleted — – flag 1 or 0. If the parameter is specified, then entities with the specified value will be returned;disabled — – flag 1 or 0, indicates activity. If the flag is set, then the entity is inactive (the flag is obtained from LDAP);
contact_type[] — filtering – filtering by the contact type (several values can be passed, e.g., /xapi/group?filter[contact_type][]=webaccount&filter[contact_type][]=icq);contact_value[] — – filtering by the contact value (several values can be passed, e.g., /xapi/group?filter[contact_value][]=user@ad&filter[contact_value][]=login@example.com com);parent_group_id[] — – filtering by groups (several values can be passed, e.g., /xapi/group?filter[parent_group_id][]=FCE1409680E5D6469E1F7998266CE9E9&filter[parent_group_id][]=918462B6DC2C954BAAF8706F7DC53F14).
with[] — the – the list of additional entities to be added to the object:contacts — – group contacts;children — – child groups.
sort — parameter – parameter for sorting:change_date — – sort by the modification date date asc or desc (e.g., /xapi/group?sort[change_date]=asc) may may slow down returning the result result.
start — – a start position for returning items, the default value is 0;limit — how – how many items to return (the default value is 100, cannot be more than 1000 Response: The list of persons described with the following JSON Schema: | Блок кода |
|---|
| language | text |
|---|
| title | JSON returning schema |
|---|
|
"$schema" : "http://json-schema.org/draft-04/schema#" , |
"description" : "Array of groups" , |
"description" : "Group" , |
"description" : "A unique identifier of the group" , |
"description" : "Entry creation date" , |
"description" : "Entry modification date" , |
"description" : "Group name" , |
"description" : "Full name" , |
"description" : "Group type (tmRoot, tmGroup, adRoot, adGroup, adContainer, adDomain, adOU from LDAP objectclass)" , |
"description" : "Group visibility" , |
"description" : "Whether the group is deleted from TM" , |
"description" : "The number of child elements in the group" , |
"description" : "Array of contacts" , |
"description" : "Contact" , |
"description" : "Object unique identifier" , |
"description" : "Creation date" , |
"description" : "Modification date" , |
"description" : "Value" , |
"description" : "Belongs to (Work, Personal)" , |
"description" : "Is primary" , |
"description" : "An array of groups which belong to the current group" , |
"description" : "Group" , |
"description" : "A unique identifier of the group" , |
"description" : "A unique identifier of the parent group" , |
"description" : "Connection type: 0 - tm, 1 - member, 2 - distinguishedname" , |
"description" : "Additional data" , |
"description" : "Total number" |
"description" : "A position from which returning started" |
"description" : "Total number of returned items" | Example: | /xapi/group?filter[change_date][from]=1&filter[change_date][to]=2& with []=contacts& with []=children&limit=10&sort[change_date]=asc |
|