New-LMUptimeWebStep
Syntax
Section titled “Syntax”External (Default)
Section titled “External (Default)”New-LMUptimeWebStep [-Name <String>] [-Url <String>] [-HttpMethod <String>] [-HttpVersion <String>] -Type <String> [-Enable <Boolean>] [-UseDefaultRoot <Boolean>] [-Schema <String>] [-FollowRedirection <Boolean>] [-FullPageLoad <Boolean>] [-RequireAuth <Boolean>] [-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 <Int32>] [-PostDataEditType <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Internal
Section titled “Internal”New-LMUptimeWebStep [-Name <String>] [-Url <String>] [-HttpMethod <String>] [-HttpVersion <String>] -Type <String> [-Enable <Boolean>] [-UseDefaultRoot <Boolean>] [-Schema <String>] [-FollowRedirection <Boolean>] [-FullPageLoad <Boolean>] [-RequireAuth <Boolean>] [-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 <Int32>] [-PostDataEditType <String>] [-ResponseScript <String>] [-RequestScript <String>] [-ProgressAction <ActionPreference>] [<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”Step name. Defaults to “__step0”.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: __step0Accept pipeline input: FalseAccept wildcard characters: FalseRelative or absolute URL to execute. Defaults to empty string.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HttpMethod
Section titled “-HttpMethod”HTTP method executed by the step. Valid values: GET, HEAD, POST. Defaults to GET.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: GETAccept pipeline input: FalseAccept wildcard characters: False-HttpVersion
Section titled “-HttpVersion”HTTP protocol version. Valid values: 1, 1.1. Defaults to 1.1.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: 1.1Accept pipeline input: FalseAccept wildcard characters: FalseControls whether the step is treated as external (config) or internal (script). External set uses Type “config”; internal may use “script” or “config”.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Enable
Section titled “-Enable”Indicates whether the step is enabled. Defaults to $true.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: TrueAccept pipeline input: FalseAccept wildcard characters: False-UseDefaultRoot
Section titled “-UseDefaultRoot”Indicates whether the default root should be used. Defaults to $true.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: TrueAccept pipeline input: FalseAccept wildcard characters: False-Schema
Section titled “-Schema”HTTP schema value (http or https). Defaults to https.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: HttpsAccept pipeline input: FalseAccept wildcard characters: False-FollowRedirection
Section titled “-FollowRedirection”Indicates whether redirects are automatically followed. Defaults to $true.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: TrueAccept pipeline input: FalseAccept wildcard characters: False-FullPageLoad
Section titled “-FullPageLoad”Indicates whether full page load is required. Defaults to $false.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-RequireAuth
Section titled “-RequireAuth”Indicates whether authentication is required. Defaults to $false.
Type: BooleanParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-AuthType
Section titled “-AuthType”Authentication type when RequireAuth is true. Defaults to basic.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: BasicAccept pipeline input: FalseAccept wildcard characters: False-AuthUserName
Section titled “-AuthUserName”Authentication username.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-AuthPassword
Section titled “-AuthPassword”Authentication password.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-AuthDomain
Section titled “-AuthDomain”Authentication domain.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HttpHeaders
Section titled “-HttpHeaders”Optional HTTP headers string.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-HttpBody
Section titled “-HttpBody”Optional HTTP body content.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-RequestType
Section titled “-RequestType”Request type. External steps support config only; internal steps allow config or script.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: ConfigAccept pipeline input: FalseAccept wildcard characters: False-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: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: Plain text/stringAccept pipeline input: FalseAccept wildcard characters: False-MatchType
Section titled “-MatchType”Match type used for response evaluation. Defaults to plain.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: PlainAccept pipeline input: FalseAccept wildcard characters: False-Keyword
Section titled “-Keyword”Keyword used during response evaluation.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-InvertMatch
Section titled “-InvertMatch”Switch to invert keyword matching behaviour.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: FalseAccept pipeline input: FalseAccept wildcard characters: False-StatusCode
Section titled “-StatusCode”Expected status code string.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseOptional path field for JSON/XPATH matching.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Label
Section titled “-Label”Optional step label.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Description
Section titled “-Description”Optional step description.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-TimeoutInSeconds
Section titled “-TimeoutInSeconds”Optional timeout expressed in seconds.
Type: Int32Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-PostDataEditType
Section titled “-PostDataEditType”POST data edit type (Raw or Formatted Data).
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ResponseScript
Section titled “-ResponseScript”Response script content (internal parameter set only).
Type: StringParameter Sets: InternalAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-RequestScript
Section titled “-RequestScript”Request script content (internal parameter set only).
Type: StringParameter Sets: InternalAliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Fill ProgressAction Description
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “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.