object(Guzzle\Service\Resource\Model)#97 (2) { ["structure":protected]=> NULL ["data":protected]=> Array(THE DATA YOU NEED TO ACCESS HERE) }
Here my sample, call to describe the ec2 instance.
Reference Stackoverflow.com$result = $client->describeInstances(); var_dump($result); // Display the result in Guzzle\Service\Resource\Model $response = $result->toArray(); // Convert the protected data, into array // Display the intance IP information. var_dump($response['Reservations'][0]['Instances'][0]['NetworkInterfaces'][0]['PrivateIpAddresses']);
No comments:
Post a Comment