- URL:
- https://<root>/data/validateDataItem
- Methods:
POST
- Required Capability:
- Access allowed with any authorized privilege
- Version Introduced:
- 10.1
Description
The validate
operation validates that the path (for file shares) or connection string (for databases) for a specific data item is accessible to every server node in the site by checking against the JSON representing the data item, ensuring that the data item can be registered and used successfully within the server's data store.
Validating a data item does not automatically register it for you. You need to explicitly register your data item by invoking the Register Data Item operation.
Request parameters
Parameter | Details |
---|---|
| The JSON representing the data item. |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the validate
operation:
POST /webadaptor/admin/data/validateDataItem HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
item={
"path": "/fileShares/folder_shared",
"type": "folder",
"id": null,
"clientPath": null,
"info": {
"path": "\\\\server\\share_data\\map_data",
"dataStoreConnectionType": "shared"
}
}&f=pjson
JSON Response example
{"status": "success"}