Hello,
I'm using the following version of vmware products :
- vCloud Director 5.1.1.868405
- vCloudApi SDk PHP 1.5.0-472492
- vCloudApi SDK PHP 5.1.0-819742
I want to reconfigure an edgeGateway. I used the modify function of VMware_VCloud_SDK_EdgeGateway class. And I've recept that message :
the SDK send me a error but the reconfiguration of the edgeGateway has been done correctly.
So I studied the modify function :
public function modify($params)
{
$type = VMware_VCloud_SDK_Constants::EDGE_GATEWAYS_CONTENT_TYPE;
return $this->svc->put($this->url, 200, $type, $params);
}
It seems that the function wait for a 200 HTTP code and the API send a 202 (which is for an asynchroneous task and logical in our case). I changed the 200 by 202 and the function now works without problem.
Is it the good way to resolve the problems ?
Regards,
Yann CONAN