mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Get ids
This commit is contained in:
parent
c3cb7d14b6
commit
f688b32c50
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ function Get-ParameterValue {
|
|||
# The $PSBoundParameters for the caller -- DO NOT pass this (dot-source Get-ParameterValues instead)
|
||||
$BoundParameters = $PSBoundParameters,
|
||||
|
||||
[string[]]$DefaultExcludeParameter = @("id", "url", "apiKey", 'Debug', 'Verbose')
|
||||
[string[]]$DefaultExcludeParameter = @("url", "apiKey", 'Debug', 'Verbose')
|
||||
)
|
||||
|
||||
if ($MyInvocation.Line[($MyInvocation.OffsetInLine - 1)] -ne '.') {
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ function Get-Asset() {
|
|||
}
|
||||
|
||||
if ($asset_tag) {
|
||||
if ( $search -or $asset_serial) {
|
||||
if ( $search -or $asset_serial -or $id) {
|
||||
Throw "[$($MyInvocation.MyCommand.Name)] Please specify only one of -search , -asset_tag or -asset_serial parameter"
|
||||
}
|
||||
$apiuri= "$url/api/v1/hardware/bytag/$asset_tag"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue