Interface IscsiTargets
public interface IscsiTargets
Resource collection API of IscsiTargets.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new IscsiTarget resource.void
Delete an iSCSI Target.void
delete
(String resourceGroupName, String diskPoolName, String iscsiTargetName, com.azure.core.util.Context context) Delete an iSCSI Target.void
deleteById
(String id) Delete an iSCSI Target.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete an iSCSI Target.Get an iSCSI Target.Get an iSCSI Target.com.azure.core.http.rest.Response<IscsiTarget>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get an iSCSI Target.com.azure.core.http.rest.Response<IscsiTarget>
getWithResponse
(String resourceGroupName, String diskPoolName, String iscsiTargetName, com.azure.core.util.Context context) Get an iSCSI Target.com.azure.core.http.rest.PagedIterable<IscsiTarget>
listByDiskPool
(String resourceGroupName, String diskPoolName) Get iSCSI Targets in a Disk pool.com.azure.core.http.rest.PagedIterable<IscsiTarget>
listByDiskPool
(String resourceGroupName, String diskPoolName, com.azure.core.util.Context context) Get iSCSI Targets in a Disk pool.
-
Method Details
-
listByDiskPool
com.azure.core.http.rest.PagedIterable<IscsiTarget> listByDiskPool(String resourceGroupName, String diskPoolName) Get iSCSI Targets in a Disk pool.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.- Returns:
- iSCSI Targets in a Disk pool 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.
-
listByDiskPool
com.azure.core.http.rest.PagedIterable<IscsiTarget> listByDiskPool(String resourceGroupName, String diskPoolName, com.azure.core.util.Context context) Get iSCSI Targets in a Disk pool.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.context
- The context to associate with this operation.- Returns:
- iSCSI Targets in a Disk pool 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.
-
delete
Delete an iSCSI Target.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.iscsiTargetName
- The name of the iSCSI Target.- 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 diskPoolName, String iscsiTargetName, com.azure.core.util.Context context) Delete an iSCSI Target.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.iscsiTargetName
- The name of the iSCSI Target.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<IscsiTarget> getWithResponse(String resourceGroupName, String diskPoolName, String iscsiTargetName, com.azure.core.util.Context context) Get an iSCSI Target.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.iscsiTargetName
- The name of the iSCSI Target.context
- The context to associate with this operation.- Returns:
- an iSCSI Target 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
Get an iSCSI Target.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.diskPoolName
- The name of the Disk Pool.iscsiTargetName
- The name of the iSCSI Target.- Returns:
- an iSCSI Target.
- 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
Get an iSCSI Target.- Parameters:
id
- the resource ID.- Returns:
- an iSCSI Target 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<IscsiTarget> getByIdWithResponse(String id, com.azure.core.util.Context context) Get an iSCSI Target.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- an iSCSI Target 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
Delete an iSCSI Target.- 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
Delete an iSCSI Target.- 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 IscsiTarget resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new IscsiTarget definition.
-