Connect-EAIAccount
Syntax
Section titled “Syntax”Credential (Default)
Section titled “Credential (Default)”Connect-EAIAccount -EdwinOrg <string> -ClientId <string> -ClientSecret <string> [-DisableConsoleLogging] [-SkipCredValidation] [<CommonParameters>]Connect-EAIAccount -AuthFilePath <string> [-DisableConsoleLogging] [-SkipCredValidation] [<CommonParameters>]Cached
Section titled “Cached”Connect-EAIAccount [-UseCachedCredential] [-CachedAccountName <string>] [-DisableConsoleLogging] [-SkipCredValidation] [<CommonParameters>]Description
Section titled “Description”Connect-EAIAccount establishes a session for sending custom third-party events to Edwin. This is separate from Connect-LMAccount. LogicMonitor alerts are already sent to Edwin natively; use these cmdlets to ingest events from external systems such as Meraki, ServiceNow, or custom applications.
When credential validation is enabled, Connect-EAIAccount exchanges client credentials for a Bearer access token via POST /auth/token.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”Connect-EAIAccount -EdwinOrg "myorg" -ClientId "client-id" -ClientSecret "client-secret"EXAMPLE 2
Section titled “EXAMPLE 2”Connect-EAIAccount -CachedAccountName "EAI:myorg"Parameters
Section titled “Parameters”-AuthFilePath
Section titled “-AuthFilePath”Path to a YAML auth file containing edwin_org, client_id, and client_secret.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: File Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CachedAccountName
Section titled “-CachedAccountName”The cached Edwin account name to use from the Logic.Monitor secret vault.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Cached Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ClientId
Section titled “-ClientId”The client ID used for Edwin OAuth2 client credentials authentication.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Credential Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ClientSecret
Section titled “-ClientSecret”The client secret used for Edwin OAuth2 client credentials authentication.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Credential Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DisableConsoleLogging
Section titled “-DisableConsoleLogging”Disables informational messages for subsequent commands. Console logging is enabled by default.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EdwinOrg
Section titled “-EdwinOrg”The Edwin organization subdomain (the name before “.dexda.ai”).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Credential Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SkipCredValidation
Section titled “-SkipCredValidation”Skip local validation of required credential fields and the remote token grant check.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-UseCachedCredential
Section titled “-UseCachedCredential”Load credentials from the Logic.Monitor secret vault using interactive selection.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Cached Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “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.