Entity change log (changes)
Overview
Provides change log data from domain center entities based on the specified search conditions.
Each time a number of entities are created, modified, or deleted, information about the operation is recorded in the change log. This only occurs for descriptor entities marked in the specification as being served by the domain center.
It is not possible to retrieve all log changes. Requires at least one of the search terms to be specified. In some cases, it is required to specify a combination of conditions. The system prompts for the required fields in the body of the response if the composition of the conditions is not appropriate.
For example, you can search for all changes over a time interval, or all changes for a specific object.
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
Retrieving data from the log
Request
Name | Type | Description |
---|---|---|
|
|
Search conditions in the change log. Fields of conditions object. |
|
|
Filter by field values of detected log entries. |
|
|
List of fields to output. Available fields for output: cmdtype, dtutc, modifierid, modifiername, objtype, objid, fields, obj. To mask object fields ( |
|
|
Offset in the list of resources to be issued. This is an additional offset relative to the offset in search conditions. |
|
|
The maximum number of resources in the list. This is an additional constraint relative to the constraint in search conditions |
|
|
The sort order of the resources in the list. |
|
|
Converts composite fields to a flat view. Applies to the object content - field value |
Name | Type | Description |
---|---|---|
|
|
The date and time of the start of the interval. In RFC3339 format in UTC, e.g. |
|
|
The date and time of the start of the interval. In RFC3339 format in UTC, e.g. |
|
|
Filter on the type of operation:
|
|
|
Filter on type entities. For example Applies in conjunction with one of the |
|
|
Filter on the object identifier. For entities that have an identifier. Applies in conjunction with the |
|
|
Filter on an object’s key field. For entities that do not have an identifier. Applies in conjunction with the |
|
|
Offset when issuing data from the database. |
|
|
Limiting the amount of data output from the database. |
GET /rest/v1/journal/changes?params={"objtype":"user","objid":"3063e0ff-2ce8-2f4e-f5e0-00241dd9a031"} HTTP/1.1
Response
Name | Description |
---|---|
|
Type of object operation. Value options:
|
|
The date-time of the transaction. RFC3339 format in UTC. |
|
Identifier of the user account on behalf of which the operation was performed. |
|
The name of the user account on behalf of which the operation was performed. Fixed at the time of the transaction. |
|
Type entities. For example |
|
The identifier or key field of an entity. |
|
A string with the names of the object fields in which the values have been changed.
The fields are listed separated by commas.
The values of composite fields by first-level keys are specified in flat mode, e.g. The field is present only in operation objects |
|
Full content of the facility, similar to the issuance of the facility through the API. For operations
|
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"cmdtype": "update",
"dtutc": "2019-11-01T06:35:03.343Z",
"modifierid": "71374fef-42f1-4e49-2069-faab905d4be2",
"modifiername": "Administrator",
"objtype": "user",
"objid": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"fields": "name,opts.roles",
"obj": {
"id": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"login": "ivanov",
"name": "Ivanov Alexey",
"pwd": "*****",
"timezone": "default",
"opts": {
"roles": ["admin"]
},
"ext": {
"a": "1",
"b": "asdfasdf",
"c": 555.2,
"d": 10,
"e": {
"x": 1,
"y": "2",
"z": false
},
"ct": "2019-08-01T07:02:01.52Z",
"lwt": "2019-11-01T06:35:03.31Z"
}
}
},
{
"cmdtype": "update",
"dtutc": "2019-08-01T07:02:15.951Z",
"modifierid": "71374fef-42f1-4e49-2069-faab905d4be2",
"modifiername": "Administrator",
"objtype": "user",
"objid": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"fields": "opts.roles",
"obj": {
"id": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"login": "ivanov",
"name": "Ivanov A",
"pwd": "*****",
"timezone": "default",
"opts": {
"roles": ["user"]
},
"ext": {
"a": "1",
"b": "asdfasdf",
"c": 555.2,
"d": 10,
"e": {
"x": 1,
"y": "2",
"z": false
},
"ct": "2019-08-01T07:02:01.52Z",
"lwt": "2019-08-01T07:02:15.95Z"
}
}
},
{
"cmdtype": "create",
"dtutc": "2019-08-01T07:02:01.530Z",
"modifierid": "71374fef-42f1-4e49-2069-faab905d4be2",
"modifiername": "Administrator",
"objtype": "user",
"objid": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"obj": {
"id": "3063e0ff-2ce8-2f4e-f5e0-00241dd9a031",
"login": "ivanov",
"name": "Ivanov A",
"pwd": "*****",
"timezone": "default",
"opts": {},
"ext": {
"a": "1",
"b": "asdfasdf",
"c": 555.2,
"d": 10,
"e": {
"x": 1,
"y": "2",
"z": false
},
"ct": "2019-08-01T07:02:01.52Z",
"lwt": "2019-08-01T07:02:01.52Z"
}
}
}
]