Skip to main content

Create a view service

POSThttps://api.coralogix.com/mgmt/openapi/5/data-exploration/views/v1/views

Creates a new view

Authorizations

Authorizationstringheaderrequired
API key authentication

Request

Body

application/json

View folder.

    Selected filters.

    folderId#string

    Unique identifier for folders

    Possible values: >= 36 characters and <= 36 characters, Value must match regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

    Example: 3dc02998-0b50-4ea8-b68a-4779d716fa1f
    name#stringrequired

    View name

    Possible values: non-empty and <= 250 characters, Value must match regular expression ^[\s\S]*$

    Example: Logs view

    Search query.

    timeSelection#objectrequired

    Time selection.

    oneOf
    object

    Custom time selection.

    Quick time selection.

    viewType#ViewType

    View type.

    Possible values: [VIEW_TYPE_UNSPECIFIED, VIEW_TYPE_LOGS, VIEW_TYPE_TEMPLATES, VIEW_TYPE_ARCHIVE_LOGS, VIEW_TYPE_ARCHIVE_TEMPLATES]

Response

application/json

Response for views.

    Selected filters.

    folderId#string

    Unique identifier for folders

    Possible values: >= 36 characters and <= 36 characters, Value must match regular expression ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

    Example: 3dc02998-0b50-4ea8-b68a-4779d716fa1f
    id#int32required

    id

    Possible values: >= 1 and <= 2147483647

    Example: 52
    isCompactMode#boolean

    The is compact mode.

    name#stringrequired

    View name

    Possible values: non-empty and <= 250 characters, Value must match regular expression ^[\s\S]*$

    Example: Logs view

    Search query.

    timeSelection#objectrequired

    Time selection.

    oneOf
    object

    Custom time selection.

    Quick time selection.

    viewType#ViewType

    View type.

    Possible values: [VIEW_TYPE_UNSPECIFIED, VIEW_TYPE_LOGS, VIEW_TYPE_TEMPLATES, VIEW_TYPE_ARCHIVE_LOGS, VIEW_TYPE_ARCHIVE_TEMPLATES]