Scalr\Service\Azure::unregisterSubscription PHP Метод

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

Unregister a subscription from a resource provider.
public unregisterSubscription ( string $subscriptionId, string $resourceProvider ) : Scalr\Service\Azure\DataType\ProviderData
$subscriptionId string subscription::subscriptionId value of one of user's subscriptions
$resourceProvider string The namespace of the resource provider with which you want to unregister from your subscription
Результат Scalr\Service\Azure\DataType\ProviderData
    public function unregisterSubscription($subscriptionId, $resourceProvider)
    {
        $result = null;
        $path = '/subscriptions/' . $subscriptionId . '/providers/' . $resourceProvider . '/unregister';
        $request = $this->getClient()->prepareRequest($path, 'POST', self::SUBSCRIPTION_API_VERSION, self::URL_MANAGEMENT_WINDOWS);
        $response = $this->getClient()->call($request);
        if (!$response->hasError()) {
            $result = ProviderData::initArray($response->getResult());
        }
        return $result;
    }