Add-RocketCyberBaseURI

SYNOPSIS

Sets the base URI for the RocketCyber API connection

SYNTAX

CustomUri (Default)

Add-RocketCyberBaseURI [[-BaseURI] <string>]

DataCenter

Add-RocketCyberBaseURI -DataCenter <string>

ALIASES

This cmdlet has the following aliases,

  • Add-RCBaseUri
  • Set-RCBaseUri
  • Set-RocketCyberBaseURI

DESCRIPTION

The Add-RocketCyberBaseURI cmdlet sets the base URI which is used to construct the full URI for all API calls

Only the scheme and host of the URL are kept, the API version & paths such as /v3/agents are added by each function. This means an older base URI such as https://api-us.rocketcyber.com/v3 is also accepted

EXAMPLES

EXAMPLE 1

Add-RocketCyberBaseURI

The base URI will use https://api-us.rocketcyber.com which is RocketCyber’s default URI

EXAMPLE 2

Add-RocketCyberBaseURI -DataCenter EU

The base URI will use https://api-eu.rocketcyber.com which is RocketCyber’s Europe URI

EXAMPLE 3

'https://myapi.gateway.celerium.org' | Add-RocketCyberBaseURI

The base URI is passed in from the pipeline and will use https://myapi.gateway.celerium.org

PARAMETERS

-BaseURI

Sets the base URI for the RocketCyber API connection

The URL must use https

Default value: https://api-us.rocketcyber.com

Type: System.String
DefaultValue: https://api-us.rocketcyber.com
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: CustomUri
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-DataCenter

Defines the data center to use, which sets a predefined base URI

Allowed values: ‘US’, ‘EU’

US = https://api-us.rocketcyber.com EU = https://api-eu.rocketcyber.com

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: DataCenter
  Position: Named
  IsRequired: true
  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.String

OUTPUTS

NOTES

N/A