Get-RocketCyberAccount

SYNOPSIS

Gets account information from the RocketCyber API

SYNTAX

Index (Default)

Get-RocketCyberAccount [[-AccountId] <long>] [-Details]

ALIASES

This cmdlet has the following aliases,

  • Get-RCAccount

DESCRIPTION

The Get-RocketCyberAccount cmdlet gets account information for all accounts or for a given account ID from the RocketCyber API

The Get-RocketCyberAccount cmdlet invokes the GET method of the /v3/account endpoint

EXAMPLES

EXAMPLE 1

Get-RocketCyberAccount

Account data will be retrieved from all accounts accessible by the API key

EXAMPLE 2

Get-RocketCyberAccount -AccountId 12345

Account data will be retrieved for the account with the AccountId 12345

EXAMPLE 3

12345 | Get-RocketCyberAccount -Details

Account data, including the details of each sub-account, will be retrieved for the account with the AccountId 12345

PARAMETERS

-AccountId

The account ID to pull data for

If not provided, data will be pulled for all accounts accessible by the API key

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Details

Should additional details for each sub-account be displayed in the return data

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  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

System.Int64

OUTPUTS

NOTES

Endpoint : GET /v3/account