1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPdrGetEvents
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm logo
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about pdr_get_events. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    variables:
      pdrGetEvents:
        fn::invoke:
          function: ibm:getPdrGetEvents
          arguments:
            fromTime: 2025-06-19T00:00:00Z
            provisionId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
            time: 2025-06-19T23:59:59Z
            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: Optional[pulumi.Input[str]] = None,
                           from_time: Optional[pulumi.Input[str]] = None,
                           id: Optional[pulumi.Input[str]] = None,
                           instance_id: Optional[pulumi.Input[str]] = None,
                           time: Optional[pulumi.Input[str]] = None,
                           to_time: Optional[pulumi.Input[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 dictionary

    The following arguments are supported:

    InstanceId string
    AcceptLanguage string
    The language requested for the return document.
    FromTime 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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    ToTime string
    A to query time in either ISO 8601 or unix epoch format.
    InstanceId string
    AcceptLanguage string
    The language requested for the return document.
    FromTime 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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    ToTime string
    A to query time in either ISO 8601 or unix epoch format.
    instanceId String
    acceptLanguage String
    The language requested for the return document.
    fromTime 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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    toTime String
    A to query time in either ISO 8601 or unix epoch format.
    instanceId string
    acceptLanguage string
    The language requested for the return document.
    fromTime 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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    toTime string
    A to query time in either ISO 8601 or unix epoch format.
    instance_id str
    accept_language str
    The language requested for the return document.
    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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    to_time str
    A to query time in either ISO 8601 or unix epoch format.
    instanceId String
    acceptLanguage String
    The language requested for the return document.
    fromTime 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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    toTime String
    A to query time in either ISO 8601 or unix epoch format.

    getPdrGetEvents Result

    The following output properties are available:

    Events List<GetPdrGetEventsEvent>
    (List) Events. Nested schema for event:
    Id string
    The unique identifier of the pdr_get_events.
    InstanceId string
    AcceptLanguage string
    FromTime string
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime string
    Events []GetPdrGetEventsEvent
    (List) Events. Nested schema for event:
    Id string
    The unique identifier of the pdr_get_events.
    InstanceId string
    AcceptLanguage string
    FromTime string
    Time string
    (String) Time of activity in ISO 8601 - RFC3339.
    ToTime string
    events List<GetPdrGetEventsEvent>
    (List) Events. Nested schema for event:
    id String
    The unique identifier of the pdr_get_events.
    instanceId String
    acceptLanguage String
    fromTime String
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String
    events GetPdrGetEventsEvent[]
    (List) Events. Nested schema for event:
    id string
    The unique identifier of the pdr_get_events.
    instanceId string
    acceptLanguage string
    fromTime string
    time string
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime string
    events Sequence[GetPdrGetEventsEvent]
    (List) Events. Nested schema for event:
    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
    events List<Property Map>
    (List) Events. Nested schema for event:
    id String
    The unique identifier of the pdr_get_events.
    instanceId String
    acceptLanguage String
    fromTime String
    time String
    (String) Time of activity in ISO 8601 - RFC3339.
    toTime String

    Supporting Types

    GetPdrGetEventsEvent

    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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    Timestamp string
    (String) Time of activity in unix epoch.
    Users List<GetPdrGetEventsEventUser>
    (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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    Timestamp string
    (String) Time of activity in unix epoch.
    Users []GetPdrGetEventsEventUser
    (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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    timestamp String
    (String) Time of activity in unix epoch.
    users List<GetPdrGetEventsEventUser>
    (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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    timestamp string
    (String) Time of activity in unix epoch.
    users GetPdrGetEventsEventUser[]
    (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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    timestamp str
    (String) Time of activity in unix epoch.
    users Sequence[GetPdrGetEventsEventUser]
    (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
    (deprecated - use from_time) A time in either ISO 8601 or unix epoch format.
    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

    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.
    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.
    ibm logo
    ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate