Show / Hide Table of Contents

Class EndpointRequest

An object containing details to make a REST request.

Inheritance
object
EndpointRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.LoganalyticsService.Models
Assembly: OCI.DotNetSDK.Loganalytics.dll
Syntax
public class EndpointRequest

Properties

ContentType

Declaration
[JsonProperty(PropertyName = "contentType")]
public string ContentType { get; set; }
Property Value
Type Description
string

The request content type.

FormParameters

Declaration
[JsonProperty(PropertyName = "formParameters")]
public List<NameValuePair> FormParameters { get; set; }
Property Value
Type Description
List<NameValuePair>

The request form parameters represented as a list of name-value pairs.

Headers

Declaration
[JsonProperty(PropertyName = "headers")]
public List<NameValuePair> Headers { get; set; }
Property Value
Type Description
List<NameValuePair>

The request headers represented as a list of name-value pairs.

Method

Declaration
[JsonProperty(PropertyName = "method")]
[JsonConverter(typeof(ResponseEnumConverter))]
public EndpointRequest.MethodEnum? Method { get; set; }
Property Value
Type Description
EndpointRequest.MethodEnum?

The endpoint method - GET or POST.

Payload

Declaration
[JsonProperty(PropertyName = "payload")]
public string Payload { get; set; }
Property Value
Type Description
string

The request payload, applicable for POST requests.

Url

Declaration
[Required(ErrorMessage = "Url is required.")]
[JsonProperty(PropertyName = "url")]
public string Url { get; set; }
Property Value
Type Description
string

The request URL.

Remarks

Required

In this article
Back to top