Services
A service is an OpenStack web service that you can access through a URL, i.e. an endpoint.
More information can be found in the official documentation.
In order to work with services you have to create the service first.
Create
$identity = $openstack->identityV3();
$service = $identity->createService([
'name' => '{serviceName}',
'type' => '{serviceType}',
]);
Read
$identity = $openstack->identityV3();
$service = $identity->getService('{serviceId}');
$service->retrieve();
Update
$identity = $openstack->identityV3();
$service = $identity->getService('{serviceId}');
$service->description = '{description}';
$service->update();
Delete
$identity = $openstack->identityV3();
$service = $identity->getService('{serviceId}');
$service->delete();
List
$identity = $openstack->identityV3();
foreach ($identity->listServices() as $service) {
/** @var $service \OpenStack\Identity\v3\Models\Service */
}