Interface PrivateEndpointConnections
-
public interface PrivateEndpointConnectionsResource collection API of PrivateEndpointConnections.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PrivateEndpointConnection.DefinitionStages.Blankdefine(String name)Begins definition for a new PrivateEndpointConnection resource.voiddelete(String resourceGroupName, String serverName, String privateEndpointConnectionName)Deletes a private endpoint connection with a given name.voiddelete(String resourceGroupName, String serverName, String privateEndpointConnectionName, com.azure.core.util.Context context)Deletes a private endpoint connection with a given name.voiddeleteById(String id)Deletes a private endpoint connection with a given name.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context)Deletes a private endpoint connection with a given name.PrivateEndpointConnectionget(String resourceGroupName, String serverName, String privateEndpointConnectionName)Gets a private endpoint connection.PrivateEndpointConnectiongetById(String id)Gets a private endpoint connection.com.azure.core.http.rest.Response<PrivateEndpointConnection>getByIdWithResponse(String id, com.azure.core.util.Context context)Gets a private endpoint connection.com.azure.core.http.rest.Response<PrivateEndpointConnection>getWithResponse(String resourceGroupName, String serverName, String privateEndpointConnectionName, com.azure.core.util.Context context)Gets a private endpoint connection.com.azure.core.http.rest.PagedIterable<PrivateEndpointConnection>listByServer(String resourceGroupName, String serverName)Gets all private endpoint connections on a server.com.azure.core.http.rest.PagedIterable<PrivateEndpointConnection>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)Gets all private endpoint connections on a server.
-
-
-
Method Detail
-
get
PrivateEndpointConnection get(String resourceGroupName, String serverName, String privateEndpointConnectionName)
Gets a private endpoint connection.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.privateEndpointConnectionName- The name of the private endpoint connection.- Returns:
- a private endpoint connection.
- 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<PrivateEndpointConnection> getWithResponse(String resourceGroupName, String serverName, String privateEndpointConnectionName, com.azure.core.util.Context context)
Gets a private endpoint connection.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.privateEndpointConnectionName- The name of the private endpoint connection.context- The context to associate with this operation.- Returns:
- a private endpoint connection 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.
-
delete
void delete(String resourceGroupName, String serverName, String privateEndpointConnectionName)
Deletes a private endpoint connection with a given name.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.privateEndpointConnectionName- The privateEndpointConnectionName parameter.- 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 privateEndpointConnectionName, com.azure.core.util.Context context)
Deletes a private endpoint connection with a given name.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.privateEndpointConnectionName- The privateEndpointConnectionName parameter.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.
-
listByServer
com.azure.core.http.rest.PagedIterable<PrivateEndpointConnection> listByServer(String resourceGroupName, String serverName)
Gets all private endpoint connections on a server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.- Returns:
- all private endpoint connections on a server.
- 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<PrivateEndpointConnection> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
Gets all private endpoint connections on a server.- 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:
- all private endpoint connections on a server.
- 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
PrivateEndpointConnection getById(String id)
Gets a private endpoint connection.- Parameters:
id- the resource ID.- Returns:
- a private endpoint connection 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<PrivateEndpointConnection> getByIdWithResponse(String id, com.azure.core.util.Context context)
Gets a private endpoint connection.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a private endpoint connection 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
void deleteById(String id)
Deletes a private endpoint connection with a given name.- 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
void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
Deletes a private endpoint connection with a given name.- 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
PrivateEndpointConnection.DefinitionStages.Blank define(String name)
Begins definition for a new PrivateEndpointConnection resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new PrivateEndpointConnection definition.
-
-