1. Packages
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. getPdrEvents
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 list of events from the specified service instance ID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const pdrEvents = ibm.getPdrEvents({
        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_events = ibm.get_pdr_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.GetPdrEvents(ctx, &ibm.GetPdrEventsArgs{
    			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 pdrEvents = Ibm.GetPdrEvents.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.GetPdrEventsArgs;
    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 pdrEvents = IbmFunctions.getPdrEvents(GetPdrEventsArgs.builder()
                .fromTime("2025-06-19T00:00:00Z")
                .instanceId("123456d3-1122-3344-b67d-4389b44b7bf9")
                .toTime("2025-06-19T23:59:59Z")
                .build());
    
        }
    }
    
    variables:
      pdrEvents:
        fn::invoke:
          function: ibm:getPdrEvents
          arguments:
            fromTime: 2025-06-19T00:00:00Z
            instanceId: 123456d3-1122-3344-b67d-4389b44b7bf9
            toTime: 2025-06-19T23:59:59Z
    
    Example coming soon!
    

    Using getPdrEvents

    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 getPdrEvents(args: GetPdrEventsArgs, opts?: InvokeOptions): Promise<GetPdrEventsResult>
    function getPdrEventsOutput(args: GetPdrEventsOutputArgs, opts?: InvokeOptions): Output<GetPdrEventsResult>
    def get_pdr_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) -> GetPdrEventsResult
    def get_pdr_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[GetPdrEventsResult]
    func GetPdrEvents(ctx *Context, args *GetPdrEventsArgs, opts ...InvokeOption) (*GetPdrEventsResult, error)
    func GetPdrEventsOutput(ctx *Context, args *GetPdrEventsOutputArgs, opts ...InvokeOption) GetPdrEventsResultOutput

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

    public static class GetPdrEvents 
    {
        public static Task<GetPdrEventsResult> InvokeAsync(GetPdrEventsArgs args, InvokeOptions? opts = null)
        public static Output<GetPdrEventsResult> Invoke(GetPdrEventsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPdrEventsResult> getPdrEvents(GetPdrEventsArgs args, InvokeOptions options)
    public static Output<GetPdrEventsResult> getPdrEvents(GetPdrEventsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPdrEvents:getPdrEvents
      arguments:
        # arguments dictionary
    data "ibm_getpdrevents" "name" {
        # arguments
    }

    The following arguments are supported:

    InstanceId string
    ID of the service instance.
    AcceptLanguage string
    The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
    FromTime string
    A from query time in either ISO 8601 or unix epoch format.
    Id string
    The unique identifier of the pdr_events.
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime string
    A to query time in either ISO 8601 or unix epoch format.
    InstanceId string
    ID of the service instance.
    AcceptLanguage string
    The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
    FromTime string
    A from query time in either ISO 8601 or unix epoch format.
    Id string
    The unique identifier of the pdr_events.
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime 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_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.
    instanceId String
    ID of the service instance.
    acceptLanguage String
    The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
    fromTime String
    A from query time in either ISO 8601 or unix epoch format.
    id String
    The unique identifier of the pdr_events.
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String
    A to query time in either ISO 8601 or unix epoch format.
    instanceId string
    ID of the service instance.
    acceptLanguage string
    The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
    fromTime string
    A from query time in either ISO 8601 or unix epoch format.
    id string
    The unique identifier of the pdr_events.
    time string
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime 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_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.
    instanceId String
    ID of the service instance.
    acceptLanguage String
    The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
    fromTime String
    A from query time in either ISO 8601 or unix epoch format.
    id String
    The unique identifier of the pdr_events.
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String
    A to query time in either ISO 8601 or unix epoch format.

    getPdrEvents Result

    The following output properties are available:

    Event List<GetPdrEventsEvent>
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    Events List<GetPdrEventsEvent>
    (List) Events. Nested schema for events:
    Id string
    The unique identifier of the pdr_events.
    InstanceId string
    AcceptLanguage string
    FromTime string
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime string
    Event []GetPdrEventsEvent
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    Events []GetPdrEventsEvent
    (List) Events. Nested schema for events:
    Id string
    The unique identifier of the pdr_events.
    InstanceId string
    AcceptLanguage string
    FromTime string
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime string
    event list(object)
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    events list(object)
    (List) Events. Nested schema for events:
    id string
    The unique identifier of the pdr_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<GetPdrEventsEvent>
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    events List<GetPdrEventsEvent>
    (List) Events. Nested schema for events:
    id String
    The unique identifier of the pdr_events.
    instanceId String
    acceptLanguage String
    fromTime String
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String
    event GetPdrEventsEvent[]
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    events GetPdrEventsEvent[]
    (List) Events. Nested schema for events:
    id string
    The unique identifier of the pdr_events.
    instanceId string
    acceptLanguage string
    fromTime string
    time string
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime string
    event Sequence[GetPdrEventsEvent]
    (List) Deprecated: Use events instead. Nested schema for event:

    Deprecated: Deprecated

    events Sequence[GetPdrEventsEvent]
    (List) Events. Nested schema for events:
    id str
    The unique identifier of the pdr_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 events instead. Nested schema for event:

    Deprecated: Deprecated

    events List<Property Map>
    (List) Events. Nested schema for events:
    id String
    The unique identifier of the pdr_events.
    instanceId String
    acceptLanguage String
    fromTime String
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String

    Supporting Types

    GetPdrEventsEvent

    Action string
    (String) Type of action for this event.
    ApiSource string
    (String) Source of API when it being executed.
    EventId 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.
    Message string
    (String) The (translated) message of the event.
    MessageData 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<GetPdrEventsEventUser>
    (List) Information about a user associated with an event. Nested schema for user:
    Action string
    (String) Type of action for this event.
    ApiSource string
    (String) Source of API when it being executed.
    EventId 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.
    Message string
    (String) The (translated) message of the event.
    MessageData 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 []GetPdrEventsEventUser
    (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.
    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(object)
    (List) Information about a user associated with an event. Nested schema for user:
    action String
    (String) Type of action for this event.
    apiSource String
    (String) Source of API when it being executed.
    eventId 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.
    message String
    (String) The (translated) message of the event.
    messageData 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<GetPdrEventsEventUser>
    (List) Information about a user associated with an event. Nested schema for user:
    action string
    (String) Type of action for this event.
    apiSource string
    (String) Source of API when it being executed.
    eventId 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.
    message string
    (String) The (translated) message of the event.
    messageData {[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 GetPdrEventsEventUser[]
    (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.
    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[GetPdrEventsEventUser]
    (List) Information about a user associated with an event. Nested schema for user:
    action String
    (String) Type of action for this event.
    apiSource String
    (String) Source of API when it being executed.
    eventId 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.
    message String
    (String) The (translated) message of the event.
    messageData 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:

    GetPdrEventsEventUser

    Email string
    (String) Email of the User.
    Name string
    (String) Name of the User.
    UserId string
    (String) ID of user who created/caused the event.
    Email string
    (String) Email of the User.
    Name string
    (String) Name of the User.
    UserId string
    (String) ID of user who created/caused the event.
    email string
    (String) Email of the User.
    name string
    (String) Name of the User.
    user_id string
    (String) ID of user who created/caused the event.
    email String
    (String) Email of the User.
    name String
    (String) Name of the User.
    userId String
    (String) ID of user who created/caused the event.
    email string
    (String) Email of the User.
    name string
    (String) Name of the User.
    userId string
    (String) ID of user who created/caused the event.
    email str
    (String) Email of the User.
    name str
    (String) Name of the User.
    user_id str
    (String) ID of user who created/caused the event.
    email String
    (String) Email of the User.
    name String
    (String) Name of the User.
    userId String
    (String) ID of user who created/caused the event.

    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.