Virtual Machine Instances - Delete Checkpoint
Implements the operation to delete a checkpoint in a virtual machine instance.
Deletes a checkpoint in virtual machine instance.
POST https://management.azure.com/{resourceUri}/providers/Microsoft.ScVmm/virtualMachineInstances/default/deleteCheckpoint?api-version=2023-10-07
URI Parameters
Name
In
Required
Type
Description
resourceUri
path
True
string
The fully qualified Azure Resource manager identifier of the resource.
api-version
query
True
string
minLength: 1
The API version to use for this operation.
Request Body
Name
Type
Description
id
string
ID of the checkpoint to be deleted.
Responses
Name
Type
Description
202 Accepted
Resource operation accepted.
Headers
Location: string
Retry-After: integer
Other Status Codes
ErrorResponse
An unexpected error response.
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name
Description
user_impersonation
impersonate your user account
Examples
VirtualMachineInstances_DeleteCheckpoint_MaximumSet
Sample request
POST https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/deleteCheckpoint?api-version=2023-10-07
{
"id": "eenfflimcbgqfsebdusophahjpk"
}
from typing import Any, IO, Union
from azure.identity import DefaultAzureCredential
from azure.mgmt.scvmm import ScVmmMgmtClient
"""
# PREREQUISITES
pip install azure-identity
pip install azure-mgmt-scvmm
# USAGE
python virtual_machine_instances_delete_checkpoint_maximum_set_gen.py
Before run the sample, please set the values of the client ID, tenant ID and client secret
of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID,
AZURE_CLIENT_SECRET. For more info about how to get the value, please see:
https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal
"""
def main():
client = ScVmmMgmtClient(
credential=DefaultAzureCredential(),
subscription_id="SUBSCRIPTION_ID",
)
client.virtual_machine_instances.begin_delete_checkpoint(
resource_uri="gtgclehcbsyave",
body={"id": "eenfflimcbgqfsebdusophahjpk"},
).result()
# x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json
if __name__ == "__main__":
main()
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
package armscvmm_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scvmm/armscvmm"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7753cb8917f0968713c013a1f25875e8bd8dc492/specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json
func ExampleVirtualMachineInstancesClient_BeginDeleteCheckpoint_virtualMachineInstancesDeleteCheckpointMaximumSet() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armscvmm.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVirtualMachineInstancesClient().BeginDeleteCheckpoint(ctx, "gtgclehcbsyave", armscvmm.VirtualMachineDeleteCheckpoint{
ID: to.Ptr("eenfflimcbgqfsebdusophahjpk"),
}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { ScVmm } = require("@azure/arm-scvmm");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Deletes a checkpoint in virtual machine instance.
*
* @summary Deletes a checkpoint in virtual machine instance.
* x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json
*/
async function virtualMachineInstancesDeleteCheckpointMaximumSet() {
const resourceUri = "gtgclehcbsyave";
const body = {
id: "eenfflimcbgqfsebdusophahjpk",
};
const credential = new DefaultAzureCredential();
const client = new ScVmm(credential);
const result = await client.virtualMachineInstances.beginDeleteCheckpointAndWait(
resourceUri,
body,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample response
location: https://contoso.com/operationstatus
VirtualMachineInstances_DeleteCheckpoint_MinimumSet
Sample request
POST https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default/deleteCheckpoint?api-version=2023-10-07
{}
package armscvmm_test
import (
"context"
"log"
"github.com/Azure/azure-sdk-for-go/sdk/azidentity"
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/scvmm/armscvmm"
)
// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7753cb8917f0968713c013a1f25875e8bd8dc492/specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json
func ExampleVirtualMachineInstancesClient_BeginDeleteCheckpoint_virtualMachineInstancesDeleteCheckpointMinimumSet() {
cred, err := azidentity.NewDefaultAzureCredential(nil)
if err != nil {
log.Fatalf("failed to obtain a credential: %v", err)
}
ctx := context.Background()
clientFactory, err := armscvmm.NewClientFactory("<subscription-id>", cred, nil)
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
poller, err := clientFactory.NewVirtualMachineInstancesClient().BeginDeleteCheckpoint(ctx, "gtgclehcbsyave", armscvmm.VirtualMachineDeleteCheckpoint{}, nil)
if err != nil {
log.Fatalf("failed to finish the request: %v", err)
}
_, err = poller.PollUntilDone(ctx, nil)
if err != nil {
log.Fatalf("failed to pull the result: %v", err)
}
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
const { ScVmm } = require("@azure/arm-scvmm");
const { DefaultAzureCredential } = require("@azure/identity");
/**
* This sample demonstrates how to Deletes a checkpoint in virtual machine instance.
*
* @summary Deletes a checkpoint in virtual machine instance.
* x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json
*/
async function virtualMachineInstancesDeleteCheckpointMinimumSet() {
const resourceUri = "gtgclehcbsyave";
const body = {};
const credential = new DefaultAzureCredential();
const client = new ScVmm(credential);
const result = await client.virtualMachineInstances.beginDeleteCheckpointAndWait(
resourceUri,
body,
);
console.log(result);
}
To use the Azure SDK library in your project, see this documentation . To provide feedback on this code sample, open a GitHub issue
Sample response
location: https://contoso.com/operationstatus
Definitions
ErrorAdditionalInfo
Object
The resource management error additional info.
Name
Type
Description
info
object
The additional info.
type
string
The additional info type.
ErrorDetail
Object
The error detail.
Name
Type
Description
additionalInfo
ErrorAdditionalInfo []
The error additional info.
code
string
The error code.
details
ErrorDetail []
The error details.
message
string
The error message.
target
string
The error target.
ErrorResponse
Object
Error response
Name
Type
Description
error
ErrorDetail
The error object.
VirtualMachineDeleteCheckpoint
Object
Defines the delete checkpoint action properties.
Name
Type
Description
id
string
ID of the checkpoint to be deleted.