@@ -261,6 +261,12 @@ def searchOrgJsiAssetsAndContracts(
261261 eos_before : str | None = None ,
262262 version_eos_after : str | None = None ,
263263 version_eos_before : str | None = None ,
264+ contract_end_before : str | None = None ,
265+ contract_end_after : str | None = None ,
266+ contract_type : str | None = None ,
267+ contract_sku : str | None = None ,
268+ end_of_service_time : str | None = None ,
269+ support_contract_status : str | None = None ,
264270 has_support : bool | None = None ,
265271 sirt_id : str | None = None ,
266272 pbn_id : str | None = None ,
@@ -293,8 +299,8 @@ def searchOrgJsiAssetsAndContracts(
293299 Filter results by SKU. Accepts multiple comma-separated values.
294300 status : str{'all', 'connected', 'disconnected'}, default: all
295301 Device status. enum: `all`, `connected`, `disconnected`
296- warranty_type : str{'Standard Hardware Warranty', 'Enhanced Hardware Warranty', 'Dead On Arrival Warranty', 'Limited Lifetime Warranty', 'Software Warranty', 'Limited Lifetime Warranty for WLA', 'Warranty-JCPO EOL (DOA Not Included)', 'MIST Enhanced Hardware Warranty', 'MIST Standard Warranty', 'Determine Lifetime warranty'}
297- Device warranty type used to filter Juniper Support Insight inventory. enum: `Standard Hardware Warranty`, `Enhanced Hardware Warranty`, `Dead On Arrival Warranty`, `Limited Lifetime Warranty`, `Software Warranty`, `Limited Lifetime Warranty for WLA`, `Warranty-JCPO EOL (DOA Not Included)`, `MIST Enhanced Hardware Warranty`, `MIST Standard Warranty`, `Determine Lifetime warranty`
302+ warranty_type : str
303+ Device warranty type used to filter Juniper Support Insight inventory
298304 end_of_sale_after : str
299305 Filter devices with End Of Sale date after this date
300306 end_of_sale_before : str
@@ -307,14 +313,26 @@ def searchOrgJsiAssetsAndContracts(
307313 Filter devices with OS Version End Of Support date after this date
308314 version_eos_before : str
309315 Filter devices with OS Version End Of Support date before this date
316+ contract_end_before : str
317+ Filter results by service contract end date before this date
318+ contract_end_after : str
319+ Filter results by service contract end date after this date
320+ contract_type : str
321+ Filter results by contract type
322+ contract_sku : str
323+ Filter results by contract SKU
324+ end_of_service_time : str
325+ Filter results by end of service time
326+ support_contract_status : str{'Active', 'Declined', 'EOL', 'Service Available'}
327+ Filter results by service contract status
310328 has_support : bool
311329 Indicates if the device is covered under active support contract. Accepts multiple comma-separated boolean values.
312330 sirt_id : str
313331 To get the onboarded devices that are affected by the SIRT ID
314332 pbn_id : str
315333 To get the onboarded devices that are affected by the PBN ID
316334 text : str
317- Wildcards for `serial `, `model`, `account_id `
335+ Wildcard text search across `account_id `, `contract_id`, `contract_reseller`, `contract_sku`, `device_name`, `distributor`, `ia_address`, `ia_country`, `ia_region`, `ia_zip_postal`, ` model`, `serial`, `sku`, `status`, `suggested_version`, `version`, `warranty `
318336 limit : int, default: 100
319337 Maximum number of results to return per page
320338 sort : str, default: timestamp
@@ -354,6 +372,18 @@ def searchOrgJsiAssetsAndContracts(
354372 query_params ["version_eos_after" ] = str (version_eos_after )
355373 if version_eos_before :
356374 query_params ["version_eos_before" ] = str (version_eos_before )
375+ if contract_end_before :
376+ query_params ["contract_end_before" ] = str (contract_end_before )
377+ if contract_end_after :
378+ query_params ["contract_end_after" ] = str (contract_end_after )
379+ if contract_type :
380+ query_params ["contract_type" ] = str (contract_type )
381+ if contract_sku :
382+ query_params ["contract_sku" ] = str (contract_sku )
383+ if end_of_service_time :
384+ query_params ["end_of_service_time" ] = str (end_of_service_time )
385+ if support_contract_status :
386+ query_params ["support_contract_status" ] = str (support_contract_status )
357387 if has_support :
358388 query_params ["has_support" ] = str (has_support )
359389 if sirt_id :
@@ -431,8 +461,10 @@ def searchOrgJsiPbn(
431461 customer_risk : str | None = None ,
432462 id : str | None = None ,
433463 bug_type : str | None = None ,
464+ text : str | None = None ,
434465 limit : int | None = None ,
435466 page : int | None = None ,
467+ sort : str | None = None ,
436468 search_after : str | None = None ,
437469 start : str | None = None ,
438470 end : str | None = None ,
@@ -452,19 +484,23 @@ def searchOrgJsiPbn(
452484 QUERY PARAMS
453485 ------------
454486 versions : str
455- OS versions to search for
487+ Software versions affected by the PBN
456488 models : str
457- Device models to search for
489+ Models affected by the PBN
458490 customer_risk : str
459- Customer risk level to filter by
491+ Filter results by customer risk. enum: `Critical`, `Major`, `Minor`
460492 id : str
461- PBN ID to search for
462- bug_type : str
463- Bug type to filter by
493+ ID of the PBN
494+ bug_type : str{'Day-1', 'Regression'}
495+ Filter results by bug type
496+ text : str
497+ Wildcard search across `versions`, `models`, `customer_risk`, `id`, `bug_type`
464498 limit : int, default: 100
465499 Maximum number of results to return per page
466500 page : int, default: 1
467501 Select the page number to return when using page-based pagination; starts at `1`
502+ sort : str, default: timestamp
503+ On which field the list should be sorted, -prefix represents DESC order
468504 search_after : str
469505 Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the `next` URL from the previous response and should not be manually constructed.
470506 start : str
@@ -490,10 +526,14 @@ def searchOrgJsiPbn(
490526 query_params ["id" ] = str (id )
491527 if bug_type :
492528 query_params ["bug_type" ] = str (bug_type )
529+ if text :
530+ query_params ["text" ] = str (text )
493531 if limit :
494532 query_params ["limit" ] = str (limit )
495533 if page :
496534 query_params ["page" ] = str (page )
535+ if sort :
536+ query_params ["sort" ] = str (sort )
497537 if search_after :
498538 query_params ["search_after" ] = str (search_after )
499539 if start :
@@ -588,10 +628,10 @@ def searchOrgJsiSirt(
588628
589629 QUERY PARAMS
590630 ------------
591- severity : str
592- Filter results by severity
631+ severity : str{'Critical', 'High', 'Low', 'Medium'}
632+ Filter results by SIRT severity
593633 id : str
594- Filter results by identifier
634+ JSA number
595635 updated_after : str
596636 JSA Updated date to be filtered after this date
597637 updated_before : str
@@ -601,11 +641,11 @@ def searchOrgJsiSirt(
601641 published_before : str
602642 JSA Published date to be filtered before this date
603643 models : str
604- Filter results by models
644+ Models affected by the SIRT
605645 versions : str
606- Software version affected by the SIRT
646+ Software versions affected by the SIRT
607647 text : str
608- Wildcards search on os_version_affected, affected_models, severity, jsa_id
648+ Wildcard search across `versions`, `models`, ` severity`, `id`
609649 limit : int, default: 100
610650 Maximum number of results to return per page
611651 page : int, default: 1
0 commit comments