Interface Instances
public interface Instances
Resource collection API of Instances.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new InstanceResource resource.voidDelete a InstanceResource.voiddeleteById(String id) Delete a InstanceResource.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Delete a InstanceResource.voiddeleteByResourceGroup(String resourceGroupName, String instancename) Delete a InstanceResource.Get a InstanceResource.com.azure.core.http.rest.Response<InstanceResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a InstanceResource.getByResourceGroup(String resourceGroupName, String instancename) Get a InstanceResource.com.azure.core.http.rest.Response<InstanceResource> getByResourceGroupWithResponse(String resourceGroupName, String instancename, com.azure.core.util.Context context) Get a InstanceResource.com.azure.core.http.rest.PagedIterable<InstanceResource> list()List InstanceResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<InstanceResource> list(com.azure.core.util.Context context) List InstanceResource resources by subscription ID.com.azure.core.http.rest.PagedIterable<InstanceResource> listByResourceGroup(String resourceGroupName) List InstanceResource resources by resource group.com.azure.core.http.rest.PagedIterable<InstanceResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List InstanceResource resources by resource group.
-
Method Details
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<InstanceResource> getByResourceGroupWithResponse(String resourceGroupName, String instancename, com.azure.core.util.Context context) Get a InstanceResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.instancename- Name of the Instance resource.context- The context to associate with this operation.- Returns:
- a InstanceResource 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
Get a InstanceResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.instancename- Name of the Instance resource.- Returns:
- a InstanceResource.
- 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
Delete a InstanceResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.instancename- Name of the Instance resource.- 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 a InstanceResource.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.instancename- Name of the Instance resource.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
com.azure.core.http.rest.PagedIterable<InstanceResource> listByResourceGroup(String resourceGroupName) List InstanceResource resources by resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.- Returns:
- the response of a InstanceResource list operation 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<InstanceResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List InstanceResource resources by resource group.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.context- The context to associate with this operation.- Returns:
- the response of a InstanceResource list operation 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<InstanceResource> list()List InstanceResource resources by subscription ID.- Returns:
- the response of a InstanceResource list operation 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 InstanceResource resources by subscription ID.- Parameters:
context- The context to associate with this operation.- Returns:
- the response of a InstanceResource list operation 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
Get a InstanceResource.- Parameters:
id- the resource ID.- Returns:
- a InstanceResource 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<InstanceResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a InstanceResource.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- a InstanceResource 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 a InstanceResource.- 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 a InstanceResource.- 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 InstanceResource resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new InstanceResource definition.
-