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

Public Member Functions

 listCertificatesCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName)
 List certificates for a specified hosted service in a specified subscription.
 
 addCertificateCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $certificateLocation, $certificatePassword, $waitForOperation=false)
 Add a certificate for a specified hosted service in a specified subscription.
 
 getCertificateCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $thumbprint, $algorithm="sha1")
 Gets a certificate from a specified hosted service in a specified subscription.
 
 getCertificatePropertyCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $thumbprint, $algorithm="sha1", $property)
 Gets a certificate property from a specified hosted service in a specified subscription.
 
 deleteCertificateCommand ($subscriptionId, $certificate, $certificatePassphrase, $serviceName, $thumbprint, $algorithm="sha1", $waitForOperation=false)
 Deletes a certificate from a specified hosted service in a specified subscription.
 

Member Function Documentation

addCertificateCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $certificateLocation,
  $certificatePassword,
  $waitForOperation = false 
)

Add a certificate for a specified hosted service in a specified subscription.

-name Add -description Add a certificate for a specified hosted service in 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. -parameter-for $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –ServiceName|-sn Required. The name of the hosted service. -parameter-for $certificateLocation Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateLocation Required. Path to the .pfx certificate to be added. -parameter-for $certificatePassword Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Prompt –CertificatePassword Required. The password for the certificate that will be added. -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 Add certificates for service name "phptest": -example Add -sid:"<your_subscription_id>" -cert:"mycert.pem" -sn:"phptest" –CertificateLocation:"cert.pfx" –CertificatePassword:"certpassword"

deleteCertificateCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $thumbprint,
  $algorithm = "sha1",
  $waitForOperation = false 
)

Deletes a certificate from a specified hosted service in a specified subscription.

-name Delete -description Deletes a certificate from a specified hosted service in 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. -parameter-for $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –ServiceName|-sn Required. The name of the hosted service. -parameter-for $thumbprint Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateThumbprint Required. The certificate thumbprint for which to retrieve the certificate. -parameter-for $algorithm Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateAlgorithm Required. The certificate's algorithm. -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 Get certificate for service name "phptest": -example Get -sid:"<your_subscription_id>" -cert:"mycert.pem" -sn:"phptest" –CertificateThumbprint:"<thumbprint>" –CertificateAlgorithm:"sha1"

getCertificateCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $thumbprint,
  $algorithm = "sha1" 
)

Gets a certificate from a specified hosted service in a specified subscription.

-name Get -description Gets a certificate from a specified hosted service in 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. -parameter-for $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –ServiceName|-sn Required. The name of the hosted service. -parameter-for $thumbprint Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateThumbprint Required. The certificate thumbprint for which to retrieve the certificate. -parameter-for $algorithm Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateAlgorithm Required. The certificate's algorithm. -example Get certificate for service name "phptest": -example Get -sid:"<your_subscription_id>" -cert:"mycert.pem" -sn:"phptest" –CertificateThumbprint:"<thumbprint>" –CertificateAlgorithm:"sha1"

getCertificatePropertyCommand (   $subscriptionId,
  $certificate,
  $certificatePassphrase,
  $serviceName,
  $thumbprint,
  $algorithm = "sha1",
  $property 
)

Gets a certificate property from a specified hosted service in a specified subscription.

-name GetProperty -description Gets a certificate property from a specified hosted service in 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. -parameter-for $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –ServiceName|-sn Required. The name of the hosted service. -parameter-for $thumbprint Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateThumbprint Required. The certificate thumbprint for which to retrieve the certificate. -parameter-for $algorithm Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –CertificateAlgorithm Required. The certificate's algorithm. -parameter-for $property Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile –Property|-prop Required. The property to retrieve for the certificate. -example Get certificate for service name "phptest": -example Get -sid:"<your_subscription_id>" -cert:"mycert.pem" -sn:"phptest" –CertificateThumbprint:"<thumbprint>" –CertificateAlgorithm:"sha1"

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

List certificates for a specified hosted service in a specified subscription.

-name List -description List certificates for a specified hosted service in 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. -parameter-for $serviceName Zend_Service_Console_Command_ParameterSource_Argv|Zend_Service_Console_Command_ParameterSource_ConfigFile|Zend_Service_Console_Command_ParameterSource_Env –ServiceName|-sn Required. The name of the hosted service. -example List certificates for service name "phptest": -example List -sid:"<your_subscription_id>" -cert:"mycert.pem" -sn:"phptest"