nutanix.ProtectionRule
Explore with Pulumi AI
Provides a Nutanix Protection Rule resource to Create a Protection Rule.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pierskarsenbarg/nutanix";
const protectionRuleTest = new nutanix.ProtectionRule("protectionRuleTest", {
availabilityZoneConnectivityLists: [{
snapshotScheduleLists: [{
localSnapshotRetentionPolicy: {
numSnapshots: 1,
},
recoveryPointObjectiveSecs: 3600,
snapshotType: "CRASH_CONSISTENT",
}],
}],
categoryFilter: {
params: [{
name: "Environment",
values: ["Dev"],
}],
},
description: "test",
orderedAvailabilityZoneLists: [{
availabilityZoneUrl: "ab788130-0820-4d07-a1b5-b0ba4d3a42asd",
}],
});
import pulumi
import pulumi_nutanix as nutanix
protection_rule_test = nutanix.ProtectionRule("protectionRuleTest",
availability_zone_connectivity_lists=[{
"snapshot_schedule_lists": [{
"local_snapshot_retention_policy": {
"num_snapshots": 1,
},
"recovery_point_objective_secs": 3600,
"snapshot_type": "CRASH_CONSISTENT",
}],
}],
category_filter={
"params": [{
"name": "Environment",
"values": ["Dev"],
}],
},
description="test",
ordered_availability_zone_lists=[{
"availability_zone_url": "ab788130-0820-4d07-a1b5-b0ba4d3a42asd",
}])
package main
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := nutanix.NewProtectionRule(ctx, "protectionRuleTest", &nutanix.ProtectionRuleArgs{
AvailabilityZoneConnectivityLists: nutanix.ProtectionRuleAvailabilityZoneConnectivityListArray{
&nutanix.ProtectionRuleAvailabilityZoneConnectivityListArgs{
SnapshotScheduleLists: nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArray{
&nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs{
LocalSnapshotRetentionPolicy: &nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs{
NumSnapshots: pulumi.Int(1),
},
RecoveryPointObjectiveSecs: pulumi.Int(3600),
SnapshotType: pulumi.String("CRASH_CONSISTENT"),
},
},
},
},
CategoryFilter: &nutanix.ProtectionRuleCategoryFilterArgs{
Params: nutanix.ProtectionRuleCategoryFilterParamArray{
&nutanix.ProtectionRuleCategoryFilterParamArgs{
Name: pulumi.String("Environment"),
Values: pulumi.StringArray{
pulumi.String("Dev"),
},
},
},
},
Description: pulumi.String("test"),
OrderedAvailabilityZoneLists: nutanix.ProtectionRuleOrderedAvailabilityZoneListArray{
&nutanix.ProtectionRuleOrderedAvailabilityZoneListArgs{
AvailabilityZoneUrl: pulumi.String("ab788130-0820-4d07-a1b5-b0ba4d3a42asd"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = PiersKarsenbarg.Nutanix;
return await Deployment.RunAsync(() =>
{
var protectionRuleTest = new Nutanix.ProtectionRule("protectionRuleTest", new()
{
AvailabilityZoneConnectivityLists = new[]
{
new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListArgs
{
SnapshotScheduleLists = new[]
{
new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs
{
LocalSnapshotRetentionPolicy = new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs
{
NumSnapshots = 1,
},
RecoveryPointObjectiveSecs = 3600,
SnapshotType = "CRASH_CONSISTENT",
},
},
},
},
CategoryFilter = new Nutanix.Inputs.ProtectionRuleCategoryFilterArgs
{
Params = new[]
{
new Nutanix.Inputs.ProtectionRuleCategoryFilterParamArgs
{
Name = "Environment",
Values = new[]
{
"Dev",
},
},
},
},
Description = "test",
OrderedAvailabilityZoneLists = new[]
{
new Nutanix.Inputs.ProtectionRuleOrderedAvailabilityZoneListArgs
{
AvailabilityZoneUrl = "ab788130-0820-4d07-a1b5-b0ba4d3a42asd",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.ProtectionRule;
import com.pulumi.nutanix.ProtectionRuleArgs;
import com.pulumi.nutanix.inputs.ProtectionRuleAvailabilityZoneConnectivityListArgs;
import com.pulumi.nutanix.inputs.ProtectionRuleCategoryFilterArgs;
import com.pulumi.nutanix.inputs.ProtectionRuleOrderedAvailabilityZoneListArgs;
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 protectionRuleTest = new ProtectionRule("protectionRuleTest", ProtectionRuleArgs.builder()
.availabilityZoneConnectivityLists(ProtectionRuleAvailabilityZoneConnectivityListArgs.builder()
.snapshotScheduleLists(ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs.builder()
.localSnapshotRetentionPolicy(ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs.builder()
.numSnapshots(1)
.build())
.recoveryPointObjectiveSecs(3600)
.snapshotType("CRASH_CONSISTENT")
.build())
.build())
.categoryFilter(ProtectionRuleCategoryFilterArgs.builder()
.params(ProtectionRuleCategoryFilterParamArgs.builder()
.name("Environment")
.values("Dev")
.build())
.build())
.description("test")
.orderedAvailabilityZoneLists(ProtectionRuleOrderedAvailabilityZoneListArgs.builder()
.availabilityZoneUrl("ab788130-0820-4d07-a1b5-b0ba4d3a42asd")
.build())
.build());
}
}
resources:
protectionRuleTest:
type: nutanix:ProtectionRule
properties:
availabilityZoneConnectivityLists:
- snapshotScheduleLists:
- localSnapshotRetentionPolicy:
numSnapshots: 1
recoveryPointObjectiveSecs: 3600
snapshotType: CRASH_CONSISTENT
categoryFilter:
params:
- name: Environment
values:
- Dev
description: test
orderedAvailabilityZoneLists:
- availabilityZoneUrl: ab788130-0820-4d07-a1b5-b0ba4d3a42asd
Create ProtectionRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProtectionRule(name: string, args: ProtectionRuleArgs, opts?: CustomResourceOptions);
@overload
def ProtectionRule(resource_name: str,
args: ProtectionRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProtectionRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone_connectivity_lists: Optional[Sequence[ProtectionRuleAvailabilityZoneConnectivityListArgs]] = None,
ordered_availability_zone_lists: Optional[Sequence[ProtectionRuleOrderedAvailabilityZoneListArgs]] = None,
categories: Optional[Sequence[ProtectionRuleCategoryArgs]] = None,
category_filter: Optional[ProtectionRuleCategoryFilterArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owner_reference: Optional[ProtectionRuleOwnerReferenceArgs] = None,
project_reference: Optional[ProtectionRuleProjectReferenceArgs] = None,
start_time: Optional[str] = None)
func NewProtectionRule(ctx *Context, name string, args ProtectionRuleArgs, opts ...ResourceOption) (*ProtectionRule, error)
public ProtectionRule(string name, ProtectionRuleArgs args, CustomResourceOptions? opts = null)
public ProtectionRule(String name, ProtectionRuleArgs args)
public ProtectionRule(String name, ProtectionRuleArgs args, CustomResourceOptions options)
type: nutanix:ProtectionRule
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 ProtectionRuleArgs
- 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 ProtectionRuleArgs
- 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 ProtectionRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProtectionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProtectionRuleArgs
- 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 protectionRuleResource = new Nutanix.ProtectionRule("protectionRuleResource", new()
{
AvailabilityZoneConnectivityLists = new[]
{
new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListArgs
{
DestinationAvailabilityZoneIndex = 0,
SnapshotScheduleLists = new[]
{
new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs
{
RecoveryPointObjectiveSecs = 0,
AutoSuspendTimeoutSecs = 0,
LocalSnapshotRetentionPolicy = new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs
{
NumSnapshots = 0,
RollupRetentionPolicyMultiple = 0,
RollupRetentionPolicySnapshotIntervalType = "string",
},
RemoteSnapshotRetentionPolicy = new Nutanix.Inputs.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicyArgs
{
NumSnapshots = 0,
RollupRetentionPolicyMultiple = 0,
RollupRetentionPolicySnapshotIntervalType = "string",
},
SnapshotType = "string",
},
},
SourceAvailabilityZoneIndex = 0,
},
},
OrderedAvailabilityZoneLists = new[]
{
new Nutanix.Inputs.ProtectionRuleOrderedAvailabilityZoneListArgs
{
AvailabilityZoneUrl = "string",
ClusterUuid = "string",
},
},
Categories = new[]
{
new Nutanix.Inputs.ProtectionRuleCategoryArgs
{
Name = "string",
Value = "string",
},
},
CategoryFilter = new Nutanix.Inputs.ProtectionRuleCategoryFilterArgs
{
KindLists = new[]
{
"string",
},
Params = new[]
{
new Nutanix.Inputs.ProtectionRuleCategoryFilterParamArgs
{
Name = "string",
Values = new[]
{
"string",
},
},
},
Type = "string",
},
Description = "string",
Name = "string",
OwnerReference = new Nutanix.Inputs.ProtectionRuleOwnerReferenceArgs
{
Kind = "string",
Name = "string",
Uuid = "string",
},
ProjectReference = new Nutanix.Inputs.ProtectionRuleProjectReferenceArgs
{
Kind = "string",
Name = "string",
Uuid = "string",
},
StartTime = "string",
});
example, err := nutanix.NewProtectionRule(ctx, "protectionRuleResource", &nutanix.ProtectionRuleArgs{
AvailabilityZoneConnectivityLists: nutanix.ProtectionRuleAvailabilityZoneConnectivityListArray{
&nutanix.ProtectionRuleAvailabilityZoneConnectivityListArgs{
DestinationAvailabilityZoneIndex: pulumi.Int(0),
SnapshotScheduleLists: nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArray{
&nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs{
RecoveryPointObjectiveSecs: pulumi.Int(0),
AutoSuspendTimeoutSecs: pulumi.Int(0),
LocalSnapshotRetentionPolicy: &nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs{
NumSnapshots: pulumi.Int(0),
RollupRetentionPolicyMultiple: pulumi.Int(0),
RollupRetentionPolicySnapshotIntervalType: pulumi.String("string"),
},
RemoteSnapshotRetentionPolicy: &nutanix.ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicyArgs{
NumSnapshots: pulumi.Int(0),
RollupRetentionPolicyMultiple: pulumi.Int(0),
RollupRetentionPolicySnapshotIntervalType: pulumi.String("string"),
},
SnapshotType: pulumi.String("string"),
},
},
SourceAvailabilityZoneIndex: pulumi.Int(0),
},
},
OrderedAvailabilityZoneLists: nutanix.ProtectionRuleOrderedAvailabilityZoneListArray{
&nutanix.ProtectionRuleOrderedAvailabilityZoneListArgs{
AvailabilityZoneUrl: pulumi.String("string"),
ClusterUuid: pulumi.String("string"),
},
},
Categories: nutanix.ProtectionRuleCategoryArray{
&nutanix.ProtectionRuleCategoryArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
CategoryFilter: &nutanix.ProtectionRuleCategoryFilterArgs{
KindLists: pulumi.StringArray{
pulumi.String("string"),
},
Params: nutanix.ProtectionRuleCategoryFilterParamArray{
&nutanix.ProtectionRuleCategoryFilterParamArgs{
Name: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Type: pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OwnerReference: &nutanix.ProtectionRuleOwnerReferenceArgs{
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
ProjectReference: &nutanix.ProtectionRuleProjectReferenceArgs{
Kind: pulumi.String("string"),
Name: pulumi.String("string"),
Uuid: pulumi.String("string"),
},
StartTime: pulumi.String("string"),
})
var protectionRuleResource = new ProtectionRule("protectionRuleResource", ProtectionRuleArgs.builder()
.availabilityZoneConnectivityLists(ProtectionRuleAvailabilityZoneConnectivityListArgs.builder()
.destinationAvailabilityZoneIndex(0)
.snapshotScheduleLists(ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs.builder()
.recoveryPointObjectiveSecs(0)
.autoSuspendTimeoutSecs(0)
.localSnapshotRetentionPolicy(ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs.builder()
.numSnapshots(0)
.rollupRetentionPolicyMultiple(0)
.rollupRetentionPolicySnapshotIntervalType("string")
.build())
.remoteSnapshotRetentionPolicy(ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicyArgs.builder()
.numSnapshots(0)
.rollupRetentionPolicyMultiple(0)
.rollupRetentionPolicySnapshotIntervalType("string")
.build())
.snapshotType("string")
.build())
.sourceAvailabilityZoneIndex(0)
.build())
.orderedAvailabilityZoneLists(ProtectionRuleOrderedAvailabilityZoneListArgs.builder()
.availabilityZoneUrl("string")
.clusterUuid("string")
.build())
.categories(ProtectionRuleCategoryArgs.builder()
.name("string")
.value("string")
.build())
.categoryFilter(ProtectionRuleCategoryFilterArgs.builder()
.kindLists("string")
.params(ProtectionRuleCategoryFilterParamArgs.builder()
.name("string")
.values("string")
.build())
.type("string")
.build())
.description("string")
.name("string")
.ownerReference(ProtectionRuleOwnerReferenceArgs.builder()
.kind("string")
.name("string")
.uuid("string")
.build())
.projectReference(ProtectionRuleProjectReferenceArgs.builder()
.kind("string")
.name("string")
.uuid("string")
.build())
.startTime("string")
.build());
protection_rule_resource = nutanix.ProtectionRule("protectionRuleResource",
availability_zone_connectivity_lists=[{
"destination_availability_zone_index": 0,
"snapshot_schedule_lists": [{
"recovery_point_objective_secs": 0,
"auto_suspend_timeout_secs": 0,
"local_snapshot_retention_policy": {
"num_snapshots": 0,
"rollup_retention_policy_multiple": 0,
"rollup_retention_policy_snapshot_interval_type": "string",
},
"remote_snapshot_retention_policy": {
"num_snapshots": 0,
"rollup_retention_policy_multiple": 0,
"rollup_retention_policy_snapshot_interval_type": "string",
},
"snapshot_type": "string",
}],
"source_availability_zone_index": 0,
}],
ordered_availability_zone_lists=[{
"availability_zone_url": "string",
"cluster_uuid": "string",
}],
categories=[{
"name": "string",
"value": "string",
}],
category_filter={
"kind_lists": ["string"],
"params": [{
"name": "string",
"values": ["string"],
}],
"type": "string",
},
description="string",
name="string",
owner_reference={
"kind": "string",
"name": "string",
"uuid": "string",
},
project_reference={
"kind": "string",
"name": "string",
"uuid": "string",
},
start_time="string")
const protectionRuleResource = new nutanix.ProtectionRule("protectionRuleResource", {
availabilityZoneConnectivityLists: [{
destinationAvailabilityZoneIndex: 0,
snapshotScheduleLists: [{
recoveryPointObjectiveSecs: 0,
autoSuspendTimeoutSecs: 0,
localSnapshotRetentionPolicy: {
numSnapshots: 0,
rollupRetentionPolicyMultiple: 0,
rollupRetentionPolicySnapshotIntervalType: "string",
},
remoteSnapshotRetentionPolicy: {
numSnapshots: 0,
rollupRetentionPolicyMultiple: 0,
rollupRetentionPolicySnapshotIntervalType: "string",
},
snapshotType: "string",
}],
sourceAvailabilityZoneIndex: 0,
}],
orderedAvailabilityZoneLists: [{
availabilityZoneUrl: "string",
clusterUuid: "string",
}],
categories: [{
name: "string",
value: "string",
}],
categoryFilter: {
kindLists: ["string"],
params: [{
name: "string",
values: ["string"],
}],
type: "string",
},
description: "string",
name: "string",
ownerReference: {
kind: "string",
name: "string",
uuid: "string",
},
projectReference: {
kind: "string",
name: "string",
uuid: "string",
},
startTime: "string",
});
type: nutanix:ProtectionRule
properties:
availabilityZoneConnectivityLists:
- destinationAvailabilityZoneIndex: 0
snapshotScheduleLists:
- autoSuspendTimeoutSecs: 0
localSnapshotRetentionPolicy:
numSnapshots: 0
rollupRetentionPolicyMultiple: 0
rollupRetentionPolicySnapshotIntervalType: string
recoveryPointObjectiveSecs: 0
remoteSnapshotRetentionPolicy:
numSnapshots: 0
rollupRetentionPolicyMultiple: 0
rollupRetentionPolicySnapshotIntervalType: string
snapshotType: string
sourceAvailabilityZoneIndex: 0
categories:
- name: string
value: string
categoryFilter:
kindLists:
- string
params:
- name: string
values:
- string
type: string
description: string
name: string
orderedAvailabilityZoneLists:
- availabilityZoneUrl: string
clusterUuid: string
ownerReference:
kind: string
name: string
uuid: string
projectReference:
kind: string
name: string
uuid: string
startTime: string
ProtectionRule 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 ProtectionRule resource accepts the following input properties:
- Availability
Zone List<PiersConnectivity Lists Karsenbarg. Nutanix. Inputs. Protection Rule Availability Zone Connectivity List> - Ordered
Availability List<PiersZone Lists Karsenbarg. Nutanix. Inputs. Protection Rule Ordered Availability Zone List> - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Protection Rule Category> - Category
Filter PiersKarsenbarg. Nutanix. Inputs. Protection Rule Category Filter - Description string
- A description for protection rule.
- Name string
- The name for the protection rule.
- Owner
Reference PiersKarsenbarg. Nutanix. Inputs. Protection Rule Owner Reference - Project
Reference PiersKarsenbarg. Nutanix. Inputs. Protection Rule Project Reference - Start
Time string
- Availability
Zone []ProtectionConnectivity Lists Rule Availability Zone Connectivity List Args - Ordered
Availability []ProtectionZone Lists Rule Ordered Availability Zone List Args - Categories
[]Protection
Rule Category Args - Category
Filter ProtectionRule Category Filter Args - Description string
- A description for protection rule.
- Name string
- The name for the protection rule.
- Owner
Reference ProtectionRule Owner Reference Args - Project
Reference ProtectionRule Project Reference Args - Start
Time string
- availability
Zone List<ProtectionConnectivity Lists Rule Availability Zone Connectivity List> - ordered
Availability List<ProtectionZone Lists Rule Ordered Availability Zone List> - categories
List<Protection
Rule Category> - category
Filter ProtectionRule Category Filter - description String
- A description for protection rule.
- name String
- The name for the protection rule.
- owner
Reference ProtectionRule Owner Reference - project
Reference ProtectionRule Project Reference - start
Time String
- availability
Zone ProtectionConnectivity Lists Rule Availability Zone Connectivity List[] - ordered
Availability ProtectionZone Lists Rule Ordered Availability Zone List[] - categories
Protection
Rule Category[] - category
Filter ProtectionRule Category Filter - description string
- A description for protection rule.
- name string
- The name for the protection rule.
- owner
Reference ProtectionRule Owner Reference - project
Reference ProtectionRule Project Reference - start
Time string
- availability_
zone_ Sequence[Protectionconnectivity_ lists Rule Availability Zone Connectivity List Args] - ordered_
availability_ Sequence[Protectionzone_ lists Rule Ordered Availability Zone List Args] - categories
Sequence[Protection
Rule Category Args] - category_
filter ProtectionRule Category Filter Args - description str
- A description for protection rule.
- name str
- The name for the protection rule.
- owner_
reference ProtectionRule Owner Reference Args - project_
reference ProtectionRule Project Reference Args - start_
time str
- availability
Zone List<Property Map>Connectivity Lists - ordered
Availability List<Property Map>Zone Lists - categories List<Property Map>
- category
Filter Property Map - description String
- A description for protection rule.
- name String
- The name for the protection rule.
- owner
Reference Property Map - project
Reference Property Map - start
Time String
Outputs
All input properties are implicitly available as output properties. Additionally, the ProtectionRule resource produces the following output properties:
- Api
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata Dictionary<string, string>
- State string
- Api
Version string - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata map[string]string
- State string
- api
Version String - id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String,String>
- state String
- api
Version string - id string
- The provider-assigned unique ID for this managed resource.
- metadata {[key: string]: string}
- state string
- api_
version str - id str
- The provider-assigned unique ID for this managed resource.
- metadata Mapping[str, str]
- state str
- api
Version String - id String
- The provider-assigned unique ID for this managed resource.
- metadata Map<String>
- state String
Look up Existing ProtectionRule Resource
Get an existing ProtectionRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ProtectionRuleState, opts?: CustomResourceOptions): ProtectionRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_version: Optional[str] = None,
availability_zone_connectivity_lists: Optional[Sequence[ProtectionRuleAvailabilityZoneConnectivityListArgs]] = None,
categories: Optional[Sequence[ProtectionRuleCategoryArgs]] = None,
category_filter: Optional[ProtectionRuleCategoryFilterArgs] = None,
description: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
ordered_availability_zone_lists: Optional[Sequence[ProtectionRuleOrderedAvailabilityZoneListArgs]] = None,
owner_reference: Optional[ProtectionRuleOwnerReferenceArgs] = None,
project_reference: Optional[ProtectionRuleProjectReferenceArgs] = None,
start_time: Optional[str] = None,
state: Optional[str] = None) -> ProtectionRule
func GetProtectionRule(ctx *Context, name string, id IDInput, state *ProtectionRuleState, opts ...ResourceOption) (*ProtectionRule, error)
public static ProtectionRule Get(string name, Input<string> id, ProtectionRuleState? state, CustomResourceOptions? opts = null)
public static ProtectionRule get(String name, Output<String> id, ProtectionRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Api
Version string - Availability
Zone List<PiersConnectivity Lists Karsenbarg. Nutanix. Inputs. Protection Rule Availability Zone Connectivity List> - Categories
List<Piers
Karsenbarg. Nutanix. Inputs. Protection Rule Category> - Category
Filter PiersKarsenbarg. Nutanix. Inputs. Protection Rule Category Filter - Description string
- A description for protection rule.
- Metadata Dictionary<string, string>
- Name string
- The name for the protection rule.
- Ordered
Availability List<PiersZone Lists Karsenbarg. Nutanix. Inputs. Protection Rule Ordered Availability Zone List> - Owner
Reference PiersKarsenbarg. Nutanix. Inputs. Protection Rule Owner Reference - Project
Reference PiersKarsenbarg. Nutanix. Inputs. Protection Rule Project Reference - Start
Time string - State string
- Api
Version string - Availability
Zone []ProtectionConnectivity Lists Rule Availability Zone Connectivity List Args - Categories
[]Protection
Rule Category Args - Category
Filter ProtectionRule Category Filter Args - Description string
- A description for protection rule.
- Metadata map[string]string
- Name string
- The name for the protection rule.
- Ordered
Availability []ProtectionZone Lists Rule Ordered Availability Zone List Args - Owner
Reference ProtectionRule Owner Reference Args - Project
Reference ProtectionRule Project Reference Args - Start
Time string - State string
- api
Version String - availability
Zone List<ProtectionConnectivity Lists Rule Availability Zone Connectivity List> - categories
List<Protection
Rule Category> - category
Filter ProtectionRule Category Filter - description String
- A description for protection rule.
- metadata Map<String,String>
- name String
- The name for the protection rule.
- ordered
Availability List<ProtectionZone Lists Rule Ordered Availability Zone List> - owner
Reference ProtectionRule Owner Reference - project
Reference ProtectionRule Project Reference - start
Time String - state String
- api
Version string - availability
Zone ProtectionConnectivity Lists Rule Availability Zone Connectivity List[] - categories
Protection
Rule Category[] - category
Filter ProtectionRule Category Filter - description string
- A description for protection rule.
- metadata {[key: string]: string}
- name string
- The name for the protection rule.
- ordered
Availability ProtectionZone Lists Rule Ordered Availability Zone List[] - owner
Reference ProtectionRule Owner Reference - project
Reference ProtectionRule Project Reference - start
Time string - state string
- api_
version str - availability_
zone_ Sequence[Protectionconnectivity_ lists Rule Availability Zone Connectivity List Args] - categories
Sequence[Protection
Rule Category Args] - category_
filter ProtectionRule Category Filter Args - description str
- A description for protection rule.
- metadata Mapping[str, str]
- name str
- The name for the protection rule.
- ordered_
availability_ Sequence[Protectionzone_ lists Rule Ordered Availability Zone List Args] - owner_
reference ProtectionRule Owner Reference Args - project_
reference ProtectionRule Project Reference Args - start_
time str - state str
- api
Version String - availability
Zone List<Property Map>Connectivity Lists - categories List<Property Map>
- category
Filter Property Map - description String
- A description for protection rule.
- metadata Map<String>
- name String
- The name for the protection rule.
- ordered
Availability List<Property Map>Zone Lists - owner
Reference Property Map - project
Reference Property Map - start
Time String - state String
Supporting Types
ProtectionRuleAvailabilityZoneConnectivityList, ProtectionRuleAvailabilityZoneConnectivityListArgs
ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleList, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs
- Recovery
Point intObjective Secs - Auto
Suspend intTimeout Secs - Local
Snapshot PiersRetention Policy Karsenbarg. Nutanix. Inputs. Protection Rule Availability Zone Connectivity List Snapshot Schedule List Local Snapshot Retention Policy - Remote
Snapshot PiersRetention Policy Karsenbarg. Nutanix. Inputs. Protection Rule Availability Zone Connectivity List Snapshot Schedule List Remote Snapshot Retention Policy - Snapshot
Type string
- Recovery
Point intObjective Secs - Auto
Suspend intTimeout Secs - Local
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Local Snapshot Retention Policy - Remote
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Remote Snapshot Retention Policy - Snapshot
Type string
- recovery
Point IntegerObjective Secs - auto
Suspend IntegerTimeout Secs - local
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Local Snapshot Retention Policy - remote
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Remote Snapshot Retention Policy - snapshot
Type String
- recovery
Point numberObjective Secs - auto
Suspend numberTimeout Secs - local
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Local Snapshot Retention Policy - remote
Snapshot ProtectionRetention Policy Rule Availability Zone Connectivity List Snapshot Schedule List Remote Snapshot Retention Policy - snapshot
Type string
- recovery_
point_ intobjective_ secs - auto_
suspend_ inttimeout_ secs - local_
snapshot_ Protectionretention_ policy Rule Availability Zone Connectivity List Snapshot Schedule List Local Snapshot Retention Policy - remote_
snapshot_ Protectionretention_ policy Rule Availability Zone Connectivity List Snapshot Schedule List Remote Snapshot Retention Policy - snapshot_
type str
ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicy, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs
- num
Snapshots Integer - rollup
Retention IntegerPolicy Multiple - rollup
Retention StringPolicy Snapshot Interval Type
- num
Snapshots number - rollup
Retention numberPolicy Multiple - rollup
Retention stringPolicy Snapshot Interval Type
- num
Snapshots Number - rollup
Retention NumberPolicy Multiple - rollup
Retention StringPolicy Snapshot Interval Type
ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicy, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicyArgs
- num
Snapshots Integer - rollup
Retention IntegerPolicy Multiple - rollup
Retention StringPolicy Snapshot Interval Type
- num
Snapshots number - rollup
Retention numberPolicy Multiple - rollup
Retention stringPolicy Snapshot Interval Type
- num
Snapshots Number - rollup
Retention NumberPolicy Multiple - rollup
Retention StringPolicy Snapshot Interval Type
ProtectionRuleCategory, ProtectionRuleCategoryArgs
ProtectionRuleCategoryFilter, ProtectionRuleCategoryFilterArgs
- Kind
Lists []string - Params
[]Protection
Rule Category Filter Param - Type string
- kind
Lists List<String> - params
List<Protection
Rule Category Filter Param> - type String
- kind
Lists string[] - params
Protection
Rule Category Filter Param[] - type string
- kind_
lists Sequence[str] - params
Sequence[Protection
Rule Category Filter Param] - type str
- kind
Lists List<String> - params List<Property Map>
- type String
ProtectionRuleCategoryFilterParam, ProtectionRuleCategoryFilterParamArgs
ProtectionRuleOrderedAvailabilityZoneList, ProtectionRuleOrderedAvailabilityZoneListArgs
- Availability
Zone stringUrl - Cluster
Uuid string
- Availability
Zone stringUrl - Cluster
Uuid string
- availability
Zone StringUrl - cluster
Uuid String
- availability
Zone stringUrl - cluster
Uuid string
- availability
Zone StringUrl - cluster
Uuid String
ProtectionRuleOwnerReference, ProtectionRuleOwnerReferenceArgs
ProtectionRuleProjectReference, ProtectionRuleProjectReferenceArgs
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.