New-LMUptimeWebStep
Syntax
Section titled “Syntax”External (Default)
Section titled “External (Default)”New-LMUptimeWebStep -Type <string> [-Name <string>] [-Url <string>] [-HttpMethod <string>] [-HttpVersion <string>] [-Enable <bool>] [-UseDefaultRoot <bool>] [-Schema <string>] [-FollowRedirection <bool>] [-FullPageLoad <bool>] [-RequireAuth <bool>] [-AuthType <string>] [-AuthUserName <string>] [-AuthPassword <string>] [-AuthDomain <string>] [-HttpHeaders <string>] [-HttpBody <string>] [-RequestType <string>] [-ResponseType <string>] [-MatchType <string>] [-Keyword <string>] [-InvertMatch] [-StatusCode <string>] [-Path <string>] [-Label <string>] [-Description <string>] [-TimeoutInSeconds <int>] [-PostDataEditType <string>] [<CommonParameters>]Internal
Section titled “Internal”New-LMUptimeWebStep -Type <string> [-Name <string>] [-Url <string>] [-HttpMethod <string>] [-HttpVersion <string>] [-Enable <bool>] [-UseDefaultRoot <bool>] [-Schema <string>] [-FollowRedirection <bool>] [-FullPageLoad <bool>] [-RequireAuth <bool>] [-AuthType <string>] [-AuthUserName <string>] [-AuthPassword <string>] [-AuthDomain <string>] [-HttpHeaders <string>] [-HttpBody <string>] [-RequestType <string>] [-ResponseType <string>] [-MatchType <string>] [-Keyword <string>] [-InvertMatch] [-StatusCode <string>] [-Path <string>] [-Label <string>] [-Description <string>] [-TimeoutInSeconds <int>] [-PostDataEditType <string>] [-ResponseScript <string>] [-RequestScript <string>] [<CommonParameters>]Description
Section titled “Description”New-LMUptimeWebStep generates a hashtable describing a single web step compatible with the New-LMUptimeDevice and Set-LMUptimeDevice cmdlets. Separate parameter sets target external (config) steps and internal (script-capable) steps while enforcing the appropriate schema constraints.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”New-LMUptimeWebStep -Type External -Name '__home' -Url '/' -Keyword 'Welcome' -StatusCode '200'EXAMPLE 2
Section titled “EXAMPLE 2”New-LMUptimeWebStep -Type Internal -RequestType script -RequestScript $scriptBlockParameters
Section titled “Parameters”-AuthDomain
Section titled “-AuthDomain”Authentication domain.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-AuthPassword
Section titled “-AuthPassword”Authentication password.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-AuthType
Section titled “-AuthType”Authentication type when RequireAuth is true. Defaults to basic.
Type: System.StringDefaultValue: basicSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-AuthUserName
Section titled “-AuthUserName”Authentication username.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Optional step description.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Enable
Section titled “-Enable”Indicates whether the step is enabled. Defaults to $true.
Type: System.BooleanDefaultValue: TrueSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-FollowRedirection
Section titled “-FollowRedirection”Indicates whether redirects are automatically followed. Defaults to $true.
Type: System.BooleanDefaultValue: TrueSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-FullPageLoad
Section titled “-FullPageLoad”Indicates whether full page load is required. Defaults to $false.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HttpBody
Section titled “-HttpBody”Optional HTTP body content.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HttpHeaders
Section titled “-HttpHeaders”Optional HTTP headers string.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HttpMethod
Section titled “-HttpMethod”HTTP method executed by the step. Valid values: GET, HEAD, POST. Defaults to GET.
Type: System.StringDefaultValue: GETSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-HttpVersion
Section titled “-HttpVersion”HTTP protocol version. Valid values: 1, 1.1. Defaults to 1.1.
Type: System.StringDefaultValue: 1.1SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-InvertMatch
Section titled “-InvertMatch”Switch to invert keyword matching behaviour.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Keyword
Section titled “-Keyword”Keyword used during response evaluation.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Label
Section titled “-Label”Optional step label.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-MatchType
Section titled “-MatchType”Match type used for response evaluation. Defaults to plain.
Type: System.StringDefaultValue: plainSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Step name. Defaults to “__step0”.
Type: System.StringDefaultValue: __step0SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Optional path field for JSON/XPATH matching.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-PostDataEditType
Section titled “-PostDataEditType”POST data edit type (Raw or Formatted Data).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RequestScript
Section titled “-RequestScript”Request script content (internal parameter set only).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RequestType
Section titled “-RequestType”Request type. External steps support config only; internal steps allow config or script.
Type: System.StringDefaultValue: configSupportsWildcards: falseAliases: []ParameterSets:- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RequireAuth
Section titled “-RequireAuth”Indicates whether authentication is required. Defaults to $false.
Type: System.BooleanDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResponseScript
Section titled “-ResponseScript”Response script content (internal parameter set only).
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResponseType
Section titled “-ResponseType”Response type. External steps support plain text/string, glob expression, JSON, XML, multi line key value pair; internal steps additionally support script.
Type: System.StringDefaultValue: Plain text/stringSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Schema
Section titled “-Schema”HTTP schema value (http or https). Defaults to https.
Type: System.StringDefaultValue: httpsSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-StatusCode
Section titled “-StatusCode”Expected status code string.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TimeoutInSeconds
Section titled “-TimeoutInSeconds”Optional timeout expressed in seconds.
Type: System.Nullable`1[System.Int32]DefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Controls whether the step is treated as external (config) or internal (script). External set uses Type “config”; internal may use “script” or “config”.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Relative or absolute URL to execute. Defaults to empty string.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-UseDefaultRoot
Section titled “-UseDefaultRoot”Indicates whether the default root should be used. Defaults to $true.
Type: System.BooleanDefaultValue: TrueSupportsWildcards: falseAliases: []ParameterSets:- Name: Internal Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: External 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.