public function get($actionPath, $params = [])
    {
        if (!is_array($params)) {
            $errorMessage = 'GET params should be an associative array.';
            throw new \InvalidArgumentException($errorMessage);
        }

        // Check if we have a prefixed '/' on the path, if not add one.
        if (substr($actionPath, 0, 1) != '/') {
            $actionPath = '/' . $actionPath;
        }

        $response = $this->requestResource($actionPath, $params);
        return $this->processHttpResponse($response);
    }
public function get($actionPath, $params = [])
    {
        if (!is_array($params)) {
            $errorMessage = 'GET params should be an associative array.';
            throw new \InvalidArgumentException($errorMessage);
        }

        // Check if we have a prefixed '/' on the path, if not add one.
        if (substr($actionPath, 0, 1) != '/') {
            $actionPath = '/' . $actionPath;
        }

        $response = $this->requestResource($actionPath, $params);
        return $this->processHttpResponse($response);
    }
public function get ( $ actionPath , $ params = [ ] ) { if ( ! is_array ( $ params ) ) { $ errorMessage = 'GET params should be an associative array.' ; throw new \ InvalidArgumentException ( $ errorMessage ) ; } // Check if we have a prefixed '/' on the path, if not add one. if ( substr ( $ actionPath , 0 , 1 ) != '/' ) { $ actionPath = '/' . $ actionPath ; } $ response = $ this -> requestResource ( $ actionPath , $ params ) ; return $ this -> processHttpResponse ( $ response ) ; }
GET a resource defined in the pvesh tool.

@param string $actionPath The resource tree path you want to ask for, see
more at http://pve.proxmox.com/pve2-api-doc/
@param array $params      An associative array filled with params.

@return array             A PHP array json_decode($response, true).

@throws \InvalidArgumentException If given params are not an array.
GET a resource defined in the pvesh tool .