2 Posts
0
1277
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
broermann
2 Posts
0
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
}
]
}