ovh\Cloud\CloudClient::getPcaSessionFilesProperties PHP Method

getPcaSessionFilesProperties() public method

public getPcaSessionFilesProperties ( string $pp, string $pca, string $sessId, string $fileId ) : string
$pp string OVH cloud passport
$pca string PCA service name
$sessId string PCA service name
$fileId string PCA service name
return string (json encoded array)
    public function getPcaSessionFilesProperties($pp, $pca, $sessId, $fileId)
    {
        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).');
        }
        if (!$fileId) {
            throw new BadMethodCallException('Missing parameter $fileId (file ID).');
        }
        try {
            $r = $this->get('cloud/' . $pp . '/pca/' . $pca . '/sessions/' . $sessId . '/files/' . $fileId)->send();
        } catch (\Exception $e) {
            throw new CloudException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }