ovh\Cloud\CloudClient::getPcaSessionProperties PHP Метод

getPcaSessionProperties() публичный Метод

public getPcaSessionProperties ( string $pp, string $pca, string $sessId ) : string
$pp string OVH cloud passport
$pca string PCA service name
$sessId string PCA service name
Результат string (json encoded object)
    public function getPcaSessionProperties($pp, $pca, $sessId)
    {
        if (!$pp) {
            throw new BadMethodCallException('Missing parameter $pp (OVH cloud passport).');
        }
        if (!$pca) {
            throw new BadMethodCallException('Missing parameter $pca (PCA ServiceName).');
        }
        if (!$sessId) {
            throw new BadMethodCallException('Missing parameter $sessId (PCA Session ID).');
        }
        try {
            $r = $this->get('cloud/' . $pp . '/pca/' . $pca . '/sessions/' . $sessId)->send();
        } catch (\Exception $e) {
            throw new CloudException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }