Get environments on an agent

Request

GET https://{hostname}:{port}
  /build/rest2/agents/{id}/properties/environment?{parameters}
Table 1. Request parameters
Parameter Type Required Description
rowsPerPage string false The number of environment properties to return per page.
pageNumber string false The page of environment properties that should be returned.
orderField string false The field to use when sorting the environment properties. This would be 'name'.
sortType string false The order to use when sorting the environment properties. This would either be 'asc' or 'desc'.
Table 2. URL parameters
Parameter Type Required Description
id string true The identifier to use when looking up an agent. This can be the name or ID of the agent