Import-RocketCyberModuleSettings
SYNOPSIS
Imports the RocketCyber BaseURI & API key information to the current session
SYNTAX
Set (Default)
Import-RocketCyberModuleSettings [[-RocketCyberConfigPath] <string>]
[[-RocketCyberConfigFile] <string>]
ALIASES
This cmdlet has the following aliases,
- Import-RCModuleSettings
DESCRIPTION
The Import-RocketCyberModuleSettings cmdlet imports the RocketCyber BaseURI & API key information stored in the RocketCyber configuration file to the users current session
By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.RocketCyber
When no configuration file exists the default base URI (https://api-us.rocketcyber.com) is used
The ROCKETCYBER_BASE_URI & ROCKETCYBER_API_KEY environment variables are also supported and take precedence over the values stored in the configuration file
EXAMPLES
EXAMPLE 1
Import-RocketCyberModuleSettings
Validates that the configuration file created with the Export-RocketCyberModuleSettings cmdlet exists then imports the stored data into the current users session
The default location of the RocketCyber configuration file is: $env:USERPROFILE\Celerium.RocketCyber\config.psd1
EXAMPLE 2
Import-RocketCyberModuleSettings -RocketCyberConfigPath C:\Celerium.RocketCyber -RocketCyberConfigFile MyConfig.psd1
Validates that the configuration file created with the Export-RocketCyberModuleSettings cmdlet exists then imports the stored data into the current users session
The location of the RocketCyber configuration file in this example is: C:\Celerium.RocketCyber\MyConfig.psd1
PARAMETERS
-RocketCyberConfigFile
Define the name of the RocketCyber configuration file
By default the configuration file is named: config.psd1
Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases:
- RocketCyberConfFile
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-RocketCyberConfigPath
Define the location to store the RocketCyber configuration file
By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.RocketCyber
Type: System.String
DefaultValue: $(Join-Path -Path $home -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop') {"Celerium.RocketCyber"}else{".Celerium.RocketCyber"}) )
SupportsWildcards: false
Aliases:
- RocketCyberConfPath
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