getIdentityEndpoint() public method

Gets OpenStack identity endpoint
public getIdentityEndpoint ( ) : string
return string Returns identity endpoint
Exemplo n.º 1
0
 /**
  * List tenants action
  *
  * @param   Marker $marker  Marker Data.
  * @return  array  Return tenants list
  */
 public function listTenants(Marker $marker = null)
 {
     $result = null;
     if ($marker !== null) {
         $options = $marker->getQueryData();
     } else {
         $options = array();
     }
     $response = $this->getClient()->call($this->config->getIdentityEndpoint(), '/tenants', $options);
     if ($response->hasError() === false) {
         $result = json_decode($response->getContent());
         $result = $result->tenants;
     }
     return $result;
 }