POST Datasets
Creates a new data set.
{
"name": "identity constraints",
"description": "id const description",
"constraints": [
{
"name": "id",
"operator": "CONTAINS",
"value": "00000000-0000-0000-0000-000000000001"
}
]
}
Creates a new data set
{
"id": "aa4dfe85-382d-487c-875b-7e049867a76d",
"name": "hostname data set",
"description": "id const description",
"type": "AND",
"constraints": [
{
"name": "hostname",
"operator": "IS",
"value": "10.10.10.10"
},
{
"name": "application_name",
"operator": "CONTAINS",
"value": "mailing"
}
]
}
UUID in string format
name
description
type
constraints
Invalid request body
{
"errorMessage": "Some fields have incorrect values",
"errorCode": "FIELD_ERROR",
"errorDetails": {
"name": [
{
"errorCode": "com.vmware.loginsight.api.errors.field_required",
"errorMessage": "Required value is null"
}
],
"constraints": [
{
"errorCode": "com.vmware.loginsight.api.errors.field_required",
"errorMessage": "Required value is null"
}
]
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
The request was refused because it lacks valid authentication
credentials. This can happen if the Authorization header
was missing, or if it contained an invalid session ID.
Obtain a new session ID and retry the request,
or make an unauthenticated request without the Authorization header.
"Invalid session ID"
Data set already exists.
{
"errorMessage": "Data set with specified name already exists.",
"errorCode": "RBAC_DATASETS_ERROR",
"errorDetails": {
"errorCode": "com.vmware.loginsight.api.errors.rbac.dataset_with_specified_name_already_exists"
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
The request was refused because the session ID has
expired. Obtain a new session ID from /api/v1/sessions.
"Login Timeout"
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v1/datasets