File tree Expand file tree Collapse file tree 12 files changed +67
-7
lines changed Expand file tree Collapse file tree 12 files changed +67
-7
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Asset -url "https://assets.example.com" -token "token..." | Where-Object {$_
1919function Get-Asset ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,7 +32,8 @@ function Get-Asset()
3032 Uri = " $url /api/v1/hardware"
3133 Method = ' Get'
3234 GetParameters = @ {
33- limit = 9999
35+ search = $search
36+ limit = 999
3437 }
3538 Token = $apiKey
3639 }
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Category -url "https://assets.example.com" -token "token..." | Where-Object
1919function Get-Category ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Category()
3032 Uri = " $url /api/v1/categories"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Company -url "https://assets.example.com" -token "token..." | Where-Object {
1919function Get-Company ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Company()
3032 Uri = " $url /api/v1/companies"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Component -url "https://assets.example.com" -token "token..." | Where-Object
1919function Get-Component ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Component()
3032 Uri = " $url /api/v1/components"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Department -url "https://assets.example.com" -token "token..." | Where-Objec
1919function Get-Department ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Department()
3032 Uri = " $url /api/v1/departments"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Location -url "https://assets.example.com" -token "token..." | Where-Object
1919function Get-Location ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Location()
3032 Uri = " $url /api/v1/locations"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Manufacturer -url "https://assets.example.com" -token "token..." | Where-Obj
1919function Get-Manufacturer ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Manufacturer()
3032 Uri = " $url /api/v1/manufacturers"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Models -url "https://assets.example.com" -token "token..." | Where-Object {$
1919function Get-Model ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Model()
3032 Uri = " $url /api/v1/models"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Status -url "https://assets.example.com" -token "token..." | Where-Object {$
1919function Get-Status ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Status()
3032 Uri = " $url /api/v1/statuslabels"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ Get-Supplier -url "https://assets.example.com" -token "token..." | Where-Object
1919function Get-Supplier ()
2020{
2121 Param (
22+ [string ]$search ,
23+
2224 [parameter (mandatory = $true )]
2325 [string ]$url ,
2426
@@ -30,6 +32,10 @@ function Get-Supplier()
3032 Uri = " $url /api/v1/suppliers"
3133 Method = ' Get'
3234 Token = $apiKey
35+ GetParameters = @ {
36+ search = $search
37+ limit = 999
38+ }
3339 }
3440
3541 $result = Invoke-SnipeitMethod @Parameters
You can’t perform that action at this time.
0 commit comments