SqlServer Interface
Implements
public interface SqlServer
extends GroupableResource<SqlServerManager,ServerInner>, Refreshable<SqlServer>, Updatable<Update>
An immutable client-side representation of an Azure SQL Server.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String |
administratorLogin()
Gets the administrator login user name for the SQL Server. |
abstract
Sql |
databases()
Gets entry point to manage Databases for this SQL server. |
abstract
Sql |
dnsAliases()
Gets the entry point to manage SQL Server DNS aliases for this server. |
abstract
Sql |
elasticPools()
Gets the entry point to manage the SQL Elastic Pools for this server. |
abstract
Sql |
enableAccessFromAzureServices()
Sets the Azure services default access to this server to true. |
abstract
Sql |
encryptionProtectors()
Gets the entry point to manage SQL Encryption Protector for this server. |
abstract
Sql |
failoverGroups()
Gets the entry point to manage SQL Failover Group for this server. |
abstract
Sql |
firewallRules()
Gets the entry point to manage SQL Firewall rules for this server. |
abstract String |
fullyQualifiedDomainName()
Gets the fully qualified name of the SQL Server. |
abstract
Sql |
getActiveDirectoryAdministrator()
Gets the Active Directory administrator for this server. |
abstract
Sql |
getServerAutomaticTuning()
Gets a SQL server automatic tuning state and options. |
abstract boolean |
isManagedServiceIdentityEnabled()
Checks whether Managed Service Identity is enabled for the SQL server. |
abstract String |
kind()
Gets the kind of the SQL Server. |
abstract
List<Sql |
listRestorableDroppedDatabases()
Gets the list of all restorable dropped databases. |
abstract
Paged |
listRestorableDroppedDatabasesAsync()
Gets the list of all restorable dropped databases. |
abstract
List<Server |
listUsageMetrics()
Gets the list of usage metrics for an Azure SQL Server. |
abstract
Identity |
managedServiceIdentityType()
Gets the type of Managed Service Identity used for the SQL server. |
abstract
Server |
publicNetworkAccess()
Checks whether the SQL Server can be accessed from public network. |
abstract void |
removeAccessFromAzureServices()
Sets the Azure services default access to this server to false. |
abstract void |
removeActiveDirectoryAdministrator()
Removes the Active Directory administrator from this server. |
abstract
Sql |
serverKeys()
Gets the entry point to manage SQL Server Keys for this server. |
abstract
Sql |
serverSecurityAlertPolicies()
Gets the entry point to manage SQL Server Security Alert Policy for this server. |
abstract
Sql |
setActiveDirectoryAdministrator(String userLogin, String id)
Sets an Active Directory administrator to this server. |
abstract String |
state()
Gets the state of the server. |
abstract String |
systemAssignedManagedServiceIdentityPrincipalId()
Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the SQL server. |
abstract String |
systemAssignedManagedServiceIdentityTenantId()
Gets the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the SQL server. |
abstract String |
version()
Gets the SQL Server version. |
abstract
Sql |
virtualNetworkRules()
Gets the entry point to manage SQL Virtual Network Rule for this server. |
Method Details
administratorLogin
public abstract String administratorLogin()
Gets the administrator login user name for the SQL Server.
Returns:
databases
public abstract SqlDatabaseOperations.SqlDatabaseActionsDefinition databases()
Gets entry point to manage Databases for this SQL server.
Returns:
dnsAliases
public abstract SqlServerDnsAliasOperations.SqlServerDnsAliasActionsDefinition dnsAliases()
Gets the entry point to manage SQL Server DNS aliases for this server.
Returns:
elasticPools
public abstract SqlElasticPoolOperations.SqlElasticPoolActionsDefinition elasticPools()
Gets the entry point to manage the SQL Elastic Pools for this server.
Returns:
enableAccessFromAzureServices
public abstract SqlFirewallRule enableAccessFromAzureServices()
Sets the Azure services default access to this server to true.
A firewall rule named "AllowAllWindowsAzureIps" with the start IP "0.0.0.0" will be added to the SQL server if one does not exist.
Returns:
encryptionProtectors
public abstract SqlEncryptionProtectorOperations.SqlEncryptionProtectorActionsDefinition encryptionProtectors()
Gets the entry point to manage SQL Encryption Protector for this server.
Returns:
failoverGroups
public abstract SqlFailoverGroupOperations.SqlFailoverGroupActionsDefinition failoverGroups()
Gets the entry point to manage SQL Failover Group for this server.
Returns:
firewallRules
public abstract SqlFirewallRuleOperations.SqlFirewallRuleActionsDefinition firewallRules()
Gets the entry point to manage SQL Firewall rules for this server.
Returns:
fullyQualifiedDomainName
public abstract String fullyQualifiedDomainName()
Gets the fully qualified name of the SQL Server.
Returns:
getActiveDirectoryAdministrator
public abstract SqlActiveDirectoryAdministrator getActiveDirectoryAdministrator()
Gets the Active Directory administrator for this server.
Returns:
getServerAutomaticTuning
public abstract SqlServerAutomaticTuning getServerAutomaticTuning()
Gets a SQL server automatic tuning state and options.
Returns:
isManagedServiceIdentityEnabled
public abstract boolean isManagedServiceIdentityEnabled()
Checks whether Managed Service Identity is enabled for the SQL server.
Returns:
kind
public abstract String kind()
Gets the kind of the SQL Server.
Returns:
listRestorableDroppedDatabases
public abstract List
Gets the list of all restorable dropped databases.
Returns:
listRestorableDroppedDatabasesAsync
public abstract PagedFlux
Gets the list of all restorable dropped databases.
Returns:
listUsageMetrics
public abstract List
Gets the list of usage metrics for an Azure SQL Server.
Returns:
managedServiceIdentityType
public abstract IdentityType managedServiceIdentityType()
Gets the type of Managed Service Identity used for the SQL server.
Returns:
publicNetworkAccess
public abstract ServerNetworkAccessFlag publicNetworkAccess()
Checks whether the SQL Server can be accessed from public network.
Returns:
removeAccessFromAzureServices
public abstract void removeAccessFromAzureServices()
Sets the Azure services default access to this server to false.
The firewall rule named "AllowAllWindowsAzureIps" will be removed from the SQL server.
removeActiveDirectoryAdministrator
public abstract void removeActiveDirectoryAdministrator()
Removes the Active Directory administrator from this server.
serverKeys
public abstract SqlServerKeyOperations.SqlServerKeyActionsDefinition serverKeys()
Gets the entry point to manage SQL Server Keys for this server.
Returns:
serverSecurityAlertPolicies
public abstract SqlServerSecurityAlertPolicyOperations.SqlServerSecurityAlertPolicyActionsDefinition serverSecurityAlertPolicies()
Gets the entry point to manage SQL Server Security Alert Policy for this server.
Returns:
setActiveDirectoryAdministrator
public abstract SqlActiveDirectoryAdministrator setActiveDirectoryAdministrator(String userLogin, String id)
Sets an Active Directory administrator to this server.
Azure Active Directory authentication allows you to centrally manage identity and access to your Azure SQL Database V12.
Parameters:
Returns:
state
public abstract String state()
Gets the state of the server.
Returns:
systemAssignedManagedServiceIdentityPrincipalId
public abstract String systemAssignedManagedServiceIdentityPrincipalId()
Gets the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the SQL server.
Returns:
systemAssignedManagedServiceIdentityTenantId
public abstract String systemAssignedManagedServiceIdentityTenantId()
Gets the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the SQL server.
Returns:
version
public abstract String version()
Gets the SQL Server version.
Returns:
virtualNetworkRules
public abstract SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition virtualNetworkRules()
Gets the entry point to manage SQL Virtual Network Rule for this server.
Returns:
Applies to
Azure SDK for Java