RestorePointArgs

data class RestorePointArgs(val excludeDisks: Output<List<ApiEntityReferenceArgs>>? = null, val resourceGroupName: Output<String>? = null, val restorePointCollectionName: Output<String>? = null, val restorePointName: Output<String>? = null, val timeCreated: Output<String>? = null) : ConvertibleToJava<RestorePointArgs>

Restore Point details. API Version: 2021-03-01.

Example Usage

Create a restore point

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var restorePoint = new AzureNative.Compute.RestorePoint("restorePoint", new()
{
ExcludeDisks = new[]
{
new AzureNative.Compute.Inputs.ApiEntityReferenceArgs
{
Id = "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123",
},
},
ResourceGroupName = "myResourceGroup",
RestorePointCollectionName = "rpcName",
RestorePointName = "rpName",
});
});
package main
import (
compute "github.com/pulumi/pulumi-azure-native-sdk/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.NewRestorePoint(ctx, "restorePoint", &compute.RestorePointArgs{
ExcludeDisks: []compute.ApiEntityReferenceArgs{
{
Id: pulumi.String("/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
RestorePointCollectionName: pulumi.String("rpcName"),
RestorePointName: pulumi.String("rpName"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.RestorePoint;
import com.pulumi.azurenative.compute.RestorePointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var restorePoint = new RestorePoint("restorePoint", RestorePointArgs.builder()
.excludeDisks(Map.of("id", "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123"))
.resourceGroupName("myResourceGroup")
.restorePointCollectionName("rpcName")
.restorePointName("rpName")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:RestorePoint rpName /subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/rpcName/restorePoints/rpName

Constructors

Link copied to clipboard
constructor(excludeDisks: Output<List<ApiEntityReferenceArgs>>? = null, resourceGroupName: Output<String>? = null, restorePointCollectionName: Output<String>? = null, restorePointName: Output<String>? = null, timeCreated: Output<String>? = null)

Properties

Link copied to clipboard

List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val restorePointCollectionName: Output<String>? = null

The name of the restore point collection.

Link copied to clipboard
val restorePointName: Output<String>? = null

The name of the restore point.

Link copied to clipboard
val timeCreated: Output<String>? = null

Gets the creation time of the restore point.

Functions

Link copied to clipboard
open override fun toJava(): RestorePointArgs