> ## Documentation Index
> Fetch the complete documentation index at: https://help.cryptolens.io/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET: GetWebAPILogModel

> Signatures, models and behavior for SKM.V3.Models.GetWebAPILogModel in the .NET SDK 4.0.54.

Parameters used by [`GetWebAPILog(string, GetWebAPILogModel)`](/libraries/dotnet-reference/methods/ai#get-web-apilog-855c198fe8).

**Namespace:** `SKM.V3.Models`\
**Version:** 4.0.54. Both packages; all six documented target frameworks.

<CodeGroup>
  ```csharp C# theme={null}
  public class GetWebAPILogModel : RequestModel
  ```

  ```vb VB.NET theme={null}
  Public Class GetWebAPILogModel Inherits RequestModel
  ```
</CodeGroup>

[Web API Reference](/api-reference/generated/GetWebAPILog)

## Inherited SDK Members

* [`LicenseServerUrl`](/libraries/dotnet-reference/models/request-model#license-server-url-67581aa5cb)

## Properties

<a id="ending-before-cec60287bb" />

### EndingBefore

Works as a cursor (for pagination). If the last element had the id=125, then setting this to 125 will return all events coming before 125. **If you use the time filter, this value should be set to unix timestamp of the request.**

<CodeGroup>
  ```csharp C# theme={null}
  public long EndingBefore { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property EndingBefore As Long
  ```
</CodeGroup>

**Type:** `long`

<a id="friendly-name-760d6af83b" />

### FriendlyName

The friendly name to filter on. "Contains" operation is used, i.e. you do not need to specify the entire friendly name. Case insensitive.

<CodeGroup>
  ```csharp C# theme={null}
  public string FriendlyName { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property FriendlyName As String
  ```
</CodeGroup>

**Type:** `string`

<a id="key-da6ee650b1" />

### Key

The key string that we should filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public string Key { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Key As String
  ```
</CodeGroup>

**Type:** `string`

<a id="limit-5f152394c9" />

### Limit

Specifies how many events should be returned.

<CodeGroup>
  ```csharp C# theme={null}
  public int Limit { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property Limit As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="order-by-6b835b594d" />

### OrderBy

Allows you to order the data based on either the Id or Time. We recommend that you use StartingAfter and EndingBefore instead, since it will perform automatic ordering. By default, it will order in "ascending" mode (unless EndingBefore is specified, in which case it will be set to Id descending). To change that, you can append "descending" to the field. For example, to order by Id in a descending order, you can set this variable to **Id descending**. When time filter is applied, automatic order by on Time will be applied.

<CodeGroup>
  ```csharp C# theme={null}
  public string OrderBy { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property OrderBy As String
  ```
</CodeGroup>

**Type:** `string`

<a id="product-id-41c3d95015" />

### ProductId

The product id that we should filter on.

<CodeGroup>
  ```csharp C# theme={null}
  public int ProductId { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property ProductId As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="starting-after-1602d76105" />

### StartingAfter

Works as a cursor (for pagination). If the last element had the id=125, then setting this to 125 will return all events coming after 125. **If you use the time filter, this value should be set to unix timestamp of the request.**

<CodeGroup>
  ```csharp C# theme={null}
  public int StartingAfter { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property StartingAfter As Integer
  ```
</CodeGroup>

**Type:** `int`

<a id="states-d766102cd5" />

### States

The list of integer values representing the state that you want to filter on. This allows you to extract logs related to a certain event. For example, if you want to see all *CreateKey* request, you can set this parameter to **\[3010]**. If you need to filter on multiple events, you can add them to the list as follows: **\[3010,2010]**. You can read more about the different states [here](/api-reference/generated/model/WebAPILog#state-codes).

<CodeGroup>
  ```csharp C# theme={null}
  public List<short> States { get; set; }
  ```

  ```vb VB.NET theme={null}
  Public Property States As List(Of Short)
  ```
</CodeGroup>

**Type:** `List<Int16>`

## Constructors

<a id="ctor-9e9f6ea168" />

### GetWebAPILogModel()

Creates an empty GetWebAPILogModel object. This constructor does not send an API request.

<CodeGroup>
  ```csharp C# theme={null}
  public GetWebAPILogModel()
  ```

  ```vb VB.NET theme={null}
  Public Sub New()
  ```
</CodeGroup>

[.NET SDK Reference](/libraries/dotnet-api) · [Reviewed Source Revision](https://github.com/Cryptolens/cryptolens-dotnet/tree/30aaf399ba53d9a111bee896c35bf557fa219394)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.