Add-DattoBCDRAPIKey

SYNOPSIS

Sets the API public & secret keys used to authenticate API calls

SYNTAX

Add-DattoBCDRAPIKey [-ApiKeyPublic] <String> [[-ApiKeySecret] <String>] [<CommonParameters>]

DESCRIPTION

The Add-DattoBCDRAPIKey cmdlet sets the API public & secret keys which are used to authenticate all API calls made to Datto

The Datto API keys are generated via the Datto portal Admin > Integrations

EXAMPLES

EXAMPLE 1

Add-DattoBCDRAPIKey

Prompts to enter in the API public key and secret key

EXAMPLE 2

Add-DattoBCDRAPIKey -ApiKeyPublic '12345'

The Datto API will use the string entered into the [ -ApiKeyPublic ] parameter as the public key & will then prompt to enter in the secret key

EXAMPLE 3

'12345' | Add-DattoBCDRAPIKey

The Datto API will use the string entered as the secret key & will prompt to enter in the public key

PARAMETERS

-ApiKeyPublic

Defines your API public key

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ApiKeySecret

Defines your API secret key

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

N\A

https://celerium.github.io/Celerium.DattoBCDR/site/Internal/Add-DattoBCDRAPIKey.html