ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getPiVolumeRemoteCopyRelationship
Explore with Pulumi AI
Retrieves information about remote copy relationship of a volume. For more information, about managing a volume group, see moving data to the cloud.
Example Usage
The following example retrieves information about about remote copy relationship of a volume in Power Systems Virtual Server.
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const dsVolumeRemoteCopyRelationships = ibm.getPiVolumeRemoteCopyRelationship({
piCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
piVolumeId: "810b5fde-e054-4577-ab5e-3f866a1f6f60",
});
import pulumi
import pulumi_ibm as ibm
ds_volume_remote_copy_relationships = ibm.get_pi_volume_remote_copy_relationship(pi_cloud_instance_id="49fba6c9-23f8-40bc-9899-aca322ee7d5b",
pi_volume_id="810b5fde-e054-4577-ab5e-3f866a1f6f60")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetPiVolumeRemoteCopyRelationship(ctx, &ibm.GetPiVolumeRemoteCopyRelationshipArgs{
PiCloudInstanceId: "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiVolumeId: "810b5fde-e054-4577-ab5e-3f866a1f6f60",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var dsVolumeRemoteCopyRelationships = Ibm.GetPiVolumeRemoteCopyRelationship.Invoke(new()
{
PiCloudInstanceId = "49fba6c9-23f8-40bc-9899-aca322ee7d5b",
PiVolumeId = "810b5fde-e054-4577-ab5e-3f866a1f6f60",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetPiVolumeRemoteCopyRelationshipArgs;
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) {
final var dsVolumeRemoteCopyRelationships = IbmFunctions.getPiVolumeRemoteCopyRelationship(GetPiVolumeRemoteCopyRelationshipArgs.builder()
.piCloudInstanceId("49fba6c9-23f8-40bc-9899-aca322ee7d5b")
.piVolumeId("810b5fde-e054-4577-ab5e-3f866a1f6f60")
.build());
}
}
variables:
dsVolumeRemoteCopyRelationships:
fn::invoke:
function: ibm:getPiVolumeRemoteCopyRelationship
arguments:
piCloudInstanceId: 49fba6c9-23f8-40bc-9899-aca322ee7d5b
piVolumeId: 810b5fde-e054-4577-ab5e-3f866a1f6f60
Notes
- Please find supported Regions for endpoints.
- If a Power cloud instance is provisioned at
lon04
, The provider level attributes should be as follows:region
-lon
zone
-lon04
Example usage:
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Using getPiVolumeRemoteCopyRelationship
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPiVolumeRemoteCopyRelationship(args: GetPiVolumeRemoteCopyRelationshipArgs, opts?: InvokeOptions): Promise<GetPiVolumeRemoteCopyRelationshipResult>
function getPiVolumeRemoteCopyRelationshipOutput(args: GetPiVolumeRemoteCopyRelationshipOutputArgs, opts?: InvokeOptions): Output<GetPiVolumeRemoteCopyRelationshipResult>
def get_pi_volume_remote_copy_relationship(id: Optional[str] = None,
pi_cloud_instance_id: Optional[str] = None,
pi_volume_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPiVolumeRemoteCopyRelationshipResult
def get_pi_volume_remote_copy_relationship_output(id: Optional[pulumi.Input[str]] = None,
pi_cloud_instance_id: Optional[pulumi.Input[str]] = None,
pi_volume_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPiVolumeRemoteCopyRelationshipResult]
func GetPiVolumeRemoteCopyRelationship(ctx *Context, args *GetPiVolumeRemoteCopyRelationshipArgs, opts ...InvokeOption) (*GetPiVolumeRemoteCopyRelationshipResult, error)
func GetPiVolumeRemoteCopyRelationshipOutput(ctx *Context, args *GetPiVolumeRemoteCopyRelationshipOutputArgs, opts ...InvokeOption) GetPiVolumeRemoteCopyRelationshipResultOutput
> Note: This function is named GetPiVolumeRemoteCopyRelationship
in the Go SDK.
public static class GetPiVolumeRemoteCopyRelationship
{
public static Task<GetPiVolumeRemoteCopyRelationshipResult> InvokeAsync(GetPiVolumeRemoteCopyRelationshipArgs args, InvokeOptions? opts = null)
public static Output<GetPiVolumeRemoteCopyRelationshipResult> Invoke(GetPiVolumeRemoteCopyRelationshipInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPiVolumeRemoteCopyRelationshipResult> getPiVolumeRemoteCopyRelationship(GetPiVolumeRemoteCopyRelationshipArgs args, InvokeOptions options)
public static Output<GetPiVolumeRemoteCopyRelationshipResult> getPiVolumeRemoteCopyRelationship(GetPiVolumeRemoteCopyRelationshipArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPiVolumeRemoteCopyRelationship:getPiVolumeRemoteCopyRelationship
arguments:
# arguments dictionary
The following arguments are supported:
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringId - The ID of the volume for which you want to retrieve detailed information.
- Id string
- (String) The unique identifier of the volume.
- Pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- Pi
Volume stringId - The ID of the volume for which you want to retrieve detailed information.
- Id string
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringId - The ID of the volume for which you want to retrieve detailed information.
- id String
- (String) The unique identifier of the volume.
- pi
Cloud stringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume stringId - The ID of the volume for which you want to retrieve detailed information.
- id string
- (String) The unique identifier of the volume.
- pi_
cloud_ strinstance_ id - The GUID of the service instance associated with an account.
- pi_
volume_ strid - The ID of the volume for which you want to retrieve detailed information.
- id str
- (String) The unique identifier of the volume.
- pi
Cloud StringInstance Id - The GUID of the service instance associated with an account.
- pi
Volume StringId - The ID of the volume for which you want to retrieve detailed information.
- id String
- (String) The unique identifier of the volume.
getPiVolumeRemoteCopyRelationship Result
The following output properties are available:
- Auxiliary
Changed stringVolume Name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- Auxiliary
Volume stringName - (String) The auxiliary volume name at storage host level.
- Consistency
Group stringName - (String) The consistency group name if volume is a part of volume group.
- Copy
Type string - (String) The copy type.
- Cycle
Period doubleSeconds - (Integer) The minimum period in seconds between multiple cycles.
- Cycling
Mode string - (String) The type of cycling mode used.
- Freeze
Time string - (String) The freeze time of remote copy relationship.
- Id string
- (String) The unique identifier of the volume.
- Master
Changed stringVolume Name - (String) The name of the volume that is acting as the master change volume for the relationship.
- Master
Volume stringName - (String) The master volume name at storage host level.
- Name string
- (String) The remote copy relationship name.
- Pi
Cloud stringInstance Id - Pi
Volume stringId - Primary
Role string - (String) Indicates whether master/aux volume is playing the primary role.
- Progress double
- (Integer) The relationship progress.
- Remote
Copy stringId - (String) The remote copy relationship ID.
- State string
- (String) The relationship state.
- Synchronized string
- (String) Indicates whether the relationship is synchronized.
- Auxiliary
Changed stringVolume Name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- Auxiliary
Volume stringName - (String) The auxiliary volume name at storage host level.
- Consistency
Group stringName - (String) The consistency group name if volume is a part of volume group.
- Copy
Type string - (String) The copy type.
- Cycle
Period float64Seconds - (Integer) The minimum period in seconds between multiple cycles.
- Cycling
Mode string - (String) The type of cycling mode used.
- Freeze
Time string - (String) The freeze time of remote copy relationship.
- Id string
- (String) The unique identifier of the volume.
- Master
Changed stringVolume Name - (String) The name of the volume that is acting as the master change volume for the relationship.
- Master
Volume stringName - (String) The master volume name at storage host level.
- Name string
- (String) The remote copy relationship name.
- Pi
Cloud stringInstance Id - Pi
Volume stringId - Primary
Role string - (String) Indicates whether master/aux volume is playing the primary role.
- Progress float64
- (Integer) The relationship progress.
- Remote
Copy stringId - (String) The remote copy relationship ID.
- State string
- (String) The relationship state.
- Synchronized string
- (String) Indicates whether the relationship is synchronized.
- auxiliary
Changed StringVolume Name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- auxiliary
Volume StringName - (String) The auxiliary volume name at storage host level.
- consistency
Group StringName - (String) The consistency group name if volume is a part of volume group.
- copy
Type String - (String) The copy type.
- cycle
Period DoubleSeconds - (Integer) The minimum period in seconds between multiple cycles.
- cycling
Mode String - (String) The type of cycling mode used.
- freeze
Time String - (String) The freeze time of remote copy relationship.
- id String
- (String) The unique identifier of the volume.
- master
Changed StringVolume Name - (String) The name of the volume that is acting as the master change volume for the relationship.
- master
Volume StringName - (String) The master volume name at storage host level.
- name String
- (String) The remote copy relationship name.
- pi
Cloud StringInstance Id - pi
Volume StringId - primary
Role String - (String) Indicates whether master/aux volume is playing the primary role.
- progress Double
- (Integer) The relationship progress.
- remote
Copy StringId - (String) The remote copy relationship ID.
- state String
- (String) The relationship state.
- synchronized_ String
- (String) Indicates whether the relationship is synchronized.
- auxiliary
Changed stringVolume Name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- auxiliary
Volume stringName - (String) The auxiliary volume name at storage host level.
- consistency
Group stringName - (String) The consistency group name if volume is a part of volume group.
- copy
Type string - (String) The copy type.
- cycle
Period numberSeconds - (Integer) The minimum period in seconds between multiple cycles.
- cycling
Mode string - (String) The type of cycling mode used.
- freeze
Time string - (String) The freeze time of remote copy relationship.
- id string
- (String) The unique identifier of the volume.
- master
Changed stringVolume Name - (String) The name of the volume that is acting as the master change volume for the relationship.
- master
Volume stringName - (String) The master volume name at storage host level.
- name string
- (String) The remote copy relationship name.
- pi
Cloud stringInstance Id - pi
Volume stringId - primary
Role string - (String) Indicates whether master/aux volume is playing the primary role.
- progress number
- (Integer) The relationship progress.
- remote
Copy stringId - (String) The remote copy relationship ID.
- state string
- (String) The relationship state.
- synchronized string
- (String) Indicates whether the relationship is synchronized.
- auxiliary_
changed_ strvolume_ name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- auxiliary_
volume_ strname - (String) The auxiliary volume name at storage host level.
- consistency_
group_ strname - (String) The consistency group name if volume is a part of volume group.
- copy_
type str - (String) The copy type.
- cycle_
period_ floatseconds - (Integer) The minimum period in seconds between multiple cycles.
- cycling_
mode str - (String) The type of cycling mode used.
- freeze_
time str - (String) The freeze time of remote copy relationship.
- id str
- (String) The unique identifier of the volume.
- master_
changed_ strvolume_ name - (String) The name of the volume that is acting as the master change volume for the relationship.
- master_
volume_ strname - (String) The master volume name at storage host level.
- name str
- (String) The remote copy relationship name.
- pi_
cloud_ strinstance_ id - pi_
volume_ strid - primary_
role str - (String) Indicates whether master/aux volume is playing the primary role.
- progress float
- (Integer) The relationship progress.
- remote_
copy_ strid - (String) The remote copy relationship ID.
- state str
- (String) The relationship state.
- synchronized str
- (String) Indicates whether the relationship is synchronized.
- auxiliary
Changed StringVolume Name - (String) The name of the volume that is acting as the auxiliary change volume for the relationship.
- auxiliary
Volume StringName - (String) The auxiliary volume name at storage host level.
- consistency
Group StringName - (String) The consistency group name if volume is a part of volume group.
- copy
Type String - (String) The copy type.
- cycle
Period NumberSeconds - (Integer) The minimum period in seconds between multiple cycles.
- cycling
Mode String - (String) The type of cycling mode used.
- freeze
Time String - (String) The freeze time of remote copy relationship.
- id String
- (String) The unique identifier of the volume.
- master
Changed StringVolume Name - (String) The name of the volume that is acting as the master change volume for the relationship.
- master
Volume StringName - (String) The master volume name at storage host level.
- name String
- (String) The remote copy relationship name.
- pi
Cloud StringInstance Id - pi
Volume StringId - primary
Role String - (String) Indicates whether master/aux volume is playing the primary role.
- progress Number
- (Integer) The relationship progress.
- remote
Copy StringId - (String) The remote copy relationship ID.
- state String
- (String) The relationship state.
- synchronized String
- (String) Indicates whether the relationship is synchronized.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.