1. Packages
  2. Powerstore Provider
  3. API Docs
  4. ReplicationRule
powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell

powerstore.ReplicationRule

Explore with Pulumi AI

powerstore logo
powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell

    Import

    #Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.

    #Licensed under the Mozilla Public License Version 2.0 (the “License”);

    #you may not use this file except in compliance with the License.

    #You may obtain a copy of the License at

    http://mozilla.org/MPL/2.0/

    #Unless required by applicable law or agreed to in writing, software

    #distributed under the License is distributed on an “AS IS” BASIS,

    #WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

    #See the License for the specific language governing permissions and

    #limitations under the License.

    Below are the steps to import replication rule :

    Step 1 - To import a replication rule, we need the id of that replication rule

    Step 2 - To check the id of the replication rule, we can make Get request to replication rule endpoint. eg. https://10.0.0.1/api/rest/replication_rule which will return list of all replication rule ids.

    Step 3 - Add empty resource block in tf file.

    eg.

    resource “powerstore_replication_rule” “resource_block_name” {

    (resource arguments)

    }

    $ pulumi import powerstore:index/replicationRule:ReplicationRule Step 4 - Execute the command: "powerstore_replication_rule.resource_block_name" "id_of_the_replication_rule" (resource_block_name must be taken from step 3 and id must be taken from step 2)
    

    Step 5 - After successful execution of the command , check the state file

    Create ReplicationRule Resource

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

    Constructor syntax

    new ReplicationRule(name: string, args: ReplicationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicationRule(resource_name: str,
                        args: ReplicationRuleArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicationRule(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        remote_system_id: Optional[str] = None,
                        rpo: Optional[str] = None,
                        alert_threshold: Optional[float] = None,
                        is_read_only: Optional[bool] = None,
                        name: Optional[str] = None)
    func NewReplicationRule(ctx *Context, name string, args ReplicationRuleArgs, opts ...ResourceOption) (*ReplicationRule, error)
    public ReplicationRule(string name, ReplicationRuleArgs args, CustomResourceOptions? opts = null)
    public ReplicationRule(String name, ReplicationRuleArgs args)
    public ReplicationRule(String name, ReplicationRuleArgs args, CustomResourceOptions options)
    
    type: powerstore:ReplicationRule
    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 ReplicationRuleArgs
    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 ReplicationRuleArgs
    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 ReplicationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationRuleArgs
    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 replicationRuleResource = new Powerstore.ReplicationRule("replicationRuleResource", new()
    {
        RemoteSystemId = "string",
        Rpo = "string",
        AlertThreshold = 0,
        IsReadOnly = false,
        Name = "string",
    });
    
    example, err := powerstore.NewReplicationRule(ctx, "replicationRuleResource", &powerstore.ReplicationRuleArgs{
    	RemoteSystemId: pulumi.String("string"),
    	Rpo:            pulumi.String("string"),
    	AlertThreshold: pulumi.Float64(0),
    	IsReadOnly:     pulumi.Bool(false),
    	Name:           pulumi.String("string"),
    })
    
    var replicationRuleResource = new ReplicationRule("replicationRuleResource", ReplicationRuleArgs.builder()
        .remoteSystemId("string")
        .rpo("string")
        .alertThreshold(0)
        .isReadOnly(false)
        .name("string")
        .build());
    
    replication_rule_resource = powerstore.ReplicationRule("replicationRuleResource",
        remote_system_id="string",
        rpo="string",
        alert_threshold=0,
        is_read_only=False,
        name="string")
    
    const replicationRuleResource = new powerstore.ReplicationRule("replicationRuleResource", {
        remoteSystemId: "string",
        rpo: "string",
        alertThreshold: 0,
        isReadOnly: false,
        name: "string",
    });
    
    type: powerstore:ReplicationRule
    properties:
        alertThreshold: 0
        isReadOnly: false
        name: string
        remoteSystemId: string
        rpo: string
    

    ReplicationRule 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 ReplicationRule resource accepts the following input properties:

    RemoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    Rpo string
    Recovery Point Objective (RPO) of the replication rule.
    AlertThreshold double
    Alert threshold for the replication rule.
    IsReadOnly bool
    Indicates whether the replication rule is read-only.
    Name string
    The name of the replication rule.
    RemoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    Rpo string
    Recovery Point Objective (RPO) of the replication rule.
    AlertThreshold float64
    Alert threshold for the replication rule.
    IsReadOnly bool
    Indicates whether the replication rule is read-only.
    Name string
    The name of the replication rule.
    remoteSystemId String
    Unique identifier of the remote system associated with the replication rule.
    rpo String
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold Double
    Alert threshold for the replication rule.
    isReadOnly Boolean
    Indicates whether the replication rule is read-only.
    name String
    The name of the replication rule.
    remoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    rpo string
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold number
    Alert threshold for the replication rule.
    isReadOnly boolean
    Indicates whether the replication rule is read-only.
    name string
    The name of the replication rule.
    remote_system_id str
    Unique identifier of the remote system associated with the replication rule.
    rpo str
    Recovery Point Objective (RPO) of the replication rule.
    alert_threshold float
    Alert threshold for the replication rule.
    is_read_only bool
    Indicates whether the replication rule is read-only.
    name str
    The name of the replication rule.
    remoteSystemId String
    Unique identifier of the remote system associated with the replication rule.
    rpo String
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold Number
    Alert threshold for the replication rule.
    isReadOnly Boolean
    Indicates whether the replication rule is read-only.
    name String
    The name of the replication rule.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ReplicationRule Resource

    Get an existing ReplicationRule 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?: ReplicationRuleState, opts?: CustomResourceOptions): ReplicationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_threshold: Optional[float] = None,
            is_read_only: Optional[bool] = None,
            name: Optional[str] = None,
            remote_system_id: Optional[str] = None,
            rpo: Optional[str] = None) -> ReplicationRule
    func GetReplicationRule(ctx *Context, name string, id IDInput, state *ReplicationRuleState, opts ...ResourceOption) (*ReplicationRule, error)
    public static ReplicationRule Get(string name, Input<string> id, ReplicationRuleState? state, CustomResourceOptions? opts = null)
    public static ReplicationRule get(String name, Output<String> id, ReplicationRuleState state, CustomResourceOptions options)
    resources:  _:    type: powerstore:ReplicationRule    get:      id: ${id}
    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:
    AlertThreshold double
    Alert threshold for the replication rule.
    IsReadOnly bool
    Indicates whether the replication rule is read-only.
    Name string
    The name of the replication rule.
    RemoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    Rpo string
    Recovery Point Objective (RPO) of the replication rule.
    AlertThreshold float64
    Alert threshold for the replication rule.
    IsReadOnly bool
    Indicates whether the replication rule is read-only.
    Name string
    The name of the replication rule.
    RemoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    Rpo string
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold Double
    Alert threshold for the replication rule.
    isReadOnly Boolean
    Indicates whether the replication rule is read-only.
    name String
    The name of the replication rule.
    remoteSystemId String
    Unique identifier of the remote system associated with the replication rule.
    rpo String
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold number
    Alert threshold for the replication rule.
    isReadOnly boolean
    Indicates whether the replication rule is read-only.
    name string
    The name of the replication rule.
    remoteSystemId string
    Unique identifier of the remote system associated with the replication rule.
    rpo string
    Recovery Point Objective (RPO) of the replication rule.
    alert_threshold float
    Alert threshold for the replication rule.
    is_read_only bool
    Indicates whether the replication rule is read-only.
    name str
    The name of the replication rule.
    remote_system_id str
    Unique identifier of the remote system associated with the replication rule.
    rpo str
    Recovery Point Objective (RPO) of the replication rule.
    alertThreshold Number
    Alert threshold for the replication rule.
    isReadOnly Boolean
    Indicates whether the replication rule is read-only.
    name String
    The name of the replication rule.
    remoteSystemId String
    Unique identifier of the remote system associated with the replication rule.
    rpo String
    Recovery Point Objective (RPO) of the replication rule.

    Package Details

    Repository
    powerstore dell/terraform-provider-powerstore
    License
    Notes
    This Pulumi package is based on the powerstore Terraform Provider.
    powerstore logo
    powerstore 1.2.0 published on Monday, Apr 14, 2025 by dell