Add-DattoAPIKey

SYNOPSIS

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

SYNTAX

Add-DattoAPIKey [-Api_Key_Public] <String> [[-Api_Key_Secret] <String>] [<CommonParameters>]

DESCRIPTION

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

Once the API public & secret keys are defined, the secret key is encrypted using SecureString.

The Datto API public & secret keys are generated via the Datto portal at Admin > Integrations

EXAMPLES

EXAMPLE 1

Add-DattoAPIKey

Prompts to enter in the API public key and secret key.

EXAMPLE 2

Add-DattoAPIKey -Api_Key_Public '12345'

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

EXAMPLE 3

'12345' | Add-DattoAPIKey

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

PARAMETERS

-Api_Key_Public

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

-Api_Key_Secret

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/Datto-PowerShellWrapper/site/Internal/Add-DattoAPIKey.html