org.soyatec.windowsazure.management
Class ServiceManagementRest

java.lang.Object
  extended by org.soyatec.windowsazure.proxy.AbstractProxyDelegate
      extended by org.soyatec.windowsazure.management.ServiceManagement
          extended by org.soyatec.windowsazure.management.ServiceManagementRest

public class ServiceManagementRest
extends ServiceManagement

See http://msdn.microsoft.com/en-us/library/ee460799.aspx for description.


Constructor Summary
ServiceManagementRest(java.lang.String subscriptionId, java.lang.String keyStoreFile, java.lang.String keyStorePassword, java.lang.String trustStoreFile, java.lang.String trustStorePassword, java.lang.String certificateAlias)
          Construct a new ServiceManagementRest object with a subscription id, store file key, store password key, trust store file, trust store password and certificate alias.
ServiceManagementRest(java.lang.String subscriptionId, java.lang.String keyStoreFile, java.lang.String keyStorePassword, java.lang.String trustStoreFile, java.lang.String trustStorePassword, java.lang.String certificateAlias, java.lang.String endPointHost)
          Construct a new ServiceManagementRest object with a subscription id, store file key, store password key, trust store file, trust store password, certificate alias and endPointHost.
 
Method Summary
 void addCertificate(java.lang.String serviceName, byte[] data, CertificateFormat format, java.lang.String password)
          The Add Certificate operation adds a certificate to the subscription.
 java.lang.String changeDeploymentConfiguration(java.lang.String serviceName, DeploymentSlotType type, BlobStream configurationFileStream, AsyncResultCallback callback)
          The Change Deployment Configuration operation initiates a change to the deployment configuration.
 java.lang.String changeDeploymentConfiguration(java.lang.String serviceName, DeploymentSlotType type, java.lang.String configurationFileUrl, AsyncResultCallback callback)
          The Change Deployment Configuration operation initiates a change to the deployment configuration.
 java.lang.String changeDeploymentConfiguration(java.lang.String serviceName, java.lang.String deploymentName, BlobStream configurationFileStream, AsyncResultCallback callback)
          The Change Deployment Configuration operation is to change the configuration of the Deployment.
 java.lang.String changeDeploymentConfiguration(java.lang.String serviceName, java.lang.String deploymentName, java.lang.String configurationFileUrl, AsyncResultCallback callback)
          The Change Deployment Configuration operation is to change the configuration of the Deployment.
 void createAffinityGroup(java.lang.String groupName, java.lang.String label, java.lang.String description, java.lang.String location)
          The Create Affinity Group operation creates a new affinity group for the specified subscription.
 java.lang.String createDeployment(java.lang.String serviceName, DeploymentSlotType deploySlotName, DeploymentConfiguration configuration, AsyncResultCallback callback)
          The Create Deployment operation uploads a new service package and creates a new deployment on staging or production.
 void createHostedService(java.lang.String serviceName, java.lang.String label, java.lang.String description, java.lang.String location, java.lang.String affinityGroup)
          The Create Hosted Service operation creates a new hosted service in Windows Azure.
 void createStorageAccount(java.lang.String accountName, java.lang.String label, java.lang.String description, java.lang.String location, java.lang.String affinityGroup, AsyncResultCallback callback)
          The Create Storage Account operation creates a new storage account in Windows Azure.
 void deleteAffinityGroup(java.lang.String groupName)
          The Delete Affinity Group operation deletes an affinity group in the specified subscription.
 void deleteCertificate(java.lang.String serviceName, java.lang.String thumbprintAlgorithm, java.lang.String thumbprint)
          The Delete Certificate operation deletes a certificate from the subscription's certificate store.
 java.lang.String deleteDeployment(java.lang.String serviceName, DeploymentSlotType type, AsyncResultCallback callback)
          The Delete Deployment operation Delete the deployment with the service name, deploymentSlotType and asyncResultCallback.
 java.lang.String deleteDeployment(java.lang.String serviceName, java.lang.String deploymentName, AsyncResultCallback callback)
          The Delete Deployment operation Delete the deployment with the service name, deployment name and asyncResultCallback.
 void deleteHostedService(java.lang.String serviceName)
          The Delete Hosted Service operation deletes the specified hosted service from Windows Azure.
 void deleteStorageAccount(java.lang.String accountName)
          The Delete Storage Account operation deletes the specified storage account from Windows Azure.
 AffinityGroupProperties getAffinityGroupProperties(java.lang.String groupName)
          The Get Affinity Group Properties operation returns the system properties associated with the specified affinity group.
 Certificate getCertificate(java.lang.String serviceName, java.lang.String thumbprintAlgorithm, java.lang.String thumbprint)
          The Get Certificate operation returns the public data for the specified certificate.
 Deployment getDeployment(java.lang.String serviceName, DeploymentSlotType type)
          The Get Deployment operation returns configuration information, status, and system properties for the specified deployment.
 Deployment getDeployment(java.lang.String serviceName, java.lang.String deploymentName)
          The Get Deployment operation get the deployment with the service name and deployment name.
 HostedServiceProperties getHostedServiceProperties(java.lang.String serviceName, boolean embedDetail)
          The Get Hosted Service Properties operation retrieves system properties for the specified hosted service.
 int getMaximumThreadCount()
          Get the maximum thead count for polling operation status.
 OperationStatus getOperationStatus(java.lang.String requestId)
          The Get Operation Status operation returns the status of the specified operation.
 int getPollStatusInterval()
          Get the interval in milliseconds for polling operation status in asynchronous operations.
 StorageAccountKey getStorageAccountKeys(java.lang.String serviceName)
          The Get Storage Keys operation returns the primary and secondary access keys for the specified storage account.
 StorageAccountProperties getStorageAccountProperties(java.lang.String serviceName)
          The Get Storage Account Properties operation returns the system properties for the specified storage account.
 java.util.List<AffinityGroup> listAffinityGroups()
          The List Affinity Groups operation lists the affinity groups associated with the specified subscription.
 java.util.List<Certificate> listCertificates(java.lang.String serviceName)
          The List Certificates operation lists all certificates associated with the specified hosted service.
 java.util.List<HostedService> listHostedServices()
          The List Hosted Services operation lists the hosted services available under the current subscription.
 java.util.List<Location> listLocations()
          List all of the data center locations that are valid for your subscription.
 java.util.List<OperatingSystem> listOperatingSystems()
          list the OperatingSystem' Versions
 java.util.List<OperatingSystemFamily> listOSFamilies()
          List Operating System Families
 java.util.List<StorageAccount> listStorageAccounts()
          The List Storage Accounts operation lists the storage accounts available under the current subscription.
 java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame, java.lang.String endTimeFrame)
          The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe.
 java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame, java.lang.String endTimeFrame, ObjectIdFilter filter, OperationState operationStatus, int limit)
          The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe.
 java.sql.Timestamp parseTimestamp(java.lang.String operationTime)
           
 java.lang.String rebootRoleInstance(java.lang.String serviceName, DeploymentSlotType deploySlotName, java.lang.String roleInstanceName, AsyncResultCallback callback)
          The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment.
 java.lang.String rebootRoleInstance(java.lang.String serviceName, java.lang.String deploymentName, java.lang.String roleInstanceName, AsyncResultCallback callback)
          The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment.
 StorageAccountKey regenerateKeys(java.lang.String serviceName, KeyType type)
          The Regenerate Keys operation regenerates the primary or secondary access key for the specified storage account.
 java.lang.String reimageRoleInstance(java.lang.String serviceName, DeploymentSlotType deploySlotName, java.lang.String roleInstanceName, AsyncResultCallback callback)
          The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment.
 java.lang.String reimageRoleInstance(java.lang.String serviceName, java.lang.String deploymentName, java.lang.String roleInstanceName, AsyncResultCallback callback)
          The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment.
 void setMaximumThreadCount(int maximumThreadCount)
          Note that all running tasks in pool will be stopped.
 void setPollStatusInterval(int interval)
          Set the interval in milliseconds for polling operation status in asynchronous operations.
 java.lang.String swapDeployment(java.lang.String serviceName, java.lang.String productName, java.lang.String sourceName, AsyncResultCallback callback)
          The Swap Deployment operation initiates a virtual IP swap between the staging and production deployment slots for a service.
 void updateAffinityGroup(java.lang.String groupName, java.lang.String label, java.lang.String description)
          The Update Affinity Group operation updates the label and/or the description for an affinity group for the specified subscription.
 java.lang.String updateDeplymentStatus(java.lang.String serviceName, DeploymentSlotType type, UpdateStatus status, AsyncResultCallback callback)
          The Update Deployment Status operation initiates a change in deployment status.
 java.lang.String updateDeplymentStatus(java.lang.String serviceName, java.lang.String deploymentName, UpdateStatus status, AsyncResultCallback callback)
          The Update Deployment Status operation is update the status of the Deployment.
 void updateHostedService(java.lang.String serviceName, java.lang.String label, java.lang.String description)
          The Update Hosted Service operation updates the label and/or the description for a hosted service in Windows Azure.
 void updateStorageAccount(java.lang.String accountName, java.lang.String label, java.lang.String description)
          The Update Storage Account operation updates the label and/or the description for a storage account in Windows Azure.
 java.lang.String upgradeDeployment(java.lang.String serviceName, DeploymentSlotType type, UpgradeConfiguration configuration, AsyncResultCallback callback)
          The Upgrade Deployment operation initiates an upgrade.
 java.lang.String upgradeDeployment(java.lang.String serviceName, java.lang.String deploymentName, UpgradeConfiguration configuration, AsyncResultCallback callback)
          The Upgrade Deployment operation initiates an upgrade.
 java.lang.String walkUpgradeDomain(java.lang.String serviceName, DeploymentSlotType type, int domainId, AsyncResultCallback callback)
          The Walk Upgrade Domain operation specifies the next upgrade domain to be walked during an in-place upgrade.
 java.lang.String walkUpgradeDomain(java.lang.String serviceName, java.lang.String deploymentName, int domainId, AsyncResultCallback callback)
          The Walk Upgrade Domain operation is walk upgrade the deployment.
 
Methods inherited from class org.soyatec.windowsazure.management.ServiceManagement
getSubscriptionId, isBlocking, setBlocking
 
Methods inherited from class org.soyatec.windowsazure.proxy.AbstractProxyDelegate
disableProxy, isProxyEnabled, setProxyConfiguration
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagementRest

public ServiceManagementRest(java.lang.String subscriptionId,
                             java.lang.String keyStoreFile,
                             java.lang.String keyStorePassword,
                             java.lang.String trustStoreFile,
                             java.lang.String trustStorePassword,
                             java.lang.String certificateAlias)
                      throws java.lang.Exception
Construct a new ServiceManagementRest object with a subscription id, store file key, store password key, trust store file, trust store password and certificate alias.

Throws:
java.lang.Exception

ServiceManagementRest

public ServiceManagementRest(java.lang.String subscriptionId,
                             java.lang.String keyStoreFile,
                             java.lang.String keyStorePassword,
                             java.lang.String trustStoreFile,
                             java.lang.String trustStorePassword,
                             java.lang.String certificateAlias,
                             java.lang.String endPointHost)
                      throws java.lang.Exception
Construct a new ServiceManagementRest object with a subscription id, store file key, store password key, trust store file, trust store password, certificate alias and endPointHost.

Throws:
java.lang.Exception
Method Detail

listHostedServices

public java.util.List<HostedService> listHostedServices()
The List Hosted Services operation lists the hosted services available under the current subscription.

Specified by:
listHostedServices in class ServiceManagement
Returns:
hostedServices A list of hosted services available under the current subscription.

getDeployment

public Deployment getDeployment(java.lang.String serviceName,
                                DeploymentSlotType type)
The Get Deployment operation returns configuration information, status, and system properties for the specified deployment.

Specified by:
getDeployment in class ServiceManagement
Parameters:
serviceName -
type -
Returns:

getDeployment

public Deployment getDeployment(java.lang.String serviceName,
                                java.lang.String deploymentName)
The Get Deployment operation get the deployment with the service name and deployment name.

Specified by:
getDeployment in class ServiceManagement
Parameters:
serviceName -
deploymentName -
Returns:

updateDeplymentStatus

public java.lang.String updateDeplymentStatus(java.lang.String serviceName,
                                              DeploymentSlotType type,
                                              UpdateStatus status,
                                              AsyncResultCallback callback)
The Update Deployment Status operation initiates a change in deployment status. The Update Deployment Status operation is an asynchronous operation.

Specified by:
updateDeplymentStatus in class ServiceManagement
Parameters:
serviceName - The name of hosted service
type - Deployment slot type, either staging or production
status - The deployment status, either running or suspended
Returns:

updateDeplymentStatus

public java.lang.String updateDeplymentStatus(java.lang.String serviceName,
                                              java.lang.String deploymentName,
                                              UpdateStatus status,
                                              AsyncResultCallback callback)
The Update Deployment Status operation is update the status of the Deployment.

Specified by:
updateDeplymentStatus in class ServiceManagement
Parameters:
serviceName -
deploymentName -
status -
callback -
Returns:

swapDeployment

public java.lang.String swapDeployment(java.lang.String serviceName,
                                       java.lang.String productName,
                                       java.lang.String sourceName,
                                       AsyncResultCallback callback)
The Swap Deployment operation initiates a virtual IP swap between the staging and production deployment slots for a service. If the service is currently running in the staging environment, it will be swapped to the production environment. If it is running in the production environment, it will be swapped to staging.

Specified by:
swapDeployment in class ServiceManagement
Parameters:
serviceName -
productName -
sourceName -
callback -
Returns:

walkUpgradeDomain

public java.lang.String walkUpgradeDomain(java.lang.String serviceName,
                                          DeploymentSlotType type,
                                          int domainId,
                                          AsyncResultCallback callback)
The Walk Upgrade Domain operation specifies the next upgrade domain to be walked during an in-place upgrade. For more information on in-place upgrades.

Specified by:
walkUpgradeDomain in class ServiceManagement
Parameters:
serviceName -
type -
domainId -
callback -
Returns:

walkUpgradeDomain

public java.lang.String walkUpgradeDomain(java.lang.String serviceName,
                                          java.lang.String deploymentName,
                                          int domainId,
                                          AsyncResultCallback callback)
The Walk Upgrade Domain operation is walk upgrade the deployment.

Specified by:
walkUpgradeDomain in class ServiceManagement
Parameters:
serviceName -
deploymentName -
domainId -
callback -
Returns:

changeDeploymentConfiguration

public java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
                                                      DeploymentSlotType type,
                                                      java.lang.String configurationFileUrl,
                                                      AsyncResultCallback callback)
The Change Deployment Configuration operation initiates a change to the deployment configuration.

Specified by:
changeDeploymentConfiguration in class ServiceManagement
Parameters:
serviceName -
type -
configurationFileUrl -
callback -
Returns:

changeDeploymentConfiguration

public java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
                                                      DeploymentSlotType type,
                                                      BlobStream configurationFileStream,
                                                      AsyncResultCallback callback)
The Change Deployment Configuration operation initiates a change to the deployment configuration.

Parameters:
serviceName -
type -
configurationFileStream -
callback -
Returns:

changeDeploymentConfiguration

public java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
                                                      java.lang.String deploymentName,
                                                      BlobStream configurationFileStream,
                                                      AsyncResultCallback callback)
The Change Deployment Configuration operation is to change the configuration of the Deployment.

Parameters:
serviceName -
deploymentName -
configurationFileStream -
callback -
Returns:

changeDeploymentConfiguration

public java.lang.String changeDeploymentConfiguration(java.lang.String serviceName,
                                                      java.lang.String deploymentName,
                                                      java.lang.String configurationFileUrl,
                                                      AsyncResultCallback callback)
The Change Deployment Configuration operation is to change the configuration of the Deployment.

Specified by:
changeDeploymentConfiguration in class ServiceManagement
Parameters:
serviceName -
deploymentName -
configurationFileUrl -
callback -
Returns:

upgradeDeployment

public java.lang.String upgradeDeployment(java.lang.String serviceName,
                                          DeploymentSlotType type,
                                          UpgradeConfiguration configuration,
                                          AsyncResultCallback callback)
The Upgrade Deployment operation initiates an upgrade. The Upgrade Deployment operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status.

Specified by:
upgradeDeployment in class ServiceManagement
Parameters:
serviceName -
type -
configuration -
callback -
Returns:

upgradeDeployment

public java.lang.String upgradeDeployment(java.lang.String serviceName,
                                          java.lang.String deploymentName,
                                          UpgradeConfiguration configuration,
                                          AsyncResultCallback callback)
The Upgrade Deployment operation initiates an upgrade. The Upgrade Deployment operation is an asynchronous operation. To determine whether the Management service has finished processing the request, call Get Operation Status.

Specified by:
upgradeDeployment in class ServiceManagement
Parameters:
serviceName -
deploymentName -
configuration -
callback -
Returns:

deleteDeployment

public java.lang.String deleteDeployment(java.lang.String serviceName,
                                         DeploymentSlotType type,
                                         AsyncResultCallback callback)
The Delete Deployment operation Delete the deployment with the service name, deploymentSlotType and asyncResultCallback.

Specified by:
deleteDeployment in class ServiceManagement
Parameters:
serviceName -
type -
callback -
Returns:

deleteDeployment

public java.lang.String deleteDeployment(java.lang.String serviceName,
                                         java.lang.String deploymentName,
                                         AsyncResultCallback callback)
The Delete Deployment operation Delete the deployment with the service name, deployment name and asyncResultCallback.

Specified by:
deleteDeployment in class ServiceManagement
Parameters:
serviceName -
deploymentName -
callback -
Returns:

getHostedServiceProperties

public HostedServiceProperties getHostedServiceProperties(java.lang.String serviceName,
                                                          boolean embedDetail)
The 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. When the request sets the embed-detail parameter to true, the response body includes additional details on the service's deployments:

Specified by:
getHostedServiceProperties in class ServiceManagement
Parameters:
serviceName - The name of your hosted service.
embedDetail - When the embedDetail parameter is specified, the management service returns properties for all deployments of the service, as well as for the service itself. The default value is false.
Returns:

listAffinityGroups

public java.util.List<AffinityGroup> listAffinityGroups()
The List Affinity Groups operation lists the affinity groups associated with the specified subscription.

Specified by:
listAffinityGroups in class ServiceManagement
Returns:

listCertificates

public java.util.List<Certificate> listCertificates(java.lang.String serviceName)
The List Certificates operation lists all certificates associated with the specified hosted service.

Specified by:
listCertificates in class ServiceManagement
Parameters:
serviceName -
Returns:

getCertificate

public Certificate getCertificate(java.lang.String serviceName,
                                  java.lang.String thumbprintAlgorithm,
                                  java.lang.String thumbprint)
The Get Certificate operation returns the public data for the specified certificate.

Specified by:
getCertificate in class ServiceManagement
Parameters:
serviceName -
thumbprintAlgorithm - the algorithm for the certificate's thumbprint
thumbprint - the hexadecimal representation of the thumbprint
Returns:

deleteCertificate

public void deleteCertificate(java.lang.String serviceName,
                              java.lang.String thumbprintAlgorithm,
                              java.lang.String thumbprint)
The Delete Certificate operation deletes a certificate from the subscription's certificate store. see http://msdn.microsoft.com/en-us/library/ee460803.aspx

Specified by:
deleteCertificate in class ServiceManagement
Parameters:
serviceName -
thumbprintAlgorithm - the algorithm for the certificate's thumbprint
thumbprint - the hexadecimal representation of the thumbprint

addCertificate

public void addCertificate(java.lang.String serviceName,
                           byte[] data,
                           CertificateFormat format,
                           java.lang.String password)
The Add Certificate operation adds a certificate to the subscription. http://msdn.microsoft.com/en-us/library/ee460817.aspx

Specified by:
addCertificate in class ServiceManagement
Parameters:
serviceName -
data -
format -
password -

listOperatingSystems

public java.util.List<OperatingSystem> listOperatingSystems()
list the OperatingSystem' Versions

Specified by:
listOperatingSystems in class ServiceManagement
Returns:
a list of OperatingSystem type data

getStorageAccountKeys

public StorageAccountKey getStorageAccountKeys(java.lang.String serviceName)
The Get Storage Keys operation returns the primary and secondary access keys for the specified storage account.

Specified by:
getStorageAccountKeys in class ServiceManagement
Parameters:
serviceName - The name of the desired storage account.
Returns:

regenerateKeys

public StorageAccountKey regenerateKeys(java.lang.String serviceName,
                                        KeyType type)
The Regenerate Keys operation regenerates the primary or secondary access key for the specified storage account.

Specified by:
regenerateKeys in class ServiceManagement
Parameters:
serviceName - The name of the desired storage account.
type - Indicate what key should be regenerated.
Returns:

getStorageAccountProperties

public StorageAccountProperties getStorageAccountProperties(java.lang.String serviceName)
The 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.

Specified by:
getStorageAccountProperties in class ServiceManagement
Parameters:
serviceName - The name of the desired storage account.
Returns:

listStorageAccounts

public java.util.List<StorageAccount> listStorageAccounts()
The List Storage Accounts operation lists the storage accounts available under the current subscription.

Specified by:
listStorageAccounts in class ServiceManagement
Returns:

getAffinityGroupProperties

public AffinityGroupProperties getAffinityGroupProperties(java.lang.String groupName)
The Get Affinity Group Properties operation returns the system properties associated with the specified affinity group.

Specified by:
getAffinityGroupProperties in class ServiceManagement
Parameters:
groupName - The name of the desired affinity group
Returns:

setPollStatusInterval

public void setPollStatusInterval(int interval)
Set the interval in milliseconds for polling operation status in asynchronous operations.

Specified by:
setPollStatusInterval in class ServiceManagement
Parameters:
interval - the interval in milliseconds for polling operation status

getPollStatusInterval

public int getPollStatusInterval()
Get the interval in milliseconds for polling operation status in asynchronous operations.

Specified by:
getPollStatusInterval in class ServiceManagement
Returns:
the interval in milliseconds for polling operation status

getMaximumThreadCount

public int getMaximumThreadCount()
Description copied from class: ServiceManagement
Get the maximum thead count for polling operation status.

Specified by:
getMaximumThreadCount in class ServiceManagement
Returns:

setMaximumThreadCount

public void setMaximumThreadCount(int maximumThreadCount)
Note that all running tasks in pool will be stopped.

Specified by:
setMaximumThreadCount in class ServiceManagement
Parameters:
maximumThreadCount -

getOperationStatus

public OperationStatus getOperationStatus(java.lang.String requestId)
The Get Operation Status operation returns the status of the specified operation. After calling an asynchronous operation, you can call Get Operation Status to determine whether the operation has succeed, failed, or is still in progress.

Specified by:
getOperationStatus in class ServiceManagement
Parameters:
requestId - the request id of operation
Returns:

createDeployment

public java.lang.String createDeployment(java.lang.String serviceName,
                                         DeploymentSlotType deploySlotName,
                                         DeploymentConfiguration configuration,
                                         AsyncResultCallback callback)
The Create Deployment operation uploads a new service package and creates a new deployment on staging or production.

Note that it is possible to call Create Deployment only for a hosted service that has previously been created via the Windows Azure Developer Portal. You cannot upload a new hosted service via the Service Management API.

The Create Deployment operation is an asynchronous operation. To determine whether the management service has finished processing the request, call Get Operation Status.

Specified by:
createDeployment in class ServiceManagement
Parameters:
serviceName -
deploySlotName -
define -
Returns:

listOSFamilies

public java.util.List<OperatingSystemFamily> listOSFamilies()
List Operating System Families

Specified by:
listOSFamilies in class ServiceManagement
Returns:
a list of OperatingSystemFamily

reimageRoleInstance

public java.lang.String reimageRoleInstance(java.lang.String serviceName,
                                            DeploymentSlotType deploySlotName,
                                            java.lang.String roleInstanceName,
                                            AsyncResultCallback callback)
The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment. The Reimage Role Instance operation is an asynchronous operation.

Specified by:
reimageRoleInstance in class ServiceManagement
Parameters:
serviceName - The name of your hosted service.
deploySlotName - Deployment slot type, either staging or production
roleInstanceName - The name of role instance
callback - The callback instance will be notified when the asynchronous operation is completed.
Returns:

reimageRoleInstance

public java.lang.String reimageRoleInstance(java.lang.String serviceName,
                                            java.lang.String deploymentName,
                                            java.lang.String roleInstanceName,
                                            AsyncResultCallback callback)
Description copied from class: ServiceManagement
The Reimage Role Instance operation requests a reimage of a role instance that is running in a deployment. The Reimage Role Instance operation is an asynchronous operation.

Specified by:
reimageRoleInstance in class ServiceManagement
Parameters:
serviceName - The name of your hosted service.
deploymentName - The name of deployment
roleInstanceName - The name of role instance
callback - The callback instance will be notified when the asynchronous operation is completed.
Returns:

rebootRoleInstance

public java.lang.String rebootRoleInstance(java.lang.String serviceName,
                                           DeploymentSlotType deploySlotName,
                                           java.lang.String roleInstanceName,
                                           AsyncResultCallback callback)
The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment. The Reboot Role Instance operation is an asynchronous operation.

Specified by:
rebootRoleInstance in class ServiceManagement
Parameters:
serviceName -
deploySlotName -
roleInstanceName -
callback -
Returns:

rebootRoleInstance

public java.lang.String rebootRoleInstance(java.lang.String serviceName,
                                           java.lang.String deploymentName,
                                           java.lang.String roleInstanceName,
                                           AsyncResultCallback callback)
Description copied from class: ServiceManagement
The Reboot Role Instance operation requests a reboot of a role instance that is running in a deployment. The Reboot Role Instance operation is an asynchronous operation.

Specified by:
rebootRoleInstance in class ServiceManagement
Parameters:
serviceName - The name of your hosted service.
deploymentName - The name of deployment
roleInstanceName - The name of role instance
callback - The callback instance will be notified when the asynchronous operation is completed.
Returns:

deleteHostedService

public void deleteHostedService(java.lang.String serviceName)
The Delete Hosted Service operation deletes the specified hosted service from Windows Azure.

Specified by:
deleteHostedService in class ServiceManagement
Parameters:
serviceName -

listLocations

public java.util.List<Location> listLocations()
List all of the data center locations that are valid for your subscription.

Specified by:
listLocations in class ServiceManagement
Returns:
a list of locations

updateHostedService

public void updateHostedService(java.lang.String serviceName,
                                java.lang.String label,
                                java.lang.String description)
The Update Hosted Service operation updates the label and/or the description for a hosted service in Windows Azure.

Specified by:
updateHostedService in class ServiceManagement
Parameters:
serviceName -
label - A label for the hosted service. The label may be up to 100 characters in length. You must specify a value for either Label or Description, or for both.
description - A description for the hosted service. The description may be up to 1024 characters in length. You must specify a value for either Label or Description, or for both.

createHostedService

public void createHostedService(java.lang.String serviceName,
                                java.lang.String label,
                                java.lang.String description,
                                java.lang.String location,
                                java.lang.String affinityGroup)
The Create Hosted Service operation creates a new hosted service in Windows Azure.

Specified by:
createHostedService in class ServiceManagement
Parameters:
serviceName -
configuration -

createAffinityGroup

public void createAffinityGroup(java.lang.String groupName,
                                java.lang.String label,
                                java.lang.String description,
                                java.lang.String location)
Description copied from class: ServiceManagement
The Create Affinity Group operation creates a new affinity group for the specified subscription.

Specified by:
createAffinityGroup in class ServiceManagement
Parameters:
groupName - The name of the affinity group that is unique to the subscription.
label - Required. A label for the affinity group. The label may be up to 100 characters in length.
description - Optional. A description for the affinity group. The description may be up to 1024 characters in length.
location - The location where the affinity group will be created. To list available locations, use the List Locations operation.

deleteAffinityGroup

public void deleteAffinityGroup(java.lang.String groupName)
Description copied from class: ServiceManagement
The Delete Affinity Group operation deletes an affinity group in the specified subscription.

Specified by:
deleteAffinityGroup in class ServiceManagement
Parameters:
groupName - The name of the desired affinity group

updateAffinityGroup

public void updateAffinityGroup(java.lang.String groupName,
                                java.lang.String label,
                                java.lang.String description)
Description copied from class: ServiceManagement
The Update Affinity Group operation updates the label and/or the description for an affinity group for the specified subscription.

Specified by:
updateAffinityGroup in class ServiceManagement
Parameters:
groupName - The name of the desired affinity group
label - Required. A label for the affinity group. The label may be up to 100 characters in length.
description - Optional. A description for the affinity group. The description may be up to 1024 characters in length.

listSubscriptionOperations

public java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame,
                                                                        java.lang.String endTimeFrame)
Description copied from class: ServiceManagement
The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe. See http://msdn.microsoft.com/en-us/library/gg715318.aspx for more detail.

Specified by:
listSubscriptionOperations in class ServiceManagement
Parameters:
startTimeFrame - The start of the timeframe to begin listing subscription operations in UTC format. This parameter and the parameter indicate the timeframe to retrieve subscription operations. This parameter cannot indicate a start date of more than 90 days in the past.
endTimeFrame - The end of the timeframe to begin listing subscription operations in UTC format. This parameter and the parameter indicate the timeframe to retrieve subscription operations.
Returns:

listSubscriptionOperations

public java.util.List<SubscriptionOperation> listSubscriptionOperations(java.lang.String startTimeFrame,
                                                                        java.lang.String endTimeFrame,
                                                                        ObjectIdFilter filter,
                                                                        OperationState operationStatus,
                                                                        int limit)
Description copied from class: ServiceManagement
The List Subscription Operations operation returns a list of create, update, and delete operations that were performed on a subscription during the specified timeframe. See http://msdn.microsoft.com/en-us/library/gg715318.aspx for more detail.

Specified by:
listSubscriptionOperations in class ServiceManagement
Parameters:
startTimeFrame - The start of the timeframe to begin listing subscription operations in UTC format. This parameter and the parameter indicate the timeframe to retrieve subscription operations. This parameter cannot indicate a start date of more than 90 days in the past.
endTimeFrame - The end of the timeframe to begin listing subscription operations in UTC format. This parameter and the parameter indicate the timeframe to retrieve subscription operations.
filter - Optional. Returns subscription operations only for the specified object type and object ID. This parameter must be set equal to the URL value for performing an HTTP GET on the object. If no object is specified, a filter is not applied.
operationStatus - Optional. Returns subscription operations only for the specified result status, either Succeeded, Failed, or InProgress. This filter can be combined with the ObjectIdFilter to select subscription operations for an object with a specific result status. If no result status is specified, a filter is not applied.
limit - The number of Subscription Operation that should be returned. If you specify -1, it will return all Subscription Operations during the specified timeframe.
Returns:

parseTimestamp

public java.sql.Timestamp parseTimestamp(java.lang.String operationTime)

createStorageAccount

public void createStorageAccount(java.lang.String accountName,
                                 java.lang.String label,
                                 java.lang.String description,
                                 java.lang.String location,
                                 java.lang.String affinityGroup,
                                 AsyncResultCallback callback)
Description copied from class: ServiceManagement
The Create Storage Account operation creates a new storage account in Windows Azure.

Specified by:
createStorageAccount in class ServiceManagement
Parameters:
accountName - Required. A name for the storage account that is unique to the subscription.
label - Required. A label for the storage account. The label may be up to 100 characters in length.
description - Optional. A description for the storage account. The description may be up to 1024 characters in length.
location - Required if AffinityGroup is not specified. The location where the storage account is created. Specify either Location or AffinityGroup, but not both.
affinityGroup - Required if Location is not specified. The name of an existing affinity group in the specified subscription. Specify either Location or AffinityGroup, but not both.
callback - The callback instance will be notified when the asynchronous operation is completed.

deleteStorageAccount

public void deleteStorageAccount(java.lang.String accountName)
Description copied from class: ServiceManagement
The Delete Storage Account operation deletes the specified storage account from Windows Azure.

Specified by:
deleteStorageAccount in class ServiceManagement
Parameters:
accountName - the name of the storage account

updateStorageAccount

public void updateStorageAccount(java.lang.String accountName,
                                 java.lang.String label,
                                 java.lang.String description)
Description copied from class: ServiceManagement
The Update Storage Account operation updates the label and/or the description for a storage account in Windows Azure.

Specified by:
updateStorageAccount in class ServiceManagement
Parameters:
accountName - the name of the storage account
label - Optional. A label for the storage account. The label may be up to 100 characters in length. You must specify a value for either Label or Description, or for both.
description - Optional. A description for the storage account. The description may be up to 1024 characters in length. You must specify a value for either Label or Description, or for both.