Skip to content

Latest commit

 

History

History
180 lines (121 loc) · 3.99 KB

AuditTrailApi.md

File metadata and controls

180 lines (121 loc) · 3.99 KB

Connectwise::AuditTrailApi

All URIs are relative to https://api-na.myconnectwise.net/v4_6_release/apis/3.0

Method HTTP request Description
system_audittrail_count_get GET /system/audittrail/count
system_audittrail_get GET /system/audittrail
system_audittrail_post POST /system/audittrail

system_audittrail_count_get

Count system_audittrail_count_get(opts)

Get Members Count

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = Connectwise::AuditTrailApi.new

opts = { 
  type: "type_example", # String | 
  id: 56, # Integer | 
  device_identifier: "device_identifier_example" # String | 
}

begin
  result = api_instance.system_audittrail_count_get(opts)
  p result
rescue Connectwise::ApiError => e
  puts "Exception when calling AuditTrailApi->system_audittrail_count_get: #{e}"
end

Parameters

Name Type Description Notes
type String [optional]
id Integer [optional]
device_identifier String [optional]

Return type

Count

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

system_audittrail_get

Array<AuditTrailEntry> system_audittrail_get(opts)

Get Audit Trail

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = Connectwise::AuditTrailApi.new

opts = { 
  type: "type_example", # String | 
  id: 56, # Integer | 
  device_identifier: "device_identifier_example" # String | 
  page: 56, # Integer | 
  page_size: 56 # Integer | 
}

begin
  result = api_instance.system_audittrail_get(opts)
  p result
rescue Connectwise::ApiError => e
  puts "Exception when calling AuditTrailApi->system_audittrail_get: #{e}"
end

Parameters

Name Type Description Notes
type String [optional]
id Integer [optional]
device_identifier String [optional]
page Integer [optional]
page_size Integer [optional]

Return type

Array<AuditTrailEntry>

Authorization

BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

system_audittrail_post

system_audittrail_post(insert_request)

Insert Audit Trail Entries

Example

# load the gem
require 'connectwise-ruby-sdk'
# setup authorization
Connectwise.configure do |config|
  # Configure HTTP basic authorization: BasicAuth
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = Connectwise::AuditTrailApi.new

insert_request = Connectwise::AuditTrailEntryInsertRequest.new # AuditTrailEntryInsertRequest | 


begin
  api_instance.system_audittrail_post(insert_request)
rescue Connectwise::ApiError => e
  puts "Exception when calling AuditTrailApi->system_audittrail_post: #{e}"
end

Parameters

Name Type Description Notes
insert_request AuditTrailEntryInsertRequest

Return type

nil (empty response body)

Authorization

BasicAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined