Create Dataset

Create Dataset

You can create a data set to restrict the kind of log data available to different users. A data set contains filters that restrict log results. When you create a role, you can associate it with a data set. The filters in the data set are applied to log messages in VMware Aria Operations for Logs and the resulting log content is displayed to users assigned to the role

Request
URI
POST
https://{api_host}//vrlic/api/v1/access-control/dataset
COPY
Request Body
DatasetDto of type(s) application/json
Required
{
    "id": "d5a4a8d-7c9d-4762-99f7-fe4be6a77908",
    "name": "test_dataset",
    "description": "test_dataset description",
    "cspOrgId": "678ea4a8d-7c9d-4762-99f7-fe4be6a77908",
    "restrictAutocomplete": false,
    "restricts": false,
    "constraints": {
        "operator": "AND",
        "constraints": [
            {
                "operator": "AND",
                "tags": [
                    "aria-logs:search-bar"
                ],
                "constraints": [
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "error"
                    }
                ]
            },
            {
                "operator": "AND",
                "constraints": [
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "error"
                    },
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "test"
                    }
                ]
            }
        ]
    }
}
string
id
Optional

A unique dataset identifier

string
name
Required

A unique dataset name

string
description
Optional

Dataset description that is shown in the UI

string
cspOrgId
Optional

Unique ID associated with the org

constraints
Required

constraints

boolean
restricts
Optional

Determines how a data set should behave when combined with other data sets. E.g., consider if you have two data sets Data set 1 (hostname contains host, appname contains app) and Data set 2 (severity contains error). If both of these data sets are added to a role, the resulting combined data set would be: (hostname contains host AND appname contains app) OR (severity contains error). However, if the 'restrict' is true for data set 2, the combined data set would be: (hostname contains host AND appname contains app) AND (severity contains error)

boolean
restrictAutocomplete
Optional

Represents whether autocomplete is restricted in the Explore Logs feature

Authentication
This operation uses the following authentication methods.
Responses
200

OK

Returns DatasetDto of type(s) */*
{
    "id": "d5a4a8d-7c9d-4762-99f7-fe4be6a77908",
    "name": "test_dataset",
    "description": "test_dataset description",
    "cspOrgId": "678ea4a8d-7c9d-4762-99f7-fe4be6a77908",
    "restrictAutocomplete": false,
    "restricts": false,
    "constraints": {
        "operator": "AND",
        "constraints": [
            {
                "operator": "AND",
                "tags": [
                    "aria-logs:search-bar"
                ],
                "constraints": [
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "error"
                    }
                ]
            },
            {
                "operator": "AND",
                "constraints": [
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "error"
                    },
                    {
                        "fieldName": "text",
                        "operator": "CONTAINS",
                        "value": "test"
                    }
                ]
            }
        ]
    }
}
string
id
Optional

A unique dataset identifier

string
name
Required

A unique dataset name

string
description
Optional

Dataset description that is shown in the UI

string
cspOrgId
Optional

Unique ID associated with the org

constraints
Required

constraints

boolean
restricts
Optional

Determines how a data set should behave when combined with other data sets. E.g., consider if you have two data sets Data set 1 (hostname contains host, appname contains app) and Data set 2 (severity contains error). If both of these data sets are added to a role, the resulting combined data set would be: (hostname contains host AND appname contains app) OR (severity contains error). However, if the 'restrict' is true for data set 2, the combined data set would be: (hostname contains host AND appname contains app) AND (severity contains error)

boolean
restrictAutocomplete
Optional

Represents whether autocomplete is restricted in the Explore Logs feature