< Back

Remove-ItGlueFlexibleAssetInstance

Wed Jan 15, 2020 9:34 am

NAME Remove-ItGlueFlexibleAssetInstance



SYNOPSIS





SYNTAX

Remove-ItGlueFlexibleAssetInstance -ApiKey <SecureString> -Id <Object> [-UriBase <String>] [-EventLogSource

<String>] [-LogPath <String>] [<CommonParameters>]



Remove-ItGlueFlexibleAssetInstance -UserCred <PSCredential> -Id <Object> [-UriBase <String>] [-EventLogSource

<String>] [-LogPath <String>] [<CommonParameters>]





DESCRIPTION

Accept a flexible asset ID and delete it from ITGlue.





PARAMETERS

-ApiKey <SecureString>

ITGlue API key used to send data to ITGlue.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-UserCred <PSCredential>

ITGlue credential object for the desired local account.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Id <Object>

Identifier ID for the desired flexible asset type.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-UriBase <String>

Base URL for the ITGlue API.



Required? false

Position? named

Default value https://api.itglue.com

Accept pipeline input? false

Accept wildcard characters? false



-EventLogSource <String>

When included, (and when LogPath is null), represents the event log source for the Application log. If no

event log source or path are provided, output is sent only to the host.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-LogPath <String>

When included (when EventLogSource is null), represents the file, to which the cmdlet will output will be

logged. If no path or event log source are provided, output is sent only to the host.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





V1.0.0.0 date: 11 April 2019

- Initial release.

V1.0.0.1 date: 24 April 2019

- Added $MaxLoopCount parameter.

V1.0.0.2 date: 20 May 2019

- Updated rate-limit detection.

V1.0.0.3 date: 24 May 2019

- Updated formatting.

- Updated date calculation.

V1.0.0.4 date: 11 July 2019

V1.0.0.5 date: 18 July 2019

V1.0.0.6 date: 25 July 2019

V1.0.0.7 date: 1 August 2019

V1.0.0.8 date: 6 August 2019

V1.0.0.9 date: 8 August 2019

V1.0.0.10 date: 9 August 2019

V1.0.0.11 date: 19 August 2019

V1.0.0.12 date: 11 December 2019



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Remove-ItGlueFlexibleAssetInstance -ApiKey ITG.XXXXXXXXXXXXX -Id 123456 -LogPath C:\\Temp\\log.txt



In this example, the cmdlet will remove the flexible asset with ID 123456, using the provided ITGlue API key.

Output will be written to the log file and host.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ItGlueFlexibleAssetInstance -Id 123456 -UserCred (Get-Credential) -Verbose



In this example, the cmdlet will remove the flexible asset with ID 123456, using the provided ITGlue credentials.

Verbose output is sent to the host.











RELATED LINKS

https://github.com/wetling23/Public.ItG ... hellModule