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 list of events from the specified service instance ID.
This data source is deprecated and will be removed in the next major version. Use
ibm.getPdrEventsinstead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const pdrGetEvents = ibm.getPdrGetEvents({
fromTime: "2025-06-19T00:00:00Z",
instanceId: "123456d3-1122-3344-b67d-4389b44b7bf9",
toTime: "2025-06-19T23:59:59Z",
});
import pulumi
import pulumi_ibm as ibm
pdr_get_events = ibm.get_pdr_get_events(from_time="2025-06-19T00:00:00Z",
instance_id="123456d3-1122-3344-b67d-4389b44b7bf9",
to_time="2025-06-19T23:59:59Z")
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.GetPdrGetEvents(ctx, &ibm.GetPdrGetEventsArgs{
FromTime: pulumi.StringRef("2025-06-19T00:00:00Z"),
InstanceId: "123456d3-1122-3344-b67d-4389b44b7bf9",
ToTime: pulumi.StringRef("2025-06-19T23:59:59Z"),
}, 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 pdrGetEvents = Ibm.GetPdrGetEvents.Invoke(new()
{
FromTime = "2025-06-19T00:00:00Z",
InstanceId = "123456d3-1122-3344-b67d-4389b44b7bf9",
ToTime = "2025-06-19T23:59:59Z",
});
});
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.GetPdrGetEventsArgs;
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 pdrGetEvents = IbmFunctions.getPdrGetEvents(GetPdrGetEventsArgs.builder()
.fromTime("2025-06-19T00:00:00Z")
.instanceId("123456d3-1122-3344-b67d-4389b44b7bf9")
.toTime("2025-06-19T23:59:59Z")
.build());
}
}
variables:
pdrGetEvents:
fn::invoke:
function: ibm:getPdrGetEvents
arguments:
fromTime: 2025-06-19T00:00:00Z
instanceId: 123456d3-1122-3344-b67d-4389b44b7bf9
toTime: 2025-06-19T23:59:59Z
Using getPdrGetEvents
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 getPdrGetEvents(args: GetPdrGetEventsArgs, opts?: InvokeOptions): Promise<GetPdrGetEventsResult>
function getPdrGetEventsOutput(args: GetPdrGetEventsOutputArgs, opts?: InvokeOptions): Output<GetPdrGetEventsResult>def get_pdr_get_events(accept_language: Optional[str] = None,
from_time: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
time: Optional[str] = None,
to_time: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPdrGetEventsResult
def get_pdr_get_events_output(accept_language: pulumi.Input[Optional[str]] = None,
from_time: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
time: pulumi.Input[Optional[str]] = None,
to_time: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPdrGetEventsResult]func GetPdrGetEvents(ctx *Context, args *GetPdrGetEventsArgs, opts ...InvokeOption) (*GetPdrGetEventsResult, error)
func GetPdrGetEventsOutput(ctx *Context, args *GetPdrGetEventsOutputArgs, opts ...InvokeOption) GetPdrGetEventsResultOutput> Note: This function is named GetPdrGetEvents in the Go SDK.
public static class GetPdrGetEvents
{
public static Task<GetPdrGetEventsResult> InvokeAsync(GetPdrGetEventsArgs args, InvokeOptions? opts = null)
public static Output<GetPdrGetEventsResult> Invoke(GetPdrGetEventsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPdrGetEventsResult> getPdrGetEvents(GetPdrGetEventsArgs args, InvokeOptions options)
public static Output<GetPdrGetEventsResult> getPdrGetEvents(GetPdrGetEventsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPdrGetEvents:getPdrGetEvents
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - ID of the service instance.
- Accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- From
Time string - A from query time in either ISO 8601 or unix epoch format.
- Id string
- The unique identifier of the pdr_get_events.
- Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- To
Time string - A to query time in either ISO 8601 or unix epoch format.
- Instance
Id string - ID of the service instance.
- Accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- From
Time string - A from query time in either ISO 8601 or unix epoch format.
- Id string
- The unique identifier of the pdr_get_events.
- Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- To
Time string - A to query time in either ISO 8601 or unix epoch format.
- instance
Id String - ID of the service instance.
- accept
Language String - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- from
Time String - A from query time in either ISO 8601 or unix epoch format.
- id String
- The unique identifier of the pdr_get_events.
- time String
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time String - A to query time in either ISO 8601 or unix epoch format.
- instance
Id string - ID of the service instance.
- accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- from
Time string - A from query time in either ISO 8601 or unix epoch format.
- id string
- The unique identifier of the pdr_get_events.
- time string
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time string - A to query time in either ISO 8601 or unix epoch format.
- instance_
id str - ID of the service instance.
- accept_
language str - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- from_
time str - A from query time in either ISO 8601 or unix epoch format.
- id str
- The unique identifier of the pdr_get_events.
- time str
- (String) Time of activity in ISO 8601 - RFC3339.
- to_
time str - A to query time in either ISO 8601 or unix epoch format.
- instance
Id String - ID of the service instance.
- accept
Language String - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- from
Time String - A from query time in either ISO 8601 or unix epoch format.
- id String
- The unique identifier of the pdr_get_events.
- time String
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time String - A to query time in either ISO 8601 or unix epoch format.
getPdrGetEvents Result
The following output properties are available:
- Event
List<Get
Pdr Get Events Event> - (List) Deprecated: Use
eventsinstead. Nested schema for event: - Events
List<Get
Pdr Get Events Event> - (List) Events. Nested schema for events:
- Id string
- The unique identifier of the pdr_get_events.
- Instance
Id string - Accept
Language string - From
Time string - Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- To
Time string
- Event
[]Get
Pdr Get Events Event - (List) Deprecated: Use
eventsinstead. Nested schema for event: - Events
[]Get
Pdr Get Events Event - (List) Events. Nested schema for events:
- Id string
- The unique identifier of the pdr_get_events.
- Instance
Id string - Accept
Language string - From
Time string - Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- To
Time string
- event
List<Get
Pdr Get Events Event> - (List) Deprecated: Use
eventsinstead. Nested schema for event: - events
List<Get
Pdr Get Events Event> - (List) Events. Nested schema for events:
- id String
- The unique identifier of the pdr_get_events.
- instance
Id String - accept
Language String - from
Time String - time String
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time String
- event
Get
Pdr Get Events Event[] - (List) Deprecated: Use
eventsinstead. Nested schema for event: - events
Get
Pdr Get Events Event[] - (List) Events. Nested schema for events:
- id string
- The unique identifier of the pdr_get_events.
- instance
Id string - accept
Language string - from
Time string - time string
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time string
- event
Sequence[Get
Pdr Get Events Event] - (List) Deprecated: Use
eventsinstead. Nested schema for event: - events
Sequence[Get
Pdr Get Events Event] - (List) Events. Nested schema for events:
- id str
- The unique identifier of the pdr_get_events.
- instance_
id str - accept_
language str - from_
time str - time str
- (String) Time of activity in ISO 8601 - RFC3339.
- to_
time str
- event List<Property Map>
- (List) Deprecated: Use
eventsinstead. Nested schema for event: - events List<Property Map>
- (List) Events. Nested schema for events:
- id String
- The unique identifier of the pdr_get_events.
- instance
Id String - accept
Language String - from
Time String - time String
- (String) Time of activity in ISO 8601 - RFC3339.
- to
Time String
Supporting Types
GetPdrGetEventsEvent
- Action string
- (String) Type of action for this event.
- Api
Source string - (String) Source of API when it being executed.
- Event
Id string - (String) ID of the Activity.
- Level string
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- Message string
- (String) The (translated) message of the event.
- Message
Data Dictionary<string, string> - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- Metadata Dictionary<string, string>
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- Resource string
- (String) Type of resource for this event.
- Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- Timestamp string
- (String) Time of activity in unix epoch.
- Users
List<Get
Pdr Get Events Event User> - (List) Information about a user associated with an event. Nested schema for user:
- Action string
- (String) Type of action for this event.
- Api
Source string - (String) Source of API when it being executed.
- Event
Id string - (String) ID of the Activity.
- Level string
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- Message string
- (String) The (translated) message of the event.
- Message
Data map[string]string - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- Metadata map[string]string
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- Resource string
- (String) Type of resource for this event.
- Time string
- (String) Time of activity in ISO 8601 - RFC3339.
- Timestamp string
- (String) Time of activity in unix epoch.
- Users
[]Get
Pdr Get Events Event User - (List) Information about a user associated with an event. Nested schema for user:
- action String
- (String) Type of action for this event.
- api
Source String - (String) Source of API when it being executed.
- event
Id String - (String) ID of the Activity.
- level String
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- message String
- (String) The (translated) message of the event.
- message
Data Map<String,String> - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- metadata Map<String,String>
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- resource String
- (String) Type of resource for this event.
- time String
- (String) Time of activity in ISO 8601 - RFC3339.
- timestamp String
- (String) Time of activity in unix epoch.
- users
List<Get
Pdr Get Events Event User> - (List) Information about a user associated with an event. Nested schema for user:
- action string
- (String) Type of action for this event.
- api
Source string - (String) Source of API when it being executed.
- event
Id string - (String) ID of the Activity.
- level string
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- message string
- (String) The (translated) message of the event.
- message
Data {[key: string]: string} - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- metadata {[key: string]: string}
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- resource string
- (String) Type of resource for this event.
- time string
- (String) Time of activity in ISO 8601 - RFC3339.
- timestamp string
- (String) Time of activity in unix epoch.
- users
Get
Pdr Get Events Event User[] - (List) Information about a user associated with an event. Nested schema for user:
- action str
- (String) Type of action for this event.
- api_
source str - (String) Source of API when it being executed.
- event_
id str - (String) ID of the Activity.
- level str
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- message str
- (String) The (translated) message of the event.
- message_
data Mapping[str, str] - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- metadata Mapping[str, str]
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- resource str
- (String) Type of resource for this event.
- time str
- (String) Time of activity in ISO 8601 - RFC3339.
- timestamp str
- (String) Time of activity in unix epoch.
- users
Sequence[Get
Pdr Get Events Event User] - (List) Information about a user associated with an event. Nested schema for user:
- action String
- (String) Type of action for this event.
- api
Source String - (String) Source of API when it being executed.
- event
Id String - (String) ID of the Activity.
- level String
- (String) Level of the event (notice, info, warning, error).
- Constraints: Allowable values are:
notice,info,warning,error.
- Constraints: Allowable values are:
- message String
- (String) The (translated) message of the event.
- message
Data Map<String> - (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- metadata Map<String>
- (Map) A flexible schema placeholder to allow any JSON value (aligns with interface{} in Go).
- resource String
- (String) Type of resource for this event.
- time String
- (String) Time of activity in ISO 8601 - RFC3339.
- timestamp String
- (String) Time of activity in unix epoch.
- users List<Property Map>
- (List) Information about a user associated with an event. Nested schema for user:
GetPdrGetEventsEventUser
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
