ovh\Cloud\CloudClient::getPcaTaskProperties PHP Method

getPcaTaskProperties() public method

public getPcaTaskProperties ( string $pp, string $pca, string $taskId ) : string
$pp string OVH cloud passport
$pca string PCA service name
$taskId string task ID
return string json encoded array)
    public function getPcaTaskProperties($pp, $pca, $taskId)
    {
        if (!$pp) {
            throw new BadMethodCallException('Missing parameter $pp (OVH cloud passport).');
        }
        if (!$pca) {
            throw new BadMethodCallException('Missing parameter $pca (PCA ServiceName).');
        }
        if (!$taskId) {
            throw new BadMethodCallException('Missing parameter $taskId (ID of the tasks).');
        }
        try {
            $r = $this->get('cloud/' . $pp . '/pca/' . $pca . '/tasks/' . $taskId)->send();
        } catch (\Exception $e) {
            throw new CloudException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }