Comments (2)
Example:
$ curl -X PUT -u test_user1:test --header "Host: /home/test_user1/test_file" http://192.168.99.100:5101/ {"created": 1505328375.5647395, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "lastModified": 1505328375.5647395, "acls": {"test_user1": {"delete": true, "read": true, "update": true, "create": true, "updateACL": true, "readACL": true}, "default": {"delete": false, "read": true, "update": false, "create": false, "updateACL": false, "readACL": false}}, "owner": "test_user1"}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-d26ac838-98b3-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.1.100:5101/datasets curl: (7) Failed to connect to 192.168.1.100 port 5101: Connection refused (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-d26ac838-98b3-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.99.100:5101/datasets {"id": "d-1bc23eee-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328498, "type": {"base": "H5T_IEEE_F32LE", "class": "H5T_FLOAT"}, "created": 1505328498, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "attributeCount": 0, "shape": {"dims": [10], "class": "H5S_SIMPLE"}}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ hsdel -u test_user1 -p test /home/test_user1/test_file (py35)Cardinal:~ jreadey$ curl -X PUT -u test_user1:test --header "Host: /home/test_user1/test_file" http://192.168.99.100:5101/ {"created": 1505328713.8524508, "root": "g-9c0e7ff4-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328713.8524508, "acls": {"test_user1": {"delete": true, "read": true, "update": true, "create": true, "updateACL": true, "readACL": true}, "default": {"delete": false, "read": true, "update": false, "create": false, "updateACL": false, "readACL": false}}, "owner": "test_user1"}(py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ (py35)Cardinal:~ jreadey$ curl -X POST -u test_user1:test --header "Host: /home/test_user1/test_file" --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-9c0e7ff4-98b4-11e7-be6a-0242ac110009\", \"name\": \"new_dset\" } }" http://192.168.99.100:5101/datasets {"id": "d-b5244ba4-98b4-11e7-be6a-0242ac110009", "lastModified": 1505328755, "type": {"base": "H5T_IEEE_F32LE", "class": "H5T_FLOAT"}, "created": 1505328755, "root": "g-d26ac838-98b3-11e7-be6a-0242ac110009", "attributeCount": 0, "shape": {"dims": [10], "class": "H5S_SIMPLE"}}
from hsds.
This is no longer an issue.
Tested with the following cmds:
curl -X PUT -u test_user1:test http://hsds.hdf.test/?domain=/home/test_user1/test_file
curl -X POST -u test_user1:test --header "Content-Type: application/json" --data "{\"shape\": 10, \"type\": \"H5T_IEEE_F32LE\", \"link\": { \"id\": \"g-6c313c54-d7a6a1ab-e4b9-b4dc5f-2e2923\", \"name\": \"new_dset\" } }" http://hsds.hdf.test/datasets?domain=/home/test_user1/test_file
hsrm /home/test_user1/test_file
And then re putting the domain followed by reposting the dataset. The dataset has the root id of the new domain.
from hsds.
Related Issues (20)
- Setting up local HSDS server: error on first runall.bat in Windows HOT 1
- Update setup.py to remove setuptools deprecation HOT 1
- Enable dataset shape extent to be reduced HOT 1
- Support object copy operations
- Allow hdf5:// prefix in domain names HOT 1
- Can't write to H5T_ARRAY datasets
- 'Verbose' parameters for dset reads returns inaccurate until scan HOT 1
- Cannot run ./build.sh file HOT 2
- GET_Domains not returning all domains on Azure HOT 1
- FileNotFoundError: can't find hsds-node executable HOT 2
- Use numcodecs VLenArray for encoding variable length dataset chunks
- Support HEAD requests for dataset selection
- Support fixed-length strings with UTF-8 character set HOT 7
- Support broadcasting
- Reset data to fill value when decreasing then increasing extent of dataset
- Save padding/offset of fields in compound types HOT 3
- point selections can fail after shape update
- Support FLETCHER32 filter
- Compound Type Subsetting HOT 4
- Support N-Bit and scale offset filters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hsds.