ovh\Cloud\CloudClient::createPcaDeleteTask PHP Méthode

createPcaDeleteTask() public méthode

public createPcaDeleteTask ( string $pp, string $pca, string $sessionId ) : string
$pp string OVH cloud passport
$pca string PCA service name
$sessionId string session id to delete
Résultat string json encoded array
    public function createPcaDeleteTask($pp, $pca, $sessionId)
    {
        if (!$pp) {
            throw new BadMethodCallException('Missing parameter $pp (OVH cloud passport).');
        }
        if (!$pca) {
            throw new BadMethodCallException('Missing parameter $pca (PCA ServiceName).');
        }
        if (!$sessionId) {
            throw new BadMethodCallException('Missing parameter $sessionId (string).');
        }
        try {
            $r = $this->delete('cloud/' . $pp . '/pca/' . $pca . '/sessions/' . $sessionId)->send();
        } catch (\Exception $e) {
            throw new CloudException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }