Interface SqlServerInstances
public interface SqlServerInstances
Resource collection API of SqlServerInstances.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new SqlServerInstance resource.void
Deletes a SQL Server Instance resource.void
deleteById
(String id) Deletes a SQL Server Instance resource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a SQL Server Instance resource.void
deleteByResourceGroup
(String resourceGroupName, String sqlServerInstanceName) Deletes a SQL Server Instance resource.Retrieves a SQL Server Instance resource.com.azure.core.http.rest.Response<SqlServerInstance>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Retrieves a SQL Server Instance resource.getByResourceGroup
(String resourceGroupName, String sqlServerInstanceName) Retrieves a SQL Server Instance resource.com.azure.core.http.rest.Response<SqlServerInstance>
getByResourceGroupWithResponse
(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context) Retrieves a SQL Server Instance resource.com.azure.core.http.rest.PagedIterable<SqlServerInstance>
list()
List sqlServerInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlServerInstance>
list
(com.azure.core.util.Context context) List sqlServerInstance resources in the subscription.com.azure.core.http.rest.PagedIterable<SqlServerInstance>
listByResourceGroup
(String resourceGroupName) List sqlServerInstance resources in the resource groupcom.azure.core.http.rest.PagedIterable<SqlServerInstance>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List sqlServerInstance resources in the resource group
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<SqlServerInstance> list()List sqlServerInstance resources in the subscription.- Returns:
- a list of SqlServerInstance as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
List sqlServerInstance resources in the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of SqlServerInstance as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SqlServerInstance> listByResourceGroup(String resourceGroupName) List sqlServerInstance resources in the resource groupGets all sqlServerInstances in a resource group.
- Parameters:
resourceGroupName
- The name of the Azure resource group.- Returns:
- all sqlServerInstances in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<SqlServerInstance> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List sqlServerInstance resources in the resource groupGets all sqlServerInstances in a resource group.
- Parameters:
resourceGroupName
- The name of the Azure resource group.context
- The context to associate with this operation.- Returns:
- all sqlServerInstances in a resource group as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<SqlServerInstance> getByResourceGroupWithResponse(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context) Retrieves a SQL Server Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlServerInstanceName
- Name of SQL Server Instance.context
- The context to associate with this operation.- Returns:
- a SqlServerInstance along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Retrieves a SQL Server Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlServerInstanceName
- Name of SQL Server Instance.- Returns:
- a SqlServerInstance.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByResourceGroup
Deletes a SQL Server Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlServerInstanceName
- The name of SQL Server Instance.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String sqlServerInstanceName, com.azure.core.util.Context context) Deletes a SQL Server Instance resource.- Parameters:
resourceGroupName
- The name of the Azure resource group.sqlServerInstanceName
- The name of SQL Server Instance.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Retrieves a SQL Server Instance resource.- Parameters:
id
- the resource ID.- Returns:
- a SqlServerInstance along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<SqlServerInstance> getByIdWithResponse(String id, com.azure.core.util.Context context) Retrieves a SQL Server Instance resource.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a SqlServerInstance along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes a SQL Server Instance resource.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Deletes a SQL Server Instance resource.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new SqlServerInstance resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new SqlServerInstance definition.
-