src/Api/Policy.php
public function get($vhost, $name = null)
    {
        if ($name) {
            return $this->client->send(sprintf('/api/policies/%s/%s', urlencode($vhost), urlencode($name)));
        }

        return $this->client->send(sprintf('/api/policies/%s', urlencode($vhost)));
    }
public function get($vhost, $name = null)
    {
        if ($name) {
            return $this->client->send(sprintf('/api/policies/%s/%s', urlencode($vhost), urlencode($name)));
        }

        return $this->client->send(sprintf('/api/policies/%s', urlencode($vhost)));
    }
public function get ( $ vhost , $ name = null ) { if ( $ name ) { return $ this -> client -> send ( sprintf ( '/api/policies/%s/%s' , urlencode ( $ vhost ) , urlencode ( $ name ) ) ) ; } return $ this -> client -> send ( sprintf ( '/api/policies/%s' , urlencode ( $ vhost ) ) ) ; }
A list of all policies in a given virtual host.

OR

An individual policy.

@param string $vhost
@param string|null $name
@return array
A list of all policies in a given virtual host .