Closed mshannaq closed 5 months ago
getServer
just creates a resource, without retrieving it in case you want to manage it somehow - like delete.
you should call $server->retrieve();
to fetch information about the server from API.
getServer
just creates a resource, without retrieving it in case you want to manage it somehow - like delete. you should call$server->retrieve();
to fetch information about the server from API.
@k0ka
now $server->retrieve();
return null
$compute = $openstack->computeV2();
$server = $compute->getServer(['id' => 'd1baf6a6-1d5b-477e-846f-3dad86c9d2d7'])->retrieve();
dd($server);
$compute = $openstack->computeV2();
$server = $compute->getServer(['id' => 'd1baf6a6-1d5b-477e-846f-3dad86c9d2d7']);
$server->retrieve();
dd($server);
If I want to know specific data about the server for example status or addresses I got null values.
I use the code:
the returned values as null as of:
any body know why they return
null
evenstatus: null
while the server is running okaywhen I run the OpenStack CLI
openstack server show d1baf6a6-server-id-here
it run okay and give me valid values like
if I run
$servers = $compute->listServers();
i get a list of server okay but the servers data still null as aboveThanks alot.