Test-RocketCyberAPIKey

SYNOPSIS

Test the RocketCyber API key

SYNTAX

Test (Default)

Test-RocketCyberAPIKey [[-BaseUri] <string>]

ALIASES

This cmdlet has the following aliases,

  • Test-RCApiKey

DESCRIPTION

The Test-RocketCyberAPIKey cmdlet tests the base URI & API key that are defined by the Add-RocketCyberBaseURI & Add-RocketCyberAPIKey cmdlets

Helpful when needing to validate general functionality or when using RMM deployment tools

The test makes a single GET request to the /v3/account endpoint

A 200 status code means the base URI & API key are valid. A 401 status code means the API key was not accepted

EXAMPLES

EXAMPLE 1

Test-RocketCyberAPIKey

Tests the base URI & API key that are defined by the Add-RocketCyberBaseURI & Add-RocketCyberAPIKey cmdlets

The default full test uri is: https://api-us.rocketcyber.com/v3/account

EXAMPLE 2

Test-RocketCyberAPIKey -BaseUri https://myapi.gateway.celerium.org

Tests the defined base URI & the API key that was defined by the Add-RocketCyberAPIKey cmdlet

The full test uri in this example is: https://myapi.gateway.celerium.org/v3/account

PARAMETERS

-BaseUri

Define the base URI for the RocketCyber API connection using RocketCyber’s URI or a custom URI

By default the value used is the one defined by the Add-RocketCyberBaseURI function

Type: System.String
DefaultValue: $RocketCyberModuleBaseUri
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