Skip to main content

deleted_servers

Creates, updates, deletes, gets or lists a deleted_servers resource.

Overview

Namedeleted_servers
TypeResource
Idazure.sql.deleted_servers

Fields

NameDatatypeDescription
deletedServerNametextfield from the properties object
deletion_timetextfield from the properties object
fully_qualified_domain_nametextfield from the properties object
locationNametextfield from the properties object
original_idtextfield from the properties object
subscriptionIdtextfield from the properties object
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTdeletedServerName, locationName, subscriptionIdGets a deleted server.
listSELECTsubscriptionIdGets a list of all deleted servers in a subscription.
list_by_locationSELECTlocationName, subscriptionIdGets a list of deleted servers for a location.
recoverEXECdeletedServerName, locationName, subscriptionIdRecovers a deleted server.

SELECT examples

Gets a list of all deleted servers in a subscription.

SELECT
deletedServerName,
deletion_time,
fully_qualified_domain_name,
locationName,
original_id,
subscriptionId,
version
FROM azure.sql.vw_deleted_servers
WHERE subscriptionId = '{{ subscriptionId }}';