-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Create Commands for better warning on nbx stuff.
- Loading branch information
Showing
7 changed files
with
1,330 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<# | ||
.SYNOPSIS | ||
Deletes a |short| in Netbox | ||
.DESCRIPTION | ||
Deletes a netbox |short| by ID or via the pipeline. | ||
.EXAMPLE | ||
# Remove the |short| by id | ||
Remove-nb|short| -id 1 | ||
.EXAMPLE | ||
#Remove |short| returned from a get-nb|short| | ||
Get-Nb|short| -search mything.contoso.com -Resource 'virtualization/virtual-machines' | | ||
Remove-nb|short| -Resource 'virtualization/virtual-machines' | ||
#> | ||
Function Remove-nb|short| { | ||
Param ( | ||
# ID of the |short| to delete | ||
[Parameter()] | ||
[Int] | ||
$Id | ||
) | ||
Remove-nbObject -Resource '|long|' -id $id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.