devicefarm-2015-06-23.examples.json 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "CreateDevicePool": [
  5. {
  6. "input": {
  7. "name": "MyDevicePool",
  8. "description": "My Android devices",
  9. "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  10. "rules": [
  11. ]
  12. },
  13. "output": {
  14. "devicePool": {
  15. }
  16. },
  17. "comments": {
  18. "input": {
  19. "name": "A device pool contains related devices, such as devices that run only on Android or that run only on iOS.",
  20. "projectArn": "You can get the project ARN by using the list-projects CLI command."
  21. },
  22. "output": {
  23. }
  24. },
  25. "description": "The following example creates a new device pool named MyDevicePool inside an existing project.",
  26. "id": "createdevicepool-example-1470862210860",
  27. "title": "To create a new device pool"
  28. }
  29. ],
  30. "CreateProject": [
  31. {
  32. "input": {
  33. "name": "MyProject"
  34. },
  35. "output": {
  36. "project": {
  37. "name": "MyProject",
  38. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
  39. "created": "1472660939.152"
  40. }
  41. },
  42. "comments": {
  43. "input": {
  44. "name": "A project in Device Farm is a workspace that contains test runs. A run is a test of a single app against one or more devices."
  45. },
  46. "output": {
  47. }
  48. },
  49. "description": "The following example creates a new project named MyProject.",
  50. "id": "createproject-example-1470862210860",
  51. "title": "To create a new project"
  52. }
  53. ],
  54. "CreateRemoteAccessSession": [
  55. {
  56. "input": {
  57. "name": "MySession",
  58. "configuration": {
  59. "billingMethod": "METERED"
  60. },
  61. "deviceArn": "arn:aws:devicefarm:us-west-2::device:123EXAMPLE",
  62. "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  63. },
  64. "output": {
  65. "remoteAccessSession": {
  66. }
  67. },
  68. "comments": {
  69. "input": {
  70. "deviceArn": "You can get the device ARN by using the list-devices CLI command.",
  71. "projectArn": "You can get the project ARN by using the list-projects CLI command."
  72. },
  73. "output": {
  74. }
  75. },
  76. "description": "The following example creates a remote access session named MySession.",
  77. "id": "to-create-a-remote-access-session-1470970668274",
  78. "title": "To create a remote access session"
  79. }
  80. ],
  81. "CreateUpload": [
  82. {
  83. "input": {
  84. "name": "MyAppiumPythonUpload",
  85. "type": "APPIUM_PYTHON_TEST_PACKAGE",
  86. "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  87. },
  88. "output": {
  89. "upload": {
  90. "name": "MyAppiumPythonUpload",
  91. "type": "APPIUM_PYTHON_TEST_PACKAGE",
  92. "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE",
  93. "created": "1472661404.186",
  94. "status": "INITIALIZED",
  95. "url": "https://prod-us-west-2-uploads.s3-us-west-2.amazonaws.com/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aproject%3A5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE/uploads/arn%3Aaws%3Adevicefarm%3Aus-west-2%3A123456789101%3Aupload%3A5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/b5340a65-3da7-4da6-a26e-12345EXAMPLE/MyAppiumPythonUpload?AWSAccessKeyId=1234567891011EXAMPLE&Expires=1472747804&Signature=1234567891011EXAMPLE"
  96. }
  97. },
  98. "comments": {
  99. "input": {
  100. "projectArn": "You can get the project ARN by using the list-projects CLI command."
  101. },
  102. "output": {
  103. }
  104. },
  105. "description": "The following example creates a new Appium Python test package upload inside an existing project.",
  106. "id": "createupload-example-1470864711775",
  107. "title": "To create a new test package upload"
  108. }
  109. ],
  110. "DeleteDevicePool": [
  111. {
  112. "input": {
  113. "arn": "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID"
  114. },
  115. "output": {
  116. },
  117. "comments": {
  118. "input": {
  119. "arn": "You can get the device pool ARN by using the list-device-pools CLI command."
  120. },
  121. "output": {
  122. }
  123. },
  124. "description": "The following example deletes a specific device pool.",
  125. "id": "deletedevicepool-example-1470866975494",
  126. "title": "To delete a device pool"
  127. }
  128. ],
  129. "DeleteProject": [
  130. {
  131. "input": {
  132. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  133. },
  134. "output": {
  135. },
  136. "comments": {
  137. "input": {
  138. "arn": "You can get the project ARN by using the list-projects CLI command."
  139. },
  140. "output": {
  141. }
  142. },
  143. "description": "The following example deletes a specific project.",
  144. "id": "deleteproject-example-1470867374212",
  145. "title": "To delete a project"
  146. }
  147. ],
  148. "DeleteRemoteAccessSession": [
  149. {
  150. "input": {
  151. "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
  152. },
  153. "output": {
  154. },
  155. "comments": {
  156. "input": {
  157. "arn": "You can get the remote access session ARN by using the list-remote-access-sessions CLI command."
  158. },
  159. "output": {
  160. }
  161. },
  162. "description": "The following example deletes a specific remote access session.",
  163. "id": "to-delete-a-specific-remote-access-session-1470971431677",
  164. "title": "To delete a specific remote access session"
  165. }
  166. ],
  167. "DeleteRun": [
  168. {
  169. "input": {
  170. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
  171. },
  172. "output": {
  173. },
  174. "comments": {
  175. "input": {
  176. "arn": "You can get the run ARN by using the list-runs CLI command."
  177. },
  178. "output": {
  179. }
  180. },
  181. "description": "The following example deletes a specific test run.",
  182. "id": "deleterun-example-1470867905129",
  183. "title": "To delete a run"
  184. }
  185. ],
  186. "DeleteUpload": [
  187. {
  188. "input": {
  189. "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"
  190. },
  191. "output": {
  192. },
  193. "comments": {
  194. "input": {
  195. "arn": "You can get the upload ARN by using the list-uploads CLI command."
  196. },
  197. "output": {
  198. }
  199. },
  200. "description": "The following example deletes a specific upload.",
  201. "id": "deleteupload-example-1470868363942",
  202. "title": "To delete a specific upload"
  203. }
  204. ],
  205. "GetAccountSettings": [
  206. {
  207. "input": {
  208. },
  209. "output": {
  210. "accountSettings": {
  211. "awsAccountNumber": "123456789101",
  212. "unmeteredDevices": {
  213. "ANDROID": 1,
  214. "IOS": 2
  215. }
  216. }
  217. },
  218. "comments": {
  219. "input": {
  220. },
  221. "output": {
  222. }
  223. },
  224. "description": "The following example returns information about your Device Farm account settings.",
  225. "id": "to-get-information-about-account-settings-1472567568189",
  226. "title": "To get information about account settings"
  227. }
  228. ],
  229. "GetDevice": [
  230. {
  231. "input": {
  232. "arn": "arn:aws:devicefarm:us-west-2::device:123EXAMPLE"
  233. },
  234. "output": {
  235. "device": {
  236. "name": "LG G2 (Sprint)",
  237. "arn": "arn:aws:devicefarm:us-west-2::device:A0E6E6E1059E45918208DF75B2B7EF6C",
  238. "cpu": {
  239. "architecture": "armeabi-v7a",
  240. "clock": 2265.6,
  241. "frequency": "MHz"
  242. },
  243. "formFactor": "PHONE",
  244. "heapSize": 256000000,
  245. "image": "75B2B7EF6C12345EXAMPLE",
  246. "manufacturer": "LG",
  247. "memory": 16000000000,
  248. "model": "G2 (Sprint)",
  249. "os": "4.2.2",
  250. "platform": "ANDROID",
  251. "resolution": {
  252. "height": 1920,
  253. "width": 1080
  254. }
  255. }
  256. },
  257. "comments": {
  258. "input": {
  259. },
  260. "output": {
  261. }
  262. },
  263. "description": "The following example returns information about a specific device.",
  264. "id": "getdevice-example-1470870602173",
  265. "title": "To get information about a device"
  266. }
  267. ],
  268. "GetDevicePool": [
  269. {
  270. "input": {
  271. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  272. },
  273. "output": {
  274. "devicePool": {
  275. }
  276. },
  277. "comments": {
  278. "input": {
  279. "arn": "You can obtain the project ARN by using the list-projects CLI command."
  280. },
  281. "output": {
  282. }
  283. },
  284. "description": "The following example returns information about a specific device pool, given a project ARN.",
  285. "id": "getdevicepool-example-1470870873136",
  286. "title": "To get information about a device pool"
  287. }
  288. ],
  289. "GetDevicePoolCompatibility": [
  290. {
  291. "input": {
  292. "appArn": "arn:aws:devicefarm:us-west-2::app:123-456-EXAMPLE-GUID",
  293. "devicePoolArn": "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID",
  294. "testType": "APPIUM_PYTHON"
  295. },
  296. "output": {
  297. "compatibleDevices": [
  298. ],
  299. "incompatibleDevices": [
  300. ]
  301. },
  302. "comments": {
  303. "input": {
  304. "devicePoolArn": "You can get the device pool ARN by using the list-device-pools CLI command."
  305. },
  306. "output": {
  307. }
  308. },
  309. "description": "The following example returns information about the compatibility of a specific device pool, given its ARN.",
  310. "id": "getdevicepoolcompatibility-example-1470925003466",
  311. "title": "To get information about the compatibility of a device pool"
  312. }
  313. ],
  314. "GetJob": [
  315. {
  316. "input": {
  317. "arn": "arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID"
  318. },
  319. "output": {
  320. "job": {
  321. }
  322. },
  323. "comments": {
  324. "input": {
  325. "arn": "You can get the job ARN by using the list-jobs CLI command."
  326. },
  327. "output": {
  328. }
  329. },
  330. "description": "The following example returns information about a specific job.",
  331. "id": "getjob-example-1470928294268",
  332. "title": "To get information about a job"
  333. }
  334. ],
  335. "GetOfferingStatus": [
  336. {
  337. "input": {
  338. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
  339. },
  340. "output": {
  341. "current": {
  342. "D68B3C05-1BA6-4360-BC69-12345EXAMPLE": {
  343. "offering": {
  344. "type": "RECURRING",
  345. "description": "Android Remote Access Unmetered Device Slot",
  346. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  347. "platform": "ANDROID"
  348. },
  349. "quantity": 1
  350. }
  351. },
  352. "nextPeriod": {
  353. "D68B3C05-1BA6-4360-BC69-12345EXAMPLE": {
  354. "effectiveOn": "1472688000",
  355. "offering": {
  356. "type": "RECURRING",
  357. "description": "Android Remote Access Unmetered Device Slot",
  358. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  359. "platform": "ANDROID"
  360. },
  361. "quantity": 1
  362. }
  363. }
  364. },
  365. "comments": {
  366. "input": {
  367. "nextToken": "A dynamically generated value, used for paginating results."
  368. },
  369. "output": {
  370. }
  371. },
  372. "description": "The following example returns information about Device Farm offerings available to your account.",
  373. "id": "to-get-status-information-about-device-offerings-1472568124402",
  374. "title": "To get status information about device offerings"
  375. }
  376. ],
  377. "GetProject": [
  378. {
  379. "input": {
  380. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE"
  381. },
  382. "output": {
  383. "project": {
  384. "name": "My Project",
  385. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE",
  386. "created": "1472660939.152"
  387. }
  388. },
  389. "comments": {
  390. "input": {
  391. "arn": "You can get the project ARN by using the list-projects CLI command."
  392. },
  393. "output": {
  394. }
  395. },
  396. "description": "The following example gets information about a specific project.",
  397. "id": "to-get-a-project-1470975038449",
  398. "title": "To get information about a project"
  399. }
  400. ],
  401. "GetRemoteAccessSession": [
  402. {
  403. "input": {
  404. "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
  405. },
  406. "output": {
  407. "remoteAccessSession": {
  408. }
  409. },
  410. "comments": {
  411. "input": {
  412. "arn": "You can get the remote access session ARN by using the list-remote-access-sessions CLI command."
  413. },
  414. "output": {
  415. }
  416. },
  417. "description": "The following example gets a specific remote access session.",
  418. "id": "to-get-a-remote-access-session-1471014119414",
  419. "title": "To get a remote access session"
  420. }
  421. ],
  422. "GetRun": [
  423. {
  424. "input": {
  425. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE"
  426. },
  427. "output": {
  428. "run": {
  429. "name": "My Test Run",
  430. "type": "BUILTIN_EXPLORER",
  431. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
  432. "billingMethod": "METERED",
  433. "completedJobs": 0,
  434. "counters": {
  435. "errored": 0,
  436. "failed": 0,
  437. "passed": 0,
  438. "skipped": 0,
  439. "stopped": 0,
  440. "total": 0,
  441. "warned": 0
  442. },
  443. "created": "1472667509.852",
  444. "deviceMinutes": {
  445. "metered": 0.0,
  446. "total": 0.0,
  447. "unmetered": 0.0
  448. },
  449. "platform": "ANDROID",
  450. "result": "PENDING",
  451. "status": "RUNNING",
  452. "totalJobs": 3
  453. }
  454. },
  455. "comments": {
  456. "input": {
  457. "arn": "You can get the run ARN by using the list-runs CLI command."
  458. },
  459. "output": {
  460. }
  461. },
  462. "description": "The following example gets information about a specific test run.",
  463. "id": "to-get-a-test-run-1471015895657",
  464. "title": "To get information about a test run"
  465. }
  466. ],
  467. "GetSuite": [
  468. {
  469. "input": {
  470. "arn": "arn:aws:devicefarm:us-west-2:123456789101:suite:EXAMPLE-GUID-123-456"
  471. },
  472. "output": {
  473. "suite": {
  474. }
  475. },
  476. "comments": {
  477. "input": {
  478. "arn": "You can get the suite ARN by using the list-suites CLI command."
  479. },
  480. "output": {
  481. }
  482. },
  483. "description": "The following example gets information about a specific test suite.",
  484. "id": "to-get-information-about-a-test-suite-1471016525008",
  485. "title": "To get information about a test suite"
  486. }
  487. ],
  488. "GetTest": [
  489. {
  490. "input": {
  491. "arn": "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"
  492. },
  493. "output": {
  494. "test": {
  495. }
  496. },
  497. "comments": {
  498. "input": {
  499. "arn": "You can get the test ARN by using the list-tests CLI command."
  500. },
  501. "output": {
  502. }
  503. },
  504. "description": "The following example gets information about a specific test.",
  505. "id": "to-get-information-about-a-specific-test-1471025744238",
  506. "title": "To get information about a specific test"
  507. }
  508. ],
  509. "GetUpload": [
  510. {
  511. "input": {
  512. "arn": "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456"
  513. },
  514. "output": {
  515. "upload": {
  516. }
  517. },
  518. "comments": {
  519. "input": {
  520. "arn": "You can get the test ARN by using the list-uploads CLI command."
  521. },
  522. "output": {
  523. }
  524. },
  525. "description": "The following example gets information about a specific upload.",
  526. "id": "to-get-information-about-a-specific-upload-1471025996221",
  527. "title": "To get information about a specific upload"
  528. }
  529. ],
  530. "InstallToRemoteAccessSession": [
  531. {
  532. "input": {
  533. "appArn": "arn:aws:devicefarm:us-west-2:123456789101:app:EXAMPLE-GUID-123-456",
  534. "remoteAccessSessionArn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456"
  535. },
  536. "output": {
  537. "appUpload": {
  538. }
  539. },
  540. "comments": {
  541. "input": {
  542. "remoteAccessSessionArn": "You can get the remote access session ARN by using the list-remote-access-sessions CLI command."
  543. },
  544. "output": {
  545. }
  546. },
  547. "description": "The following example installs a specific app to a device in a specific remote access session.",
  548. "id": "to-install-to-a-remote-access-session-1471634453818",
  549. "title": "To install to a remote access session"
  550. }
  551. ],
  552. "ListArtifacts": [
  553. {
  554. "input": {
  555. "type": "SCREENSHOT",
  556. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
  557. },
  558. "comments": {
  559. "input": {
  560. "arn": "Can also be used to list artifacts for a Job, Suite, or Test ARN."
  561. },
  562. "output": {
  563. }
  564. },
  565. "description": "The following example lists screenshot artifacts for a specific run.",
  566. "id": "to-list-artifacts-for-a-resource-1471635409527",
  567. "title": "To list artifacts for a resource"
  568. }
  569. ],
  570. "ListDevicePools": [
  571. {
  572. "input": {
  573. "type": "PRIVATE",
  574. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  575. },
  576. "output": {
  577. "devicePools": [
  578. {
  579. "name": "Top Devices",
  580. "arn": "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE",
  581. "description": "Top devices",
  582. "rules": [
  583. {
  584. "value": "[\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\"]",
  585. "attribute": "ARN",
  586. "operator": "IN"
  587. }
  588. ]
  589. },
  590. {
  591. "name": "My Android Device Pool",
  592. "arn": "arn:aws:devicefarm:us-west-2:123456789101:devicepool:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/bf96e75a-28f6-4e61-b6a7-12345EXAMPLE",
  593. "description": "Samsung Galaxy Android devices",
  594. "rules": [
  595. {
  596. "value": "[\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\",\"arn:aws:devicefarm:us-west-2::device:123456789EXAMPLE\"]",
  597. "attribute": "ARN",
  598. "operator": "IN"
  599. }
  600. ]
  601. }
  602. ]
  603. },
  604. "comments": {
  605. "input": {
  606. "arn": "You can get the project ARN by using the list-projects CLI command."
  607. },
  608. "output": {
  609. }
  610. },
  611. "description": "The following example returns information about the private device pools in a specific project.",
  612. "id": "to-get-information-about-device-pools-1471635745170",
  613. "title": "To get information about device pools"
  614. }
  615. ],
  616. "ListDevices": [
  617. {
  618. "input": {
  619. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  620. },
  621. "output": {
  622. },
  623. "comments": {
  624. "input": {
  625. "arn": "You can get the project ARN by using the list-projects CLI command."
  626. },
  627. "output": {
  628. }
  629. },
  630. "description": "The following example returns information about the available devices in a specific project.",
  631. "id": "to-get-information-about-devices-1471641699344",
  632. "title": "To get information about devices"
  633. }
  634. ],
  635. "ListJobs": [
  636. {
  637. "input": {
  638. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456"
  639. },
  640. "comments": {
  641. "input": {
  642. "arn": "You can get the project ARN by using the list-jobs CLI command."
  643. },
  644. "output": {
  645. }
  646. },
  647. "description": "The following example returns information about jobs in a specific project.",
  648. "id": "to-get-information-about-jobs-1471642228071",
  649. "title": "To get information about jobs"
  650. }
  651. ],
  652. "ListOfferingTransactions": [
  653. {
  654. "input": {
  655. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
  656. },
  657. "output": {
  658. "offeringTransactions": [
  659. {
  660. "cost": {
  661. "amount": 0,
  662. "currencyCode": "USD"
  663. },
  664. "createdOn": "1470021420",
  665. "offeringStatus": {
  666. "type": "RENEW",
  667. "effectiveOn": "1472688000",
  668. "offering": {
  669. "type": "RECURRING",
  670. "description": "Android Remote Access Unmetered Device Slot",
  671. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  672. "platform": "ANDROID"
  673. },
  674. "quantity": 0
  675. },
  676. "transactionId": "03728003-d1ea-4851-abd6-12345EXAMPLE"
  677. },
  678. {
  679. "cost": {
  680. "amount": 250,
  681. "currencyCode": "USD"
  682. },
  683. "createdOn": "1470021420",
  684. "offeringStatus": {
  685. "type": "PURCHASE",
  686. "effectiveOn": "1470021420",
  687. "offering": {
  688. "type": "RECURRING",
  689. "description": "Android Remote Access Unmetered Device Slot",
  690. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  691. "platform": "ANDROID"
  692. },
  693. "quantity": 1
  694. },
  695. "transactionId": "56820b6e-06bd-473a-8ff8-12345EXAMPLE"
  696. },
  697. {
  698. "cost": {
  699. "amount": 175,
  700. "currencyCode": "USD"
  701. },
  702. "createdOn": "1465538520",
  703. "offeringStatus": {
  704. "type": "PURCHASE",
  705. "effectiveOn": "1465538520",
  706. "offering": {
  707. "type": "RECURRING",
  708. "description": "Android Unmetered Device Slot",
  709. "id": "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
  710. "platform": "ANDROID"
  711. },
  712. "quantity": 1
  713. },
  714. "transactionId": "953ae2c6-d760-4a04-9597-12345EXAMPLE"
  715. },
  716. {
  717. "cost": {
  718. "amount": 8.07,
  719. "currencyCode": "USD"
  720. },
  721. "createdOn": "1459344300",
  722. "offeringStatus": {
  723. "type": "PURCHASE",
  724. "effectiveOn": "1459344300",
  725. "offering": {
  726. "type": "RECURRING",
  727. "description": "iOS Unmetered Device Slot",
  728. "id": "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
  729. "platform": "IOS"
  730. },
  731. "quantity": 1
  732. },
  733. "transactionId": "2baf9021-ae3e-47f5-ab52-12345EXAMPLE"
  734. }
  735. ]
  736. },
  737. "comments": {
  738. "input": {
  739. "nextToken": "A dynamically generated value, used for paginating results."
  740. },
  741. "output": {
  742. }
  743. },
  744. "description": "The following example returns information about Device Farm offering transactions.",
  745. "id": "to-get-information-about-device-offering-transactions-1472561712315",
  746. "title": "To get information about device offering transactions"
  747. }
  748. ],
  749. "ListOfferings": [
  750. {
  751. "input": {
  752. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
  753. },
  754. "output": {
  755. "offerings": [
  756. {
  757. "type": "RECURRING",
  758. "description": "iOS Unmetered Device Slot",
  759. "id": "A53D4D73-A6F6-4B82-A0B0-12345EXAMPLE",
  760. "platform": "IOS",
  761. "recurringCharges": [
  762. {
  763. "cost": {
  764. "amount": 250,
  765. "currencyCode": "USD"
  766. },
  767. "frequency": "MONTHLY"
  768. }
  769. ]
  770. },
  771. {
  772. "type": "RECURRING",
  773. "description": "Android Unmetered Device Slot",
  774. "id": "8980F81C-00D7-469D-8EC6-12345EXAMPLE",
  775. "platform": "ANDROID",
  776. "recurringCharges": [
  777. {
  778. "cost": {
  779. "amount": 250,
  780. "currencyCode": "USD"
  781. },
  782. "frequency": "MONTHLY"
  783. }
  784. ]
  785. },
  786. {
  787. "type": "RECURRING",
  788. "description": "Android Remote Access Unmetered Device Slot",
  789. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  790. "platform": "ANDROID",
  791. "recurringCharges": [
  792. {
  793. "cost": {
  794. "amount": 250,
  795. "currencyCode": "USD"
  796. },
  797. "frequency": "MONTHLY"
  798. }
  799. ]
  800. },
  801. {
  802. "type": "RECURRING",
  803. "description": "iOS Remote Access Unmetered Device Slot",
  804. "id": "552B4DAD-A6C9-45C4-94FB-12345EXAMPLE",
  805. "platform": "IOS",
  806. "recurringCharges": [
  807. {
  808. "cost": {
  809. "amount": 250,
  810. "currencyCode": "USD"
  811. },
  812. "frequency": "MONTHLY"
  813. }
  814. ]
  815. }
  816. ]
  817. },
  818. "comments": {
  819. "input": {
  820. "nextToken": "A dynamically generated value, used for paginating results."
  821. },
  822. "output": {
  823. }
  824. },
  825. "description": "The following example returns information about available device offerings.",
  826. "id": "to-get-information-about-device-offerings-1472562810999",
  827. "title": "To get information about device offerings"
  828. }
  829. ],
  830. "ListProjects": [
  831. {
  832. "input": {
  833. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
  834. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  835. },
  836. "output": {
  837. "projects": [
  838. {
  839. "name": "My Test Project",
  840. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:7ad300ed-8183-41a7-bf94-12345EXAMPLE",
  841. "created": "1453163262.105"
  842. },
  843. {
  844. "name": "Hello World",
  845. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:d6b087d9-56db-4e44-b9ec-12345EXAMPLE",
  846. "created": "1470350112.439"
  847. }
  848. ]
  849. },
  850. "comments": {
  851. "input": {
  852. "nextToken": "A dynamically generated value, used for paginating results."
  853. },
  854. "output": {
  855. }
  856. },
  857. "description": "The following example returns information about the specified project in Device Farm.",
  858. "id": "to-get-information-about-a-device-farm-project-1472564014388",
  859. "title": "To get information about a Device Farm project"
  860. }
  861. ],
  862. "ListRemoteAccessSessions": [
  863. {
  864. "input": {
  865. "arn": "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456",
  866. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE="
  867. },
  868. "output": {
  869. "remoteAccessSessions": [
  870. ]
  871. },
  872. "comments": {
  873. "input": {
  874. "arn": "You can get the Amazon Resource Name (ARN) of the session by using the list-sessions CLI command.",
  875. "nextToken": "A dynamically generated value, used for paginating results."
  876. },
  877. "output": {
  878. }
  879. },
  880. "description": "The following example returns information about a specific Device Farm remote access session.",
  881. "id": "to-get-information-about-a-remote-access-session-1472581144803",
  882. "title": "To get information about a remote access session"
  883. }
  884. ],
  885. "ListRuns": [
  886. {
  887. "input": {
  888. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
  889. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  890. },
  891. "output": {
  892. "runs": [
  893. {
  894. "name": "My Test Run",
  895. "type": "BUILTIN_EXPLORER",
  896. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE",
  897. "billingMethod": "METERED",
  898. "completedJobs": 0,
  899. "counters": {
  900. "errored": 0,
  901. "failed": 0,
  902. "passed": 0,
  903. "skipped": 0,
  904. "stopped": 0,
  905. "total": 0,
  906. "warned": 0
  907. },
  908. "created": "1472667509.852",
  909. "deviceMinutes": {
  910. "metered": 0.0,
  911. "total": 0.0,
  912. "unmetered": 0.0
  913. },
  914. "platform": "ANDROID",
  915. "result": "PENDING",
  916. "status": "RUNNING",
  917. "totalJobs": 3
  918. }
  919. ]
  920. },
  921. "comments": {
  922. "input": {
  923. "arn": "You can get the Amazon Resource Name (ARN) of the run by using the list-runs CLI command.",
  924. "nextToken": "A dynamically generated value, used for paginating results."
  925. },
  926. "output": {
  927. }
  928. },
  929. "description": "The following example returns information about a specific test run.",
  930. "id": "to-get-information-about-test-runs-1472582711069",
  931. "title": "To get information about a test run"
  932. }
  933. ],
  934. "ListSamples": [
  935. {
  936. "input": {
  937. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  938. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  939. },
  940. "output": {
  941. "samples": [
  942. ]
  943. },
  944. "comments": {
  945. "input": {
  946. "arn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.",
  947. "nextToken": "A dynamically generated value, used for paginating results."
  948. },
  949. "output": {
  950. }
  951. },
  952. "description": "The following example returns information about samples, given a specific Device Farm project.",
  953. "id": "to-get-information-about-samples-1472582847534",
  954. "title": "To get information about samples"
  955. }
  956. ],
  957. "ListSuites": [
  958. {
  959. "input": {
  960. "arn": "arn:aws:devicefarm:us-west-2:123456789101:job:EXAMPLE-GUID-123-456",
  961. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  962. },
  963. "output": {
  964. "suites": [
  965. ]
  966. },
  967. "comments": {
  968. "input": {
  969. "arn": "You can get the Amazon Resource Name (ARN) of the job by using the list-jobs CLI command.",
  970. "nextToken": "A dynamically generated value, used for paginating results."
  971. },
  972. "output": {
  973. }
  974. },
  975. "description": "The following example returns information about suites, given a specific Device Farm job.",
  976. "id": "to-get-information-about-suites-1472583038218",
  977. "title": "To get information about suites"
  978. }
  979. ],
  980. "ListTests": [
  981. {
  982. "input": {
  983. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  984. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  985. },
  986. "output": {
  987. "tests": [
  988. ]
  989. },
  990. "comments": {
  991. "input": {
  992. "arn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.",
  993. "nextToken": "A dynamically generated value, used for paginating results."
  994. },
  995. "output": {
  996. }
  997. },
  998. "description": "The following example returns information about tests, given a specific Device Farm project.",
  999. "id": "to-get-information-about-tests-1472617372212",
  1000. "title": "To get information about tests"
  1001. }
  1002. ],
  1003. "ListUniqueProblems": [
  1004. {
  1005. "input": {
  1006. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  1007. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  1008. },
  1009. "output": {
  1010. "uniqueProblems": {
  1011. }
  1012. },
  1013. "comments": {
  1014. "input": {
  1015. "arn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.",
  1016. "nextToken": "A dynamically generated value, used for paginating results."
  1017. },
  1018. "output": {
  1019. }
  1020. },
  1021. "description": "The following example returns information about unique problems, given a specific Device Farm project.",
  1022. "id": "to-get-information-about-unique-problems-1472617781008",
  1023. "title": "To get information about unique problems"
  1024. }
  1025. ],
  1026. "ListUploads": [
  1027. {
  1028. "input": {
  1029. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  1030. "nextToken": "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE"
  1031. },
  1032. "output": {
  1033. "uploads": [
  1034. ]
  1035. },
  1036. "comments": {
  1037. "input": {
  1038. "arn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.",
  1039. "nextToken": "A dynamically generated value, used for paginating results."
  1040. },
  1041. "output": {
  1042. }
  1043. },
  1044. "description": "The following example returns information about uploads, given a specific Device Farm project.",
  1045. "id": "to-get-information-about-uploads-1472617943090",
  1046. "title": "To get information about uploads"
  1047. }
  1048. ],
  1049. "PurchaseOffering": [
  1050. {
  1051. "input": {
  1052. "offeringId": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  1053. "quantity": 1
  1054. },
  1055. "output": {
  1056. "offeringTransaction": {
  1057. "cost": {
  1058. "amount": 8.07,
  1059. "currencyCode": "USD"
  1060. },
  1061. "createdOn": "1472648340",
  1062. "offeringStatus": {
  1063. "type": "PURCHASE",
  1064. "effectiveOn": "1472648340",
  1065. "offering": {
  1066. "type": "RECURRING",
  1067. "description": "Android Remote Access Unmetered Device Slot",
  1068. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  1069. "platform": "ANDROID"
  1070. },
  1071. "quantity": 1
  1072. },
  1073. "transactionId": "d30614ed-1b03-404c-9893-12345EXAMPLE"
  1074. }
  1075. },
  1076. "comments": {
  1077. "input": {
  1078. "offeringId": "You can get the offering ID by using the list-offerings CLI command."
  1079. },
  1080. "output": {
  1081. }
  1082. },
  1083. "description": "The following example purchases a specific device slot offering.",
  1084. "id": "to-purchase-a-device-slot-offering-1472648146343",
  1085. "title": "To purchase a device slot offering"
  1086. }
  1087. ],
  1088. "RenewOffering": [
  1089. {
  1090. "input": {
  1091. "offeringId": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  1092. "quantity": 1
  1093. },
  1094. "output": {
  1095. "offeringTransaction": {
  1096. "cost": {
  1097. "amount": 250,
  1098. "currencyCode": "USD"
  1099. },
  1100. "createdOn": "1472648880",
  1101. "offeringStatus": {
  1102. "type": "RENEW",
  1103. "effectiveOn": "1472688000",
  1104. "offering": {
  1105. "type": "RECURRING",
  1106. "description": "Android Remote Access Unmetered Device Slot",
  1107. "id": "D68B3C05-1BA6-4360-BC69-12345EXAMPLE",
  1108. "platform": "ANDROID"
  1109. },
  1110. "quantity": 1
  1111. },
  1112. "transactionId": "e90f1405-8c35-4561-be43-12345EXAMPLE"
  1113. }
  1114. },
  1115. "comments": {
  1116. "input": {
  1117. "offeringId": "You can get the offering ID by using the list-offerings CLI command."
  1118. },
  1119. "output": {
  1120. }
  1121. },
  1122. "description": "The following example renews a specific device slot offering.",
  1123. "id": "to-renew-a-device-slot-offering-1472648899785",
  1124. "title": "To renew a device slot offering"
  1125. }
  1126. ],
  1127. "ScheduleRun": [
  1128. {
  1129. "input": {
  1130. "name": "MyRun",
  1131. "devicePoolArn": "arn:aws:devicefarm:us-west-2:123456789101:pool:EXAMPLE-GUID-123-456",
  1132. "projectArn": "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456",
  1133. "test": {
  1134. "type": "APPIUM_JAVA_JUNIT",
  1135. "testPackageArn": "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456"
  1136. }
  1137. },
  1138. "output": {
  1139. "run": {
  1140. }
  1141. },
  1142. "comments": {
  1143. "input": {
  1144. "devicePoolArn": "You can get the Amazon Resource Name (ARN) of the device pool by using the list-pools CLI command.",
  1145. "projectArn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command.",
  1146. "testPackageArn": "You can get the Amazon Resource Name (ARN) of the test package by using the list-tests CLI command."
  1147. },
  1148. "output": {
  1149. }
  1150. },
  1151. "description": "The following example schedules a test run named MyRun.",
  1152. "id": "to-schedule-a-test-run-1472652429636",
  1153. "title": "To schedule a test run"
  1154. }
  1155. ],
  1156. "StopRun": [
  1157. {
  1158. "input": {
  1159. "arn": "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456"
  1160. },
  1161. "output": {
  1162. "run": {
  1163. }
  1164. },
  1165. "comments": {
  1166. "input": {
  1167. "arn": "You can get the Amazon Resource Name (ARN) of the test run by using the list-runs CLI command."
  1168. },
  1169. "output": {
  1170. }
  1171. },
  1172. "description": "The following example stops a specific test run.",
  1173. "id": "to-stop-a-test-run-1472653770340",
  1174. "title": "To stop a test run"
  1175. }
  1176. ],
  1177. "UpdateDevicePool": [
  1178. {
  1179. "input": {
  1180. "name": "NewName",
  1181. "arn": "arn:aws:devicefarm:us-west-2::devicepool:082d10e5-d7d7-48a5-ba5c-12345EXAMPLE",
  1182. "description": "NewDescription",
  1183. "rules": [
  1184. {
  1185. "value": "True",
  1186. "attribute": "REMOTE_ACCESS_ENABLED",
  1187. "operator": "EQUALS"
  1188. }
  1189. ]
  1190. },
  1191. "output": {
  1192. "devicePool": {
  1193. }
  1194. },
  1195. "comments": {
  1196. "input": {
  1197. "arn": "You can get the Amazon Resource Name (ARN) of the device pool by using the list-pools CLI command."
  1198. },
  1199. "output": {
  1200. "devicePool": "Note: you cannot update curated device pools."
  1201. }
  1202. },
  1203. "description": "The following example updates the specified device pool with a new name and description. It also enables remote access of devices in the device pool.",
  1204. "id": "to-update-a-device-pool-1472653887677",
  1205. "title": "To update a device pool"
  1206. }
  1207. ],
  1208. "UpdateProject": [
  1209. {
  1210. "input": {
  1211. "name": "NewName",
  1212. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE"
  1213. },
  1214. "output": {
  1215. "project": {
  1216. "name": "NewName",
  1217. "arn": "arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE",
  1218. "created": "1448400709.927"
  1219. }
  1220. },
  1221. "comments": {
  1222. "input": {
  1223. "arn": "You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command."
  1224. },
  1225. "output": {
  1226. }
  1227. },
  1228. "description": "The following example updates the specified project with a new name.",
  1229. "id": "to-update-a-device-pool-1472653887677",
  1230. "title": "To update a device pool"
  1231. }
  1232. ]
  1233. }
  1234. }