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
System_CAPS_pubmethodSystem_CAPS_static Backup(IWebSiteOperations, String, String, BackupRequest)

Backups a site on-demand.

System_CAPS_pubmethodSystem_CAPS_static BackupAsync(IWebSiteOperations, String, String, BackupRequest)

Backups a site on-demand.

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

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

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

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

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static 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.

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static GetBackupConfiguration(IWebSiteOperations, String, String)

Gets a schedule configuration for site backups.

System_CAPS_pubmethodSystem_CAPS_static GetBackupConfigurationAsync(IWebSiteOperations, String, String)

Gets a schedule configuration for site backups.

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static IsHostnameAvailable(IWebSiteOperations, String)

Determines if a host name is available.

System_CAPS_pubmethodSystem_CAPS_static IsHostnameAvailableAsync(IWebSiteOperations, String)

Determines if a host name is available.

System_CAPS_pubmethodSystem_CAPS_static ListBackups(IWebSiteOperations, String, String)

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

System_CAPS_pubmethodSystem_CAPS_static ListBackupsAsync(IWebSiteOperations, String, String)

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

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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).

System_CAPS_pubmethodSystem_CAPS_static 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).

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

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

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

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

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static UpdateBackupConfiguration(IWebSiteOperations, String, String, BackupRequest)

Updates a backup schedule for a site.

System_CAPS_pubmethodSystem_CAPS_static UpdateBackupConfigurationAsync(IWebSiteOperations, String, String, BackupRequest)

Updates a backup schedule for a site.

System_CAPS_pubmethodSystem_CAPS_static 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)

System_CAPS_pubmethodSystem_CAPS_static 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