Skip to content

Commit b1c6bf8

Browse files
author
AWS
committed
AWS Panorama Update: Support sorting and filtering in ListDevices API, and add more fields to device listings and single device detail
1 parent dd56aeb commit b1c6bf8

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Panorama",
4+
"contributor": "",
5+
"description": "Support sorting and filtering in ListDevices API, and add more fields to device listings and single device detail"
6+
}

services/panorama/src/main/resources/codegen-resources/service-2.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,10 @@
13121312
"shape":"Description",
13131313
"documentation":"<p>The device's description.</p>"
13141314
},
1315+
"DeviceAggregatedStatus":{
1316+
"shape":"DeviceAggregatedStatus",
1317+
"documentation":"<p>A device's aggregated status. Including the device's connection status, provisioning status, and lease status.</p>"
1318+
},
13151319
"DeviceConnectionStatus":{
13161320
"shape":"DeviceConnectionStatus",
13171321
"documentation":"<p>The device's connection status.</p>"
@@ -1324,6 +1328,10 @@
13241328
"shape":"LatestAlternateSoftware",
13251329
"documentation":"<p>The most recent beta software release.</p>"
13261330
},
1331+
"LatestDeviceJob":{
1332+
"shape":"LatestDeviceJob",
1333+
"documentation":"<p>A device's latest job. Includes the target image version, and the job status.</p>"
1334+
},
13271335
"LatestSoftware":{
13281336
"shape":"LatestSoftware",
13291337
"documentation":"<p>The latest software version available for the device.</p>"
@@ -1760,6 +1768,18 @@
17601768
"shape":"CreatedTime",
17611769
"documentation":"<p>When the device was created.</p>"
17621770
},
1771+
"CurrentSoftware":{
1772+
"shape":"CurrentSoftware",
1773+
"documentation":"<p>A device's current software.</p>"
1774+
},
1775+
"Description":{
1776+
"shape":"Description",
1777+
"documentation":"<p>A description for the device.</p>"
1778+
},
1779+
"DeviceAggregatedStatus":{
1780+
"shape":"DeviceAggregatedStatus",
1781+
"documentation":"<p>A device's aggregated status. Including the device's connection status, provisioning status, and lease status.</p>"
1782+
},
17631783
"DeviceId":{
17641784
"shape":"DeviceId",
17651785
"documentation":"<p>The device's ID.</p>"
@@ -1768,6 +1788,10 @@
17681788
"shape":"LastUpdatedTime",
17691789
"documentation":"<p>When the device was updated.</p>"
17701790
},
1791+
"LatestDeviceJob":{
1792+
"shape":"LatestDeviceJob",
1793+
"documentation":"<p>A device's latest job. Includes the target image version, and the update job status.</p>"
1794+
},
17711795
"LeaseExpirationTime":{
17721796
"shape":"LeaseExpirationTime",
17731797
"documentation":"<p>The device's lease expiration time.</p>"
@@ -1779,10 +1803,32 @@
17791803
"ProvisioningStatus":{
17801804
"shape":"DeviceStatus",
17811805
"documentation":"<p>The device's provisioning status.</p>"
1806+
},
1807+
"Tags":{
1808+
"shape":"TagMap",
1809+
"documentation":"<p>The device's tags.</p>"
1810+
},
1811+
"Type":{
1812+
"shape":"DeviceType",
1813+
"documentation":"<p>The device's type.</p>"
17821814
}
17831815
},
17841816
"documentation":"<p>A device.</p>"
17851817
},
1818+
"DeviceAggregatedStatus":{
1819+
"type":"string",
1820+
"enum":[
1821+
"ERROR",
1822+
"AWAITING_PROVISIONING",
1823+
"PENDING",
1824+
"FAILED",
1825+
"DELETING",
1826+
"ONLINE",
1827+
"OFFLINE",
1828+
"LEASE_EXPIRED",
1829+
"UPDATE_NEEDED"
1830+
]
1831+
},
17861832
"DeviceArn":{
17871833
"type":"string",
17881834
"max":255,
@@ -2037,6 +2083,20 @@
20372083
"max":255,
20382084
"min":1
20392085
},
2086+
"LatestDeviceJob":{
2087+
"type":"structure",
2088+
"members":{
2089+
"ImageVersion":{
2090+
"shape":"ImageVersion",
2091+
"documentation":"<p>The target version of the device software.</p>"
2092+
},
2093+
"Status":{
2094+
"shape":"UpdateProgress",
2095+
"documentation":"<p>Status of the latest device job.</p>"
2096+
}
2097+
},
2098+
"documentation":"<p>Returns information about the latest device job.</p>"
2099+
},
20402100
"LatestSoftware":{
20412101
"type":"string",
20422102
"max":255,
@@ -2198,17 +2258,41 @@
21982258
"ListDevicesRequest":{
21992259
"type":"structure",
22002260
"members":{
2261+
"DeviceAggregatedStatusFilter":{
2262+
"shape":"DeviceAggregatedStatus",
2263+
"documentation":"<p>Filter based on a device's status.</p>",
2264+
"location":"querystring",
2265+
"locationName":"DeviceAggregatedStatusFilter"
2266+
},
22012267
"MaxResults":{
22022268
"shape":"MaxSize25",
22032269
"documentation":"<p>The maximum number of devices to return in one page of results.</p>",
22042270
"location":"querystring",
22052271
"locationName":"MaxResults"
22062272
},
2273+
"NameFilter":{
2274+
"shape":"NameFilter",
2275+
"documentation":"<p>Filter based on device's name. Prefixes supported.</p>",
2276+
"location":"querystring",
2277+
"locationName":"NameFilter"
2278+
},
22072279
"NextToken":{
22082280
"shape":"NextToken",
22092281
"documentation":"<p>Specify the pagination token from a previous request to retrieve the next page of results.</p>",
22102282
"location":"querystring",
22112283
"locationName":"NextToken"
2284+
},
2285+
"SortBy":{
2286+
"shape":"ListDevicesSortBy",
2287+
"documentation":"<p>The target column to be sorted on. Default column sort is CREATED_TIME.</p>",
2288+
"location":"querystring",
2289+
"locationName":"SortBy"
2290+
},
2291+
"SortOrder":{
2292+
"shape":"SortOrder",
2293+
"documentation":"<p>The sorting order for the returned list. SortOrder is DESCENDING by default based on CREATED_TIME. Otherwise, SortOrder is ASCENDING.</p>",
2294+
"location":"querystring",
2295+
"locationName":"SortOrder"
22122296
}
22132297
}
22142298
},
@@ -2226,6 +2310,15 @@
22262310
}
22272311
}
22282312
},
2313+
"ListDevicesSortBy":{
2314+
"type":"string",
2315+
"enum":[
2316+
"DEVICE_ID",
2317+
"CREATED_TIME",
2318+
"NAME",
2319+
"DEVICE_AGGREGATED_STATUS"
2320+
]
2321+
},
22292322
"ListNodeFromTemplateJobsRequest":{
22302323
"type":"structure",
22312324
"members":{
@@ -2446,6 +2539,7 @@
24462539
"max":25,
24472540
"min":0
24482541
},
2542+
"NameFilter":{"type":"string"},
24492543
"NetworkConnectionStatus":{
24502544
"type":"string",
24512545
"enum":[
@@ -3308,6 +3402,13 @@
33083402
},
33093403
"exception":true
33103404
},
3405+
"SortOrder":{
3406+
"type":"string",
3407+
"enum":[
3408+
"ASCENDING",
3409+
"DESCENDING"
3410+
]
3411+
},
33113412
"StaticIpConnectionInfo":{
33123413
"type":"structure",
33133414
"required":[

0 commit comments

Comments
 (0)