You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some versions of OneView, the request must be GET '/rest/os-deployment-plans/' (with the slash in the end) instead of GET '/rest/os-deployment-plans'
Environment Details
OneView SDK Version: current master
OneView Appliance Version: 3.0 Synergy variant
OneView Client API Version: 300
Ruby Version: Any
Platform: Any
Steps to Reproduce
Run the example to list all OS Deployment Plans, against the appliance we are using for testing
Expected Result
List all available OS Deployment Plans
Actual Result
D, [2017-03-29T15:06:54.280982 #25450] DEBUG -- : Making :get rest call to https://ipaddr/rest/os-deployment-plans
D, [2017-03-29T15:06:54.281113 #25450] DEBUG -- : Options: {"X-API-Version"=>"300", "auth"=>"token", "Content-Type"=>"application/json"}
D, [2017-03-29T15:06:55.993928 #25450] DEBUG -- : Response: Code=405. Headers={"date"=>["Wed, 29 Mar 2017 17:33:22 GMT"], "server"=>["Apache"], "allow"=>["DELETE, POST, PUT"], "content-language"=>["en-US"], "content-type"=>["application/json;charset=UTF-8"], "pragma"=>["no-cache"], "cache-control"=>["no-cache"], "expires"=>["Thu, 01 Jan 1970 00:00:00 GMT"], "connection"=>["close"], "transfer-encoding"=>["chunked"]}
Body={"nestedErrors":[],"details":"The request method GET is not supported or not applicable for the requested resource.","errorSource":null,"recommendedActions":["Allowed methods include DELETE. Refer to the API specification to determine the supported HTTP request methods for the resource type."],"errorCode":"HTTP_METHOD_NOT_ALLOWED","data":{},"message":"The request method is not supported or not applicable for this type of resource."}
/home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/exceptions.rb:28:in `raise!': 405 {"nestedErrors":[],"details":"The request method GET is not supported or not applicable for the requested resource.","errorSource":null,"recommendedActions":["Allowed methods include DELETE. Refer to the API specification to determine the supported HTTP request methods for the resource type."],"errorCode":"HTTP_METHOD_NOT_ALLOWED","data":{},"message":"The request method is not supported or not applicable for this type of resource."} (OneviewSDK::RequestError)
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/rest.rb:231:in `response_handler'
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/resource.rb:282:in `block in find_with_pagination'
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/resource.rb:280:in `loop'
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/resource.rb:280:in `find_with_pagination'
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/resource.rb:265:in `find_by'
from /home/marikrg/dev/oneview-sdk-ruby/lib/oneview-sdk/resource.rb:295:in `get_all'
from api300/synergy/os_deployment_plan.rb:17:in `<main>'
The text was updated successfully, but these errors were encountered:
@marikrg , what appliance are you using(3.00 or 3.10)? This error means that this method is not available by OV and this could be a possible bug on Oneview.
It was a 300 appliance. I've tried against two different 300 appliances and that error comes up on both.
That comes when you use '/rest/os-deployment-plans' while '/rest/os-deployment-plans/' returns the list of resources as expected.
P.S. the documentation actually shows /rest/os-deployment-plans/ as the correct URL btw.
Scenario/Intent
Error listing the OS Deployment Plans.
For some versions of OneView, the request must be GET '/rest/os-deployment-plans/' (with the slash in the end) instead of GET '/rest/os-deployment-plans'
Environment Details
Steps to Reproduce
Run the example to list all OS Deployment Plans, against the appliance we are using for testing
Expected Result
List all available OS Deployment Plans
Actual Result
The text was updated successfully, but these errors were encountered: