### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.Snapshots"
fullName: "com.azure.resourcemanager.compute.models.Snapshots"
name: "Snapshots"
nameWithType: "Snapshots"
summary: "Entry point to managed snapshot management API in Azure."
syntax: "public interface **Snapshots** extends <>, <>, <>, <>, <>, , , <>, , <>"
methods:
- uid: "com.azure.resourcemanager.compute.models.Snapshots.grantAccess(java.lang.String,java.lang.String,com.azure.resourcemanager.compute.models.AccessLevel,int)"
fullName: "com.azure.resourcemanager.compute.models.Snapshots.grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
name: "grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
nameWithType: "Snapshots.grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
summary: "Grants access to a snapshot."
modifiers:
- "abstract"
parameters:
- description: "the resource group name"
name: "resourceGroupName"
type: "String"
- description: "the snapshot name"
name: "snapshotName"
type: "String"
- description: "access level"
name: "accessLevel"
type: ""
- description: "access duration"
name: "accessDuration"
type: ""
syntax: "public abstract String grantAccess(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
desc: "Grants access to a snapshot."
returns:
description: "the read-only SAS URI to the snapshot"
type: "String"
- uid: "com.azure.resourcemanager.compute.models.Snapshots.grantAccessAsync(java.lang.String,java.lang.String,com.azure.resourcemanager.compute.models.AccessLevel,int)"
fullName: "com.azure.resourcemanager.compute.models.Snapshots.grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
name: "grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
nameWithType: "Snapshots.grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
summary: "Grants access to the snapshot asynchronously."
modifiers:
- "abstract"
parameters:
- description: "the resource group name"
name: "resourceGroupName"
type: "String"
- description: "the snapshot name"
name: "snapshotName"
type: "String"
- description: "access level"
name: "accessLevel"
type: ""
- description: "access duration"
name: "accessDuration"
type: ""
syntax: "public abstract Mono grantAccessAsync(String resourceGroupName, String snapshotName, AccessLevel accessLevel, int accessDuration)"
desc: "Grants access to the snapshot asynchronously."
returns:
description: "a representation of the deferred computation of this call returning a read-only SAS URI to the snapshot"
type: "Mono<String>"
- uid: "com.azure.resourcemanager.compute.models.Snapshots.revokeAccess(java.lang.String,java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.Snapshots.revokeAccess(String resourceGroupName, String snapName)"
name: "revokeAccess(String resourceGroupName, String snapName)"
nameWithType: "Snapshots.revokeAccess(String resourceGroupName, String snapName)"
summary: "Revoke access granted to a snapshot."
modifiers:
- "abstract"
parameters:
- description: "the resource group name"
name: "resourceGroupName"
type: "String"
- description: "the snapshot name"
name: "snapName"
type: "String"
syntax: "public abstract void revokeAccess(String resourceGroupName, String snapName)"
desc: "Revoke access granted to a snapshot."
- uid: "com.azure.resourcemanager.compute.models.Snapshots.revokeAccessAsync(java.lang.String,java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.Snapshots.revokeAccessAsync(String resourceGroupName, String snapName)"
name: "revokeAccessAsync(String resourceGroupName, String snapName)"
nameWithType: "Snapshots.revokeAccessAsync(String resourceGroupName, String snapName)"
summary: "Revoke access granted to the snapshot asynchronously."
modifiers:
- "abstract"
parameters:
- description: "the resource group name"
name: "resourceGroupName"
type: "String"
- description: "the snapshot name"
name: "snapName"
type: "String"
syntax: "public abstract Mono revokeAccessAsync(String resourceGroupName, String snapName)"
desc: "Revoke access granted to the snapshot asynchronously."
returns:
description: "a representation of the deferred computation of this call"
type: "Mono<Void>"
type: "interface"
desc: "Entry point to managed snapshot management API in Azure."
implements:
- ""
- ""
- "<>"
- "<>"
- "<>"
- "<>"
- "<>"
- "<>"
- ""
- "<>"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0