1. Packages
  2. Azure Native
  3. API Docs
  4. recoveryservices
  5. ResourceGuardProxy
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.recoveryservices.ResourceGuardProxy

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-02-01-preview.

    Other available API versions: 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-04-30-preview, 2024-07-30-preview, 2024-10-01.

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

    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 string
    The unique name of the resource.
    args ResourceGuardProxyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args ResourceGuardProxyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ResourceGuardProxyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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
        {
            Description = "string",
            LastUpdatedTime = "string",
            ResourceGuardOperationDetails = new[]
            {
                new AzureNative.RecoveryServices.Inputs.ResourceGuardOperationDetailArgs
                {
                    DefaultResourceRequest = "string",
                    VaultCriticalOperation = "string",
                },
            },
            ResourceGuardResourceId = "string",
        },
        ResourceGuardProxyName = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    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{
    		Description:     pulumi.String("string"),
    		LastUpdatedTime: pulumi.String("string"),
    		ResourceGuardOperationDetails: recoveryservices.ResourceGuardOperationDetailArray{
    			&recoveryservices.ResourceGuardOperationDetailArgs{
    				DefaultResourceRequest: pulumi.String("string"),
    				VaultCriticalOperation: pulumi.String("string"),
    			},
    		},
    		ResourceGuardResourceId: pulumi.String("string"),
    	},
    	ResourceGuardProxyName: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var resourceGuardProxyResource = new ResourceGuardProxy("resourceGuardProxyResource", ResourceGuardProxyArgs.builder()
        .resourceGroupName("string")
        .vaultName("string")
        .eTag("string")
        .location("string")
        .properties(ResourceGuardProxyBaseArgs.builder()
            .description("string")
            .lastUpdatedTime("string")
            .resourceGuardOperationDetails(ResourceGuardOperationDetailArgs.builder()
                .defaultResourceRequest("string")
                .vaultCriticalOperation("string")
                .build())
            .resourceGuardResourceId("string")
            .build())
        .resourceGuardProxyName("string")
        .tags(Map.of("string", "string"))
        .build());
    
    resource_guard_proxy_resource = azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxyResource",
        resource_group_name="string",
        vault_name="string",
        e_tag="string",
        location="string",
        properties={
            "description": "string",
            "last_updated_time": "string",
            "resource_guard_operation_details": [{
                "default_resource_request": "string",
                "vault_critical_operation": "string",
            }],
            "resource_guard_resource_id": "string",
        },
        resource_guard_proxy_name="string",
        tags={
            "string": "string",
        })
    
    const resourceGuardProxyResource = new azure_native.recoveryservices.ResourceGuardProxy("resourceGuardProxyResource", {
        resourceGroupName: "string",
        vaultName: "string",
        eTag: "string",
        location: "string",
        properties: {
            description: "string",
            lastUpdatedTime: "string",
            resourceGuardOperationDetails: [{
                defaultResourceRequest: "string",
                vaultCriticalOperation: "string",
            }],
            resourceGuardResourceId: "string",
        },
        resourceGuardProxyName: "string",
        tags: {
            string: "string",
        },
    });
    
    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
    

    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 string
    The name of the resource group where the recovery services vault is present.
    VaultName 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 string
    Tags Dictionary<string, string>
    Resource tags.
    ResourceGroupName string
    The name of the resource group where the recovery services vault is present.
    VaultName string
    The name of the recovery services vault.
    ETag string
    Optional ETag.
    Location string
    Resource location.
    Properties ResourceGuardProxyBaseArgs
    ResourceGuardProxyBaseResource properties
    ResourceGuardProxyName string
    Tags map[string]string
    Resource tags.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    vaultName String
    The name of the recovery services vault.
    eTag String
    Optional ETag.
    location String
    Resource location.
    properties ResourceGuardProxyBase
    ResourceGuardProxyBaseResource properties
    resourceGuardProxyName String
    tags Map<String,String>
    Resource tags.
    resourceGroupName string
    The name of the resource group where the recovery services vault is present.
    vaultName string
    The name of the recovery services vault.
    eTag string
    Optional ETag.
    location string
    Resource location.
    properties ResourceGuardProxyBase
    ResourceGuardProxyBaseResource properties
    resourceGuardProxyName string
    tags {[key: string]: string}
    Resource tags.
    resource_group_name str
    The name of the resource group where the recovery services vault is present.
    vault_name 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 str
    tags Mapping[str, str]
    Resource tags.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    vaultName String
    The name of the recovery services vault.
    eTag String
    Optional ETag.
    location String
    Resource location.
    properties Property Map
    ResourceGuardProxyBaseResource properties
    resourceGuardProxyName 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:

    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/...
    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/...
    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/...
    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/...
    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/...
    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} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi