Skip to main content

Retrieves models

GET 

https://apis.<domain>/iot/models

Retrieves a list of models. Due to performance concerns, data is retrieved in subsets. The API must ensure that the entire dataset is consumed either by making subsequent requests, or by increasing the subset size of the initial request.

Authorization Action:

core:models:list

Request

Query Parameters

    limit integer

    Possible values: >= 1 and <= 100

    Size of the subset to retrieve.

    Default value: 10
    offset integer

    Possible values: >= 0

    Number of items to skip during retrieval.

    Default value: 0
    name string

    Name filter. Filtering is performed as a case-insensitive partial match.

    order string

    Possible values: [name, id]

    Order type.

    Default value: id
    dir string

    Possible values: [asc, desc]

    Order direction.

    Default value: desc
    metadata object

    Metadata filter. Filtering is performed matching the parameter with metadata on top level. Parameter is json.

    tag string

    Tag filter. Filtering is performed as a case-insensitive match.

    tenant string

    Possible values: <= 64 characters

    Tenant filter. Used to filter models by specific tenant.

Responses

List of models with pagination info.

Schema
    totalinteger
    offsetinteger
    limitinteger
    models object[]
  • Array [
  • idstring<uuid>

    Unique model identifier.

    namestring

    Free-form model name.

    descriptionstring

    Free-form model description.

    metadataobject

    Arbitrary, object-encoded model data.

    tagsstring[]

    List of tags associated with the model.

    tenantsstring[]

    List of tenants that can access this model.

    imagestring

    URL to model image.

    created_atstring<date-time>

    Time when the model was created.

    updated_atstring<date-time>

    Time when the model was last updated.

  • ]

Authorization: http

name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://apis.<domain>/iot/models");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://apis.<domain>
Auth
Parameters
— query
— query
— query
— query
— query
— query
— query
— query