Interface SqlServer
- All Superinterfaces:
GroupableResource<com.microsoft.azure.management.sql.implementation.SqlServerManager,,com.microsoft.azure.management.sql.implementation.ServerInner> HasId,HasInner<com.microsoft.azure.management.sql.implementation.ServerInner>,HasManager<com.microsoft.azure.management.sql.implementation.SqlServerManager>,HasName,HasResourceGroup,Indexable,Refreshable<SqlServer>,Resource,Updatable<SqlServer.Update>
@Beta(V1_7_0)
public interface SqlServer
extends GroupableResource<com.microsoft.azure.management.sql.implementation.SqlServerManager,com.microsoft.azure.management.sql.implementation.ServerInner>, Refreshable<SqlServer>, Updatable<SqlServer.Update>
An immutable client-side representation of an Azure SQL Server.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContainer interface for all the definitions that need to be implemented.static interfaceGrouping of all the storage account definition stages.static interfaceThe template for a SQLServer update operation, containing all the settings that can be modified.static interfaceGrouping of all the SQLServer update stages.Nested classes/interfaces inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T> -
Method Summary
Modifier and TypeMethodDescriptionSets the Azure services default access to this server to true.Gets the Active Directory administrator for this server.Gets a SQL server automatic tuning state and options.getServiceObjective(String serviceObjectiveName) Gets the information on a particular Sql Server Service Objective.booleankind()Returns all the recommended elastic pools for the server.rx.Observable<SqlRestorableDroppedDatabase>Deprecated.voidSets the Azure services default access to this server to false.voidRemoves the Active Directory administrator from this server.setActiveDirectoryAdministrator(String userLogin, String id) Sets an Active Directory administrator to this server.state()version()Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasId
idMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
innerMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupNameMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
keyMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsyncMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Method Details
-
fullyQualifiedDomainName
String fullyQualifiedDomainName()- Returns:
- fully qualified name of the SQL Server
-
administratorLogin
String administratorLogin()- Returns:
- the administrator login user name for the SQL Server
-
version
String version()- Returns:
- the SQL Server version
-
kind
- Returns:
- the SQL Server "kind"
-
state
- Returns:
- the state of the server.
-
isManagedServiceIdentityEnabled
@Beta(V1_8_0) boolean isManagedServiceIdentityEnabled()- Returns:
- true if Managed Service Identity is enabled for the SQL server
-
systemAssignedManagedServiceIdentityTenantId
- Returns:
- the System Assigned (Local) Managed Service Identity specific Active Directory tenant ID assigned to the SQL server.
-
systemAssignedManagedServiceIdentityPrincipalId
- Returns:
- the System Assigned (Local) Managed Service Identity specific Active Directory service principal ID assigned to the SQL server.
-
managedServiceIdentityType
- Returns:
- the type of Managed Service Identity used for the SQL server.
-
listUsages
Deprecated.- Returns:
- returns the list of usages (ServerMetric) of Azure SQL Server
-
listUsageMetrics
- Returns:
- returns the list of usage metrics for an Azure SQL Server
-
listServiceObjectives
List<ServiceObjective> listServiceObjectives()- Returns:
- the list of information on all service objectives
-
getServiceObjective
Gets the information on a particular Sql Server Service Objective.- Parameters:
serviceObjectiveName- name of the service objective to be fetched- Returns:
- information of the service objective
-
listRecommendedElasticPools
Map<String,RecommendedElasticPool> listRecommendedElasticPools()Returns all the recommended elastic pools for the server.- Returns:
- list of recommended elastic pools for the server
-
listRestorableDroppedDatabases
List<SqlRestorableDroppedDatabase> listRestorableDroppedDatabases()- Returns:
- the list of all restorable dropped databases
-
listRestorableDroppedDatabasesAsync
- Returns:
- the list of all restorable dropped databases
-
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:
- the SQL Firewall rule
-
removeAccessFromAzureServices
@Beta(V1_7_0) 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.
-
setActiveDirectoryAdministrator
@Beta(V1_7_0) 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:
userLogin- the user or group login; it can be the name or the email addressid- the user or group unique ID- Returns:
- a representation of a SQL Server Active Directory administrator object
-
getActiveDirectoryAdministrator
Gets the Active Directory administrator for this server.- Returns:
- a representation of a SQL Server Active Directory administrator object (null if one is not set)
-
removeActiveDirectoryAdministrator
@Beta(V1_7_0) void removeActiveDirectoryAdministrator()Removes the Active Directory administrator from this server. -
getServerAutomaticTuning
Gets a SQL server automatic tuning state and options.- Returns:
- the SQL server automatic tuning state and options
-
firewallRules
- Returns:
- the entry point to manage SQL Firewall rules for this server
-
virtualNetworkRules
@Beta(V1_8_0) SqlVirtualNetworkRuleOperations.SqlVirtualNetworkRuleActionsDefinition virtualNetworkRules()- Returns:
- the entry point to manage SQL Virtual Network Rule for this server
-
elasticPools
- Returns:
- the entry point to manage the SQL Elastic Pools for this server
-
databases
- Returns:
- entry point to manage Databases for this SQL server
-
dnsAliases
- Returns:
- the entry point to manage SQL Server DNS aliases for this server
-
failoverGroups
- Returns:
- the entry point to manage SQL Failover Group for this server
-
serverKeys
- Returns:
- the entry point to manage SQL Server Keys for this server
-
encryptionProtectors
@Beta(V1_9_0) SqlEncryptionProtectorOperations.SqlEncryptionProtectorActionsDefinition encryptionProtectors()- Returns:
- the entry point to manage SQL Encryption Protector for this server
-
serverSecurityAlertPolicies
@Beta(V1_15_0) SqlServerSecurityAlertPolicyOperations.SqlServerSecurityAlertPolicyActionsDefinition serverSecurityAlertPolicies()- Returns:
- the entry point to manage SQL Server Security Alert Policy for this server
-