Comments (7)
Hello Marc,
I assume you are referring to the SIO 1.3 API? Today it does support this
version. The project is focused however on incremental additions based on
need versus exposing 100% of the API. If there is something specific
missing or I didn't interpret the question correctly let me know.
On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:
Hi,
are there any plans in the near future for a version which is compatible
with the rexray API Version 1.3 ?Greets
Marc—
Reply to this email directly or view it on GitHub
#6.
from goscaleio.
Hi Cliton,
i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:
"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST API version is not supported. Supported version is 1.3"
With my really basic knowledge of go i thought this is because rexray use the goscaleio library, which not supported this version yet.
Maybe I'm wrong then sorry for the confusion.
Marc
from goscaleio.
Interesting. I will take a look into this shortly.
On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:
Hi Cliton,
i tried to use Rexray 0.3 with the "EMC-ScaleIO-gateway.x86_64 2.0-764.0".
This produce the following error on the scaleio gateway:"2015-12-29 13:58:54,730 [http-nio-443-exec-8] WARN
c.e.s.s.w.c.SpecialImplController - unexpected error: 406 Requested REST
API version is not supported. Supported version is 1.3"With my really basic knowledge of go i thought this is because rexray use
the goscaleio library, which not supported this version yet.Maybe I'm wrong then sorry for the confusion.
Marc
—
Reply to this email directly or view it on GitHub
#6 (comment).
from goscaleio.
Can you refer to the API documentation? Currently I believe the docs specified to solely issue the following header. If this has changed, then it would be a reason that the 2.0 API gateway complains. Replacing this statement in any occurence could then fix the problem if the API calls are backwards compatible.
req.Header.Add("Accept", "application/json;version=1.0")
from goscaleio.
Unfortunately i don't have a valid documentation for the rest api of the 2.0 gateway.
But it seems that the version string have changed:
http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0" HTTP/1.1 500 Internal Server Error Cache-Control: no-cache Cache-Control: no-store Connection: close Content-Encoding: gzip Content-Type: application/json; version=1.0 Date: Tue, 29 Dec 2015 20:02:28 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Vary: Accept-Encoding { "errorCode": 0, "httpStatusCode": 500, "message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3" }
With 1.3:
http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3" HTTP/1.1 200 OK Cache-Control: no-cache Cache-Control: no-store Content-Encoding: gzip Content-Type: application/json; version=1.3 Date: Tue, 29 Dec 2015 20:05:05 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Server: Apache-Coyote/1.1 Transfer-Encoding: chunked Vary: Accept-Encoding "YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"
No version header also works.
from goscaleio.
Good info for now. Without seeing the docs myself it's tough to say
whether the rest of the functionality will work if they are now enforcing
API versions. Typically is done because there are breaking changes that
are present in the structure.
On Tuesday, December 29, 2015, Marc Zimmermann [email protected]
wrote:
Unfortunately i don't have a valid documentation for the rest api of the
2.0 gateway.
But it seems that the version string have changed:http --verify no --auth admin:XXXXXXXXX GET https://xxxxxxxxxx/api/login Accept:"application/json;version=1.0"
HTTP/1.1 500 Internal Server Error
Cache-Control: no-cache
Cache-Control: no-store
Connection: close
Content-Encoding: gzip
Content-Type: application/json; version=1.0
Date: Tue, 29 Dec 2015 20:02:28 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding{
"errorCode": 0,
"httpStatusCode": 500,
"message": "org.springframework.web.client.HttpClientErrorException: 406 Requested REST API version is not supported. Supported version is 1.3"
}With 1.3:
http --verify no --auth admin:xxxxxxxxxx GET https://xxxxxxxxxxxx/api/login Accept:"application/json;version=1.3"
HTTP/1.1 200 OK
Cache-Control: no-cache
Cache-Control: no-store
Content-Encoding: gzip
Content-Type: application/json; version=1.3
Date: Tue, 29 Dec 2015 20:05:05 GMT
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Vary: Accept-Encoding"YWRtaW46MTQ1MTQ0ODMwNTAwNTo5ZWQ3YWZmNGExMmU2NTU3MDM0YjYzODNlNWRhMTJKITZ"
No version header also works.
—
Reply to this email directly or view it on GitHub
#6 (comment).
from goscaleio.
1.3 and 2.0 are supported as of #10
from goscaleio.
Related Issues (10)
- Runtime panic when API not responding
- Authenticate error with scale io 2.0 HOT 2
- Add IM API Coverage HOT 6
- Unable to start multiple REX-Ray instances on different hosts connecting to ScaleIO HOT 2
- getting blank system name from API HOT 1
- Binding update with HTTP logging
- Missing thinCapacityAllocatedInKm in Statistics struct HOT 3
- missing copyright statement? HOT 1
- JSON struct tag on non public field HOT 1
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 goscaleio.