1. Packages
  2. Azure Native
  3. API Docs
  4. recoveryservices
  5. ResourceGuardProxy
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.recoveryservices.ResourceGuardProxy

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

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. 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 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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const resourceGuardProxy = new azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxy", {
    properties: {
        resourceGuardResourceId: "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew",
    },
    resourceGroupName: "SampleResourceGroup",
    resourceGuardProxyName: "swaggerExample",
    vaultName: "sampleVault",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

resource_guard_proxy = azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxy",
    properties={
        "resource_guard_resource_id": "/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew",
    },
    resource_group_name="SampleResourceGroup",
    resource_guard_proxy_name="swaggerExample",
    vault_name="sampleVault")
Copy
resources:
  resourceGuardProxy:
    type: azure-native:recoveryservices:ResourceGuardProxy
    properties:
      properties:
        resourceGuardResourceId: /subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew
      resourceGroupName: SampleResourceGroup
      resourceGuardProxyName: swaggerExample
      vaultName: sampleVault
Copy

Create ResourceGuardProxy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ResourceGuardProxy(name: string, args: ResourceGuardProxyArgs, opts?: CustomResourceOptions);
@overload
def ResourceGuardProxy(resource_name: str,
                       args: ResourceGuardProxyArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def ResourceGuardProxy(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       resource_group_name: Optional[str] = None,
                       vault_name: Optional[str] = None,
                       e_tag: Optional[str] = None,
                       location: Optional[str] = None,
                       properties: Optional[ResourceGuardProxyBaseArgs] = None,
                       resource_guard_proxy_name: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
func NewResourceGuardProxy(ctx *Context, name string, args ResourceGuardProxyArgs, opts ...ResourceOption) (*ResourceGuardProxy, error)
public ResourceGuardProxy(string name, ResourceGuardProxyArgs args, CustomResourceOptions? opts = null)
public ResourceGuardProxy(String name, ResourceGuardProxyArgs args)
public ResourceGuardProxy(String name, ResourceGuardProxyArgs args, CustomResourceOptions options)
type: azure-native:recoveryservices:ResourceGuardProxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ResourceGuardProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ResourceGuardProxyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ResourceGuardProxyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ResourceGuardProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ResourceGuardProxyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var resourceGuardProxyResource = new AzureNative.RecoveryServices.ResourceGuardProxy("resourceGuardProxyResource", new()
{
    ResourceGroupName = "string",
    VaultName = "string",
    ETag = "string",
    Location = "string",
    Properties = new AzureNative.RecoveryServices.Inputs.ResourceGuardProxyBaseArgs
    {
        ResourceGuardResourceId = "string",
        Description = "string",
        LastUpdatedTime = "string",
        ResourceGuardOperationDetails = new[]
        {
            new AzureNative.RecoveryServices.Inputs.ResourceGuardOperationDetailArgs
            {
                DefaultResourceRequest = "string",
                VaultCriticalOperation = "string",
            },
        },
    },
    ResourceGuardProxyName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := recoveryservices.NewResourceGuardProxy(ctx, "resourceGuardProxyResource", &recoveryservices.ResourceGuardProxyArgs{
	ResourceGroupName: pulumi.String("string"),
	VaultName:         pulumi.String("string"),
	ETag:              pulumi.String("string"),
	Location:          pulumi.String("string"),
	Properties: &recoveryservices.ResourceGuardProxyBaseArgs{
		ResourceGuardResourceId: pulumi.String("string"),
		Description:             pulumi.String("string"),
		LastUpdatedTime:         pulumi.String("string"),
		ResourceGuardOperationDetails: recoveryservices.ResourceGuardOperationDetailArray{
			&recoveryservices.ResourceGuardOperationDetailArgs{
				DefaultResourceRequest: pulumi.String("string"),
				VaultCriticalOperation: pulumi.String("string"),
			},
		},
	},
	ResourceGuardProxyName: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var resourceGuardProxyResource = new ResourceGuardProxy("resourceGuardProxyResource", ResourceGuardProxyArgs.builder()
    .resourceGroupName("string")
    .vaultName("string")
    .eTag("string")
    .location("string")
    .properties(ResourceGuardProxyBaseArgs.builder()
        .resourceGuardResourceId("string")
        .description("string")
        .lastUpdatedTime("string")
        .resourceGuardOperationDetails(ResourceGuardOperationDetailArgs.builder()
            .defaultResourceRequest("string")
            .vaultCriticalOperation("string")
            .build())
        .build())
    .resourceGuardProxyName("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
resource_guard_proxy_resource = azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxyResource",
    resource_group_name="string",
    vault_name="string",
    e_tag="string",
    location="string",
    properties={
        "resource_guard_resource_id": "string",
        "description": "string",
        "last_updated_time": "string",
        "resource_guard_operation_details": [{
            "default_resource_request": "string",
            "vault_critical_operation": "string",
        }],
    },
    resource_guard_proxy_name="string",
    tags={
        "string": "string",
    })
Copy
const resourceGuardProxyResource = new azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxyResource", {
    resourceGroupName: "string",
    vaultName: "string",
    eTag: "string",
    location: "string",
    properties: {
        resourceGuardResourceId: "string",
        description: "string",
        lastUpdatedTime: "string",
        resourceGuardOperationDetails: [{
            defaultResourceRequest: "string",
            vaultCriticalOperation: "string",
        }],
    },
    resourceGuardProxyName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:recoveryservices:ResourceGuardProxy
properties:
    eTag: string
    location: string
    properties:
        description: string
        lastUpdatedTime: string
        resourceGuardOperationDetails:
            - defaultResourceRequest: string
              vaultCriticalOperation: string
        resourceGuardResourceId: string
    resourceGroupName: string
    resourceGuardProxyName: string
    tags:
        string: string
    vaultName: string
Copy

ResourceGuardProxy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ResourceGuardProxy resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
ETag string
Optional ETag.
Location string
Resource location.
Properties Pulumi.AzureNative.RecoveryServices.Inputs.ResourceGuardProxyBase
ResourceGuardProxyBaseResource properties
ResourceGuardProxyName Changes to this property will trigger replacement. string
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
VaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
ETag string
Optional ETag.
Location string
Resource location.
Properties ResourceGuardProxyBaseArgs
ResourceGuardProxyBaseResource properties
ResourceGuardProxyName Changes to this property will trigger replacement. string
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group where the recovery services vault is present.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The name of the recovery services vault.
eTag String
Optional ETag.
location String
Resource location.
properties ResourceGuardProxyBase
ResourceGuardProxyBaseResource properties
resourceGuardProxyName Changes to this property will trigger replacement. String
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group where the recovery services vault is present.
vaultName
This property is required.
Changes to this property will trigger replacement.
string
The name of the recovery services vault.
eTag string
Optional ETag.
location string
Resource location.
properties ResourceGuardProxyBase
ResourceGuardProxyBaseResource properties
resourceGuardProxyName Changes to this property will trigger replacement. string
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group where the recovery services vault is present.
vault_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the recovery services vault.
e_tag str
Optional ETag.
location str
Resource location.
properties ResourceGuardProxyBaseArgs
ResourceGuardProxyBaseResource properties
resource_guard_proxy_name Changes to this property will trigger replacement. str
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group where the recovery services vault is present.
vaultName
This property is required.
Changes to this property will trigger replacement.
String
The name of the recovery services vault.
eTag String
Optional ETag.
location String
Resource location.
properties Property Map
ResourceGuardProxyBaseResource properties
resourceGuardProxyName Changes to this property will trigger replacement. String
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResourceGuardProxy resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name associated with the resource.
Type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name associated with the resource.
Type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name associated with the resource.
type String
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name associated with the resource.
type string
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name associated with the resource.
type str
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name associated with the resource.
type String
Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/...

Supporting Types

ResourceGuardOperationDetail
, ResourceGuardOperationDetailArgs

ResourceGuardOperationDetailResponse
, ResourceGuardOperationDetailResponseArgs

ResourceGuardProxyBase
, ResourceGuardProxyBaseArgs

ResourceGuardProxyBaseResponse
, ResourceGuardProxyBaseResponseArgs

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} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi