Condividi tramite


RestResponse Constructors

Definition

Overloads

RestResponse()

Initializes a new instance of the RestResponse class.

RestResponse(IList<String>, RestResponseRegex)

Initializes a new instance of the RestResponse class.

RestResponse()

Initializes a new instance of the RestResponse class.

public RestResponse ();
Public Sub New ()

Applies to

RestResponse(IList<String>, RestResponseRegex)

Initializes a new instance of the RestResponse class.

public RestResponse (System.Collections.Generic.IList<string> successStatusCodes = default, Microsoft.Azure.Management.DeploymentManager.Models.RestResponseRegex regex = default);
new Microsoft.Azure.Management.DeploymentManager.Models.RestResponse : System.Collections.Generic.IList<string> * Microsoft.Azure.Management.DeploymentManager.Models.RestResponseRegex -> Microsoft.Azure.Management.DeploymentManager.Models.RestResponse
Public Sub New (Optional successStatusCodes As IList(Of String) = Nothing, Optional regex As RestResponseRegex = Nothing)

Parameters

successStatusCodes
IList<String>

The HTTP status codes expected in a successful health check response. The response is expected to match one of the given status codes. If no expected status codes are provided, default expected status code is 200 OK.

regex
RestResponseRegex

The regular expressions to match the response content with.

Applies to