ResourceGuardProxyArgs

data class ResourceGuardProxyArgs(val eTag: Output<String>? = null, val location: Output<String>? = null, val properties: Output<ResourceGuardProxyBaseArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceGuardProxyName: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val vaultName: Output<String>? = null) : ConvertibleToJava<ResourceGuardProxyArgs>

Uses Azure REST API version 2024-10-01. In version 2.x of the Azure Native provider, it used API version 2023-04-01. Other available API versions: 2023-02-01, 2023-04-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-04-30-preview, 2024-07-30-preview, 2024-11-01-preview, 2025-01-01, 2025-02-01, 2025-02-28-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native recoveryservices [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create ResourceGuardProxy

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var resourceGuardProxy = new AzureNative.RecoveryServices.ResourceGuardProxy("resourceGuardProxy", new()
{
Properties = new AzureNative.RecoveryServices.Inputs.ResourceGuardProxyBaseArgs
{
ResourceGuardResourceId = "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew",
},
ResourceGroupName = "SampleResourceGroup",
ResourceGuardProxyName = "swaggerExample",
VaultName = "sampleVault",
});
});
package main
import (
recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recoveryservices.NewResourceGuardProxy(ctx, "resourceGuardProxy", &recoveryservices.ResourceGuardProxyArgs{
Properties: &recoveryservices.ResourceGuardProxyBaseArgs{
ResourceGuardResourceId: pulumi.String("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"),
},
ResourceGroupName: pulumi.String("SampleResourceGroup"),
ResourceGuardProxyName: pulumi.String("swaggerExample"),
VaultName: pulumi.String("sampleVault"),
})
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.recoveryservices.ResourceGuardProxy;
import com.pulumi.azurenative.recoveryservices.ResourceGuardProxyArgs;
import com.pulumi.azurenative.recoveryservices.inputs.ResourceGuardProxyBaseArgs;
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 resourceGuardProxy = new ResourceGuardProxy("resourceGuardProxy", ResourceGuardProxyArgs.builder()
.properties(ResourceGuardProxyBaseArgs.builder()
.resourceGuardResourceId("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew")
.build())
.resourceGroupName("SampleResourceGroup")
.resourceGuardProxyName("swaggerExample")
.vaultName("sampleVault")
.build());
}
}

Import

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

$ pulumi import azure-native:recoveryservices:ResourceGuardProxy swaggerExample /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}

Constructors

Link copied to clipboard
constructor(eTag: Output<String>? = null, location: Output<String>? = null, properties: Output<ResourceGuardProxyBaseArgs>? = null, resourceGroupName: Output<String>? = null, resourceGuardProxyName: Output<String>? = null, tags: Output<Map<String, String>>? = null, vaultName: Output<String>? = null)

Properties

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

Optional ETag.

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

Resource location.

Link copied to clipboard

ResourceGuardProxyBaseResource properties

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

The name of the resource group where the recovery services vault is present.

Link copied to clipboard
val resourceGuardProxyName: Output<String>? = null
Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

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

The name of the recovery services vault.

Functions

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