1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPdrLastOperation
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm logo
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about a pdr_last_operation. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const pdrLastOperation = ibm.getPdrLastOperation({
        instanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pdr_last_operation = ibm.get_pdr_last_operation(instance_id="crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
    
    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.GetPdrLastOperation(ctx, &ibm.GetPdrLastOperationArgs{
    			InstanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
    		}, 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 pdrLastOperation = Ibm.GetPdrLastOperation.Invoke(new()
        {
            InstanceId = "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        });
    
    });
    
    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.GetPdrLastOperationArgs;
    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 pdrLastOperation = IbmFunctions.getPdrLastOperation(GetPdrLastOperationArgs.builder()
                .instanceId("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
                .build());
    
        }
    }
    
    variables:
      pdrLastOperation:
        fn::invoke:
          function: ibm:getPdrLastOperation
          arguments:
            instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
    

    Using getPdrLastOperation

    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 getPdrLastOperation(args: GetPdrLastOperationArgs, opts?: InvokeOptions): Promise<GetPdrLastOperationResult>
    function getPdrLastOperationOutput(args: GetPdrLastOperationOutputArgs, opts?: InvokeOptions): Output<GetPdrLastOperationResult>
    def get_pdr_last_operation(accept_language: Optional[str] = None,
                               id: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetPdrLastOperationResult
    def get_pdr_last_operation_output(accept_language: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               instance_id: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetPdrLastOperationResult]
    func GetPdrLastOperation(ctx *Context, args *GetPdrLastOperationArgs, opts ...InvokeOption) (*GetPdrLastOperationResult, error)
    func GetPdrLastOperationOutput(ctx *Context, args *GetPdrLastOperationOutputArgs, opts ...InvokeOption) GetPdrLastOperationResultOutput

    > Note: This function is named GetPdrLastOperation in the Go SDK.

    public static class GetPdrLastOperation 
    {
        public static Task<GetPdrLastOperationResult> InvokeAsync(GetPdrLastOperationArgs args, InvokeOptions? opts = null)
        public static Output<GetPdrLastOperationResult> Invoke(GetPdrLastOperationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPdrLastOperationResult> getPdrLastOperation(GetPdrLastOperationArgs args, InvokeOptions options)
    public static Output<GetPdrLastOperationResult> getPdrLastOperation(GetPdrLastOperationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPdrLastOperation:getPdrLastOperation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    The unique identifier of the pdr_last_operation.
    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    The unique identifier of the pdr_last_operation.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.
    id String
    The unique identifier of the pdr_last_operation.
    instanceId string
    instance id of instance to provision.
    acceptLanguage string
    The language requested for the return document.
    id string
    The unique identifier of the pdr_last_operation.
    instance_id str
    instance id of instance to provision.
    accept_language str
    The language requested for the return document.
    id str
    The unique identifier of the pdr_last_operation.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.
    id String
    The unique identifier of the pdr_last_operation.

    getPdrLastOperation Result

    The following output properties are available:

    Crn string
    (String) The service instance crn.
    DeploymentName string
    (String) The name of the service instance deployment.
    Id string
    The unique identifier of the pdr_last_operation.
    InstanceId string
    LastUpdatedOrchestratorDeploymentTime string
    (String) The deployment time of primary orchestrator VM.
    LastUpdatedStandbyOrchestratorDeploymentTime string
    (String) The deployment time of StandBy orchestrator VM.
    MfaEnabled string
    (String) Indicated whether multi factor authentication is ennabled or not.
    OrchExtConnectivityStatus string
    (String) Status of standby node addition to the orchestrator cluster.
    OrchStandbyNodeAddtionStatus string
    (String) The status of standby node in the Orchestrator cluster.
    OrchestratorClusterMessage string
    (String) The current status of the primary orchestrator VM.
    OrchestratorConfigStatus string
    (String) The configuration status of the orchestrator cluster.
    OrchestratorHa bool
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    PlanName string
    (String) The name of the DR Automation plan.
    PrimaryDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    PrimaryIpAddress string
    (String) The IP address of the primary orchestrator VM.
    PrimaryOrchestratorStatus string
    (String) The configuration status of the orchestrator cluster.
    RecoveryLocation string
    (String) The disaster recovery location associated with the instance.
    ResourceGroup string
    (String) The resource group to which the service instance belongs.
    StandbyDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    StandbyIpAddress string
    (String) The IP address of the standby orchestrator VM.
    StandbyStatus string
    (String) The current state of the standby orchestrator.
    Status string
    (String) The current state of the primary orchestrator.
    AcceptLanguage string
    Crn string
    (String) The service instance crn.
    DeploymentName string
    (String) The name of the service instance deployment.
    Id string
    The unique identifier of the pdr_last_operation.
    InstanceId string
    LastUpdatedOrchestratorDeploymentTime string
    (String) The deployment time of primary orchestrator VM.
    LastUpdatedStandbyOrchestratorDeploymentTime string
    (String) The deployment time of StandBy orchestrator VM.
    MfaEnabled string
    (String) Indicated whether multi factor authentication is ennabled or not.
    OrchExtConnectivityStatus string
    (String) Status of standby node addition to the orchestrator cluster.
    OrchStandbyNodeAddtionStatus string
    (String) The status of standby node in the Orchestrator cluster.
    OrchestratorClusterMessage string
    (String) The current status of the primary orchestrator VM.
    OrchestratorConfigStatus string
    (String) The configuration status of the orchestrator cluster.
    OrchestratorHa bool
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    PlanName string
    (String) The name of the DR Automation plan.
    PrimaryDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    PrimaryIpAddress string
    (String) The IP address of the primary orchestrator VM.
    PrimaryOrchestratorStatus string
    (String) The configuration status of the orchestrator cluster.
    RecoveryLocation string
    (String) The disaster recovery location associated with the instance.
    ResourceGroup string
    (String) The resource group to which the service instance belongs.
    StandbyDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    StandbyIpAddress string
    (String) The IP address of the standby orchestrator VM.
    StandbyStatus string
    (String) The current state of the standby orchestrator.
    Status string
    (String) The current state of the primary orchestrator.
    AcceptLanguage string
    crn String
    (String) The service instance crn.
    deploymentName String
    (String) The name of the service instance deployment.
    id String
    The unique identifier of the pdr_last_operation.
    instanceId String
    lastUpdatedOrchestratorDeploymentTime String
    (String) The deployment time of primary orchestrator VM.
    lastUpdatedStandbyOrchestratorDeploymentTime String
    (String) The deployment time of StandBy orchestrator VM.
    mfaEnabled String
    (String) Indicated whether multi factor authentication is ennabled or not.
    orchExtConnectivityStatus String
    (String) Status of standby node addition to the orchestrator cluster.
    orchStandbyNodeAddtionStatus String
    (String) The status of standby node in the Orchestrator cluster.
    orchestratorClusterMessage String
    (String) The current status of the primary orchestrator VM.
    orchestratorConfigStatus String
    (String) The configuration status of the orchestrator cluster.
    orchestratorHa Boolean
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    planName String
    (String) The name of the DR Automation plan.
    primaryDescription String
    (String) Indicates the progress details of primary orchestrator creation.
    primaryIpAddress String
    (String) The IP address of the primary orchestrator VM.
    primaryOrchestratorStatus String
    (String) The configuration status of the orchestrator cluster.
    recoveryLocation String
    (String) The disaster recovery location associated with the instance.
    resourceGroup String
    (String) The resource group to which the service instance belongs.
    standbyDescription String
    (String) Indicates the progress details of primary orchestrator creation.
    standbyIpAddress String
    (String) The IP address of the standby orchestrator VM.
    standbyStatus String
    (String) The current state of the standby orchestrator.
    status String
    (String) The current state of the primary orchestrator.
    acceptLanguage String
    crn string
    (String) The service instance crn.
    deploymentName string
    (String) The name of the service instance deployment.
    id string
    The unique identifier of the pdr_last_operation.
    instanceId string
    lastUpdatedOrchestratorDeploymentTime string
    (String) The deployment time of primary orchestrator VM.
    lastUpdatedStandbyOrchestratorDeploymentTime string
    (String) The deployment time of StandBy orchestrator VM.
    mfaEnabled string
    (String) Indicated whether multi factor authentication is ennabled or not.
    orchExtConnectivityStatus string
    (String) Status of standby node addition to the orchestrator cluster.
    orchStandbyNodeAddtionStatus string
    (String) The status of standby node in the Orchestrator cluster.
    orchestratorClusterMessage string
    (String) The current status of the primary orchestrator VM.
    orchestratorConfigStatus string
    (String) The configuration status of the orchestrator cluster.
    orchestratorHa boolean
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    planName string
    (String) The name of the DR Automation plan.
    primaryDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    primaryIpAddress string
    (String) The IP address of the primary orchestrator VM.
    primaryOrchestratorStatus string
    (String) The configuration status of the orchestrator cluster.
    recoveryLocation string
    (String) The disaster recovery location associated with the instance.
    resourceGroup string
    (String) The resource group to which the service instance belongs.
    standbyDescription string
    (String) Indicates the progress details of primary orchestrator creation.
    standbyIpAddress string
    (String) The IP address of the standby orchestrator VM.
    standbyStatus string
    (String) The current state of the standby orchestrator.
    status string
    (String) The current state of the primary orchestrator.
    acceptLanguage string
    crn str
    (String) The service instance crn.
    deployment_name str
    (String) The name of the service instance deployment.
    id str
    The unique identifier of the pdr_last_operation.
    instance_id str
    last_updated_orchestrator_deployment_time str
    (String) The deployment time of primary orchestrator VM.
    last_updated_standby_orchestrator_deployment_time str
    (String) The deployment time of StandBy orchestrator VM.
    mfa_enabled str
    (String) Indicated whether multi factor authentication is ennabled or not.
    orch_ext_connectivity_status str
    (String) Status of standby node addition to the orchestrator cluster.
    orch_standby_node_addtion_status str
    (String) The status of standby node in the Orchestrator cluster.
    orchestrator_cluster_message str
    (String) The current status of the primary orchestrator VM.
    orchestrator_config_status str
    (String) The configuration status of the orchestrator cluster.
    orchestrator_ha bool
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    plan_name str
    (String) The name of the DR Automation plan.
    primary_description str
    (String) Indicates the progress details of primary orchestrator creation.
    primary_ip_address str
    (String) The IP address of the primary orchestrator VM.
    primary_orchestrator_status str
    (String) The configuration status of the orchestrator cluster.
    recovery_location str
    (String) The disaster recovery location associated with the instance.
    resource_group str
    (String) The resource group to which the service instance belongs.
    standby_description str
    (String) Indicates the progress details of primary orchestrator creation.
    standby_ip_address str
    (String) The IP address of the standby orchestrator VM.
    standby_status str
    (String) The current state of the standby orchestrator.
    status str
    (String) The current state of the primary orchestrator.
    accept_language str
    crn String
    (String) The service instance crn.
    deploymentName String
    (String) The name of the service instance deployment.
    id String
    The unique identifier of the pdr_last_operation.
    instanceId String
    lastUpdatedOrchestratorDeploymentTime String
    (String) The deployment time of primary orchestrator VM.
    lastUpdatedStandbyOrchestratorDeploymentTime String
    (String) The deployment time of StandBy orchestrator VM.
    mfaEnabled String
    (String) Indicated whether multi factor authentication is ennabled or not.
    orchExtConnectivityStatus String
    (String) Status of standby node addition to the orchestrator cluster.
    orchStandbyNodeAddtionStatus String
    (String) The status of standby node in the Orchestrator cluster.
    orchestratorClusterMessage String
    (String) The current status of the primary orchestrator VM.
    orchestratorConfigStatus String
    (String) The configuration status of the orchestrator cluster.
    orchestratorHa Boolean
    (Boolean) Indicates whether high availability (HA) is enabled for the orchestrator.
    planName String
    (String) The name of the DR Automation plan.
    primaryDescription String
    (String) Indicates the progress details of primary orchestrator creation.
    primaryIpAddress String
    (String) The IP address of the primary orchestrator VM.
    primaryOrchestratorStatus String
    (String) The configuration status of the orchestrator cluster.
    recoveryLocation String
    (String) The disaster recovery location associated with the instance.
    resourceGroup String
    (String) The resource group to which the service instance belongs.
    standbyDescription String
    (String) Indicates the progress details of primary orchestrator creation.
    standbyIpAddress String
    (String) The IP address of the standby orchestrator VM.
    standbyStatus String
    (String) The current state of the standby orchestrator.
    status String
    (String) The current state of the primary orchestrator.
    acceptLanguage String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate