azure-native.recoveryservices.ResourceGuardProxy
Explore with Pulumi AI
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:
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Vault
Name string - The name of the recovery services vault.
- ETag string
- Optional ETag.
- Location string
- Resource location.
- Properties
Pulumi.
Azure Native. Recovery Services. Inputs. Resource Guard Proxy Base - ResourceGuardProxyBaseResource properties
- Resource
Guard stringProxy Name - Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group where the recovery services vault is present.
- Vault
Name string - The name of the recovery services vault.
- ETag string
- Optional ETag.
- Location string
- Resource location.
- Properties
Resource
Guard Proxy Base Args - ResourceGuardProxyBaseResource properties
- Resource
Guard stringProxy Name - map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- vault
Name String - The name of the recovery services vault.
- e
Tag String - Optional ETag.
- location String
- Resource location.
- properties
Resource
Guard Proxy Base - ResourceGuardProxyBaseResource properties
- resource
Guard StringProxy Name - Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group where the recovery services vault is present.
- vault
Name string - The name of the recovery services vault.
- e
Tag string - Optional ETag.
- location string
- Resource location.
- properties
Resource
Guard Proxy Base - ResourceGuardProxyBaseResource properties
- resource
Guard stringProxy Name - {[key: string]: string}
- Resource tags.
- resource_
group_ strname - 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
Resource
Guard Proxy Base Args - ResourceGuardProxyBaseResource properties
- resource_
guard_ strproxy_ name - Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group where the recovery services vault is present.
- vault
Name String - The name of the recovery services vault.
- e
Tag String - Optional ETag.
- location String
- Resource location.
- properties Property Map
- ResourceGuardProxyBaseResource properties
- resource
Guard StringProxy Name - Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceGuardProxy resource produces the following output properties:
Supporting Types
ResourceGuardOperationDetail, ResourceGuardOperationDetailArgs
- Default
Resource stringRequest - Vault
Critical stringOperation
- Default
Resource stringRequest - Vault
Critical stringOperation
- default
Resource StringRequest - vault
Critical StringOperation
- default
Resource stringRequest - vault
Critical stringOperation
- default
Resource StringRequest - vault
Critical StringOperation
ResourceGuardOperationDetailResponse, ResourceGuardOperationDetailResponseArgs
- Default
Resource stringRequest - Vault
Critical stringOperation
- Default
Resource stringRequest - Vault
Critical stringOperation
- default
Resource StringRequest - vault
Critical StringOperation
- default
Resource stringRequest - vault
Critical stringOperation
- default
Resource StringRequest - vault
Critical StringOperation
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