Interface Snapshots

All Superinterfaces:
com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<ComputeManager>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion, com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating<Snapshot.DefinitionStages.Blank>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup<Snapshot>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup<Snapshot>

public interface Snapshots extends com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating<Snapshot.DefinitionStages.Blank>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById<Snapshot>, com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup, com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation<Snapshot>, com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion, com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager<ComputeManager>
Entry point to managed snapshot management API in Azure.
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void>
    Begins deleting a snapshot from Azure, identifying it by its resource ID.
    default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void>
    beginDeleteById(String id, com.azure.core.util.Context context)
    Begins deleting a snapshot from Azure, identifying it by its resource ID.
    default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void>
    beginDeleteByResourceGroup(String resourceGroupName, String name)
    Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
    default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void>
    beginDeleteByResourceGroup(String resourceGroupName, String name, com.azure.core.util.Context context)
    Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
    grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
    Grants access to a snapshot.
    grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
    Grants access to the snapshot asynchronously.
    void
    revokeAccess(String resourceGroupName, String snapName)
    Revoke access granted to a snapshot.
    revokeAccessAsync(String resourceGroupName, String snapName)
    Revoke access granted to the snapshot asynchronously.

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager

    manager

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsBatchCreation

    create, create, createAsync, createAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsBatchDeletion

    deleteByIds, deleteByIds, deleteByIdsAsync, deleteByIdsAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsCreating

    define

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsDeletingById

    deleteById, deleteByIdAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup

    deleteByResourceGroup, deleteByResourceGroupAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingById

    getById, getByIdAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup

    getByResourceGroup, getByResourceGroupAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListing

    list, listAsync

    Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.collection.SupportsListingByResourceGroup

    listByResourceGroup, listByResourceGroupAsync
  • Method Details

    • grantAccessAsync

      Mono<String> grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
      Grants access to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapshotName - the snapshot name
      accessLevel - access level
      accessDuration - access duration
      Returns:
      a representation of the deferred computation of this call returning a read-only SAS URI to the snapshot
    • grantAccess

      String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)
      Grants access to a snapshot.
      Parameters:
      resourceGroupName - the resource group name
      snapshotName - the snapshot name
      accessLevel - access level
      accessDuration - access duration
      Returns:
      the read-only SAS URI to the snapshot
    • revokeAccessAsync

      Mono<Void> revokeAccessAsync(String resourceGroupName, String snapName)
      Revoke access granted to the snapshot asynchronously.
      Parameters:
      resourceGroupName - the resource group name
      snapName - the snapshot name
      Returns:
      a representation of the deferred computation of this call
    • revokeAccess

      void revokeAccess(String resourceGroupName, String snapName)
      Revoke access granted to a snapshot.
      Parameters:
      resourceGroupName - the resource group name
      snapName - the snapshot name
    • beginDeleteById

      default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void> beginDeleteById(String id)
      Begins deleting a snapshot from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the snapshot to delete
      Returns:
      the accepted deleting operation
    • beginDeleteById

      default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void> beginDeleteById(String id, com.azure.core.util.Context context)
      Begins deleting a snapshot from Azure, identifying it by its resource ID.
      Parameters:
      id - the resource ID of the snapshot to delete
      context - the Context of the request
      Returns:
      the accepted deleting operation
    • beginDeleteByResourceGroup

      default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name)
      Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
      Parameters:
      resourceGroupName - the resource group the resource is part of
      name - the snapshot name
      Returns:
      the accepted deleting operation
    • beginDeleteByResourceGroup

      default com.azure.resourcemanager.resources.fluentcore.model.Accepted<Void> beginDeleteByResourceGroup(String resourceGroupName, String name, com.azure.core.util.Context context)
      Begins deleting a snapshot from Azure, identifying it by its name and its resource group.
      Parameters:
      resourceGroupName - the resource group the resource is part of
      name - the snapshot name
      context - the Context of the request
      Returns:
      the accepted deleting operation