< Back

Set-DDConfiguration

Sat Jan 18, 2020 8:13 pm

NAME Set-DDConfiguration



SYNOPSIS

Creates a configuration file with Datadog keys to be used in subsequent requests





SYNTAX

Set-DDConfiguration [-DDAPIKey] <String> [-DDAppKey] <String> [[-ConfigFilePath] <String>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-DDAPIKey <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DDAppKey <String>



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ConfigFilePath <String>



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\># Write keys in the standard Env:APPDATA\\PoshDog\\keys.json file



Set-DDConfiguration -DDAPIKey somekey -DDAppKey somekey









-------------------------- EXAMPLE 2 --------------------------



PS C:\\># Write keys in an alternate file



Set-DDConfiguration -DDAPIKey somekey -DDAppKey somekey -ConfigFilePath 'c:\\file.json'











RELATED LINKS