Zend Framework  1.12
Public Member Functions | List of all members
Zend_Service_WindowsAzure_CommandLine_Storage Class Reference

Public Member Functions

 listAccountsCommand ($subscriptionId, $certificate, $certificatePassphrase)
 List storage accounts for a specified subscription.
 
 getPropertiesCommand ($subscriptionId, $certificate, $certificatePassphrase, $accountName)
 Get storage account properties.
 
 getPropertyCommand ($subscriptionId, $certificate, $certificatePassphrase, $accountName, $property)
 Get storage account property.
 
 getKeysCommand ($subscriptionId, $certificate, $certificatePassphrase, $accountName)
 Get storage account keys.
 
 getKeyCommand ($subscriptionId, $certificate, $certificatePassphrase, $accountName, $key= 'primary')
 Get storage account key.
 
 regenerateKeysCommand ($subscriptionId, $certificate, $certificatePassphrase, $accountName, $key= 'primary', $waitForOperation=false)
 Regenerate storage account keys.
 

Member Function Documentation

getKeyCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $accountName,
  $key = 'primary' 
)

Get storage account key.

-name GetKey -description Get storage account key. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -parameter-for $accountName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –AccountName Required. The storage account name to operate on. -parameter-for $key Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Key|-k Optional. Specifies the key to regenerate (primary|secondary). If omitted, primary key is used as the default. -example Get primary storage account key for account "phptest": -example GetKey -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –AccountName:"phptest" -Key:primary

getKeysCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $accountName 
)

Get storage account keys.

-name GetKeys -description Get storage account keys. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -parameter-for $accountName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –AccountName Required. The storage account name to operate on. -example Get storage account keys for account "phptest": -example GetKeys -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –AccountName:"phptest"

getPropertiesCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $accountName 
)

Get storage account properties.

-name GetProperties -description Get storage account properties. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -parameter-for $accountName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –AccountName Required. The storage account name to operate on. -example Get storage account properties for account "phptest": -example GetProperties -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –AccountName:"phptest"

getPropertyCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $accountName,
  $property 
)

Get storage account property.

-name GetProperty -description Get storage account property. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -parameter-for $accountName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –AccountName Required. The storage account name to operate on. -parameter-for $property Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Property|-prop Required. The property to retrieve for the storage account. -example Get storage account property "Url" for account "phptest": -example GetProperty -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –AccountName:"phptest" –Property:Url

listAccountsCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase 
)

List storage accounts for a specified subscription.

-name ListAccounts -description List storage accounts for a specified subscription. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -example List storage accounts for subscription: -example ListAccounts -sid:"<your_subscription_id>" -cert:"mycert.pem"

regenerateKeysCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $accountName,
  $key = 'primary',
  $waitForOperation = false 
)

Regenerate storage account keys.

-name RegenerateKeys -description Regenerate storage account keys. -parameter-for $subscriptionId Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –SubscriptionId|-sid Required. This is the Windows Azure Subscription Id to operate on. -parameter-for $certificate Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Certificate|-cert Required. This is the .pem certificate that user has uploaded to Windows Azure subscription as Management Certificate. -parameter-for $certificatePassphrase Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –Passphrase|-p Required. The certificate passphrase. If not specified, a prompt will be displayed. -parameter-for $accountName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –AccountName Required. The storage account name to operate on. -parameter-for $key Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Key|-k Optional. Specifies the key to regenerate (primary|secondary). If omitted, primary key is used as the default. -parameter-for $waitForOperation Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –WaitFor|-w Optional. Wait for the operation to complete? -example Regenerate secondary key for account "phptest": -example RegenerateKeys -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –AccountName:"phptest" -Key:secondary