AuditTrailService
A list of all methods in the AuditTrailService
service. Click on the method name to view detailed information about that method.
Methods | Description |
---|---|
audit_trail_search | Returns the audit trail data with specific filters applied. Audit trail searching is limited to the last 10,000 records or last 180 days, whichever comes first. |
audit_trail_search
Returns the audit trail data with specific filters applied. Audit trail searching is limited to the last 10,000 records or last 180 days, whichever comes first.
- HTTP Method:
POST
- Endpoint:
/restapi/v1.0/account/{accountId}/audit-trail/search
Parameters
Name | Type | Required | Description |
---|---|---|---|
request_body | AccountHistorySearchPublicRequest | ❌ | The request body. |
account_id | str | ✅ | Internal identifier of the RingCentral account (can be set to "~" to indicate that the account associated with current authorization session should be used) |
Return Type
AccountHistorySearchPublicResponse
Example Usage Code Snippet
from ring_central import RingCentral, Environment
from ring_central.models import AccountHistorySearchPublicRequest
sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
request_body = AccountHistorySearchPublicRequest(
event_time_from="eventTimeFrom",
event_time_to="eventTimeTo",
initiator_ids=[
"initiatorIds"
],
page=1,
per_page=25,
target_ids=[
"targetIds"
],
site_id="871836004",
action_ids=[
"CHANGE_SECRET_INFO"
],
search_string="542617",
exclude_action_ids=[
"CHANGE_SECRET_INFO"
]
)
result = sdk.audit_trail.audit_trail_search(
request_body=request_body,
account_id="~"
)
print(result)
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs