Interface Workspaces
public interface Workspaces
Resource collection API of Workspaces.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new Workspace resource.voidDeletes a workspace resource.voiddelete(String resourceGroupName, String workspaceName, Boolean force, com.azure.core.util.Context context) Deletes a workspace resource.voiddeleteById(String id) Deletes a workspace resource.voiddeleteByIdWithResponse(String id, Boolean force, com.azure.core.util.Context context) Deletes a workspace resource.voidDeactivates failover for the specified workspace.voidDeactivates failover for the specified workspace.voidActivates failover for the specified workspace.voidfailover(String resourceGroupName, String location, String workspaceName, com.azure.core.util.Context context) Activates failover for the specified workspace.Gets a workspace instance.com.azure.core.http.rest.Response<Workspace> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a workspace instance.getByResourceGroup(String resourceGroupName, String workspaceName) Gets a workspace instance.com.azure.core.http.rest.Response<Workspace> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Gets a workspace instance.getNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) Gets a network security perimeter configuration.com.azure.core.http.rest.Response<NetworkSecurityPerimeterConfiguration> getNspWithResponse(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, com.azure.core.util.Context context) Gets a network security perimeter configuration.com.azure.core.http.rest.PagedIterable<Workspace> list()Gets the workspaces in a subscription.com.azure.core.http.rest.PagedIterable<Workspace> list(com.azure.core.util.Context context) Gets the workspaces in a subscription.com.azure.core.http.rest.PagedIterable<Workspace> listByResourceGroup(String resourceGroupName) Gets workspaces in a resource group.com.azure.core.http.rest.PagedIterable<Workspace> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets workspaces in a resource group.com.azure.core.http.rest.PagedIterable<NetworkSecurityPerimeterConfiguration> Gets a list of NSP configurations for specified workspace.com.azure.core.http.rest.PagedIterable<NetworkSecurityPerimeterConfiguration> Gets a list of NSP configurations for specified workspace.voidreconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) Reconcile network security perimeter configuration for Workspace resource.voidreconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, com.azure.core.util.Context context) Reconcile network security perimeter configuration for Workspace resource.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<Workspace> getByResourceGroupWithResponse(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Gets a workspace instance.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.context- The context to associate with this operation.- Returns:
- a workspace instance 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
Gets a workspace instance.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- Returns:
- a workspace 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
Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- 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 workspaceName, Boolean force, com.azure.core.util.Context context) Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.force- Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered.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.
-
listByResourceGroup
Gets workspaces in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- workspaces 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<Workspace> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets workspaces in a resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- workspaces 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.
-
list
com.azure.core.http.rest.PagedIterable<Workspace> list()Gets the workspaces in a subscription.- Returns:
- the workspaces in a subscription 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
Gets the workspaces in a subscription.- Parameters:
context- The context to associate with this operation.- Returns:
- the workspaces in a subscription 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.
-
failback
Deactivates failover for the specified workspace. The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- 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.
-
failback
Deactivates failover for the specified workspace. The failback operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.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.
-
getNspWithResponse
com.azure.core.http.rest.Response<NetworkSecurityPerimeterConfiguration> getNspWithResponse(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, com.azure.core.util.Context context) Gets a network security perimeter configuration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.networkSecurityPerimeterConfigurationName- The name for a network security perimeter configuration.context- The context to associate with this operation.- Returns:
- a network security perimeter configuration 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.
-
getNsp
NetworkSecurityPerimeterConfiguration getNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) Gets a network security perimeter configuration.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.networkSecurityPerimeterConfigurationName- The name for a network security perimeter configuration.- Returns:
- a network security perimeter configuration.
- 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.
-
listNsp
com.azure.core.http.rest.PagedIterable<NetworkSecurityPerimeterConfiguration> listNsp(String resourceGroupName, String workspaceName) Gets a list of NSP configurations for specified workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.- Returns:
- a list of NSP configurations for specified workspace 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.
-
listNsp
com.azure.core.http.rest.PagedIterable<NetworkSecurityPerimeterConfiguration> listNsp(String resourceGroupName, String workspaceName, com.azure.core.util.Context context) Gets a list of NSP configurations for specified workspace.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.context- The context to associate with this operation.- Returns:
- a list of NSP configurations for specified workspace 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.
-
reconcileNsp
void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName) Reconcile network security perimeter configuration for Workspace resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.networkSecurityPerimeterConfigurationName- The name for a network security perimeter configuration.- 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.
-
reconcileNsp
void reconcileNsp(String resourceGroupName, String workspaceName, String networkSecurityPerimeterConfigurationName, com.azure.core.util.Context context) Reconcile network security perimeter configuration for Workspace resource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.workspaceName- The name of the workspace.networkSecurityPerimeterConfigurationName- The name for a network security perimeter configuration.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.
-
failover
Activates failover for the specified workspace. The specified replication location must match the location of the enabled replication for this workspace. The failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.location- The location name.workspaceName- The name of the workspace.- 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.
-
failover
void failover(String resourceGroupName, String location, String workspaceName, com.azure.core.util.Context context) Activates failover for the specified workspace. The specified replication location must match the location of the enabled replication for this workspace. The failover operation is asynchronous and can take up to 30 minutes to complete. The status of the operation can be checked using the operationId returned in the response.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.location- The location name.workspaceName- The name of the workspace.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
Gets a workspace instance.- Parameters:
id- the resource ID.- Returns:
- a workspace instance 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<Workspace> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a workspace instance.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a workspace instance 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 workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.- 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 workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.- Parameters:
id- the resource ID.force- Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered.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 Workspace resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new Workspace definition.
-