1. Packages
  2. Nutanix
  3. API Docs
  4. ProtectionRule
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.ProtectionRule

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    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:

    Outputs

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

    ApiVersion string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Dictionary<string, string>
    State string
    ApiVersion string
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata map[string]string
    State string
    apiVersion String
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Map<String,String>
    state String
    apiVersion 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
    apiVersion 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.
    The following state arguments are supported:

    Supporting Types

    ProtectionRuleAvailabilityZoneConnectivityList, ProtectionRuleAvailabilityZoneConnectivityListArgs

    ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleList, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListArgs

    ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicy, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListLocalSnapshotRetentionPolicyArgs

    ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicy, ProtectionRuleAvailabilityZoneConnectivityListSnapshotScheduleListRemoteSnapshotRetentionPolicyArgs

    ProtectionRuleCategory, ProtectionRuleCategoryArgs

    Name string
    The name for the protection rule.
    Value string
    value of the key.
    Name string
    The name for the protection rule.
    Value string
    value of the key.
    name String
    The name for the protection rule.
    value String
    value of the key.
    name string
    The name for the protection rule.
    value string
    value of the key.
    name str
    The name for the protection rule.
    value str
    value of the key.
    name String
    The name for the protection rule.
    value String
    value of the key.

    ProtectionRuleCategoryFilter, ProtectionRuleCategoryFilterArgs

    ProtectionRuleCategoryFilterParam, ProtectionRuleCategoryFilterParamArgs

    Name string
    The name for the protection rule.
    Values List<string>
    Name string
    The name for the protection rule.
    Values []string
    name String
    The name for the protection rule.
    values List<String>
    name string
    The name for the protection rule.
    values string[]
    name str
    The name for the protection rule.
    values Sequence[str]
    name String
    The name for the protection rule.
    values List<String>

    ProtectionRuleOrderedAvailabilityZoneList, ProtectionRuleOrderedAvailabilityZoneListArgs

    ProtectionRuleOwnerReference, ProtectionRuleOwnerReferenceArgs

    Kind string
    (Required) The kind name (Default value: project).
    Name string
    The name for the protection rule.
    Uuid string
    (Required) the UUID.
    Kind string
    (Required) The kind name (Default value: project).
    Name string
    The name for the protection rule.
    Uuid string
    (Required) the UUID.
    kind String
    (Required) The kind name (Default value: project).
    name String
    The name for the protection rule.
    uuid String
    (Required) the UUID.
    kind string
    (Required) The kind name (Default value: project).
    name string
    The name for the protection rule.
    uuid string
    (Required) the UUID.
    kind str
    (Required) The kind name (Default value: project).
    name str
    The name for the protection rule.
    uuid str
    (Required) the UUID.
    kind String
    (Required) The kind name (Default value: project).
    name String
    The name for the protection rule.
    uuid String
    (Required) the UUID.

    ProtectionRuleProjectReference, ProtectionRuleProjectReferenceArgs

    Kind string
    (Required) The kind name (Default value: project).
    Name string
    The name for the protection rule.
    Uuid string
    (Required) the UUID.
    Kind string
    (Required) The kind name (Default value: project).
    Name string
    The name for the protection rule.
    Uuid string
    (Required) the UUID.
    kind String
    (Required) The kind name (Default value: project).
    name String
    The name for the protection rule.
    uuid String
    (Required) the UUID.
    kind string
    (Required) The kind name (Default value: project).
    name string
    The name for the protection rule.
    uuid string
    (Required) the UUID.
    kind str
    (Required) The kind name (Default value: project).
    name str
    The name for the protection rule.
    uuid str
    (Required) the UUID.
    kind String
    (Required) The kind name (Default value: project).
    name String
    The name for the protection rule.
    uuid String
    (Required) the UUID.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg