Interface AdministratorsMicrosoftEntras
public interface AdministratorsMicrosoftEntras
Resource collection API of AdministratorsMicrosoftEntras.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new AdministratorMicrosoftEntra resource.voidDeletes an existing server administrator associated to a Microsoft Entra principal.voiddelete(String resourceGroupName, String serverName, String objectId, com.azure.core.util.Context context) Deletes an existing server administrator associated to a Microsoft Entra principal.voiddeleteById(String id) Deletes an existing server administrator associated to a Microsoft Entra principal.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes an existing server administrator associated to a Microsoft Entra principal.Gets information about a server administrator associated to a Microsoft Entra principal.Gets information about a server administrator associated to a Microsoft Entra principal.com.azure.core.http.rest.Response<AdministratorMicrosoftEntra> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets information about a server administrator associated to a Microsoft Entra principal.com.azure.core.http.rest.Response<AdministratorMicrosoftEntra> getWithResponse(String resourceGroupName, String serverName, String objectId, com.azure.core.util.Context context) Gets information about a server administrator associated to a Microsoft Entra principal.com.azure.core.http.rest.PagedIterable<AdministratorMicrosoftEntra> listByServer(String resourceGroupName, String serverName) List all server administrators associated to a Microsoft Entra principal.com.azure.core.http.rest.PagedIterable<AdministratorMicrosoftEntra> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) List all server administrators associated to a Microsoft Entra principal.
-
Method Details
-
delete
Deletes an existing server administrator associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.objectId- Object identifier of the Microsoft Entra principal.- 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 serverName, String objectId, com.azure.core.util.Context context) Deletes an existing server administrator associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.objectId- Object identifier of the Microsoft Entra principal.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.
-
getWithResponse
com.azure.core.http.rest.Response<AdministratorMicrosoftEntra> getWithResponse(String resourceGroupName, String serverName, String objectId, com.azure.core.util.Context context) Gets information about a server administrator associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.objectId- Object identifier of the Microsoft Entra principal.context- The context to associate with this operation.- Returns:
- information about a server administrator associated to a Microsoft Entra principal 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.
-
get
Gets information about a server administrator associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.objectId- Object identifier of the Microsoft Entra principal.- Returns:
- information about a server administrator associated to a Microsoft Entra principal.
- 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<AdministratorMicrosoftEntra> listByServer(String resourceGroupName, String serverName) List all server administrators associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- list of server administrators associated to Microsoft Entra principals 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<AdministratorMicrosoftEntra> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) List all server administrators associated to a Microsoft Entra principal.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- list of server administrators associated to Microsoft Entra principals 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.
-
getById
Gets information about a server administrator associated to a Microsoft Entra principal.- Parameters:
id- the resource ID.- Returns:
- information about a server administrator associated to a Microsoft Entra principal 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<AdministratorMicrosoftEntra> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets information about a server administrator associated to a Microsoft Entra principal.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- information about a server administrator associated to a Microsoft Entra principal 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 an existing server administrator associated to a Microsoft Entra principal.- 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 an existing server administrator associated to a Microsoft Entra principal.- 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 AdministratorMicrosoftEntra resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new AdministratorMicrosoftEntra definition.
-