Start a Conversation

Solved!

Go to Solution

1277

August 31st, 2018 03:00

Unity API Request body Question - Connect CG to host

Hello,

I try to connect  a ConsistencyGroup "res15" to a Host with "Host_12" in my case.

What ist the right  format of the Request body?

Headers

Accept: application/json

Content-Type: application/json

X-EMC-REST-CLIENT: true

EMC-CSRF-TOKEN:

Request body

{

  "blockHostAccess": {

    "host": "Host_12",

    "accessMask": 1

  }

}

Request

POST /api/instances/storageResource/res_15/action/modifyConsistencyGroup

Response

{

  "error": {

    "errorCode": 131149877,

    "httpStatusCode": 422,

    "messages": [

      {

        "en-US": "Request body is not correct. There may be duplicate parameters, wrong parameter name. Please refer to API documentation page and ensure the body is correct. (Error Code:0x7d13035)"

      }

    ],

    "created": "2018-08-31T10:34:37.336Z"

  }

}

My enviroment is:

{ "model": "Unity 450F",  "softwareVersion": "4.3.1", "apiVersion": "7.0"}

Thank you. Bernd

2 Posts

September 3rd, 2018 05:00

I found the right answer for myself.

The requestbody should look like this:

Request body

{

  "blockHostAccess": [

    {

      "host": {

        "id": "Host_12"

      },

      "accessMask": 0

    }

  ]

}

No Events found!

Top