GenericResources Interface

Definition

Entry point to generic resources management API.

public interface GenericResources extends SupportsListing<GenericResource>, SupportsListingByResourceGroup<GenericResource>, SupportsListingInResourceGroupByTag<GenericResource>, SupportsGettingById<GenericResource>, SupportsCreating<GenericResource.DefinitionStages.Blank>, SupportsDeletingById, HasManager<ResourceManager>
Implements

Methods

checkExistence(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)

Checks if a resource exists in a resource group.

checkExistenceById(String id)

Checks if a resource exists. For consistency across service versions, please use checkExistenceById(String id, String apiVersion) instead.

checkExistenceById(String id, String apiVersion)

Checks if a resource exists.

delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)

Delete resource and all of its child resources.

delete(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)

Force delete resource and all of its child resources. This is only available to limited resource types.

deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)

Delete resource and all of its child resources asynchronously.

deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion)

Force delete resource and all of its child resources asynchronously. This is only available to limited resource types.

deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, boolean forceDeletion, ServiceCallback<Void> callback)

Force delete resource and all of its child resources asynchronously. This is only available to limited resource types.

deleteAsync(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion, ServiceCallback<Void> callback)

Delete resource and all of its child resources asynchronously.

deleteById(String id)

Deletes a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteById(String id, String apiVersion) instead.

deleteById(String id, String apiVersion)

Deletes a resource from Azure, identifying it by its resource ID.

deleteByIdAsync(String id)

Asynchronously delete a resource from Azure, identifying it by its resource ID. For consistency across service versions, please use deleteByIdAsync(String id, String apiVersion) instead.

deleteByIdAsync(String id, String apiVersion)

Asynchronously delete a resource from Azure, identifying it by its resource ID.

get(String resourceGroupName, String providerNamespace, String resourceType, String resourceName)

Returns a resource belonging to a resource group.

get(String resourceGroupName, String resourceProviderNamespace, String parentResourcePath, String resourceType, String resourceName, String apiVersion)

Returns a resource belonging to a resource group.

getById(String id)

Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getById(String id, String apiVersion) instead.

getById(String id, String apiVersion)

Gets the information about a resource from Azure based on the resource id.

getByIdAsync(String id)

Gets the information about a resource from Azure based on the resource id. For consistency across service versions, please use getByIdAsync(String id, String apiVersion) instead.

getByIdAsync(String id, String apiVersion)

Gets the information about a resource from Azure based on the resource id.

moveResources(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources)

Move resources from one resource group to another.

moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources)

Move resources from one resource group to another asynchronously.

moveResourcesAsync(String sourceResourceGroupName, ResourceGroup targetResourceGroup, List<String> resources, ServiceCallback<Void> callback)

Move resources from one resource group to another asynchronously.

Applies to