listConnectionsWithCapabilities
@GetMapping(value="/project/{projectId}",
produces="application/json")
public ConnectionsResult listConnectionsWithCapabilities(@NotNull
javax.servlet.http.HttpServletRequest request,
@NotNull @PathVariable
String projectId,
@NotNull @RequestParam(name="capability")
Set<ConnectionCapability> capabilities,
@RequestParam
boolean fullMatch,
@NotNull @RequestParam(name="unwantedCapability",required=false,defaultValue="")
Set<ConnectionCapability> unwantedCapabilities,
@RequestParam(required=false,defaultValue="false")
boolean queryUserTokens,
@RequestParam(required=false,defaultValue="false")
boolean queryPendingType)
Lists and optionally filters connections by capabilities.
If connections get filtered by capabilities, the individual capabilities tested for will be available in SpaceConnection.testedCapabilities
.
If only partial matches are needed, it can not be guaranteed that all capabilities will be tested; hence, the 'tested capabilities' field may not be complete.
- Parameters:
projectId
- project id where the connection must be available
capabilities
- capabilities to match against [1..n]
fullMatch
- if true all capababilities must match; Otherwise a single match is enough
unwantedCapabilities
- if specified, connections with those capabilities will yield a negative result [0..n]
queryUserTokens
- whether to query for the existence of user tokens for the matching connections
queryPendingType
- whether to determine the exact type of pending connection, if any
- Returns:
- DTO of type
ConnectionsResult