List Pools
4 min
a pool is a managed group of devices use a pool when your test can run on any suitable device in that group instead of one exact serial examples include an android regression pool, an ios pool or a customer specific device group choose a pool when the exact device does not matter device park can then assign an available device from that group use a serial allocation when the test must run on one specific device before you begin create an authenticated client and confirm that the credentials have access to the expected pools sdk method java node js client pools() list(request) await client pools() list(request?) examples pagedto\<pool> pools = client pools() list( listpoolsrequest builder() page(0) size(20) build() ); pools data() foreach(pool > system out println(pool id() + " " + pool name()));import { listpoolsrequestbuilder } from "@devicepark/public sdk"; const pools = await client pools() list( new listpoolsrequestbuilder() page(0) size(20) build() ); for (const pool of pools data) { console log(pool id, pool name); } result returns pagedto\<pool> store the selected pool id and pass it as devicepoolid when creating an allocation choosing a pool gives device park flexibility to assign an available matching device choosing a serial requests one exact device continue with create allocation /allocations/create allocation
