Share via


IWebSiteOperations Members

Represents the interface for the operations that are used to manage the websites in a web space.

The following tables list the members exposed by the IWebSiteOperations type.

Public Methods

(see also Extension Methods)

  Name Description
BackupAsync Backups a site on-demand.
BeginSwappingSlotsAsync You can swap a web site from one slot to another slot.
CreateAsync Asynchronously creates a website.
CreateRepositoryAsync Asynchronously creates a website repository.
DeleteAsync 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/library/windowsazure/dn236430.aspx for more information)
DeleteRepositoryAsync Asynchronously deletes a Website Repository.
DiscoverAsync 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.
GeneratePasswordAsync Asynchronously generates a password for publishing a website.
GetAsync Asynchronously retrieves information for a website.
GetBackupConfigurationAsync Gets a schedule configuration for site backups.
GetConfigurationAsync Asynchronously retrieves the configuration settings for a website.
GetHistoricalUsageMetricsAsync Asynchronously retrieves historical usage metrics for a site.
GetInstanceIdsAsync 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/library/windowsazure/dn166981.aspx for more information)
GetPublishProfileAsync Asynchronously retrieves the publish settings information for a website.
GetRepositoryAsync Asynchronously retrieves a website repository.
GetUsageMetricsAsync Asynchronously retrieves the usage metrics of a website.
IsHostnameAvailableAsync Determines if a host name is available.
ListBackupsAsync Returns list of all backups which are tracked by the system.
RestartAsync Asynchronously restarts a website.
RestoreAsync Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that).
SwapSlotsAsync You can swap a web site from one slot to another slot.
SyncRepositoryAsync 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/library/windowsazure/dn166967.aspx for more information)
UpdateAsync Asynchronously updates the settings for a website.
UpdateBackupConfigurationAsync Updates a backup schedule for a site.
UpdateConfigurationAsync Asynchronously updates the configuration settings for a website.

Top

Extension Methods

  Name Description
Backup  Backups a site on-demand. (Defined by WebSiteOperationsExtensions.)
BackupAsync  Backups a site on-demand. (Defined by WebSiteOperationsExtensions.)
BeginSwappingSlots  You can swap a web site from one slot to another slot. (Defined by WebSiteOperationsExtensions.)
BeginSwappingSlotsAsync  You can swap a web site from one slot to another slot. (Defined by WebSiteOperationsExtensions.)
Create  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) (Defined by WebSiteOperationsExtensions.)
CreateAsync  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) (Defined by WebSiteOperationsExtensions.)
CreateRepository  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) (Defined by WebSiteOperationsExtensions.)
CreateRepositoryAsync  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) (Defined by WebSiteOperationsExtensions.)
Delete  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) (Defined by WebSiteOperationsExtensions.)
DeleteAsync  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) (Defined by WebSiteOperationsExtensions.)
DeleteRepository  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) (Defined by WebSiteOperationsExtensions.)
DeleteRepositoryAsync  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) (Defined by WebSiteOperationsExtensions.)
Discover  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. (Defined by WebSiteOperationsExtensions.)
DiscoverAsync  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. (Defined by WebSiteOperationsExtensions.)
GeneratePassword  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) (Defined by WebSiteOperationsExtensions.)
GeneratePasswordAsync  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) (Defined by WebSiteOperationsExtensions.)
Get  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) (Defined by WebSiteOperationsExtensions.)
GetAsync  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) (Defined by WebSiteOperationsExtensions.)
GetBackupConfiguration  Gets a schedule configuration for site backups. (Defined by WebSiteOperationsExtensions.)
GetBackupConfigurationAsync  Gets a schedule configuration for site backups. (Defined by WebSiteOperationsExtensions.)
GetConfiguration  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) (Defined by WebSiteOperationsExtensions.)
GetConfigurationAsync  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) (Defined by WebSiteOperationsExtensions.)
GetHistoricalUsageMetrics  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) (Defined by WebSiteOperationsExtensions.)
GetHistoricalUsageMetricsAsync  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) (Defined by WebSiteOperationsExtensions.)
GetInstanceIds  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) (Defined by WebSiteOperationsExtensions.)
GetInstanceIdsAsync  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) (Defined by WebSiteOperationsExtensions.)
GetPublishProfile  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) (Defined by WebSiteOperationsExtensions.)
GetPublishProfileAsync  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) (Defined by WebSiteOperationsExtensions.)
GetRepository  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) (Defined by WebSiteOperationsExtensions.)
GetRepositoryAsync  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) (Defined by WebSiteOperationsExtensions.)
GetUsageMetrics  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) (Defined by WebSiteOperationsExtensions.)
GetUsageMetricsAsync  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) (Defined by WebSiteOperationsExtensions.)
IsHostnameAvailable  Determines if a host name is available. (Defined by WebSiteOperationsExtensions.)
IsHostnameAvailableAsync  Determines if a host name is available. (Defined by WebSiteOperationsExtensions.)
ListBackups  Returns list of all backups which are tracked by the system. (Defined by WebSiteOperationsExtensions.)
ListBackupsAsync  Returns list of all backups which are tracked by the system. (Defined by WebSiteOperationsExtensions.)
Restart  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) (Defined by WebSiteOperationsExtensions.)
RestartAsync  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) (Defined by WebSiteOperationsExtensions.)
Restore  Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that). (Defined by WebSiteOperationsExtensions.)
RestoreAsync  Restores a site to either a new site or existing site (Overwrite flag has to be set to true for that). (Defined by WebSiteOperationsExtensions.)
SwapSlots  You can swap a web site from one slot to another slot. (Defined by WebSiteOperationsExtensions.)
SwapSlotsAsync  You can swap a web site from one slot to another slot. (Defined by WebSiteOperationsExtensions.)
SyncRepository  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) (Defined by WebSiteOperationsExtensions.)
SyncRepositoryAsync  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) (Defined by WebSiteOperationsExtensions.)
Update  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) (Defined by WebSiteOperationsExtensions.)
UpdateAsync  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) (Defined by WebSiteOperationsExtensions.)
UpdateBackupConfiguration  Updates a backup schedule for a site. (Defined by WebSiteOperationsExtensions.)
UpdateBackupConfigurationAsync  Updates a backup schedule for a site. (Defined by WebSiteOperationsExtensions.)
UpdateConfiguration  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) (Defined by WebSiteOperationsExtensions.)
UpdateConfigurationAsync  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) (Defined by WebSiteOperationsExtensions.)

Top

See Also

Reference

IWebSiteOperations Interface
Microsoft.WindowsAzure.Management.WebSites Namespace