Snapshots interface
Interface representing a Snapshots.
Methods
create |
Creates or updates a snapshot. |
delete(string, string, Snapshots |
Deletes a snapshot. |
get(string, string, Snapshots |
Gets a snapshot. |
list(Snapshots |
Gets a list of snapshots in the specified subscription. |
list |
Lists snapshots in the specified subscription and resource group. |
update |
Updates tags on a snapshot. |
Method Details
createOrUpdate(string, string, Snapshot, SnapshotsCreateOrUpdateOptionalParams)
Creates or updates a snapshot.
function createOrUpdate(resourceGroupName: string, resourceName: string, parameters: Snapshot, options?: SnapshotsCreateOrUpdateOptionalParams): Promise<Snapshot>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- resourceName
-
string
The name of the managed cluster resource.
- parameters
- Snapshot
The snapshot to create or update.
The options parameters.
Returns
Promise<Snapshot>
delete(string, string, SnapshotsDeleteOptionalParams)
Deletes a snapshot.
function delete(resourceGroupName: string, resourceName: string, options?: SnapshotsDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- resourceName
-
string
The name of the managed cluster resource.
- options
- SnapshotsDeleteOptionalParams
The options parameters.
Returns
Promise<void>
get(string, string, SnapshotsGetOptionalParams)
Gets a snapshot.
function get(resourceGroupName: string, resourceName: string, options?: SnapshotsGetOptionalParams): Promise<Snapshot>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- resourceName
-
string
The name of the managed cluster resource.
- options
- SnapshotsGetOptionalParams
The options parameters.
Returns
Promise<Snapshot>
list(SnapshotsListOptionalParams)
Gets a list of snapshots in the specified subscription.
function list(options?: SnapshotsListOptionalParams): PagedAsyncIterableIterator<Snapshot, Snapshot[], PageSettings>
Parameters
- options
- SnapshotsListOptionalParams
The options parameters.
Returns
listByResourceGroup(string, SnapshotsListByResourceGroupOptionalParams)
Lists snapshots in the specified subscription and resource group.
function listByResourceGroup(resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Snapshot, Snapshot[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
The options parameters.
Returns
updateTags(string, string, TagsObject, SnapshotsUpdateTagsOptionalParams)
Updates tags on a snapshot.
function updateTags(resourceGroupName: string, resourceName: string, parameters: TagsObject, options?: SnapshotsUpdateTagsOptionalParams): Promise<Snapshot>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- resourceName
-
string
The name of the managed cluster resource.
- parameters
- TagsObject
Parameters supplied to the Update snapshot Tags operation.
The options parameters.
Returns
Promise<Snapshot>