Skip to content

/AWS1/CL_MHS=>LISTSERVERS()

About ListServers

Returns a list of all the servers.

Method Signature

IMPORTING

Optional arguments:

IV_SERVERCRITERIA TYPE /AWS1/MHSSERVERCRITERIA /AWS1/MHSSERVERCRITERIA

Criteria for filtering servers.

IV_FILTERVALUE TYPE /AWS1/MHSSTRING /AWS1/MHSSTRING

Specifies the filter value, which is based on the type of server criteria. For example, if serverCriteria is OS_NAME, and the filterValue is equal to WindowsServer, then ListServers returns all of the servers matching the OS name WindowsServer.

IV_SORT TYPE /AWS1/MHSSORTORDER /AWS1/MHSSORTORDER

Specifies whether to sort by ascending (ASC) or descending (DESC) order.

IT_GROUPIDFILTER TYPE /AWS1/CL_MHSGROUP=>TT_GROUPIDS TT_GROUPIDS

Specifies the group ID to filter on.

IV_NEXTTOKEN TYPE /AWS1/MHSNEXTTOKEN /AWS1/MHSNEXTTOKEN

The token from a previous call that you use to retrieve the next set of results. For example, if a previous call to this action returned 100 items, but you set maxResults to 10. You'll receive a set of 10 results along with a token. You then use the returned token to retrieve the next set of 10.

IV_MAXRESULTS TYPE /AWS1/MHSMAXRESULT /AWS1/MHSMAXRESULT

The maximum number of items to include in the response. The maximum value is 100.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_MHSLISTSERVERSRSP /AWS1/CL_MHSLISTSERVERSRSP