APIPythonOpen-Source Solutions

Expand all | Collapse all

Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined

  • 1.  Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined

    Posted 03-18-2019 01:43:00 PM
    Hi there,
    I am getting the following error on stating the API version as 1.10.0, it does not fail on 1.8.0. Even if logged in separately onto 1.10.0, the container create scripts fails.

    {"type":"ErrorResult","status":"ERROR","error":{"type":"APIError","details":{"type":{"details":"Object type \"JSDataContainerCreateParameters\" is an abstract type. Expected a concrete type derived from \"TypedObject\".","action":null,"id":"exception.validation.object.type.abstract","commandOutput":null,"diagnoses":null}},"action":"Check your input parameters and try again.","id":"exception.validation.bad.input","commandOutput":null,"diagnoses":null}}confirming job completed successfully...


    #Virtualization
    #Self-Service


  • 2.  RE: Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined
    Best Answer

    Posted 03-18-2019 02:50:00 PM
    The type JSDataContainerCreateParameters has been renamed JSDataContainerCreateWithRefreshParameters  in versions 1.8.2+ of the API. Because the API is backwards compatible, you can use the old name (JSDataContainerCreateParameters ) if the API version in use is older than 1.8.2, but if you want to upgrade a to a more recent version (such as 1.10.0) you must use the new name JSDataContainerCreateWithRefreshParameters .


  • 3.  RE: Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined

    Posted 03-18-2019 05:29:00 PM
    Thanks, works fine now.


  • 4.  RE: Create Container API fails if version is 1.10.0, but is fine when incorrect version 1.8.0 is defined