ArmNetworkModelFactory.ConnectionMonitorHttpConfiguration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.Network.Models.ConnectionMonitorHttpConfiguration ConnectionMonitorHttpConfiguration(int? port = default, Azure.ResourceManager.Network.Models.NetworkHttpConfigurationMethod? method = default, string path = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> requestHeaders = default, System.Collections.Generic.IEnumerable<string> validStatusCodeRanges = default, bool? preferHttps = default);
static member ConnectionMonitorHttpConfiguration : Nullable<int> * Nullable<Azure.ResourceManager.Network.Models.NetworkHttpConfigurationMethod> * string * seq<Azure.ResourceManager.Network.Models.NetworkWatcherHttpHeader> * seq<string> * Nullable<bool> -> Azure.ResourceManager.Network.Models.ConnectionMonitorHttpConfiguration
Public Shared Function ConnectionMonitorHttpConfiguration (Optional port As Nullable(Of Integer) = Nothing, Optional method As Nullable(Of NetworkHttpConfigurationMethod) = Nothing, Optional path As String = Nothing, Optional requestHeaders As IEnumerable(Of NetworkWatcherHttpHeader) = Nothing, Optional validStatusCodeRanges As IEnumerable(Of String) = Nothing, Optional preferHttps As Nullable(Of Boolean) = Nothing) As ConnectionMonitorHttpConfiguration
Parameters
The HTTP method to use.
- path
- String
The path component of the URI. For instance, "/dir1/dir2".
- requestHeaders
- IEnumerable<NetworkWatcherHttpHeader>
The HTTP headers to transmit with the request.
- validStatusCodeRanges
- IEnumerable<String>
HTTP status codes to consider successful. For instance, "2xx,301-304,418".
Value indicating whether HTTPS is preferred over HTTP in cases where the choice is not explicit.
Returns
A new ConnectionMonitorHttpConfiguration instance for mocking.