powerflex.ReplicationPair
Explore with Pulumi AI
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.
*/
import Replication Pair by its id
$ pulumi import powerflex:index/replicationPair:ReplicationPair example "<id>"
This will import the resource instance with specified ID into your Terraform state.
After successful import, you can run terraform state list to ensure the resource has been imported successfully.
Now, you can fill in the resource block with the appropriate arguments and settings that match the imported resource’s real-world configuration.
Execute pulumi preview to see if your configuration and the imported resource are in sync. Make adjustments if needed.
Finally, execute pulumi up to bring the resource fully under Terraform’s management.
Now, the resource which was not part of terraform became part of Terraform managed infrastructure.
Create ReplicationPair Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReplicationPair(name: string, args: ReplicationPairArgs, opts?: CustomResourceOptions);
@overload
def ReplicationPair(resource_name: str,
args: ReplicationPairArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReplicationPair(resource_name: str,
opts: Optional[ResourceOptions] = None,
destination_volume_id: Optional[str] = None,
replication_consistency_group_id: Optional[str] = None,
source_volume_id: Optional[str] = None,
name: Optional[str] = None,
pause_initial_copy: Optional[bool] = None)
func NewReplicationPair(ctx *Context, name string, args ReplicationPairArgs, opts ...ResourceOption) (*ReplicationPair, error)
public ReplicationPair(string name, ReplicationPairArgs args, CustomResourceOptions? opts = null)
public ReplicationPair(String name, ReplicationPairArgs args)
public ReplicationPair(String name, ReplicationPairArgs args, CustomResourceOptions options)
type: powerflex:ReplicationPair
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 ReplicationPairArgs
- 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 ReplicationPairArgs
- 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 ReplicationPairArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReplicationPairArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReplicationPairArgs
- 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 replicationPairResource = new Powerflex.ReplicationPair("replicationPairResource", new()
{
DestinationVolumeId = "string",
ReplicationConsistencyGroupId = "string",
SourceVolumeId = "string",
Name = "string",
PauseInitialCopy = false,
});
example, err := powerflex.NewReplicationPair(ctx, "replicationPairResource", &powerflex.ReplicationPairArgs{
DestinationVolumeId: pulumi.String("string"),
ReplicationConsistencyGroupId: pulumi.String("string"),
SourceVolumeId: pulumi.String("string"),
Name: pulumi.String("string"),
PauseInitialCopy: pulumi.Bool(false),
})
var replicationPairResource = new ReplicationPair("replicationPairResource", ReplicationPairArgs.builder()
.destinationVolumeId("string")
.replicationConsistencyGroupId("string")
.sourceVolumeId("string")
.name("string")
.pauseInitialCopy(false)
.build());
replication_pair_resource = powerflex.ReplicationPair("replicationPairResource",
destination_volume_id="string",
replication_consistency_group_id="string",
source_volume_id="string",
name="string",
pause_initial_copy=False)
const replicationPairResource = new powerflex.ReplicationPair("replicationPairResource", {
destinationVolumeId: "string",
replicationConsistencyGroupId: "string",
sourceVolumeId: "string",
name: "string",
pauseInitialCopy: false,
});
type: powerflex:ReplicationPair
properties:
destinationVolumeId: string
name: string
pauseInitialCopy: false
replicationConsistencyGroupId: string
sourceVolumeId: string
ReplicationPair 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 ReplicationPair resource accepts the following input properties:
- Destination
Volume stringId - Destination Volume ID
- Replication
Consistency stringGroup Id - Replication Consistency Group ID
- Source
Volume stringId - Source Volume ID
- Name string
- Replication Pair Name
- Pause
Initial boolCopy - Pause Copy of the replication pair instance.
- Destination
Volume stringId - Destination Volume ID
- Replication
Consistency stringGroup Id - Replication Consistency Group ID
- Source
Volume stringId - Source Volume ID
- Name string
- Replication Pair Name
- Pause
Initial boolCopy - Pause Copy of the replication pair instance.
- destination
Volume StringId - Destination Volume ID
- replication
Consistency StringGroup Id - Replication Consistency Group ID
- source
Volume StringId - Source Volume ID
- name String
- Replication Pair Name
- pause
Initial BooleanCopy - Pause Copy of the replication pair instance.
- destination
Volume stringId - Destination Volume ID
- replication
Consistency stringGroup Id - Replication Consistency Group ID
- source
Volume stringId - Source Volume ID
- name string
- Replication Pair Name
- pause
Initial booleanCopy - Pause Copy of the replication pair instance.
- destination_
volume_ strid - Destination Volume ID
- replication_
consistency_ strgroup_ id - Replication Consistency Group ID
- source_
volume_ strid - Source Volume ID
- name str
- Replication Pair Name
- pause_
initial_ boolcopy - Pause Copy of the replication pair instance.
- destination
Volume StringId - Destination Volume ID
- replication
Consistency StringGroup Id - Replication Consistency Group ID
- source
Volume StringId - Source Volume ID
- name String
- Replication Pair Name
- pause
Initial BooleanCopy - Pause Copy of the replication pair instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the ReplicationPair resource produces the following output properties:
- Copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Copy doublePriority - Initial Copy Priority of the replication pair instance.
- Initial
Copy stringState - Initial Copy State of the replication pair instance.
- Lifetime
State string - Lifetime State of the replication pair instance.
- Local
Volume stringId - Local Volume ID of the replication pair instance.
- Peer
System stringName - Peer System Name of the replication pair instance.
- Remote
Capacity doubleIn Mb - Remote Capacity in MB of the replication pair instance.
- Remote
Id string - Remote ID of the replication pair instance.
- Remote
Volume stringId - Remote Volume ID of the replication pair instance.
- Remote
Volume stringName - Remote Volume Name of the replication pair instance.
- User
Requested boolPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- Copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- Id string
- The provider-assigned unique ID for this managed resource.
- Initial
Copy float64Priority - Initial Copy Priority of the replication pair instance.
- Initial
Copy stringState - Initial Copy State of the replication pair instance.
- Lifetime
State string - Lifetime State of the replication pair instance.
- Local
Volume stringId - Local Volume ID of the replication pair instance.
- Peer
System stringName - Peer System Name of the replication pair instance.
- Remote
Capacity float64In Mb - Remote Capacity in MB of the replication pair instance.
- Remote
Id string - Remote ID of the replication pair instance.
- Remote
Volume stringId - Remote Volume ID of the replication pair instance.
- Remote
Volume stringName - Remote Volume Name of the replication pair instance.
- User
Requested boolPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy
Type String - Copy Type for Replication Pairs only value is OnlineCopy
- id String
- The provider-assigned unique ID for this managed resource.
- initial
Copy DoublePriority - Initial Copy Priority of the replication pair instance.
- initial
Copy StringState - Initial Copy State of the replication pair instance.
- lifetime
State String - Lifetime State of the replication pair instance.
- local
Volume StringId - Local Volume ID of the replication pair instance.
- peer
System StringName - Peer System Name of the replication pair instance.
- remote
Capacity DoubleIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id String - Remote ID of the replication pair instance.
- remote
Volume StringId - Remote Volume ID of the replication pair instance.
- remote
Volume StringName - Remote Volume Name of the replication pair instance.
- user
Requested BooleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- id string
- The provider-assigned unique ID for this managed resource.
- initial
Copy numberPriority - Initial Copy Priority of the replication pair instance.
- initial
Copy stringState - Initial Copy State of the replication pair instance.
- lifetime
State string - Lifetime State of the replication pair instance.
- local
Volume stringId - Local Volume ID of the replication pair instance.
- peer
System stringName - Peer System Name of the replication pair instance.
- remote
Capacity numberIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id string - Remote ID of the replication pair instance.
- remote
Volume stringId - Remote Volume ID of the replication pair instance.
- remote
Volume stringName - Remote Volume Name of the replication pair instance.
- user
Requested booleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy_
type str - Copy Type for Replication Pairs only value is OnlineCopy
- id str
- The provider-assigned unique ID for this managed resource.
- initial_
copy_ floatpriority - Initial Copy Priority of the replication pair instance.
- initial_
copy_ strstate - Initial Copy State of the replication pair instance.
- lifetime_
state str - Lifetime State of the replication pair instance.
- local_
volume_ strid - Local Volume ID of the replication pair instance.
- peer_
system_ strname - Peer System Name of the replication pair instance.
- remote_
capacity_ floatin_ mb - Remote Capacity in MB of the replication pair instance.
- remote_
id str - Remote ID of the replication pair instance.
- remote_
volume_ strid - Remote Volume ID of the replication pair instance.
- remote_
volume_ strname - Remote Volume Name of the replication pair instance.
- user_
requested_ boolpause_ transmit_ init_ copy - User Requested Pause of the replication pair instance.
- copy
Type String - Copy Type for Replication Pairs only value is OnlineCopy
- id String
- The provider-assigned unique ID for this managed resource.
- initial
Copy NumberPriority - Initial Copy Priority of the replication pair instance.
- initial
Copy StringState - Initial Copy State of the replication pair instance.
- lifetime
State String - Lifetime State of the replication pair instance.
- local
Volume StringId - Local Volume ID of the replication pair instance.
- peer
System StringName - Peer System Name of the replication pair instance.
- remote
Capacity NumberIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id String - Remote ID of the replication pair instance.
- remote
Volume StringId - Remote Volume ID of the replication pair instance.
- remote
Volume StringName - Remote Volume Name of the replication pair instance.
- user
Requested BooleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
Look up Existing ReplicationPair Resource
Get an existing ReplicationPair 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?: ReplicationPairState, opts?: CustomResourceOptions): ReplicationPair
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
copy_type: Optional[str] = None,
destination_volume_id: Optional[str] = None,
initial_copy_priority: Optional[float] = None,
initial_copy_state: Optional[str] = None,
lifetime_state: Optional[str] = None,
local_volume_id: Optional[str] = None,
name: Optional[str] = None,
pause_initial_copy: Optional[bool] = None,
peer_system_name: Optional[str] = None,
remote_capacity_in_mb: Optional[float] = None,
remote_id: Optional[str] = None,
remote_volume_id: Optional[str] = None,
remote_volume_name: Optional[str] = None,
replication_consistency_group_id: Optional[str] = None,
source_volume_id: Optional[str] = None,
user_requested_pause_transmit_init_copy: Optional[bool] = None) -> ReplicationPair
func GetReplicationPair(ctx *Context, name string, id IDInput, state *ReplicationPairState, opts ...ResourceOption) (*ReplicationPair, error)
public static ReplicationPair Get(string name, Input<string> id, ReplicationPairState? state, CustomResourceOptions? opts = null)
public static ReplicationPair get(String name, Output<String> id, ReplicationPairState state, CustomResourceOptions options)
resources: _: type: powerflex:ReplicationPair 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.
- Copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- Destination
Volume stringId - Destination Volume ID
- Initial
Copy doublePriority - Initial Copy Priority of the replication pair instance.
- Initial
Copy stringState - Initial Copy State of the replication pair instance.
- Lifetime
State string - Lifetime State of the replication pair instance.
- Local
Volume stringId - Local Volume ID of the replication pair instance.
- Name string
- Replication Pair Name
- Pause
Initial boolCopy - Pause Copy of the replication pair instance.
- Peer
System stringName - Peer System Name of the replication pair instance.
- Remote
Capacity doubleIn Mb - Remote Capacity in MB of the replication pair instance.
- Remote
Id string - Remote ID of the replication pair instance.
- Remote
Volume stringId - Remote Volume ID of the replication pair instance.
- Remote
Volume stringName - Remote Volume Name of the replication pair instance.
- Replication
Consistency stringGroup Id - Replication Consistency Group ID
- Source
Volume stringId - Source Volume ID
- User
Requested boolPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- Copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- Destination
Volume stringId - Destination Volume ID
- Initial
Copy float64Priority - Initial Copy Priority of the replication pair instance.
- Initial
Copy stringState - Initial Copy State of the replication pair instance.
- Lifetime
State string - Lifetime State of the replication pair instance.
- Local
Volume stringId - Local Volume ID of the replication pair instance.
- Name string
- Replication Pair Name
- Pause
Initial boolCopy - Pause Copy of the replication pair instance.
- Peer
System stringName - Peer System Name of the replication pair instance.
- Remote
Capacity float64In Mb - Remote Capacity in MB of the replication pair instance.
- Remote
Id string - Remote ID of the replication pair instance.
- Remote
Volume stringId - Remote Volume ID of the replication pair instance.
- Remote
Volume stringName - Remote Volume Name of the replication pair instance.
- Replication
Consistency stringGroup Id - Replication Consistency Group ID
- Source
Volume stringId - Source Volume ID
- User
Requested boolPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy
Type String - Copy Type for Replication Pairs only value is OnlineCopy
- destination
Volume StringId - Destination Volume ID
- initial
Copy DoublePriority - Initial Copy Priority of the replication pair instance.
- initial
Copy StringState - Initial Copy State of the replication pair instance.
- lifetime
State String - Lifetime State of the replication pair instance.
- local
Volume StringId - Local Volume ID of the replication pair instance.
- name String
- Replication Pair Name
- pause
Initial BooleanCopy - Pause Copy of the replication pair instance.
- peer
System StringName - Peer System Name of the replication pair instance.
- remote
Capacity DoubleIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id String - Remote ID of the replication pair instance.
- remote
Volume StringId - Remote Volume ID of the replication pair instance.
- remote
Volume StringName - Remote Volume Name of the replication pair instance.
- replication
Consistency StringGroup Id - Replication Consistency Group ID
- source
Volume StringId - Source Volume ID
- user
Requested BooleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy
Type string - Copy Type for Replication Pairs only value is OnlineCopy
- destination
Volume stringId - Destination Volume ID
- initial
Copy numberPriority - Initial Copy Priority of the replication pair instance.
- initial
Copy stringState - Initial Copy State of the replication pair instance.
- lifetime
State string - Lifetime State of the replication pair instance.
- local
Volume stringId - Local Volume ID of the replication pair instance.
- name string
- Replication Pair Name
- pause
Initial booleanCopy - Pause Copy of the replication pair instance.
- peer
System stringName - Peer System Name of the replication pair instance.
- remote
Capacity numberIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id string - Remote ID of the replication pair instance.
- remote
Volume stringId - Remote Volume ID of the replication pair instance.
- remote
Volume stringName - Remote Volume Name of the replication pair instance.
- replication
Consistency stringGroup Id - Replication Consistency Group ID
- source
Volume stringId - Source Volume ID
- user
Requested booleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
- copy_
type str - Copy Type for Replication Pairs only value is OnlineCopy
- destination_
volume_ strid - Destination Volume ID
- initial_
copy_ floatpriority - Initial Copy Priority of the replication pair instance.
- initial_
copy_ strstate - Initial Copy State of the replication pair instance.
- lifetime_
state str - Lifetime State of the replication pair instance.
- local_
volume_ strid - Local Volume ID of the replication pair instance.
- name str
- Replication Pair Name
- pause_
initial_ boolcopy - Pause Copy of the replication pair instance.
- peer_
system_ strname - Peer System Name of the replication pair instance.
- remote_
capacity_ floatin_ mb - Remote Capacity in MB of the replication pair instance.
- remote_
id str - Remote ID of the replication pair instance.
- remote_
volume_ strid - Remote Volume ID of the replication pair instance.
- remote_
volume_ strname - Remote Volume Name of the replication pair instance.
- replication_
consistency_ strgroup_ id - Replication Consistency Group ID
- source_
volume_ strid - Source Volume ID
- user_
requested_ boolpause_ transmit_ init_ copy - User Requested Pause of the replication pair instance.
- copy
Type String - Copy Type for Replication Pairs only value is OnlineCopy
- destination
Volume StringId - Destination Volume ID
- initial
Copy NumberPriority - Initial Copy Priority of the replication pair instance.
- initial
Copy StringState - Initial Copy State of the replication pair instance.
- lifetime
State String - Lifetime State of the replication pair instance.
- local
Volume StringId - Local Volume ID of the replication pair instance.
- name String
- Replication Pair Name
- pause
Initial BooleanCopy - Pause Copy of the replication pair instance.
- peer
System StringName - Peer System Name of the replication pair instance.
- remote
Capacity NumberIn Mb - Remote Capacity in MB of the replication pair instance.
- remote
Id String - Remote ID of the replication pair instance.
- remote
Volume StringId - Remote Volume ID of the replication pair instance.
- remote
Volume StringName - Remote Volume Name of the replication pair instance.
- replication
Consistency StringGroup Id - Replication Consistency Group ID
- source
Volume StringId - Source Volume ID
- user
Requested BooleanPause Transmit Init Copy - User Requested Pause of the replication pair instance.
Package Details
- Repository
- powerflex dell/terraform-provider-powerflex
- License
- Notes
- This Pulumi package is based on the
powerflex
Terraform Provider.