WebSiteOperationsExtensions Class

Definition

The Web Sites Management API provides a RESTful set of web services that interact with the Windows Azure Web Sites service to manage your web sites. The API has entities that capture the relationship between an end user and Windows Azure Web Sites service. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for more information)

public static class WebSiteOperationsExtensions
type WebSiteOperationsExtensions = class
Public Module WebSiteOperationsExtensions
Inheritance
WebSiteOperationsExtensions

Methods

ApplySlotConfiguration(IWebSiteOperations, String, String, String)
ApplySlotConfigurationAsync(IWebSiteOperations, String, String, String)
Backup(IWebSiteOperations, String, String, BackupRequest)

Backups a site on-demand.

BackupAsync(IWebSiteOperations, String, String, BackupRequest)

Backups a site on-demand.

BeginSwappingSlots(IWebSiteOperations, String, String, String, String)

You can swap a web site from one slot to another slot.

BeginSwappingSlotsAsync(IWebSiteOperations, String, String, String, String)

You can swap a web site from one slot to another slot.

Create(IWebSiteOperations, String, WebSiteCreateParameters)

You can create a web site by using a POST request that includes the name of the web site and other information in the request body. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)

CreateAsync(IWebSiteOperations, String, WebSiteCreateParameters)

You can create a web site by using a POST request that includes the name of the web site and other information in the request body. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)

CreateHybridConnection(IWebSiteOperations, String, String, HybridConnectionCreateParameters)

Creates an association to a hybrid connection for a web site.

CreateHybridConnectionAsync(IWebSiteOperations, String, String, HybridConnectionCreateParameters)

Creates an association to a hybrid connection for a web site.

CreateRepository(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository create operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

CreateRepositoryAsync(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository create operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

Delete(IWebSiteOperations, String, String, WebSiteDeleteParameters)

You can delete a web site by issuing an HTTP DELETE request. If the web site being deleted is the only site remaining in a server farm, you can optionally delete the server farm as well by using the deleteEmptyServerFarm parameter. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236430.aspx for more information)

DeleteAsync(IWebSiteOperations, String, String, WebSiteDeleteParameters)

You can delete a web site by issuing an HTTP DELETE request. If the web site being deleted is the only site remaining in a server farm, you can optionally delete the server farm as well by using the deleteEmptyServerFarm parameter. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236430.aspx for more information)

DeleteHybridConnection(IWebSiteOperations, String, String, String)

Deletes a hybrid connection on a specific site.

DeleteHybridConnectionAsync(IWebSiteOperations, String, String, String)

Deletes a hybrid connection on a specific site.

DeleteRepository(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository delete operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

DeleteRepositoryAsync(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository delete operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

Discover(IWebSiteOperations, String, String, RestoreRequest)

Scans a backup in a storage account and returns database information etc. Should be called before calling Restore to discover what parameters are needed for the restore operation.

DiscoverAsync(IWebSiteOperations, String, String, RestoreRequest)

Scans a backup in a storage account and returns database information etc. Should be called before calling Restore to discover what parameters are needed for the restore operation.

GeneratePassword(IWebSiteOperations, String, String)

You can generate a new random password for publishing a site by issuing an HTTP POST request. Tip: If you want to verify that the publish password has changed, issue an HTTP GET on /publishxml before calling /newpassword. In the publish XML, note the hash value in the userPWD attribute. After calling /newpassword, call /publishxml again. You can then compare the new value of userPWD in the Publish XML with the one you noted earlier. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236428.aspx for more information)

GeneratePasswordAsync(IWebSiteOperations, String, String)

You can generate a new random password for publishing a site by issuing an HTTP POST request. Tip: If you want to verify that the publish password has changed, issue an HTTP GET on /publishxml before calling /newpassword. In the publish XML, note the hash value in the userPWD attribute. After calling /newpassword, call /publishxml again. You can then compare the new value of userPWD in the Publish XML with the one you noted earlier. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236428.aspx for more information)

Get(IWebSiteOperations, String, String, WebSiteGetParameters)

You can retrieve details for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167007.aspx for more information)

GetAsync(IWebSiteOperations, String, String, WebSiteGetParameters)

You can retrieve details for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167007.aspx for more information)

GetBackupConfiguration(IWebSiteOperations, String, String)

Gets a schedule configuration for site backups.

GetBackupConfigurationAsync(IWebSiteOperations, String, String)

Gets a schedule configuration for site backups.

GetConfiguration(IWebSiteOperations, String, String)

You can retrieve the config settings for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx for more information)

GetConfigurationAsync(IWebSiteOperations, String, String)

You can retrieve the config settings for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx for more information)

GetHistoricalUsageMetrics(IWebSiteOperations, String, String, WebSiteGetHistoricalUsageMetricsParameters)

You can retrieve historical usage metrics for a site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166964.aspx for more information)

GetHistoricalUsageMetricsAsync(IWebSiteOperations, String, String, WebSiteGetHistoricalUsageMetricsParameters)

You can retrieve historical usage metrics for a site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166964.aspx for more information)

GetHybridConnection(IWebSiteOperations, String, String, String)

Retrieves a particular hybrid connection that belongs to a specific site.

GetHybridConnectionAsync(IWebSiteOperations, String, String, String)

Retrieves a particular hybrid connection that belongs to a specific site.

GetInstanceIds(IWebSiteOperations, String, String)

You can retrieve the list of active instances by ids for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for more information)

GetInstanceIdsAsync(IWebSiteOperations, String, String)

You can retrieve the list of active instances by ids for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for more information)

GetPublishProfile(IWebSiteOperations, String, String)

You can retrieve the publish settings information for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166996.aspx for more information)

GetPublishProfileAsync(IWebSiteOperations, String, String)

You can retrieve the publish settings information for a web site by issuing an HTTP GET request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166996.aspx for more information)

GetRepository(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository get operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

GetRepositoryAsync(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository get operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

GetSlotConfigNames(IWebSiteOperations, String, String)
GetSlotConfigNamesAsync(IWebSiteOperations, String, String)
GetUsageMetrics(IWebSiteOperations, String, String)

You can retrieve current usage metrics for a site by issuing an HTTP GET request. The metrics returned include CPU Time, Data In, Data Out, Local Bytes Read, Local Bytes Written, Network Bytes Read, Network Bytes Written, WP Stop Requests, Memory Usage, CPU Time - Minute Limit, and File System Storage. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166991.aspx for more information)

GetUsageMetricsAsync(IWebSiteOperations, String, String)

You can retrieve current usage metrics for a site by issuing an HTTP GET request. The metrics returned include CPU Time, Data In, Data Out, Local Bytes Read, Local Bytes Written, Network Bytes Read, Network Bytes Written, WP Stop Requests, Memory Usage, CPU Time - Minute Limit, and File System Storage. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166991.aspx for more information)

IsHostnameAvailable(IWebSiteOperations, String)

Determines if a host name is available.

IsHostnameAvailableAsync(IWebSiteOperations, String)

Determines if a host name is available.

ListBackups(IWebSiteOperations, String, String)

Returns list of all backups which are tracked by the system.

ListBackupsAsync(IWebSiteOperations, String, String)

Returns list of all backups which are tracked by the system.

ListHybridConnections(IWebSiteOperations, String, String)

Retrieves a list of all hybrid connections on a specific web site.

ListHybridConnectionsAsync(IWebSiteOperations, String, String)

Retrieves a list of all hybrid connections on a specific web site.

ResetSlotConfiguration(IWebSiteOperations, String, String)
ResetSlotConfigurationAsync(IWebSiteOperations, String, String)
Restart(IWebSiteOperations, String, String)

You can restart a web site by issuing an HTTP POST request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx for more information)

RestartAsync(IWebSiteOperations, String, String)

You can restart a web site by issuing an HTTP POST request. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx for more information)

Restore(IWebSiteOperations, String, String, RestoreRequest)

Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that).

RestoreAsync(IWebSiteOperations, String, String, RestoreRequest)

Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that).

SwapSlots(IWebSiteOperations, String, String, String, String)

You can swap a web site from one slot to another slot.

SwapSlotsAsync(IWebSiteOperations, String, String, String, String)

You can swap a web site from one slot to another slot.

SyncRepository(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository sync operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

SyncRepositoryAsync(IWebSiteOperations, String, String)

A web site repository is essentially a Git repository that you can use to manage your web site content. By using Git source control tools, you can push or pull version-controlled changes to your site. This API executes a repository sync operation. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

Update(IWebSiteOperations, String, String, WebSiteUpdateParameters)

You can update the settings for a web site by using the HTTP PUT method and by specifying the settings in the request body. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167005.aspx for more information)

UpdateAsync(IWebSiteOperations, String, String, WebSiteUpdateParameters)

You can update the settings for a web site by using the HTTP PUT method and by specifying the settings in the request body. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn167005.aspx for more information)

UpdateBackupConfiguration(IWebSiteOperations, String, String, BackupRequest)

Updates a backup schedule for a site.

UpdateBackupConfigurationAsync(IWebSiteOperations, String, String, BackupRequest)

Updates a backup schedule for a site.

UpdateConfiguration(IWebSiteOperations, String, String, WebSiteUpdateConfigurationParameters)

You can update the config settings for a web site by issuing an HTTP PUT with a request body containing the updated settings. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx for more information)

UpdateConfigurationAsync(IWebSiteOperations, String, String, WebSiteUpdateConfigurationParameters)

You can update the config settings for a web site by issuing an HTTP PUT with a request body containing the updated settings. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx for more information)

UpdateHybridConnection(IWebSiteOperations, String, String, HybridConnectionUpdateParameters)

Updates an association to a hybrid connection for a web site.

UpdateHybridConnectionAsync(IWebSiteOperations, String, String, HybridConnectionUpdateParameters)

Updates an association to a hybrid connection for a web site.

UpdateSlotConfigNames(IWebSiteOperations, String, String, SlotConfigNamesUpdate)
UpdateSlotConfigNamesAsync(IWebSiteOperations, String, String, SlotConfigNamesUpdate)

Applies to