Ovh\Dedicated\Server\ServerClient::getTaskProperties PHP 메소드

getTaskProperties() 공개 메소드

Get task properties
public getTaskProperties ( $domain, $taskId ) : mixed
$domain
$taskId
리턴 mixed
    public function getTaskProperties($domain, $taskId)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        $taskId = (string) $taskId;
        if (!$taskId) {
            throw new BadMethodCallException('Parameter $taskId is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/task/' . $taskId)->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }