Description: the method is required to update the unloading contents. All entries of the sample unloading will be deleted, and then, a new entry will be added. This method can be used for the initial filling of the unloading. | Предупреждение |
|---|
| The filling should have an integer number of rows. The minimum number of row for filling is 2. The minimum number of columns is 2. The minimum byte size of loadable content is 128 byte. The minimum byte size of loadable content is 2GB. |
Methods features: POST, asynchronous. Resource: xapi/etalonTable/{id}/content/replace. Parameters: id – fingerprint_id of the object being edited.
Example: enatalonTable/0123456789ABCDEF/content/replce Content-type of type of the request body should be not application/json, but multipart/form-data (for more details, see: https://tools.ietf.org/html/rfc2388). Content-Disposition that Disposition that will include the file should have the name field with CONTENT value and filename attribute with the file name and TSV or CSV extension depending on the file format, separated with Tab or commas respectively. Possible values of errors for the CONTENT field: - not_valid – the file has an invalid signature;
- not_allowed_file_extension – an unauthorized file extension, for now. only 2 formats are supported: TSV and CSV;
- too_long_size – the file size is too large;
- duplicate – this file already exists in the system.
In case of success – the return code is "200" and the response body is as follows: {
200. | Блок кода |
|---|
| language | text |
|---|
| title | The response body: |
|---|
| collapse | true |
|---|
| {
"FINGERPRINT_ID": "string", |
"DISPLAY_NAME": "string", |
"CONDITION_COLUMNS": "string", |
After getting the " 200 " return code, you should take the FINGERPRINT_ID field and use it for the checking the unloading state, until the state changes to "ready". | Предупреждение |
|---|
| The number of cells in loadable rows should match the number of columns that was specified when creating the unloading. When you delete the unloading through Traffic Monitor console, it is considered existing until you distribute the configuration, i.e. you can update this unloading and add contents to it. When loading "erroneous" content, i.e. the content which duplicates an already loaded unloading (or its part) or the content whose rows contain an incorrect number of cells, the whole sample object gets an invalid status. The external subsystem should stop loading this content and go to the next one. Loading the correct content changes the sample object status to the correct one. Incorrect content never reaches the analysis modules. |
|