Remove-ITGluePassword
SYNOPSIS
Delete multiple passwords / Delete a password / Delete multiple passwords for a particular organization
SYNTAX
BulkDestroy (Default)
Remove-ITGluePassword -Data <Object> [-FilterArchived <bool>] [-FilterCachedResourceName <string>]
[-FilterId <long>] [-FilterName <string>] [-FilterOrganizationId <long>]
[-FilterPasswordCategoryId <long>] [-FilterPasswordFolderId <long>] [-FilterUrl <string>] [-Raw]
[-WhatIf] [-Confirm]
ByOrganizationById
Remove-ITGluePassword [-OrganizationId] <long> [-Id] <long> -Data <Object> [-FilterArchived <bool>]
[-FilterCachedResourceName <string>] [-FilterId <long>] [-FilterName <string>]
[-FilterOrganizationId <long>] [-FilterPasswordCategoryId <long>] [-FilterPasswordFolderId <long>]
[-FilterUrl <string>] [-Raw] [-WhatIf] [-Confirm]
ById
Remove-ITGluePassword [-Id] <long> [-Raw] [-WhatIf] [-Confirm]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
Parameter set [ BulkDestroy ] - The Remove-ITGluePassword cmdlet invokes the DELETE method of the /passwords endpoint (Delete multiple passwords)
Deletes one or more specified passwords. Returns the deleted passwords and a 200 status code if successful.
Below is a sample request body with a JSON array to delete multiple objects:
{ “data”: [ { “type”: “passwords”, “attributes”: { “id”: 2 } }, { “type”: “passwords”, “attributes”: { “id”: 24 } } ] }
Parameter set [ ById ] - The Remove-ITGluePassword cmdlet invokes the DELETE method of the /passwords/{id} endpoint (Delete a password)
Destroys a single password with its ID. Returns a 204 status code if successful.
Parameter set [ ByOrganizationById ] - The Remove-ITGluePassword cmdlet invokes the DELETE method of the /organizations/{organization_id}/relationships/passwords/{id} endpoint (Delete multiple passwords for a particular organization)
Deletes one or more specified passwords. Returns the deleted passwords and a 200 status code if successful.
Below is a sample request body with a JSON array to delete multiple objects:
{ “data”: [ { “type”: “passwords”, “attributes”: { “id”: 2 } }, { “type”: “passwords”, “attributes”: { “id”: 24 } } ] }
This is a write function. It changes data in ITGlue. Use -WhatIf to see the request without sending it
EXAMPLES
EXAMPLE 1
Remove-ITGluePassword -Data @{} -WhatIf
Shows the DELETE request to the /passwords endpoint without sending it
EXAMPLE 2
Remove-ITGluePassword -Id 12345 -WhatIf
Shows the DELETE request to the /passwords/{id} endpoint without sending it
EXAMPLE 3
Remove-ITGluePassword -OrganizationId 12345 -Id 12345 -Data @{} -WhatIf
Shows the DELETE request to the /organizations/{organization_id}/relationships/passwords/{id} endpoint without sending it
PARAMETERS
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- cf
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Data
Defines the data of the JSON:API request body. Accepts a hashtable, an object, or a JSON string
The value is sent as the data property of the request body, such as @{ type = ‘organizations’; attributes = @{ name = ‘Example’ } }. An object with a single data property & a JSON string are sent as is
Body properties:
- type (string) - passwords
- attributes (object):
- id (integer)
Type: System.Object
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterArchived
Filter by archived
Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterCachedResourceName
Filter by cached resource name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterId
Filter by id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterName
Filter by name
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterOrganizationId
Filter by organization id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterPasswordCategoryId
Filter by password category id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterPasswordFolderId
Filter by password folder id
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-FilterUrl
Filter by url
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: BulkDestroy
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Id
Defines the ID of the item
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: ByOrganizationById
Position: 1
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: ById
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-OrganizationId
Only required for nested relationships route
Notes: Must be a valid Organization Id in your Account
Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases:
- organization_id
ParameterSets:
- Name: ByOrganizationById
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data, meta, links, & included) instead of only the data
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameter
DefaultValue: ''
SupportsWildcards: false
Aliases:
- wi
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.Int64
OUTPUTS
NOTES
Endpoint : DELETE /passwords Endpoint : DELETE /passwords/{id} Endpoint : DELETE /organizations/{organization_id}/relationships/passwords/{id}