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

Public Member Functions

 listCommand ($subscriptionId, $certificate, $certificatePassphrase)
 List hosted service accounts for a specified subscription.
 
 getPropertiesCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName)
 Get hosted service account properties.
 
 getPropertyCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $property)
 Get hosted service account property.
 
 createCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $label, $description, $location, $affinityGroup, $waitForOperation=false)
 Create hosted service account.
 
 updateCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $label, $description, $waitForOperation=false)
 Update hosted service account.
 
 deleteCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $waitForOperation=false)
 Delete hosted service account.
 

Member Function Documentation

createCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $label,
  $description,
  $location,
  $affinityGroup,
  $waitForOperation = false 
)

Create hosted service account.

-name Create -description Create hosted service account. -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 $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Name Required. The hosted service account name. -parameter-for $label Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Label Required. A label for the hosted service. -parameter-for $description Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Description Optional. A description for the hosted service. -parameter-for $location Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Location Required if AffinityGroup is not specified. The location where the hosted service will be created. -parameter-for $affinityGroup Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –AffinityGroup Required if Location is not specified. The name of an existing affinity group associated with this subscription. -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 Create hosted service account in West Europe -example Create -p:"phpazure" –Name:"phptestsdk2" –Label:"phptestsdk2" –Location:"West Europe"

deleteCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $waitForOperation = false 
)

Delete hosted service account.

-name Delete -description Delete hosted service account. -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 $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Name Required. The hosted service account name. -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 Delete hosted service -example Delete -p:"phpazure" –Name:"phptestsdk2"

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

Get hosted service account properties.

-name GetProperties -description Get hosted service 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 $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Name Required. The hosted service account name to operate on. -example Get hosted service account properties for service "phptest": -example GetProperties -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –Name:"phptest"

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

Get hosted service 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 $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –Name Required. The hosted service 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 hosted service account. -example Get hosted service account property "Url" for service "phptest": -example GetProperty -sid:"<your_subscription_id>" -cert:"mycert.pem" -example –Name:"phptest" –Property:Url

listCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase 
)

List hosted service accounts for a specified subscription.

-name List -description List hosted service 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 hosted service accounts for subscription: -example List -sid:"<your_subscription_id>" -cert:"mycert.pem"

updateCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $label,
  $description,
  $waitForOperation = false 
)

Update hosted service account.

-name Update -description Update hosted service account. -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 $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Name Required. The hosted service account name. -parameter-for $label Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Label Required. A label for the hosted service. -parameter-for $description Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Description Optional. A description for the hosted service. -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 Update hosted service -example Update -p:"phpazure" –Name:"phptestsdk2" –Label:"New label" –Description:"Some description"