Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
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
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 dictionarydata "ibm_getphalastoperation" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- Accept
Language string - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- Id string
- The unique identifier of the pha_last_operation.
- If
None stringMatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- Instance
Id string - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- Accept
Language string - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- Id string
- The unique identifier of the pha_last_operation.
- If
None stringMatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- instance_
id string - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- accept_
language string - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- id string
- The unique identifier of the pha_last_operation.
- if_
none_ stringmatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- instance
Id String - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- accept
Language String - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- id String
- The unique identifier of the pha_last_operation.
- if
None StringMatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- instance
Id string - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- accept
Language string - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- id string
- The unique identifier of the pha_last_operation.
- if
None stringMatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- instance_
id str - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- accept_
language str - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- id str
- The unique identifier of the pha_last_operation.
- if_
none_ strmatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- instance
Id String - instance id of instance to provision.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9-]+$/.
- Constraints: The maximum length is
- accept
Language String - The language requested for the return document.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
- id String
- The unique identifier of the pha_last_operation.
- if
None StringMatch - ETag for conditional requests (optional).
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^[a-zA-Z0-9\\-_,;=.*]+$/.
- Constraints: The maximum length is
getPhaLastOperation Result
The following output properties are available:
- Deployment
Name string - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Resource
Group string - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Status string
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Accept
Language string - If
None stringMatch
- Deployment
Name string - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Resource
Group string - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Status string
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- Accept
Language string - If
None stringMatch
- deployment_
name string - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- resource_
group string - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- status string
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- accept_
language string - if_
none_ stringmatch
- deployment
Name String - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- resource
Group String - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- status String
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- accept
Language String - if
None StringMatch
- deployment
Name string - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- resource
Group string - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- status string
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- accept
Language string - if
None stringMatch
- deployment_
name str - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- resource_
group str - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- status str
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- accept_
language str - if_
none_ strmatch
- deployment
Name String - (String) Name of the deployment associated with the service instance.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- 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
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- resource
Group String - (String) Resource Group.
- Constraints: The maximum length is
2048characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- status String
- (String) Current operational status of the service instance.
- Constraints: The maximum length is
16characters. The minimum length is1character. The value must match regular expression/^[A-Za-z0-9._:-]+$/.
- Constraints: The maximum length is
- accept
Language String - if
None StringMatch
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
published on Tuesday, May 5, 2026 by ibm-cloud
