Add-vPenTestBaseURI
SYNOPSIS
Sets the base URI for the vPenTest API connection
SYNTAX
CustomUri (Default)
Add-vPenTestBaseURI [[-BaseURI] <string>]
ALIASES
This cmdlet has the following aliases,
- Set-vPenTestBaseURI
DESCRIPTION
The Add-vPenTestBaseURI cmdlet sets the base URI which is used to construct the full URI for all API calls
The base URI includes the API version, each function only adds the endpoint path such as /assessments
If this cmdlet is never run, the default vPenTest API URI is used https://app.vpentest.io/api/v3
EXAMPLES
EXAMPLE 1
Add-vPenTestBaseURI
The base URI will use the default https://app.vpentest.io/api/v3
EXAMPLE 2
Add-vPenTestBaseURI -BaseURI 'https://emea.app.vpentest.io/api/v3'
The base URI will use https://emea.app.vpentest.io/api/v3
EXAMPLE 3
'https://apac.app.vpentest.io/api/v3/' | Add-vPenTestBaseURI
The base URI is passed in from the pipeline and the trailing / is removed https://apac.app.vpentest.io/api/v3
PARAMETERS
-BaseURI
Sets the base URI for the vPenTest API connection
Only absolute https urls are supported and a trailing / is removed
Default value: https://app.vpentest.io/api/v3
Type: System.String
DefaultValue: https://app.vpentest.io/api/v3
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: true
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.String
OUTPUTS
NOTES
N/A