1. Packages
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. getPhaLastOperation
Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud

    Retrieves the status of the last operation performed on the specified service instance, such as provisioning, updating, or deprovisioning.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const phaLastOperation = ibm.getPhaLastOperation({
        acceptLanguage: "en-US",
        instanceId: "8eefautr-4c02-0009-0086-8bd4d8cf61b6",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pha_last_operation = ibm.get_pha_last_operation(accept_language="en-US",
        instance_id="8eefautr-4c02-0009-0086-8bd4d8cf61b6")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/v2/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetPhaLastOperation(ctx, &ibm.GetPhaLastOperationArgs{
    			AcceptLanguage: pulumi.StringRef("en-US"),
    			InstanceId:     "8eefautr-4c02-0009-0086-8bd4d8cf61b6",
    		}, 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 phaLastOperation = Ibm.GetPhaLastOperation.Invoke(new()
        {
            AcceptLanguage = "en-US",
            InstanceId = "8eefautr-4c02-0009-0086-8bd4d8cf61b6",
        });
    
    });
    
    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.GetPhaLastOperationArgs;
    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 phaLastOperation = IbmFunctions.getPhaLastOperation(GetPhaLastOperationArgs.builder()
                .acceptLanguage("en-US")
                .instanceId("8eefautr-4c02-0009-0086-8bd4d8cf61b6")
                .build());
    
        }
    }
    
    variables:
      phaLastOperation:
        fn::invoke:
          function: ibm:getPhaLastOperation
          arguments:
            acceptLanguage: en-US
            instanceId: 8eefautr-4c02-0009-0086-8bd4d8cf61b6
    
    Example coming soon!
    

    Using getPhaLastOperation

    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 getPhaLastOperation(args: GetPhaLastOperationArgs, opts?: InvokeOptions): Promise<GetPhaLastOperationResult>
    function getPhaLastOperationOutput(args: GetPhaLastOperationOutputArgs, opts?: InvokeOptions): Output<GetPhaLastOperationResult>
    def get_pha_last_operation(accept_language: Optional[str] = None,
                               id: Optional[str] = None,
                               if_none_match: Optional[str] = None,
                               instance_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetPhaLastOperationResult
    def get_pha_last_operation_output(accept_language: pulumi.Input[Optional[str]] = None,
                               id: pulumi.Input[Optional[str]] = None,
                               if_none_match: pulumi.Input[Optional[str]] = None,
                               instance_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetPhaLastOperationResult]
    func GetPhaLastOperation(ctx *Context, args *GetPhaLastOperationArgs, opts ...InvokeOption) (*GetPhaLastOperationResult, error)
    func GetPhaLastOperationOutput(ctx *Context, args *GetPhaLastOperationOutputArgs, opts ...InvokeOption) GetPhaLastOperationResultOutput

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

    public static class GetPhaLastOperation 
    {
        public static Task<GetPhaLastOperationResult> InvokeAsync(GetPhaLastOperationArgs args, InvokeOptions? opts = null)
        public static Output<GetPhaLastOperationResult> Invoke(GetPhaLastOperationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPhaLastOperationResult> getPhaLastOperation(GetPhaLastOperationArgs args, InvokeOptions options)
    public static Output<GetPhaLastOperationResult> getPhaLastOperation(GetPhaLastOperationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPhaLastOperation:getPhaLastOperation
      arguments:
        # arguments dictionary
    data "ibm_getphalastoperation" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    AcceptLanguage string
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    Id string
    The unique identifier of the pha_last_operation.
    IfNoneMatch string
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    InstanceId string
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    AcceptLanguage string
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    Id string
    The unique identifier of the pha_last_operation.
    IfNoneMatch string
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    instance_id string
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    accept_language string
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    id string
    The unique identifier of the pha_last_operation.
    if_none_match string
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    instanceId String
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    acceptLanguage String
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    id String
    The unique identifier of the pha_last_operation.
    ifNoneMatch String
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    instanceId string
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    acceptLanguage string
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    id string
    The unique identifier of the pha_last_operation.
    ifNoneMatch string
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    instance_id str
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    accept_language str
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    id str
    The unique identifier of the pha_last_operation.
    if_none_match str
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    instanceId String
    instance id of instance to provision.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9-]+$/.
    acceptLanguage String
    The language requested for the return document.

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.
    id String
    The unique identifier of the pha_last_operation.
    ifNoneMatch String
    ETag for conditional requests (optional).

    • Constraints: The maximum length is 50 characters. The minimum length is 1 character. The value must match regular expression /^[a-zA-Z0-9\\-_,;=.*]+$/.

    getPhaLastOperation Result

    The following output properties are available:

    DeploymentName string
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    Id string
    The unique identifier of the pha_last_operation.
    InstanceId string
    ProvisionId string
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    ResourceGroup string
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    Status string
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    AcceptLanguage string
    IfNoneMatch string
    DeploymentName string
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    Id string
    The unique identifier of the pha_last_operation.
    InstanceId string
    ProvisionId string
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    ResourceGroup string
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    Status string
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    AcceptLanguage string
    IfNoneMatch string
    deployment_name string
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    id string
    The unique identifier of the pha_last_operation.
    instance_id string
    provision_id string
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    resource_group string
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    status string
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    accept_language string
    if_none_match string
    deploymentName String
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    id String
    The unique identifier of the pha_last_operation.
    instanceId String
    provisionId String
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    resourceGroup String
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    status String
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    acceptLanguage String
    ifNoneMatch String
    deploymentName string
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    id string
    The unique identifier of the pha_last_operation.
    instanceId string
    provisionId string
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    resourceGroup string
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    status string
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    acceptLanguage string
    ifNoneMatch string
    deployment_name str
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    id str
    The unique identifier of the pha_last_operation.
    instance_id str
    provision_id str
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    resource_group str
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    status str
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    accept_language str
    if_none_match str
    deploymentName String
    (String) Name of the deployment associated with the service instance.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    id String
    The unique identifier of the pha_last_operation.
    instanceId String
    provisionId String
    (String) Unique identifier for the provisioning operation.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    resourceGroup String
    (String) Resource Group.

    • Constraints: The maximum length is 2048 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    status String
    (String) Current operational status of the service instance.

    • Constraints: The maximum length is 16 characters. The minimum length is 1 character. The value must match regular expression /^[A-Za-z0-9._:-]+$/.
    acceptLanguage String
    ifNoneMatch String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    Viewing docs for ibm 2.1.0
    published on Tuesday, May 5, 2026 by ibm-cloud
      Try Pulumi Cloud free. Your team will thank you.