Test-vPenTestAPIKey
SYNOPSIS
Test the vPenTest API token
SYNTAX
Test (Default)
Test-vPenTestAPIKey [[-BaseURI] <string>]
ALIASES
This cmdlet has the following aliases,
- None
DESCRIPTION
The Test-vPenTestAPIKey cmdlet tests the base URI & API token that are defined by the Add-vPenTestBaseURI & Add-vPenTestAPIKey cmdlets
Helpful when needing to validate general functionality or when using RMM deployment tools
The test makes a single GET request to the /companies endpoint that only requests one item
EXAMPLES
EXAMPLE 1
Test-vPenTestAPIKey
Tests the base URI & API token that are defined by the Add-vPenTestBaseURI & Add-vPenTestAPIKey cmdlets
EXAMPLE 2
Test-vPenTestAPIKey -BaseURI https://emea.app.vpentest.io/api/v3
Tests the defined base URI & API token that was defined by the Add-vPenTestAPIKey cmdlet
The full test uri in this example is: https://emea.app.vpentest.io/api/v3/companies?per_page=1
PARAMETERS
-BaseURI
Define the base URI for the vPenTest API connection using vPenTest’s URI or a custom URI
By default the value used is the one defined by the Add-vPenTestBaseURI function
Type: System.String
DefaultValue: $vPenTestModuleBaseUri
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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
OUTPUTS
NOTES
N/A