Share via


WebSiteOperationsExtensions Class

 

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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166981.aspx for more information)

Namespace:   Microsoft.WindowsAzure
Assembly:  Microsoft.WindowsAzure.Management.WebSites (in Microsoft.WindowsAzure.Management.WebSites.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.WebSiteOperationsExtensions

Syntax

public static class WebSiteOperationsExtensions
[ExtensionAttribute]
public ref class WebSiteOperationsExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type WebSiteOperationsExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class WebSiteOperationsExtensions

Methods

Name Description
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 https://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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166986.aspx for more information)

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 https://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 https://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 https://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 https://msdn.microsoft.com/en-us/library/windowsazure/dn236430.aspx for more information)

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 https://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 https://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 https://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 https://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 https://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 https://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 https://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 https://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 https://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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166964.aspx for more information)

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 https://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 https://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 https://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 https://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 https://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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166967.aspx for more information)

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 https://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 https://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.

Restart(IWebSiteOperations, String, String)

You can restart a web site by issuing an HTTP POST request. (see https://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 https://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 https://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 https://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 https://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 https://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 https://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 https://msdn.microsoft.com/en-us/library/windowsazure/dn166985.aspx for more information)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure Namespace

Return to top