Service/WindowsAzure/Management/Client.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_WindowsAzure
- Subpackage
- Management
- Version
- $Id$
\Zend_Service_WindowsAzure_Management_Client
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties

string $_certificatePassphrase = ''''Details- Type
- string

\Zend_Http_Client $_httpClientChannel = nullnullDetails
\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $_retryPolicy = nullnullDetailsMethods

__construct(string $subscriptionId, string $certificatePath, string $certificatePassphrase, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null) : voidCreates a new Zend_Service_WindowsAzure_Management instance
| Name | Type | Description |
|---|---|---|
| $subscriptionId | string | Subscription ID |
| $certificatePath | string | Management certificate path (.PEM) |
| $certificatePassphrase | string | Management certificate passphrase |
| $retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |

_cleanConfiguration(string $configuration) : stringClean configuration
| Name | Type | Description |
|---|---|---|
| $configuration | string | Configuration to clean. |
| Type | Description |
|---|---|
| string |

_configureDeployment(string $operationUrl, string $configuration) : voidThe Change Deployment Configuration request may be specified as follows.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| $configuration | string | XML configuration represented as a string |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_convertXmlElementToDeploymentInstance(object $xmlService) : \Zend_Service_WindowsAzure_Management_DeploymentInstanceConverts an XmlElement into a Zend_Service_WindowsAzure_Management_DeploymentInstance
| Name | Type | Description |
|---|---|---|
| $xmlService | object | The XML Element |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_DeploymentInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_deleteDeployment(string $operationUrl) : voidThe Delete Deployment operation deletes the specified deployment.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_getDeployment(string $operationUrl) : \Zend_Service_WindowsAzure_Management_DeploymentInstanceThe Get Deployment operation returns configuration information, status, and system properties for the specified deployment.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_DeploymentInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_getErrorMessage(\Zend_Http_Response $response, string $alternativeError = 'Unknown error.') : stringGet error message from Zend_Http_Response
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Http_Response | Repsonse |
| $alternativeError | string | Alternative error message |
| Type | Description |
|---|---|
| string |

_parseResponse(\Zend_Http_Response $response = null) : objectParse result from Zend_Http_Response
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Http_Response | Response from HTTP call |
| Type | Description |
|---|---|
| object |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Exception |

_performRequest(string $path = '/', string $queryString = '', string $httpVerb = \Zend_Http_Client::GET, array $headers = array(), mixed $rawData = null) : \Zend_Http_ResponsePerform request using Zend_Http_Client channel
| Name | Type | Description |
|---|---|---|
| $path | string | Path |
| $queryString | string | Query string |
| $httpVerb | string | HTTP verb the request will use |
| $headers | array | x-ms headers to add |
| $rawData | mixed | Optional RAW HTTP data to be sent over the wire |
| Type | Description |
|---|---|
| \Zend_Http_Response |

_rebootOrReimageRoleInstance(string $operationUrl, string $operation = 'reboot') : voidReboots or reimages a role instance.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| $operation | string | The operation (reboot|reimage) |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_updateDeploymentStatus(string $operationUrl, string $status = 'running') : voidThe Update Deployment Status operation initiates a change in deployment status.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| $status | string | The deployment status (running|suspended) |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_updateInstanceCountInConfiguration(string | array $roleName, string | array $instanceCount, string $configuration) : voidUpdates instance count in configuration XML.
| Name | Type | Description |
|---|---|---|
| $roleName | string | array | The role name |
| $instanceCount | string | array | The instance count |
| $configuration | string | XML configuration represented as a string |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_upgradeDeployment(string $operationUrl, string $label, string $packageUrl, string $configuration, string $mode, string $roleToUpgrade) : voidThe Upgrade Deployment operation initiates an upgrade.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| $label | string | A URL that refers to the location of the service package in the Blob service. The service package must be located in a storage account beneath the same subscription. |
| $packageUrl | string | The service configuration file for the deployment. |
| $configuration | string | A label for this deployment, up to 100 characters in length. |
| $mode | string | The type of upgrade to initiate. Possible values are Auto or Manual. |
| $roleToUpgrade | string | The name of the specific role to upgrade. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

_walkUpgradeDomain(string $operationUrl, int $upgradeDomain = 0) : voidThe Walk Upgrade Domain operation specifies the next upgrade domain to be walked during an in-place upgrade.
| Name | Type | Description |
|---|---|---|
| $operationUrl | string | The operation url |
| $upgradeDomain | int | An integer value that identifies the upgrade domain to walk. Upgrade domains are identified with a zero-based index: the first upgrade domain has an ID of 0, the second has an ID of 1, and so on. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

addCertificate(string $serviceName, string $certificateData, string $certificatePassword, string $certificateFormat = 'pfx') : voidThe Add Certificate operation adds a certificate to the subscription.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $certificateData | string | Certificate data |
| $certificatePassword | string | The certificate password |
| $certificateFormat | string | The certificate format. Currently, only 'pfx' is supported. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

configureDeploymentByDeploymentId(string $serviceName, string $deploymentId, string $configuration) : voidThe Change Deployment Configuration request may be specified as follows.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $configuration | string | XML configuration represented as a string |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

configureDeploymentBySlot(string $serviceName, string $deploymentSlot, string $configuration) : voidThe Change Deployment Configuration request may be specified as follows.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $configuration | string | XML configuration represented as a string |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

createAffinityGroup(string $name, string $label, string $description = '', string $location = '') : voidThe Create Affinity Group operation creates a new affinity group for the specified subscription.
| Name | Type | Description |
|---|---|---|
| $name | string | A name for the affinity group that is unique to the subscription. |
| $label | string | A label for the affinity group. The label may be up to 100 characters in length. |
| $description | string | A description for the affinity group. The description may be up to 1024 characters in length. |
| $location | string | The location where the affinity group will be created. To list available locations, use the List Locations operation. |

createBlobClientForService(string $serviceName, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null) : \Zend_Service_WindowsAzure_Storage_BlobCreates a new Zend_Service_WindowsAzure_Storage_Blob instance for the current account
| Name | Type | Description |
|---|---|---|
| $serviceName | string | the service name to create a storage client for. |
| $retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Storage_Blob |

createDeployment(string $serviceName, string $deploymentSlot, string $name, string $label, string $packageUrl, string $configuration, boolean $startDeployment = false, boolean $treatWarningsAsErrors = false) : voidThe Create Deployment operation uploads a new service package and creates a new deployment on staging or production.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $name | string | The name for the deployment. The deployment ID as listed on the Windows Azure management portal must be unique among other deployments for the hosted service. |
| $label | string | A URL that refers to the location of the service package in the Blob service. The service package must be located in a storage account beneath the same subscription. |
| $packageUrl | string | The service configuration file for the deployment. |
| $configuration | string | A label for this deployment, up to 100 characters in length. |
| $startDeployment | boolean | Indicates whether to start the deployment immediately after it is created. |
| $treatWarningsAsErrors | boolean | Indicates whether to treat package validation warnings as errors. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

createHostedService(string $serviceName, string $label, string $description = '', string $location = null, string $affinityGroup = null) : voidThe Create Hosted Service operation creates a new hosted service in Windows Azure.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | A name for the hosted service that is unique to the subscription. |
| $label | string | A label for the hosted service. The label may be up to 100 characters in length. |
| $description | string | A description for the hosted service. The description may be up to 1024 characters in length. |
| $location | string | Required if AffinityGroup is not specified. The location where the hosted service will be created. |
| $affinityGroup | string | Required if Location is not specified. The name of an existing affinity group associated with this subscription. |

createQueryStringFromArray( $queryString) : stringBuilds a query string from an array of elements
| Name | Type | Description |
|---|---|---|
| $queryString |
| Type | Description |
|---|---|
| string | Assembled query string |

createQueueClientForService(string $serviceName, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null) : \Zend_Service_WindowsAzure_Storage_QueueCreates a new Zend_Service_WindowsAzure_Storage_Queue instance for the current account
| Name | Type | Description |
|---|---|---|
| $serviceName | string | the service name to create a storage client for. |
| $retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Storage_Queue |

createTableClientForService(string $serviceName, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null) : \Zend_Service_WindowsAzure_Storage_TableCreates a new Zend_Service_WindowsAzure_Storage_Table instance for the current account
| Name | Type | Description |
|---|---|---|
| $serviceName | string | the service name to create a storage client for. |
| $retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Storage_Table |

deleteAffinityGroup(string $name) : voidThe Delete Affinity Group operation deletes an affinity group in the specified subscription.
| Name | Type | Description |
|---|---|---|
| $name | string | The name for the affinity group that should be deleted. |

deleteCertificate( $serviceName, string $algorithm = '', string $thumbprint = '') : voidThe Delete Certificate operation deletes a certificate from the subscription's certificate store.
| Name | Type | Description |
|---|---|---|
| $serviceName | ||
| $algorithm | string | Algorithm |
| $thumbprint | string | Thumbprint |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

deleteDeploymentByDeploymentId(string $serviceName, string $deploymentId) : voidThe Delete Deployment operation deletes the specified deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

deleteDeploymentBySlot(string $serviceName, string $deploymentSlot) : voidThe Delete Deployment operation deletes the specified deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

deleteHostedService(string $serviceName) : voidThe Delete Hosted Service operation deletes the specified hosted service in Windows Azure.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | A name for the hosted service that is unique to the subscription. |

getAffinityGroupProperties(string $affinityGroupName) : \Zend_Service_WindowsAzure_Management_AffinityGroupInstanceThe Get Affinity Group Properties operation returns the system properties associated with the specified affinity group.
| Name | Type | Description |
|---|---|---|
| $affinityGroupName | string | The affinity group name. |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_AffinityGroupInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getCertificate( $serviceName, string $algorithm = '', string $thumbprint = '') : \Zend_Service_WindowsAzure_Management_CertificateInstanceThe Get Certificate operation returns the public data for the specified certificate.
| Name | Type | Description |
|---|---|---|
| $serviceName | ||
| $algorithm | string | Algorithm |
| $thumbprint | string | Thumbprint |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_CertificateInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getDeploymentByDeploymentId(string $serviceName, string $deploymentId) : \Zend_Service_WindowsAzure_Management_DeploymentInstanceThe Get Deployment operation returns configuration information, status, and system properties for the specified deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_DeploymentInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getDeploymentBySlot(string $serviceName, string $deploymentSlot) : \Zend_Service_WindowsAzure_Management_DeploymentInstanceThe Get Deployment operation returns configuration information, status, and system properties for the specified deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_DeploymentInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getHostedServiceProperties(string $serviceName) : \Zend_Service_WindowsAzure_Management_HostedServiceInstanceThe Get Hosted Service Properties operation retrieves system properties for the specified hosted service. These properties include the service name and service type; the name of the affinity group to which the service belongs, or its location if it is not part of an affinity group; and optionally, information on the service's deployments.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The name of your service. |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_HostedServiceInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getHttpClientChannel() : \Zend_Http_Client_Adapter_InterfaceRetrieve HTTP client channel
| Type | Description |
|---|---|
| \Zend_Http_Client_Adapter_Interface |

getOperationStatus(string $requestId = '') : \Zend_Service_WindowsAzure_Management_OperationStatusInstanceThe Get Operation Status operation returns the status of the specified operation.
| Name | Type | Description |
|---|---|---|
| $requestId | string | The request ID. If omitted, the last request ID will be used. |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_OperationStatusInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getStorageAccountKeys(string $serviceName) : arrayThe Get Storage Keys operation returns the primary and secondary access keys for the specified storage account.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The name of your service. |
| Type | Description |
|---|---|
| array | An array of strings |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

getStorageAccountProperties(string $serviceName) : \Zend_Service_WindowsAzure_Management_StorageServiceInstanceThe Get Storage Account Properties operation returns the system properties for the specified storage account. These properties include: the address, description, and label of the storage account; and the name of the affinity group to which the service belongs, or its geo-location if it is not part of an affinity group.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The name of your service. |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_StorageServiceInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listAffinityGroups() : arrayThe List Affinity Groups operation lists the affinity groups associated with the specified subscription.
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_AffinityGroupInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listCertificates(string $serviceName) : arrayThe List Certificates operation lists all certificates associated with the specified hosted service.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_CertificateInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listHostedServices() : arrayThe List Hosted Services operation lists the hosted services available under the current subscription.
| Type | Description |
|---|---|
| array | An array of Zend_Service_WindowsAzure_Management_HostedServiceInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listLocations() : arrayThe List Locations operation lists all of the data center locations that are valid for your subscription.
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_LocationInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listOperatingSystemFamilies() : arrayThe List OS Families operation lists the guest operating system families available in Windows Azure, and also lists the operating system versions available for each family. Currently Windows Azure supports two operating system families: the Windows Azure guest operating system that is substantially compatible with Windows Server 2008 SP2, and the Windows Azure guest operating system that is substantially compatible with Windows Server 2008 R2.
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_OperatingSystemFamilyInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listOperatingSystems() : arrayThe List Operating Systems operation lists the versions of the guest operating system that are currently available in Windows Azure. The 2010-10-28 version of List Operating Systems also indicates what family an operating system version belongs to.
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_OperatingSystemInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

listStorageAccounts() : arrayThe List Storage Accounts operation lists the storage accounts available under the current subscription.
| Type | Description |
|---|---|
| array | An array of Zend_Service_WindowsAzure_Management_StorageServiceInstance |

listSubscriptionOperations(string $startTime, string $endTime, string $objectIdFilter = null, string $operationResultFilter = null, string $continuationToken = null) : arrayThe List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe.
| Name | Type | Description |
|---|---|---|
| $startTime | string | The start of the timeframe to begin listing subscription operations in UTC format. This parameter and the $endTime parameter indicate the timeframe to retrieve subscription operations. This parameter cannot indicate a start date of more than 90 days in the past. |
| $endTime | string | The end of the timeframe to begin listing subscription operations in UTC format. This parameter and the $startTime parameter indicate the timeframe to retrieve subscription operations. |
| $objectIdFilter | string | Returns subscription operations only for the specified object type and object ID. |
| $operationResultFilter | string | Returns subscription operations only for the specified result status, either Succeeded, Failed, or InProgress. |
| $continuationToken | string | Internal usage. |
| Type | Description |
|---|---|
| array | Array of Zend_Service_WindowsAzure_Management_SubscriptionOperationInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

rebootRoleInstanceByDeploymentId(string $serviceName, string $deploymentId, string $roleInstanceName) : voidThe Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $roleInstanceName | string | The role instance name |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

rebootRoleInstanceBySlot(string $serviceName, string $deploymentSlot, string $roleInstanceName) : voidThe Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $roleInstanceName | string | The role instance name |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

regenerateStorageAccountKey(string $serviceName, string $key = 'primary') : arrayThe Regenerate Keys operation regenerates the primary or secondary access key for the specified storage account.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The name of your service. |
| $key | string | The key to regenerate (primary or secondary) |
| Type | Description |
|---|---|
| array | An array of strings |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

reimageRoleInstanceByDeploymentId(string $serviceName, string $deploymentId, string $roleInstanceName) : voidThe Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $roleInstanceName | string | The role instance name |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

reimageRoleInstanceBySlot(string $serviceName, string $deploymentSlot, string $roleInstanceName) : voidThe Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $roleInstanceName | string | The role instance name |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

setHttpClientChannel(\Zend_Http_Client_Adapter_Interface | string $adapterInstance = 'Zend_Http_Client_Adapter_Socket') : voidSet the HTTP client channel to use
| Name | Type | Description |
|---|---|---|
| $adapterInstance | \Zend_Http_Client_Adapter_Interface | string | Adapter instance or adapter class name. |

setInstanceCountByDeploymentId(string $serviceName, $deploymentId, string | array $roleName, string | array $instanceCount) : voidUpdates a deployment's role instance count.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | ||
| $roleName | string | array | The role name |
| $instanceCount | string | array | The instance count |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

setInstanceCountBySlot(string $serviceName, string $deploymentSlot, string | array $roleName, string | array $instanceCount) : voidUpdates a deployment's role instance count.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $roleName | string | array | The role name |
| $instanceCount | string | array | The instance count |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

swapDeployment(string $serviceName, string $productionDeploymentName, string $sourceDeploymentName) : voidThe Swap Deployment operation initiates a virtual IP swap between the staging and production deployment environments for a service.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name. |
| $productionDeploymentName | string | The name of the production deployment. |
| $sourceDeploymentName | string | The name of the source deployment. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

updateAffinityGroup(string $name, string $label, string $description = '') : voidThe Update Affinity Group operation updates the label and/or the description for an affinity group for the specified subscription.
| Name | Type | Description |
|---|---|---|
| $name | string | The name for the affinity group that should be updated. |
| $label | string | A label for the affinity group. The label may be up to 100 characters in length. |
| $description | string | A description for the affinity group. The description may be up to 1024 characters in length. |

updateDeploymentStatusByDeploymentId(string $serviceName, string $deploymentId, string $status = 'running') : voidThe Update Deployment Status operation initiates a change in deployment status.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $status | string | The deployment status (running|suspended) |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

updateDeploymentStatusBySlot(string $serviceName, string $deploymentSlot, string $status = 'running') : voidThe Update Deployment Status operation initiates a change in deployment status.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $status | string | The deployment status (running|suspended) |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

updateHostedService(string $serviceName, string $label, string $description = '') : voidThe Update Hosted Service operation updates the label and/or the description for a hosted service in Windows Azure.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | A name for the hosted service that is unique to the subscription. |
| $label | string | A label for the hosted service. The label may be up to 100 characters in length. |
| $description | string | A description for the hosted service. The description may be up to 1024 characters in length. |

upgradeDeploymentByDeploymentId(string $serviceName, string $deploymentId, string $label, string $packageUrl, string $configuration, string $mode = 'auto', string $roleToUpgrade = null) : voidThe Upgrade Deployment operation initiates an upgrade.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $label | string | A URL that refers to the location of the service package in the Blob service. The service package must be located in a storage account beneath the same subscription. |
| $packageUrl | string | The service configuration file for the deployment. |
| $configuration | string | A label for this deployment, up to 100 characters in length. |
| $mode | string | The type of upgrade to initiate. Possible values are Auto or Manual. |
| $roleToUpgrade | string | The name of the specific role to upgrade. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

upgradeDeploymentBySlot(string $serviceName, string $deploymentSlot, string $label, string $packageUrl, string $configuration, string $mode = 'auto', string $roleToUpgrade = null) : voidThe Upgrade Deployment operation initiates an upgrade.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $label | string | A URL that refers to the location of the service package in the Blob service. The service package must be located in a storage account beneath the same subscription. |
| $packageUrl | string | The service configuration file for the deployment. |
| $configuration | string | A label for this deployment, up to 100 characters in length. |
| $mode | string | The type of upgrade to initiate. Possible values are Auto or Manual. |
| $roleToUpgrade | string | The name of the specific role to upgrade. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

urlencode(string $value) : stringURL encode function
| Name | Type | Description |
|---|---|---|
| $value | string | Value to encode |
| Type | Description |
|---|---|
| string | Encoded value |

waitForOperation(string $requestId = '', int $sleepInterval = 250) : \Zend_Service_WindowsAzure_Management_OperationStatusInstanceWait for an operation to complete
| Name | Type | Description |
|---|---|---|
| $requestId | string | The request ID. If omitted, the last request ID will be used. |
| $sleepInterval | int | Sleep interval in milliseconds. |
| Type | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_OperationStatusInstance |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

walkUpgradeDomainByDeploymentId(string $serviceName, string $deploymentId, int $upgradeDomain = 0) : voidThe Walk Upgrade Domain operation specifies the next upgrade domain to be walked during an in-place upgrade.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentId | string | The deployment ID as listed on the Windows Azure management portal |
| $upgradeDomain | int | An integer value that identifies the upgrade domain to walk. Upgrade domains are identified with a zero-based index: the first upgrade domain has an ID of 0, the second has an ID of 1, and so on. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |

walkUpgradeDomainBySlot(string $serviceName, string $deploymentSlot, int $upgradeDomain = 0) : voidThe Walk Upgrade Domain operation specifies the next upgrade domain to be walked during an in-place upgrade.
| Name | Type | Description |
|---|---|---|
| $serviceName | string | The service name |
| $deploymentSlot | string | The deployment slot (production or staging) |
| $upgradeDomain | int | An integer value that identifies the upgrade domain to walk. Upgrade domains are identified with a zero-based index: the first upgrade domain has an ID of 0, the second has an ID of 1, and so on. |
| Exception | Description |
|---|---|
| \Zend_Service_WindowsAzure_Management_Exception |