src/ServiceManagement/ServiceManagementRestProxy.php
public function regenerateStorageServiceKeys($name, $keyType)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isString($keyType, 'keyType');
        Validate::notNullOrEmpty($keyType, 'keyType');

        $body = $this->_createRequestXml(
            [Resources::XTAG_KEY_TYPE => $keyType],
            Resources::XTAG_REGENERATE_KEYS
        );

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getStorageServiceKeysPath($name));
        $context->addStatusCode(Resources::STATUS_OK);
        $context->addQueryParameter(Resources::QP_ACTION, Resources::QPV_REGENERATE);
        $context->setBody($body);
        $context->addHeader(
            Resources::CONTENT_TYPE,
            Resources::XML_CONTENT_TYPE
        );

        $response = $this->sendHttpContext($context);
        $parsed = $this->dataSerializer->unserialize($response->getBody());

        return GetStorageServiceKeysResult::create($parsed);
    }
public function regenerateStorageServiceKeys($name, $keyType)
    {
        Validate::isString($name, 'name');
        Validate::notNullOrEmpty($name, 'name');
        Validate::isString($keyType, 'keyType');
        Validate::notNullOrEmpty($keyType, 'keyType');

        $body = $this->_createRequestXml(
            [Resources::XTAG_KEY_TYPE => $keyType],
            Resources::XTAG_REGENERATE_KEYS
        );

        $context = new HttpCallContext();
        $context->setMethod(Resources::HTTP_POST);
        $context->setPath($this->_getStorageServiceKeysPath($name));
        $context->addStatusCode(Resources::STATUS_OK);
        $context->addQueryParameter(Resources::QP_ACTION, Resources::QPV_REGENERATE);
        $context->setBody($body);
        $context->addHeader(
            Resources::CONTENT_TYPE,
            Resources::XML_CONTENT_TYPE
        );

        $response = $this->sendHttpContext($context);
        $parsed = $this->dataSerializer->unserialize($response->getBody());

        return GetStorageServiceKeysResult::create($parsed);
    }
public function regenerateStorageServiceKeys ( $ name , $ keyType ) { Validate :: isString ( $ name , 'name' ) ; Validate :: notNullOrEmpty ( $ name , 'name' ) ; Validate :: isString ( $ keyType , 'keyType' ) ; Validate :: notNullOrEmpty ( $ keyType , 'keyType' ) ; $ body = $ this -> _createRequestXml ( [ Resources :: XTAG_KEY_TYPE => $ keyType ] , Resources :: XTAG_REGENERATE_KEYS ) ; $ context = new HttpCallContext ( ) ; $ context -> setMethod ( Resources :: HTTP_POST ) ; $ context -> setPath ( $ this -> _getStorageServiceKeysPath ( $ name ) ) ; $ context -> addStatusCode ( Resources :: STATUS_OK ) ; $ context -> addQueryParameter ( Resources :: QP_ACTION , Resources :: QPV_REGENERATE ) ; $ context -> setBody ( $ body ) ; $ context -> addHeader ( Resources :: CONTENT_TYPE , Resources :: XML_CONTENT_TYPE ) ; $ response = $ this -> sendHttpContext ( $ context ) ; $ parsed = $ this -> dataSerializer -> unserialize ( $ response -> getBody ( ) ) ; return GetStorageServiceKeysResult :: create ( $ parsed ) ; }
Regenerates the primary or secondary access key for the specified storage
account.

@param string $name    The storage account name
@param string $keyType Specifies which key to regenerate

@return GetStorageServiceKeysResult

@see http://msdn.microsoft.com/en-us/library/windowsazure/ee460795.aspx
Regenerates the primary or secondary access key for the specified storage account .