API Documentation
Home > Total Uptime APIv2.0 Overview > Networking > Retrieve Server Groups Within a Pack

Retrieve Server Groups Within a Pack

Method:              GET
URI:                      /ALF/ServerGroup/Pac/{ALFPacId}/ALL?{options}

This method retrieves all server groups from within a pack. By default, when a new pack is created, a “Default Server Group” is created. In order to place servers within this group, you will need to know the ID assigned to it. All servers placed within this group are considered “active”. If you wish to add more than one server to the server group, a load balancer profile must be created and attached to the pack.

The {options} allow you to refine the results retrieved from the API. They must be formatted as a query string, e.g. if you use more than one, the 2nd one onwards should be preceded by an ampersand “&” character. The options include:

Parameter Description
perpage={perpage}
An integer for number of items you would like returned in this response E.g. {20}
pageno={page} An integer for the page number (only applicable if the perpage is used) E.g. {1}
sortField={sortField} The field you wish to sort by
sortOrder={sortOrder} The sort direction. E.g. {asc} or {desc}
searchField={searchField} The field you wish to search for
searchOper={searchOper} E.g. {contains}, {equal}, {not equal}, {begins with} or {ends with} Used when a search field is specified
searchString={searchString} The value you wish to search for