mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
Merge pull request #198 from PetriAsi/feature/support-images
Feature/support images
This commit is contained in:
commit
11e087944a
53 changed files with 564 additions and 268 deletions
|
|
@ -54,10 +54,7 @@ ID number of the location the accessory is assigned to
|
||||||
Min quantity of the accessory before alert is triggered
|
Min quantity of the accessory before alert is triggered
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Accessory image fileame and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -112,8 +109,6 @@ function New-SnipeitAccessory() {
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,7 @@ Optional Purchase cost of the Asset
|
||||||
Optional Default location id for the asset
|
Optional Default location id for the asset
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Asset image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -123,8 +120,6 @@ function New-SnipeitAsset()
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@ If switch is present, require users to confirm acceptance of assets in this cate
|
||||||
If switch is present, send email to user on checkin/checkout
|
If switch is present, send email to user on checkin/checkout
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Category image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -62,8 +59,6 @@ function New-SnipeitCategory()
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,7 @@ Creates new company on Snipe-It system
|
||||||
Comapany name
|
Comapany name
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Company image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -39,8 +36,6 @@ function New-SnipeitCompany()
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,7 @@ Date accessory was purchased
|
||||||
Cost of item being purchased.
|
Cost of item being purchased.
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Component image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -74,8 +71,6 @@ function New-SnipeitComponent() {
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,10 +45,7 @@ Model number of the consumable in months
|
||||||
Item number for the consumable
|
Item number for the consumable
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Consumable Image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -113,8 +110,6 @@ function New-SnipeitConsumable()
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,7 @@
|
||||||
ID number of manager
|
ID number of manager
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Department Image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
|
||||||
|
|
@ -39,10 +39,7 @@
|
||||||
The manager ID of the location
|
The manager ID of the location
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Location Image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
Name of the Manufacturer
|
Name of the Manufacturer
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Manufacturer Image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,7 @@
|
||||||
Fieldset ID that the asset uses (Custom fields)
|
Fieldset ID that the asset uses (Custom fields)
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
Asset model Image filename and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -63,8 +60,6 @@ function New-SnipeitModel()
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,10 +51,7 @@
|
||||||
Mark user as import from ldap
|
Mark user as import from ldap
|
||||||
|
|
||||||
.PARAMETER image
|
.PARAMETER image
|
||||||
Image file name and path for item
|
User Image file name and path
|
||||||
|
|
||||||
.PARAMETER image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
@ -113,8 +110,6 @@ function New-SnipeitUser() {
|
||||||
[ValidateScript({Test-Path $_})]
|
[ValidateScript({Test-Path $_})]
|
||||||
[string]$image,
|
[string]$image,
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,9 @@ Image file name and path for item
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfoeItInfo command
|
||||||
|
|
||||||
|
|
@ -101,6 +104,9 @@ function Set-SnipeitAccessory() {
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -123,7 +129,7 @@ function Set-SnipeitAccessory() {
|
||||||
foreach($accessory_id in $id){
|
foreach($accessory_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/accessories/$accessory_id"
|
Uri = "$url/api/v1/accessories/$accessory_id"
|
||||||
Method = 'Patch'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@ Image file name and path for item
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -65,6 +68,9 @@ function Set-SnipeitCategory()
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -83,7 +89,7 @@ function Set-SnipeitCategory()
|
||||||
foreach($category_id in $id){
|
foreach($category_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/categories/$category_id"
|
Uri = "$url/api/v1/categories/$category_id"
|
||||||
Method = 'Put'
|
Method = $RequestType
|
||||||
Body = $values
|
Body = $values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,9 @@ Image file name and path for item
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -48,6 +51,9 @@ function Set-SnipeitCompany()
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -63,7 +69,7 @@ function Set-SnipeitCompany()
|
||||||
foreach($company_id in $id){
|
foreach($company_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/companies/$company_id"
|
Uri = "$url/api/v1/companies/$company_id"
|
||||||
Method = 'Patch'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,9 @@ Image file name and path for item
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -84,6 +87,9 @@ function Set-SnipeitComponent()
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -104,7 +110,7 @@ function Set-SnipeitComponent()
|
||||||
foreach($component_id in $id){
|
foreach($component_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/components/$component_id"
|
Uri = "$url/api/v1/components/$component_id"
|
||||||
Method = 'Patch'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ Image file name and path for item
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -123,6 +126,9 @@ function Set-SnipeitConsumable()
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -143,7 +149,7 @@ function Set-SnipeitConsumable()
|
||||||
foreach($consumable_id in $id ){
|
foreach($consumable_id in $id ){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/consumables/$consumable_id"
|
Uri = "$url/api/v1/consumables/$consumable_id"
|
||||||
Method = 'Put'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@
|
||||||
.PARAMETER help_text
|
.PARAMETER help_text
|
||||||
Any additional text you wish to display under the new form field to make it clearer what the gauges should be.
|
Any additional text you wish to display under the new form field to make it clearer what the gauges should be.
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Put you could use Patch if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -69,6 +72,9 @@ function Set-SnipeitCustomField()
|
||||||
|
|
||||||
[string]$custom_format,
|
[string]$custom_format,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Put",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -88,7 +94,7 @@ function Set-SnipeitCustomField()
|
||||||
foreach($field_id in $id) {
|
foreach($field_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/fields/$field_id"
|
Uri = "$url/api/v1/fields/$field_id"
|
||||||
Method = 'Put'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -62,6 +65,9 @@ function Set-SnipeitDepartment() {
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -78,7 +84,7 @@ function Set-SnipeitDepartment() {
|
||||||
foreach ($department_id in $id) {
|
foreach ($department_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/departments/$department_id"
|
Uri = "$url/api/v1/departments/$department_id"
|
||||||
Method = 'Put'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@
|
||||||
.PARAMETER termination_date
|
.PARAMETER termination_date
|
||||||
Termination date for license.
|
Termination date for license.
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -121,6 +124,9 @@ function Set-SnipeitLicense() {
|
||||||
|
|
||||||
[datetime]$termination_date,
|
[datetime]$termination_date,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -151,7 +157,7 @@ function Set-SnipeitLicense() {
|
||||||
foreach($license_id in $id){
|
foreach($license_id in $id){
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/licenses/$license_id"
|
Uri = "$url/api/v1/licenses/$license_id"
|
||||||
Method = 'PUT'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,9 @@
|
||||||
.PARAMETER note
|
.PARAMETER note
|
||||||
Notes about checkout
|
Notes about checkout
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -58,6 +61,9 @@ function Set-SnipeitLicenseSeat()
|
||||||
|
|
||||||
[string]$note,
|
[string]$note,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -73,7 +79,7 @@ function Set-SnipeitLicenseSeat()
|
||||||
foreach($license_id in $id) {
|
foreach($license_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/licenses/$license_id/seats/$seat_id"
|
Uri = "$url/api/v1/licenses/$license_id/seats/$seat_id"
|
||||||
Method = 'Patch'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,9 @@
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -99,6 +102,9 @@ function Set-SnipeitLocation() {
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -116,7 +122,7 @@ function Set-SnipeitLocation() {
|
||||||
foreach ($location_id in $id) {
|
foreach ($location_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/locations/$location_id"
|
Uri = "$url/api/v1/locations/$location_id"
|
||||||
Method = 'PUT'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,9 @@
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -68,6 +71,9 @@ function Set-SnipeitModel() {
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -85,7 +91,7 @@ function Set-SnipeitModel() {
|
||||||
foreach ($model_id in $id) {
|
foreach ($model_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/models/$model_id"
|
Uri = "$url/api/v1/models/$model_id"
|
||||||
Method = 'put'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,9 @@ Hex code showing what color the status label should be on the pie chart in the d
|
||||||
.PARAMETER default_label
|
.PARAMETER default_label
|
||||||
1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses
|
1 or 0 - determine whether it should be bubbled up to the top of the list of available statuses
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -53,6 +56,9 @@ function Set-SnipeitStatus()
|
||||||
|
|
||||||
[bool]$default_label,
|
[bool]$default_label,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
@ -68,7 +74,7 @@ function Set-SnipeitStatus()
|
||||||
foreach($status_id in $id) {
|
foreach($status_id in $id) {
|
||||||
$Parameters = @{
|
$Parameters = @{
|
||||||
Uri = "$url/api/v1/statuslabels/$status_id"
|
Uri = "$url/api/v1/statuslabels/$status_id"
|
||||||
Method = 'Put'
|
Method = $RequestType
|
||||||
Body = $Values
|
Body = $Values
|
||||||
Token = $apiKey
|
Token = $apiKey
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,9 @@
|
||||||
.PARAMETER image_delete
|
.PARAMETER image_delete
|
||||||
Remove current image
|
Remove current image
|
||||||
|
|
||||||
|
.PARAMETER RequestType
|
||||||
|
Http request type to send Snipe IT system. Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
.PARAMETER url
|
.PARAMETER url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -118,6 +121,9 @@ function Set-SnipeitUser() {
|
||||||
|
|
||||||
[switch]$image_delete=$false,
|
[switch]$image_delete=$false,
|
||||||
|
|
||||||
|
[ValidateSet("Put","Patch")]
|
||||||
|
[string]$RequestType = "Patch",
|
||||||
|
|
||||||
[parameter(mandatory = $true)]
|
[parameter(mandatory = $true)]
|
||||||
[string]$url,
|
[string]$url,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,7 @@ Creates new accessory on Snipe-It system
|
||||||
New-SnipeitAccessory [-name] <String> [-qty] <Int32> [-category_id] <Int32> [[-company_id] <Int32>]
|
New-SnipeitAccessory [-name] <String> [-qty] <Int32> [-category_id] <Int32> [[-company_id] <Int32>]
|
||||||
[[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-model_number] <String>] [[-purchase_cost] <Single>]
|
[[-manufacturer_id] <Int32>] [[-order_number] <String>] [[-model_number] <String>] [[-purchase_cost] <Single>]
|
||||||
[[-purchase_date] <DateTime>] [[-min_amt] <Int32>] [[-supplier_id] <Int32>] [[-location_id] <Int32>]
|
[[-purchase_date] <DateTime>] [[-min_amt] <Int32>] [[-supplier_id] <Int32>] [[-location_id] <Int32>]
|
||||||
[[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
[[-image] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
[<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -78,7 +77,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Accessory image fileame and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -92,21 +91,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -location_id
|
### -location_id
|
||||||
ID number of the location the accessory is assigned to
|
ID number of the location the accessory is assigned to
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Add a new Asset to Snipe-it asset system
|
||||||
New-SnipeitAsset [-status_id] <Int32> [-model_id] <Int32> [[-name] <String>] [[-asset_tag] <String>]
|
New-SnipeitAsset [-status_id] <Int32> [-model_id] <Int32> [[-name] <String>] [[-asset_tag] <String>]
|
||||||
[[-serial] <String>] [[-company_id] <Int32>] [[-order_number] <String>] [[-notes] <String>]
|
[[-serial] <String>] [[-company_id] <Int32>] [[-order_number] <String>] [[-notes] <String>]
|
||||||
[[-warranty_months] <Int32>] [[-purchase_cost] <String>] [[-purchase_date] <DateTime>]
|
[[-warranty_months] <Int32>] [[-purchase_cost] <String>] [[-purchase_date] <DateTime>]
|
||||||
[[-supplier_id] <Int32>] [[-rtd_location_id] <Int32>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-supplier_id] <Int32>] [[-rtd_location_id] <Int32>] [[-image] <String>] [-url] <String> [-apiKey] <String>
|
||||||
[-apiKey] <String> [[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-customfields] <Hashtable>] [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -107,7 +107,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Asset image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -121,21 +121,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -model_id
|
### -model_id
|
||||||
Required Model ID of the asset, this can be got using Get-Model
|
Required Model ID of the asset, this can be got using Get-Model
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Create a new Snipe-IT Category
|
||||||
|
|
||||||
```
|
```
|
||||||
New-SnipeitCategory [-name] <String> [-category_type] <String> [[-eula_text] <String>] [-use_default_eula]
|
New-SnipeitCategory [-name] <String> [-category_type] <String> [[-eula_text] <String>] [-use_default_eula]
|
||||||
[-require_acceptance] [-checkin_email] [[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String>
|
[-require_acceptance] [-checkin_email] [[-image] <String>] [-url] <String> [-apiKey] <String> [-WhatIf]
|
||||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
[-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -91,7 +91,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Category image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -105,21 +105,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -name
|
### -name
|
||||||
Name of new category to be created
|
Name of new category to be created
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ Creates a new Company
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
```
|
```
|
||||||
New-SnipeitCompany [-name] <String> [[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String>
|
New-SnipeitCompany [-name] <String> [[-image] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
||||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
[<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -45,7 +45,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Company image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -59,21 +59,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -name
|
### -name
|
||||||
Comapany name
|
Comapany name
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,7 @@ Create a new component
|
||||||
```
|
```
|
||||||
New-SnipeitComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>]
|
New-SnipeitComponent [-name] <String> [-category_id] <Int32> [-qty] <String> [[-company_id] <Int32>]
|
||||||
[[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>]
|
[[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>] [[-purchase_cost] <Single>]
|
||||||
[[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
[[-image] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
[<CommonParameters>]
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -77,7 +76,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Component image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -91,21 +90,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -location_id
|
### -location_id
|
||||||
ID number of the location the accessory is assigned to
|
ID number of the location the accessory is assigned to
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Add a new Consumable to Snipe-it asset system
|
||||||
New-SnipeitConsumable [-name] <String> [-qty] <Int32> [-category_id] <Int32> [[-min_amt] <Int32>]
|
New-SnipeitConsumable [-name] <String> [-qty] <Int32> [-category_id] <Int32> [[-min_amt] <Int32>]
|
||||||
[[-company_id] <Int32>] [[-order_number] <String>] [[-manufacturer_id] <Int32>] [[-location_id] <Int32>]
|
[[-company_id] <Int32>] [[-order_number] <String>] [[-manufacturer_id] <Int32>] [[-location_id] <Int32>]
|
||||||
[[-requestable] <Boolean>] [[-purchase_date] <DateTime>] [[-purchase_cost] <String>]
|
[[-requestable] <Boolean>] [[-purchase_date] <DateTime>] [[-purchase_cost] <String>]
|
||||||
[[-model_number] <String>] [[-item_no] <String>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-model_number] <String>] [[-item_no] <String>] [[-image] <String>] [-url] <String> [-apiKey] <String>
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -79,7 +79,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Consumable Image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -93,21 +93,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -item_no
|
### -item_no
|
||||||
Item number for the consumable
|
Item number for the consumable
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Department Image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -76,7 +76,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
### -image_delete
|
||||||
Remove current image
|
{{ Fill image_delete Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Location Image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -137,7 +137,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
### -image_delete
|
||||||
Remove current image
|
{{ Fill image_delete Description }}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: SwitchParameter
|
Type: SwitchParameter
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Manufacturer Image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Add a new Model to Snipe-it asset system
|
||||||
|
|
||||||
```
|
```
|
||||||
New-SnipeitModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32>
|
New-SnipeitModel [-name] <String> [[-model_number] <String>] [-category_id] <Int32> [-manufacturer_id] <Int32>
|
||||||
[[-eol] <Int32>] [-fieldset_id] <Int32> [[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String>
|
[[-eol] <Int32>] [-fieldset_id] <Int32> [[-image] <String>] [-url] <String> [-apiKey] <String> [-WhatIf]
|
||||||
[-WhatIf] [-Confirm] [<CommonParameters>]
|
[-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -91,7 +91,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
Asset model Image filename and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -105,21 +105,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -manufacturer_id
|
### -manufacturer_id
|
||||||
Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer
|
Manufacturer ID that the asset belongs to this can be got using Get-Manufacturer
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
external help file: SnipeitPS-help.xml
|
external help file: SnipeitPS-help.xml
|
||||||
Module Name: SnipeitPS
|
Module Name: SnipeitPS
|
||||||
online version:
|
online version:
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Creates a new user
|
||||||
New-SnipeitUser [-first_name] <String> [-last_name] <String> [-username] <String> [[-password] <String>]
|
New-SnipeitUser [-first_name] <String> [-last_name] <String> [-username] <String> [[-password] <String>]
|
||||||
[[-activated] <Boolean>] [[-notes] <String>] [[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>]
|
[[-activated] <Boolean>] [[-notes] <String>] [[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>]
|
||||||
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>]
|
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>]
|
||||||
[[-employee_num] <String>] [[-ldap_import] <Boolean>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-employee_num] <String>] [[-ldap_import] <Boolean>] [[-image] <String>] [-url] <String> [-apiKey] <String>
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -139,7 +139,7 @@ Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image
|
### -image
|
||||||
Image file name and path for item
|
User Image file name and path
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Type: String
|
Type: String
|
||||||
|
|
@ -153,21 +153,6 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
### -image_delete
|
|
||||||
Remove current image
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
Type: SwitchParameter
|
|
||||||
Parameter Sets: (All)
|
|
||||||
Aliases:
|
|
||||||
|
|
||||||
Required: False
|
|
||||||
Position: Named
|
|
||||||
Default value: False
|
|
||||||
Accept pipeline input: False
|
|
||||||
Accept wildcard characters: False
|
|
||||||
```
|
|
||||||
|
|
||||||
### -jobtitle
|
### -jobtitle
|
||||||
Users job tittle
|
Users job tittle
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
external help file: SnipeitPS-help.xml
|
external help file: SnipeitPS-help.xml
|
||||||
Module Name: SnipeitPS
|
Module Name: SnipeitPS
|
||||||
online version:
|
online version:
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Updates accessory on Snipe-It system
|
||||||
Set-SnipeitAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
Set-SnipeitAccessory [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
||||||
[[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-model_number] <String>] [[-order_number] <String>]
|
[[-company_id] <Int32>] [[-manufacturer_id] <Int32>] [[-model_number] <String>] [[-order_number] <String>]
|
||||||
[[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-min_amt] <Int32>] [[-supplier_id] <Int32>]
|
[[-purchase_cost] <Single>] [[-purchase_date] <DateTime>] [[-min_amt] <Int32>] [[-supplier_id] <Int32>]
|
||||||
[[-location_id] <Int32>] [[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf]
|
[[-location_id] <Int32>] [[-image] <String>] [-image_delete] [[-RequestType] <String>] [-url] <String>
|
||||||
[-Confirm] [<CommonParameters>]
|
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -41,7 +41,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 16
|
Position: 17
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -257,6 +257,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 15
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -supplier_id
|
### -supplier_id
|
||||||
ID number of the supplier for this accessory
|
ID number of the supplier for this accessory
|
||||||
|
|
||||||
|
|
@ -281,7 +297,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 15
|
Position: 16
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ Create a new Snipe-IT Category
|
||||||
```
|
```
|
||||||
Set-SnipeitCategory [-id] <Int32[]> [[-name] <String>] [[-category_type] <String>] [[-eula_text] <String>]
|
Set-SnipeitCategory [-id] <Int32[]> [[-name] <String>] [[-category_type] <String>] [[-eula_text] <String>]
|
||||||
[[-use_default_eula] <Boolean>] [[-require_acceptance] <Boolean>] [[-checkin_email] <Boolean>]
|
[[-use_default_eula] <Boolean>] [[-require_acceptance] <Boolean>] [[-checkin_email] <Boolean>]
|
||||||
[[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
[[-image] <String>] [-image_delete] [[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf]
|
||||||
[<CommonParameters>]
|
[-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -40,7 +40,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 10
|
Position: 11
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -151,6 +151,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 9
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -require_acceptance
|
### -require_acceptance
|
||||||
If switch is present, require users to confirm acceptance of assets in this category
|
If switch is present, require users to confirm acceptance of assets in this category
|
||||||
|
|
||||||
|
|
@ -175,7 +191,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 9
|
Position: 10
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@ Updates company name
|
||||||
## SYNTAX
|
## SYNTAX
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitCompany [-id] <Int32[]> [-name] <String> [[-image] <String>] [-image_delete] [-url] <String>
|
Set-SnipeitCompany [-id] <Int32[]> [-name] <String> [[-image] <String>] [-image_delete]
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -38,7 +38,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 5
|
Position: 6
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -104,6 +104,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 4
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -113,7 +129,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 4
|
Position: 5
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ Updates component
|
||||||
```
|
```
|
||||||
Set-SnipeitComponent [-id] <Int32[]> [-qty] <Int32> [[-min_amt] <Int32>] [[-name] <String>]
|
Set-SnipeitComponent [-id] <Int32[]> [-qty] <Int32> [[-min_amt] <Int32>] [[-name] <String>]
|
||||||
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>]
|
[[-company_id] <Int32>] [[-location_id] <Int32>] [[-order_number] <String>] [[-purchase_date] <DateTime>]
|
||||||
[[-purchase_cost] <Single>] [[-image] <String>] [-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf]
|
[[-purchase_cost] <Single>] [[-image] <String>] [-image_delete] [[-RequestType] <String>] [-url] <String>
|
||||||
[-Confirm] [<CommonParameters>]
|
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -40,7 +40,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 12
|
Position: 13
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -211,6 +211,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 11
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -220,7 +236,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 11
|
Position: 12
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Add a new Consumable to Snipe-it asset system
|
||||||
Set-SnipeitConsumable [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
Set-SnipeitConsumable [-id] <Int32[]> [[-name] <String>] [[-qty] <Int32>] [[-category_id] <Int32>]
|
||||||
[[-min_amt] <Int32>] [[-company_id] <Int32>] [[-order_number] <String>] [[-manufacturer_id] <Int32>]
|
[[-min_amt] <Int32>] [[-company_id] <Int32>] [[-order_number] <String>] [[-manufacturer_id] <Int32>]
|
||||||
[[-location_id] <Int32>] [[-requestable] <Boolean>] [[-purchase_date] <DateTime>] [[-purchase_cost] <String>]
|
[[-location_id] <Int32>] [[-requestable] <Boolean>] [[-purchase_date] <DateTime>] [[-purchase_cost] <String>]
|
||||||
[[-model_number] <String>] [[-item_no] <String>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-model_number] <String>] [[-item_no] <String>] [[-image] <String>] [-image_delete] [[-RequestType] <String>]
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -42,7 +42,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 17
|
Position: 18
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -288,6 +288,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 16
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -297,7 +313,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 16
|
Position: 17
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ Add a new Custom Field to Snipe-it asset system
|
||||||
```
|
```
|
||||||
Set-SnipeitCustomField [-id] <Int32[]> [[-name] <String>] [[-help_text] <String>] [-element] <String>
|
Set-SnipeitCustomField [-id] <Int32[]> [[-name] <String>] [[-help_text] <String>] [-element] <String>
|
||||||
[[-format] <String>] [[-field_values] <String>] [[-field_encrypted] <Boolean>] [[-show_in_email] <Boolean>]
|
[[-format] <String>] [[-field_values] <String>] [[-field_encrypted] <Boolean>] [[-show_in_email] <Boolean>]
|
||||||
[[-custom_format] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-custom_format] <String>] [[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
||||||
|
[<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -39,7 +40,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 11
|
Position: 12
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -166,6 +167,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Put you could use Patch if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 10
|
||||||
|
Default value: Put
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -show_in_email
|
### -show_in_email
|
||||||
Whether or not to show the custom field in email notifications
|
Whether or not to show the custom field in email notifications
|
||||||
|
|
||||||
|
|
@ -190,7 +207,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 10
|
Position: 11
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Updates a department
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitDepartment [-id] <Int32[]> [[-name] <String>] [[-company_id] <Int32>] [[-location_id] <Int32>]
|
Set-SnipeitDepartment [-id] <Int32[]> [[-name] <String>] [[-company_id] <Int32>] [[-location_id] <Int32>]
|
||||||
[[-manager_id] <Int32>] [[-notes] <String>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-manager_id] <Int32>] [[-notes] <String>] [[-image] <String>] [-image_delete] [[-RequestType] <String>]
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -39,7 +39,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 9
|
Position: 10
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -165,6 +165,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 8
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -174,7 +190,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 8
|
Position: 9
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ Set-SnipeitLicense [-id] <Int32[]> [[-name] <String>] [[-seats] <Int32>] [[-cate
|
||||||
[[-license_name] <String>] [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>]
|
[[-license_name] <String>] [[-maintained] <Boolean>] [[-manufacturer_id] <Int32>] [[-notes] <String>]
|
||||||
[[-order_number] <String>] [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>]
|
[[-order_number] <String>] [[-purchase_cost] <Single>] [[-purchase_date] <DateTime>]
|
||||||
[[-reassignable] <Boolean>] [[-serial] <String>] [[-supplier_id] <Int32>] [[-termination_date] <DateTime>]
|
[[-reassignable] <Boolean>] [[-serial] <String>] [[-supplier_id] <Int32>] [[-termination_date] <DateTime>]
|
||||||
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -42,7 +42,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 20
|
Position: 21
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -258,6 +258,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 19
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -seats
|
### -seats
|
||||||
Number of license seats owned.
|
Number of license seats owned.
|
||||||
|
|
||||||
|
|
@ -327,7 +343,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 19
|
Position: 20
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@ Set license seat or checkout license seat
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_to] <Int32>] [[-asset_id] <Int32>]
|
Set-SnipeitLicenseSeat [-id] <Int32[]> [-seat_id] <Int32> [[-assigned_to] <Int32>] [[-asset_id] <Int32>]
|
||||||
[[-note] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-note] <String>] [[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
||||||
|
[<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -51,7 +52,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 7
|
Position: 8
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -117,6 +118,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 6
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -seat_id
|
### -seat_id
|
||||||
{{ Fill seat_id Description }}
|
{{ Fill seat_id Description }}
|
||||||
|
|
||||||
|
|
@ -141,7 +158,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 6
|
Position: 7
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Updates Location in Snipe-it asset system
|
||||||
Set-SnipeitLocation [-id] <Int32[]> [[-name] <String>] [[-address] <String>] [[-address2] <String>]
|
Set-SnipeitLocation [-id] <Int32[]> [[-name] <String>] [[-address] <String>] [[-address2] <String>]
|
||||||
[[-state] <String>] [[-country] <String>] [[-zip] <String>] [[-city] <String>] [[-currency] <String>]
|
[[-state] <String>] [[-country] <String>] [[-zip] <String>] [[-city] <String>] [[-currency] <String>]
|
||||||
[[-manager_id] <Int32>] [[-ldap_ou] <String>] [[-parent_id] <Int32>] [[-image] <String>] [-image_delete]
|
[[-manager_id] <Int32>] [[-ldap_ou] <String>] [[-parent_id] <Int32>] [[-image] <String>] [-image_delete]
|
||||||
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -70,7 +70,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 15
|
Position: 16
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -226,6 +226,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 14
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -state
|
### -state
|
||||||
Address State
|
Address State
|
||||||
|
|
||||||
|
|
@ -250,7 +266,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 14
|
Position: 15
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
163
docs/Set-SnipeitManufacturer.md
Normal file
163
docs/Set-SnipeitManufacturer.md
Normal file
|
|
@ -0,0 +1,163 @@
|
||||||
|
---
|
||||||
|
external help file: SnipeitPS-help.xml
|
||||||
|
Module Name: SnipeitPS
|
||||||
|
online version:
|
||||||
|
schema: 2.0.0
|
||||||
|
---
|
||||||
|
|
||||||
|
# Set-SnipeitManufacturer
|
||||||
|
|
||||||
|
## SYNOPSIS
|
||||||
|
Add a new Manufacturer to Snipe-it asset system
|
||||||
|
|
||||||
|
## SYNTAX
|
||||||
|
|
||||||
|
```
|
||||||
|
Set-SnipeitManufacturer [-Name] <String> [[-image] <String>] [-image_delete] [[-RequestType] <String>]
|
||||||
|
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
|
```
|
||||||
|
|
||||||
|
## DESCRIPTION
|
||||||
|
Long description
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
### EXAMPLE 1
|
||||||
|
```
|
||||||
|
New-SnipeitManufacturer -name "HP"
|
||||||
|
```
|
||||||
|
|
||||||
|
## PARAMETERS
|
||||||
|
|
||||||
|
### -apiKey
|
||||||
|
Users API Key for Snipeit, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: True
|
||||||
|
Position: 5
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -image
|
||||||
|
Image file name and path for item
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 2
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -image_delete
|
||||||
|
Remove current image
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: Named
|
||||||
|
Default value: False
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -Name
|
||||||
|
Name of the Manufacturer
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: True
|
||||||
|
Position: 1
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 3
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -url
|
||||||
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: True
|
||||||
|
Position: 4
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -Confirm
|
||||||
|
Prompts you for confirmation before running the cmdlet.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases: cf
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: Named
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### -WhatIf
|
||||||
|
Shows what would happen if the cmdlet runs.
|
||||||
|
The cmdlet is not run.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: SwitchParameter
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases: wi
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: Named
|
||||||
|
Default value: None
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
|
### CommonParameters
|
||||||
|
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
|
||||||
|
|
||||||
|
## INPUTS
|
||||||
|
|
||||||
|
## OUTPUTS
|
||||||
|
|
||||||
|
## NOTES
|
||||||
|
|
||||||
|
## RELATED LINKS
|
||||||
|
|
@ -15,7 +15,8 @@ Updates Model on Snipe-it asset system
|
||||||
```
|
```
|
||||||
Set-SnipeitModel [-id] <Int32[]> [[-name] <String>] [[-model_number] <String>] [[-category_id] <Int32>]
|
Set-SnipeitModel [-id] <Int32[]> [[-name] <String>] [[-model_number] <String>] [[-category_id] <Int32>]
|
||||||
[[-manufacturer_id] <Int32>] [[-eol] <Int32>] [[-custom_fieldset_id] <Int32>] [[-image] <String>]
|
[[-manufacturer_id] <Int32>] [[-eol] <Int32>] [[-custom_fieldset_id] <Int32>] [[-image] <String>]
|
||||||
[-image_delete] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-image_delete] [[-RequestType] <String>] [-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm]
|
||||||
|
[<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -39,7 +40,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 10
|
Position: 11
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -180,6 +181,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 9
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -189,7 +206,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 9
|
Position: 10
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,8 @@ Sets Snipe-it Status Labels
|
||||||
|
|
||||||
```
|
```
|
||||||
Set-SnipeitStatus [-id] <Int32[]> [[-name] <String>] [-type] <String> [[-notes] <String>] [[-color] <String>]
|
Set-SnipeitStatus [-id] <Int32[]> [[-name] <String>] [-type] <String> [[-notes] <String>] [[-color] <String>]
|
||||||
[[-show_in_nav] <Boolean>] [[-default_label] <Boolean>] [-url] <String> [-apiKey] <String> [-WhatIf]
|
[[-show_in_nav] <Boolean>] [[-default_label] <Boolean>] [[-RequestType] <String>] [-url] <String>
|
||||||
[-Confirm] [<CommonParameters>]
|
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -44,7 +44,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 9
|
Position: 10
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -125,6 +125,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 8
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -show_in_nav
|
### -show_in_nav
|
||||||
1 or 0 - determine whether the status label should show in the left-side nav of the web GUI
|
1 or 0 - determine whether the status label should show in the left-side nav of the web GUI
|
||||||
|
|
||||||
|
|
@ -164,7 +180,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 8
|
Position: 9
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
external help file: SnipeitPS-help.xml
|
external help file: SnipeitPS-help.xml
|
||||||
Module Name: SnipeitPS
|
Module Name: SnipeitPS
|
||||||
online version:
|
online version:
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@ Creates a new user
|
||||||
Set-SnipeitUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>]
|
Set-SnipeitUser [-id] <Int32[]> [[-first_name] <String>] [[-last_name] <String>] [[-userName] <String>]
|
||||||
[[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-password] <String>] [[-company_id] <Int32>]
|
[[-jobtitle] <String>] [[-email] <String>] [[-phone] <String>] [[-password] <String>] [[-company_id] <Int32>]
|
||||||
[[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>]
|
[[-location_id] <Int32>] [[-department_id] <Int32>] [[-manager_id] <Int32>] [[-employee_num] <String>]
|
||||||
[[-activated] <Boolean>] [[-notes] <String>] [[-image] <String>] [-image_delete] [-url] <String>
|
[[-activated] <Boolean>] [[-notes] <String>] [[-image] <String>] [-image_delete] [[-RequestType] <String>]
|
||||||
[-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
[-url] <String> [-apiKey] <String> [-WhatIf] [-Confirm] [<CommonParameters>]
|
||||||
```
|
```
|
||||||
|
|
||||||
## DESCRIPTION
|
## DESCRIPTION
|
||||||
|
|
@ -57,7 +57,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 18
|
Position: 19
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
@ -288,6 +288,22 @@ Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### -RequestType
|
||||||
|
Http request type to send Snipe IT system.
|
||||||
|
Defaults to Patch you could use Put if needed.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
Type: String
|
||||||
|
Parameter Sets: (All)
|
||||||
|
Aliases:
|
||||||
|
|
||||||
|
Required: False
|
||||||
|
Position: 17
|
||||||
|
Default value: Patch
|
||||||
|
Accept pipeline input: False
|
||||||
|
Accept wildcard characters: False
|
||||||
|
```
|
||||||
|
|
||||||
### -url
|
### -url
|
||||||
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
URL of Snipeit system, can be set using Set-SnipeitInfo command
|
||||||
|
|
||||||
|
|
@ -297,7 +313,7 @@ Parameter Sets: (All)
|
||||||
Aliases:
|
Aliases:
|
||||||
|
|
||||||
Required: True
|
Required: True
|
||||||
Position: 17
|
Position: 18
|
||||||
Default value: None
|
Default value: None
|
||||||
Accept pipeline input: False
|
Accept pipeline input: False
|
||||||
Accept wildcard characters: False
|
Accept wildcard characters: False
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,9 @@ Add a new Manufacturer to Snipe-it asset system
|
||||||
### [New-SnipeitModel](New-SnipeitModel.md)
|
### [New-SnipeitModel](New-SnipeitModel.md)
|
||||||
Add a new Model to Snipe-it asset system
|
Add a new Model to Snipe-it asset system
|
||||||
|
|
||||||
|
### [New-SnipeitSupplier](New-SnipeitSupplier.md)
|
||||||
|
Creates a supplier
|
||||||
|
|
||||||
### [New-SnipeitUser](New-SnipeitUser.md)
|
### [New-SnipeitUser](New-SnipeitUser.md)
|
||||||
Creates a new user
|
Creates a new user
|
||||||
|
|
||||||
|
|
@ -146,6 +149,9 @@ Removes manufacturer from Snipe-it asset system
|
||||||
### [Remove-SnipeitModel](Remove-SnipeitModel.md)
|
### [Remove-SnipeitModel](Remove-SnipeitModel.md)
|
||||||
Removes Asset model from Snipe-it asset system
|
Removes Asset model from Snipe-it asset system
|
||||||
|
|
||||||
|
### [Remove-SnipeitSupplier](Remove-SnipeitSupplier.md)
|
||||||
|
Removes supplier from Snipe-it asset system
|
||||||
|
|
||||||
### [Remove-SnipeitUser](Remove-SnipeitUser.md)
|
### [Remove-SnipeitUser](Remove-SnipeitUser.md)
|
||||||
Removes User from Snipe-it asset system
|
Removes User from Snipe-it asset system
|
||||||
|
|
||||||
|
|
@ -197,12 +203,18 @@ Set license seat or checkout license seat
|
||||||
### [Set-SnipeitLocation](Set-SnipeitLocation.md)
|
### [Set-SnipeitLocation](Set-SnipeitLocation.md)
|
||||||
Updates Location in Snipe-it asset system
|
Updates Location in Snipe-it asset system
|
||||||
|
|
||||||
|
### [Set-SnipeitManufacturer](Set-SnipeitManufacturer.md)
|
||||||
|
Add a new Manufacturer to Snipe-it asset system
|
||||||
|
|
||||||
### [Set-SnipeitModel](Set-SnipeitModel.md)
|
### [Set-SnipeitModel](Set-SnipeitModel.md)
|
||||||
Updates Model on Snipe-it asset system
|
Updates Model on Snipe-it asset system
|
||||||
|
|
||||||
### [Set-SnipeitStatus](Set-SnipeitStatus.md)
|
### [Set-SnipeitStatus](Set-SnipeitStatus.md)
|
||||||
Sets Snipe-it Status Labels
|
Sets Snipe-it Status Labels
|
||||||
|
|
||||||
|
### [Set-SnipeitSupplier](Set-SnipeitSupplier.md)
|
||||||
|
Modify the supplier
|
||||||
|
|
||||||
### [Set-SnipeitUser](Set-SnipeitUser.md)
|
### [Set-SnipeitUser](Set-SnipeitUser.md)
|
||||||
Creates a new user
|
Creates a new user
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue