All URIs are relative to https://api.hubapi.com
Method | HTTP request | Description |
---|---|---|
GetCmsV3AuditLogsGetPage | GET /cms/v3/audit-logs/ | Query audit logs |
CollectionResponsePublicAuditLog GetCmsV3AuditLogsGetPage (List objectId = null, List userId = null, string after = null, string before = null, List sort = null, List eventType = null, int? limit = null, List objectType = null)
Query audit logs
Returns audit logs based on filters.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCmsV3AuditLogsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AuditLogsApi(config);
var objectId = new List<string>(); // List<string> | Comma separated list of object ids to filter by. (optional)
var userId = new List<string>(); // List<string> | Comma separated list of user ids to filter by. (optional)
var after = "after_example"; // string | Timestamp after which audit logs will be returned (optional)
var before = "before_example"; // string | Timestamp before which audit logs will be returned (optional)
var sort = new List<string>(); // List<string> | The sort direction for the audit logs. (Can only sort by timestamp). (optional)
var eventType = new List<string>(); // List<string> | Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). (optional)
var limit = 56; // int? | The number of logs to return. (optional)
var objectType = new List<string>(); // List<string> | Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) (optional)
try
{
// Query audit logs
CollectionResponsePublicAuditLog result = apiInstance.GetCmsV3AuditLogsGetPage(objectId, userId, after, before, sort, eventType, limit, objectType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AuditLogsApi.GetCmsV3AuditLogsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectId | List<string> | Comma separated list of object ids to filter by. | [optional] |
userId | List<string> | Comma separated list of user ids to filter by. | [optional] |
after | string | Timestamp after which audit logs will be returned | [optional] |
before | string | Timestamp before which audit logs will be returned | [optional] |
sort | List<string> | The sort direction for the audit logs. (Can only sort by timestamp). | [optional] |
eventType | List<string> | Comma separated list of event types to filter by (CREATED, UPDATED, PUBLISHED, DELETED, UNPUBLISHED). | [optional] |
limit | int? | The number of logs to return. | [optional] |
objectType | List<string> | Comma separated list of object types to filter by (BLOG, LANDING_PAGE, DOMAIN, HUBDB_TABLE etc.) | [optional] |
CollectionResponsePublicAuditLog
No authorization required
- Content-Type: Not defined
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
200 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]