ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
The ibm.getResourceReclamations data source fetches all resource reclamations for the current IBM Cloud account. This is useful to view reclamations that have been created across all resource instances.
Note: Reclamations represent resources pending deletion or restoration actions in IBM Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const all = ibm.getResourceReclamations({});
import pulumi
import pulumi_ibm as ibm
all = ibm.get_resource_reclamations()
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.GetResourceReclamations(ctx, &ibm.GetResourceReclamationsArgs{}, 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 all = Ibm.GetResourceReclamations.Invoke();
});
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.GetResourceReclamationsArgs;
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 all = IbmFunctions.getResourceReclamations(GetResourceReclamationsArgs.builder()
.build());
}
}
variables:
all:
fn::invoke:
function: ibm:getResourceReclamations
arguments: {}
To access reclamation IDs:
output "reclamation_ids" {
value = [for r in data.ibm_resource_reclamations.all.reclamations : r.id]
}
Notes
- Reclamations are managed by IBM Cloud resource controller service.
- Ensure appropriate permissions to view reclamations in your account.
Using getResourceReclamations
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 getResourceReclamations(args: GetResourceReclamationsArgs, opts?: InvokeOptions): Promise<GetResourceReclamationsResult>
function getResourceReclamationsOutput(args: GetResourceReclamationsOutputArgs, opts?: InvokeOptions): Output<GetResourceReclamationsResult>def get_resource_reclamations(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourceReclamationsResult
def get_resource_reclamations_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResourceReclamationsResult]func GetResourceReclamations(ctx *Context, args *GetResourceReclamationsArgs, opts ...InvokeOption) (*GetResourceReclamationsResult, error)
func GetResourceReclamationsOutput(ctx *Context, args *GetResourceReclamationsOutputArgs, opts ...InvokeOption) GetResourceReclamationsResultOutput> Note: This function is named GetResourceReclamations in the Go SDK.
public static class GetResourceReclamations
{
public static Task<GetResourceReclamationsResult> InvokeAsync(GetResourceReclamationsArgs args, InvokeOptions? opts = null)
public static Output<GetResourceReclamationsResult> Invoke(GetResourceReclamationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourceReclamationsResult> getResourceReclamations(GetResourceReclamationsArgs args, InvokeOptions options)
public static Output<GetResourceReclamationsResult> getResourceReclamations(GetResourceReclamationsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getResourceReclamations:getResourceReclamations
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- (String) The ID of the reclamation.
- Id string
- (String) The ID of the reclamation.
- id String
- (String) The ID of the reclamation.
- id string
- (String) The ID of the reclamation.
- id str
- (String) The ID of the reclamation.
- id String
- (String) The ID of the reclamation.
getResourceReclamations Result
The following output properties are available:
- Id string
- (String) The ID of the reclamation.
- Reclamations
List<Get
Resource Reclamations Reclamation> - (List of Objects) List of reclamations with each object containing:
- Id string
- (String) The ID of the reclamation.
- Reclamations
[]Get
Resource Reclamations Reclamation - (List of Objects) List of reclamations with each object containing:
- id String
- (String) The ID of the reclamation.
- reclamations
List<Get
Resource Reclamations Reclamation> - (List of Objects) List of reclamations with each object containing:
- id string
- (String) The ID of the reclamation.
- reclamations
Get
Resource Reclamations Reclamation[] - (List of Objects) List of reclamations with each object containing:
- id str
- (String) The ID of the reclamation.
- reclamations
Sequence[Get
Resource Reclamations Reclamation] - (List of Objects) List of reclamations with each object containing:
- id String
- (String) The ID of the reclamation.
- reclamations List<Property Map>
- (List of Objects) List of reclamations with each object containing:
Supporting Types
GetResourceReclamationsReclamation
- Account
Id string - (String) IBM Cloud account ID.
- Created
At string - (String) Creation timestamp of the reclamation.
- Created
By string - (String) Creator of the reclamation.
- Custom
Properties Dictionary<string, string> - (Map) Additional custom properties associated with the reclamation.
- Entity
Crn string - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- Entity
Id string - (String) The ID of the entity for the reclamation.
- Entity
Type stringId - (String) The entity type ID.
- Id string
- (String) The ID of the reclamation.
- Policy
Id string - (String) The policy ID that triggered the reclamation.
- Resource
Group stringId - (String) Resource group ID.
- Resource
Instance stringId - (String) Resource instance ID associated.
- State string
- (String) Current state of the reclamation.
- Target
Time string - (String) Target retention expiration time (RFC3339).
- Updated
At string - (String) Last updated timestamp.
- Updated
By string - (String) Last updater of the reclamation.
- Account
Id string - (String) IBM Cloud account ID.
- Created
At string - (String) Creation timestamp of the reclamation.
- Created
By string - (String) Creator of the reclamation.
- Custom
Properties map[string]string - (Map) Additional custom properties associated with the reclamation.
- Entity
Crn string - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- Entity
Id string - (String) The ID of the entity for the reclamation.
- Entity
Type stringId - (String) The entity type ID.
- Id string
- (String) The ID of the reclamation.
- Policy
Id string - (String) The policy ID that triggered the reclamation.
- Resource
Group stringId - (String) Resource group ID.
- Resource
Instance stringId - (String) Resource instance ID associated.
- State string
- (String) Current state of the reclamation.
- Target
Time string - (String) Target retention expiration time (RFC3339).
- Updated
At string - (String) Last updated timestamp.
- Updated
By string - (String) Last updater of the reclamation.
- account
Id String - (String) IBM Cloud account ID.
- created
At String - (String) Creation timestamp of the reclamation.
- created
By String - (String) Creator of the reclamation.
- custom
Properties Map<String,String> - (Map) Additional custom properties associated with the reclamation.
- entity
Crn String - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- entity
Id String - (String) The ID of the entity for the reclamation.
- entity
Type StringId - (String) The entity type ID.
- id String
- (String) The ID of the reclamation.
- policy
Id String - (String) The policy ID that triggered the reclamation.
- resource
Group StringId - (String) Resource group ID.
- resource
Instance StringId - (String) Resource instance ID associated.
- state String
- (String) Current state of the reclamation.
- target
Time String - (String) Target retention expiration time (RFC3339).
- updated
At String - (String) Last updated timestamp.
- updated
By String - (String) Last updater of the reclamation.
- account
Id string - (String) IBM Cloud account ID.
- created
At string - (String) Creation timestamp of the reclamation.
- created
By string - (String) Creator of the reclamation.
- custom
Properties {[key: string]: string} - (Map) Additional custom properties associated with the reclamation.
- entity
Crn string - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- entity
Id string - (String) The ID of the entity for the reclamation.
- entity
Type stringId - (String) The entity type ID.
- id string
- (String) The ID of the reclamation.
- policy
Id string - (String) The policy ID that triggered the reclamation.
- resource
Group stringId - (String) Resource group ID.
- resource
Instance stringId - (String) Resource instance ID associated.
- state string
- (String) Current state of the reclamation.
- target
Time string - (String) Target retention expiration time (RFC3339).
- updated
At string - (String) Last updated timestamp.
- updated
By string - (String) Last updater of the reclamation.
- account_
id str - (String) IBM Cloud account ID.
- created_
at str - (String) Creation timestamp of the reclamation.
- created_
by str - (String) Creator of the reclamation.
- custom_
properties Mapping[str, str] - (Map) Additional custom properties associated with the reclamation.
- entity_
crn str - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- entity_
id str - (String) The ID of the entity for the reclamation.
- entity_
type_ strid - (String) The entity type ID.
- id str
- (String) The ID of the reclamation.
- policy_
id str - (String) The policy ID that triggered the reclamation.
- resource_
group_ strid - (String) Resource group ID.
- resource_
instance_ strid - (String) Resource instance ID associated.
- state str
- (String) Current state of the reclamation.
- target_
time str - (String) Target retention expiration time (RFC3339).
- updated_
at str - (String) Last updated timestamp.
- updated_
by str - (String) Last updater of the reclamation.
- account
Id String - (String) IBM Cloud account ID.
- created
At String - (String) Creation timestamp of the reclamation.
- created
By String - (String) Creator of the reclamation.
- custom
Properties Map<String> - (Map) Additional custom properties associated with the reclamation.
- entity
Crn String - (String) Full Cloud Resource Name (CRN) related to this reclamation.
- entity
Id String - (String) The ID of the entity for the reclamation.
- entity
Type StringId - (String) The entity type ID.
- id String
- (String) The ID of the reclamation.
- policy
Id String - (String) The policy ID that triggered the reclamation.
- resource
Group StringId - (String) Resource group ID.
- resource
Instance StringId - (String) Resource instance ID associated.
- state String
- (String) Current state of the reclamation.
- target
Time String - (String) Target retention expiration time (RFC3339).
- updated
At String - (String) Last updated timestamp.
- updated
By String - (String) Last updater of the reclamation.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
