-
-
Save dbishop/32c6ff6bfb74cbf8c4f1 to your computer and use it in GitHub Desktop.
Endpoints middleware example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://192.168.22.100/endpoints/AUTH_dev | python -m json.tool | |
[ | |
"http://192.168.23.50:6002/d2/617/AUTH_dev", | |
"http://192.168.23.46:6002/d8/617/AUTH_dev", | |
"http://192.168.23.41:6002/d11/617/AUTH_dev" | |
] | |
curl -s http://192.168.22.100/endpoints/AUTH_dev/some_container | python -m json.tool | |
[ | |
"http://192.168.23.42:6001/d14/875/AUTH_dev/some_container", | |
"http://192.168.23.46:6001/d7/875/AUTH_dev/some_container", | |
"http://192.168.23.45:6001/d3/875/AUTH_dev/some_container" | |
] | |
curl -s http://192.168.22.100/endpoints/AUTH_dev/some_container/some/object/path.jpg | python -m json.tool | |
[ | |
"http://192.168.23.45:6007/d4/244/AUTH_dev/some_container/some/object/path.jpg", | |
"http://192.168.23.46:6008/d8/244/AUTH_dev/some_container/some/object/path.jpg", | |
"http://192.168.23.50:6007/d1/244/AUTH_dev/some_container/some/object/path.jpg" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s http://192.168.22.100/endpoints/v2/AUTH_dev | python -m json.tool | |
{ | |
"endpoints": [ | |
"http://192.168.23.50:6002/d2/617/AUTH_dev", | |
"http://192.168.23.46:6002/d8/617/AUTH_dev", | |
"http://192.168.23.41:6002/d11/617/AUTH_dev" | |
], | |
"headers": {} | |
} | |
curl -s http://192.168.22.100/endpoints/v2/AUTH_dev/non_ec_container | python -m json.tool | |
{ | |
"endpoints": [ | |
"http://192.168.23.42:6001/d14/931/AUTH_dev/non_ec_container", | |
"http://192.168.23.41:6001/d10/931/AUTH_dev/non_ec_container", | |
"http://192.168.23.50:6001/d0/931/AUTH_dev/non_ec_container" | |
], | |
"headers": {} | |
} | |
curl -s http://192.168.22.100/endpoints/v2/AUTH_dev/non_ec_container/obj | python -m json.tool | |
{ | |
"endpoints": [ | |
"http://192.168.23.45:6007/d4/588/AUTH_dev/non_ec_container/obj", | |
"http://192.168.23.42:6008/d13/588/AUTH_dev/non_ec_container/obj", | |
"http://192.168.23.46:6007/d7/588/AUTH_dev/non_ec_container/obj" | |
], | |
"headers": { | |
"X-Backend-Storage-Policy-Index": "0" | |
} | |
} | |
curl -s http://192.168.22.100/endpoints/v2/AUTH_dev/EC_cont1 | python -m json.tool | |
{ | |
"endpoints": [ | |
"http://192.168.23.50:6001/d1/322/AUTH_dev/EC_cont1", | |
"http://192.168.23.46:6001/d8/322/AUTH_dev/EC_cont1", | |
"http://192.168.23.42:6001/d13/322/AUTH_dev/EC_cont1" | |
], | |
"headers": {} | |
} | |
curl -s http://192.168.22.100/endpoints/v2/AUTH_dev/EC_cont1/obj | python -m json.tool | |
{ | |
"endpoints": [ | |
"http://192.168.23.46:6008/d8/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.50:6008/d2/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.41:6009/d11/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.45:6006/d3/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.42:6009/d14/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.45:6008/d5/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.50:6007/d1/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.42:6007/d12/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.41:6007/d9/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.46:6007/d7/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.45:6007/d4/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.42:6008/d13/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.46:6006/d6/583/AUTH_dev/EC_cont1/obj", | |
"http://192.168.23.41:6008/d10/583/AUTH_dev/EC_cont1/obj" | |
], | |
"headers": { | |
"X-Backend-Storage-Policy-Index": "2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment