Class: Files::SiemHttpDestination
- Inherits:
-
Object
- Object
- Files::SiemHttpDestination
- Defined in:
- lib/files.com/models/siem_http_destination.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
- .all(params = {}, options = {}) ⇒ Object
-
.create(params = {}, options = {}) ⇒ Object
Parameters: name - string - Name for this Destination additional_headers - object - Additional HTTP Headers included in calls to the destination URL sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not generic_payload_type - string - Applicable only for destination type: generic.
- .delete(id, params = {}, options = {}) ⇒ Object
- .destroy(id, params = {}, options = {}) ⇒ Object
-
.find(id, params = {}, options = {}) ⇒ Object
Parameters: id (required) - int64 - Siem Http Destination ID.
- .get(id, params = {}, options = {}) ⇒ Object
-
.list(params = {}, options = {}) ⇒ Object
Parameters: cursor - string - Used for pagination.
-
.send_test_entry(params = {}, options = {}) ⇒ Object
Parameters: siem_http_destination_id - int64 - SIEM HTTP Destination ID destination_type - string - Destination Type destination_url - string - Destination Url name - string - Name for this Destination additional_headers - object - Additional HTTP Headers included in calls to the destination URL sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not generic_payload_type - string - Applicable only for destination type: generic.
-
.update(id, params = {}, options = {}) ⇒ Object
Parameters: name - string - Name for this Destination additional_headers - object - Additional HTTP Headers included in calls to the destination URL sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not generic_payload_type - string - Applicable only for destination type: generic.
Instance Method Summary collapse
-
#additional_headers ⇒ Object
object - Additional HTTP Headers included in calls to the destination URL.
- #additional_headers=(value) ⇒ Object
-
#api_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #api_request_records_sent_entries_sent=(value) ⇒ Object
-
#api_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for api_request logs.
- #api_request_send_enabled=(value) ⇒ Object
-
#automation_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #automation_records_sent_entries_sent=(value) ⇒ Object
-
#automation_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for automation logs.
- #automation_send_enabled=(value) ⇒ Object
-
#azure_dcr_immutable_id ⇒ Object
string - Applicable only for destination type: azure.
- #azure_dcr_immutable_id=(value) ⇒ Object
-
#azure_oauth_client_credentials_client_id ⇒ Object
string - Applicable only for destination type: azure.
- #azure_oauth_client_credentials_client_id=(value) ⇒ Object
-
#azure_oauth_client_credentials_client_secret ⇒ Object
string - Applicable only for destination type: azure.
- #azure_oauth_client_credentials_client_secret=(value) ⇒ Object
-
#azure_oauth_client_credentials_client_secret_masked ⇒ Object
string - Applicable only for destination type: azure.
- #azure_oauth_client_credentials_client_secret_masked=(value) ⇒ Object
-
#azure_oauth_client_credentials_tenant_id ⇒ Object
string - Applicable only for destination type: azure.
- #azure_oauth_client_credentials_tenant_id=(value) ⇒ Object
-
#azure_stream_name ⇒ Object
string - Applicable only for destination type: azure.
- #azure_stream_name=(value) ⇒ Object
-
#connection_test_entry ⇒ Object
string - Connection Test Entry.
- #connection_test_entry=(value) ⇒ Object
-
#datadog_api_key ⇒ Object
string - Applicable only for destination type: datadog.
- #datadog_api_key=(value) ⇒ Object
-
#datadog_api_key_masked ⇒ Object
string - Applicable only for destination type: datadog.
- #datadog_api_key_masked=(value) ⇒ Object
- #delete(params = {}) ⇒ Object
-
#destination_type ⇒ Object
string - Destination Type.
- #destination_type=(value) ⇒ Object
-
#destination_url ⇒ Object
string - Destination Url.
- #destination_url=(value) ⇒ Object
- #destroy(params = {}) ⇒ Object
-
#email_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #email_records_sent_entries_sent=(value) ⇒ Object
-
#email_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for email logs.
- #email_send_enabled=(value) ⇒ Object
-
#exavault_api_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #exavault_api_request_records_sent_entries_sent=(value) ⇒ Object
-
#exavault_api_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for exavault_api_request logs.
- #exavault_api_request_send_enabled=(value) ⇒ Object
-
#ftp_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #ftp_action_records_sent_entries_sent=(value) ⇒ Object
-
#ftp_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for ftp_action logs.
- #ftp_action_send_enabled=(value) ⇒ Object
-
#generic_payload_type ⇒ Object
string - Applicable only for destination type: generic.
- #generic_payload_type=(value) ⇒ Object
-
#id ⇒ Object
int64 - SIEM HTTP Destination ID.
- #id=(value) ⇒ Object
-
#initialize(attributes = {}, options = {}) ⇒ SiemHttpDestination
constructor
A new instance of SiemHttpDestination.
-
#last_http_call_duration_ms ⇒ Object
int64 - Duration of the last HTTP Call in milliseconds.
- #last_http_call_duration_ms=(value) ⇒ Object
-
#last_http_call_error_message ⇒ Object
string - Last HTTP Call Error Message if applicable.
- #last_http_call_error_message=(value) ⇒ Object
-
#last_http_call_response_body ⇒ Object
string - Last HTTP Call Response Body.
- #last_http_call_response_body=(value) ⇒ Object
-
#last_http_call_response_code ⇒ Object
int64 - Last HTTP Call Response Code.
- #last_http_call_response_code=(value) ⇒ Object
-
#last_http_call_success ⇒ Object
boolean - Was the last HTTP call made successful?.
- #last_http_call_success=(value) ⇒ Object
-
#last_http_call_target_type ⇒ Object
string - Type of URL that was last called.
- #last_http_call_target_type=(value) ⇒ Object
-
#last_http_call_time ⇒ Object
string - Time of Last HTTP Call.
- #last_http_call_time=(value) ⇒ Object
-
#most_recent_http_call_success_time ⇒ Object
string - Time of Most Recent Successful HTTP Call.
- #most_recent_http_call_success_time=(value) ⇒ Object
-
#name ⇒ Object
string - Name for this Destination.
- #name=(value) ⇒ Object
-
#new_relic_api_key ⇒ Object
string - Applicable only for destination type: new_relic.
- #new_relic_api_key=(value) ⇒ Object
-
#new_relic_api_key_masked ⇒ Object
string - Applicable only for destination type: new_relic.
- #new_relic_api_key_masked=(value) ⇒ Object
-
#outbound_connection_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #outbound_connection_records_sent_entries_sent=(value) ⇒ Object
-
#outbound_connection_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for outbound_connection logs.
- #outbound_connection_send_enabled=(value) ⇒ Object
-
#public_hosting_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #public_hosting_request_records_sent_entries_sent=(value) ⇒ Object
-
#public_hosting_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for public_hosting_request logs.
- #public_hosting_request_send_enabled=(value) ⇒ Object
-
#qradar_password ⇒ Object
string - Applicable only for destination type: qradar.
- #qradar_password=(value) ⇒ Object
-
#qradar_password_masked ⇒ Object
string - Applicable only for destination type: qradar.
- #qradar_password_masked=(value) ⇒ Object
-
#qradar_username ⇒ Object
string - Applicable only for destination type: qradar.
- #qradar_username=(value) ⇒ Object
- #save ⇒ Object
-
#sending_active ⇒ Object
boolean - Whether this SIEM HTTP Destination is currently being sent to or not.
- #sending_active=(value) ⇒ Object
-
#sftp_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #sftp_action_records_sent_entries_sent=(value) ⇒ Object
-
#sftp_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for sftp_action logs.
- #sftp_action_send_enabled=(value) ⇒ Object
-
#solar_winds_token ⇒ Object
string - Applicable only for destination type: solar_winds.
- #solar_winds_token=(value) ⇒ Object
-
#solar_winds_token_masked ⇒ Object
string - Applicable only for destination type: solar_winds.
- #solar_winds_token_masked=(value) ⇒ Object
-
#splunk_token ⇒ Object
string - Applicable only for destination type: splunk.
- #splunk_token=(value) ⇒ Object
-
#splunk_token_masked ⇒ Object
string - Applicable only for destination type: splunk.
- #splunk_token_masked=(value) ⇒ Object
-
#sync_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #sync_records_sent_entries_sent=(value) ⇒ Object
-
#sync_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for sync logs.
- #sync_send_enabled=(value) ⇒ Object
-
#update(params = {}) ⇒ Object
Parameters: name - string - Name for this Destination additional_headers - object - Additional HTTP Headers included in calls to the destination URL sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not generic_payload_type - string - Applicable only for destination type: generic.
-
#web_dav_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
- #web_dav_action_records_sent_entries_sent=(value) ⇒ Object
-
#web_dav_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for web_dav_action logs.
- #web_dav_action_send_enabled=(value) ⇒ Object
Constructor Details
#initialize(attributes = {}, options = {}) ⇒ SiemHttpDestination
Returns a new instance of SiemHttpDestination.
7 8 9 10 |
# File 'lib/files.com/models/siem_http_destination.rb', line 7 def initialize(attributes = {}, = {}) @attributes = attributes || {} @options = || {} end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
5 6 7 |
# File 'lib/files.com/models/siem_http_destination.rb', line 5 def attributes @attributes end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/files.com/models/siem_http_destination.rb', line 5 def @options end |
Class Method Details
.all(params = {}, options = {}) ⇒ Object
580 581 582 |
# File 'lib/files.com/models/siem_http_destination.rb', line 580 def self.all(params = {}, = {}) list(params, ) end |
.create(params = {}, options = {}) ⇒ Object
Parameters:
name - string - Name for this Destination
additional_headers - object - Additional HTTP Headers included in calls to the destination URL
sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
email_send_enabled - boolean - Whether or not sending is enabled for email logs.
exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
destination_type (required) - string - Destination Type
destination_url (required) - string - Destination Url
628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/files.com/models/siem_http_destination.rb', line 628 def self.create(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if params[:additional_headers] and !params[:additional_headers].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if params[:generic_payload_type] and !params[:generic_payload_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: splunk_token must be an String") if params[:splunk_token] and !params[:splunk_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_dcr_immutable_id must be an String") if params[:azure_dcr_immutable_id] and !params[:azure_dcr_immutable_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_stream_name must be an String") if params[:azure_stream_name] and !params[:azure_stream_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_tenant_id must be an String") if params[:azure_oauth_client_credentials_tenant_id] and !params[:azure_oauth_client_credentials_tenant_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_id must be an String") if params[:azure_oauth_client_credentials_client_id] and !params[:azure_oauth_client_credentials_client_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_secret must be an String") if params[:azure_oauth_client_credentials_client_secret] and !params[:azure_oauth_client_credentials_client_secret].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_username must be an String") if params[:qradar_username] and !params[:qradar_username].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_password must be an String") if params[:qradar_password] and !params[:qradar_password].is_a?(String) raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if params[:solar_winds_token] and !params[:solar_winds_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if params[:new_relic_api_key] and !params[:new_relic_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if params[:datadog_api_key] and !params[:datadog_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if params[:destination_type] and !params[:destination_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if params[:destination_url] and !params[:destination_url].is_a?(String) raise MissingParameterError.new("Parameter missing: destination_type") unless params[:destination_type] raise MissingParameterError.new("Parameter missing: destination_url") unless params[:destination_url] response, = Api.send_request("/siem_http_destinations", :post, params, ) SiemHttpDestination.new(response.data, ) end |
.delete(id, params = {}, options = {}) ⇒ Object
758 759 760 761 762 763 764 765 766 |
# File 'lib/files.com/models/siem_http_destination.rb', line 758 def self.delete(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/siem_http_destinations/#{params[:id]}", :delete, params, ) nil end |
.destroy(id, params = {}, options = {}) ⇒ Object
768 769 770 771 |
# File 'lib/files.com/models/siem_http_destination.rb', line 768 def self.destroy(id, params = {}, = {}) delete(id, params, ) nil end |
.find(id, params = {}, options = {}) ⇒ Object
Parameters:
id (required) - int64 - Siem Http Destination ID.
586 587 588 589 590 591 592 593 594 |
# File 'lib/files.com/models/siem_http_destination.rb', line 586 def self.find(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/siem_http_destinations/#{params[:id]}", :get, params, ) SiemHttpDestination.new(response.data, ) end |
.get(id, params = {}, options = {}) ⇒ Object
596 597 598 |
# File 'lib/files.com/models/siem_http_destination.rb', line 596 def self.get(id, params = {}, = {}) find(id, params, ) end |
.list(params = {}, options = {}) ⇒ Object
Parameters:
cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
571 572 573 574 575 576 577 578 |
# File 'lib/files.com/models/siem_http_destination.rb', line 571 def self.list(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: cursor must be an String") if params[:cursor] and !params[:cursor].is_a?(String) raise InvalidParameterError.new("Bad parameter: per_page must be an Integer") if params[:per_page] and !params[:per_page].is_a?(Integer) List.new(SiemHttpDestination, params) do Api.send_request("/siem_http_destinations", :get, params, ) end end |
.send_test_entry(params = {}, options = {}) ⇒ Object
Parameters:
siem_http_destination_id - int64 - SIEM HTTP Destination ID
destination_type - string - Destination Type
destination_url - string - Destination Url
name - string - Name for this Destination
additional_headers - object - Additional HTTP Headers included in calls to the destination URL
sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
email_send_enabled - boolean - Whether or not sending is enabled for email logs.
exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 |
# File 'lib/files.com/models/siem_http_destination.rb', line 681 def self.send_test_entry(params = {}, = {}) raise InvalidParameterError.new("Bad parameter: siem_http_destination_id must be an Integer") if params[:siem_http_destination_id] and !params[:siem_http_destination_id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if params[:destination_type] and !params[:destination_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if params[:destination_url] and !params[:destination_url].is_a?(String) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if params[:additional_headers] and !params[:additional_headers].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if params[:generic_payload_type] and !params[:generic_payload_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: splunk_token must be an String") if params[:splunk_token] and !params[:splunk_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_dcr_immutable_id must be an String") if params[:azure_dcr_immutable_id] and !params[:azure_dcr_immutable_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_stream_name must be an String") if params[:azure_stream_name] and !params[:azure_stream_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_tenant_id must be an String") if params[:azure_oauth_client_credentials_tenant_id] and !params[:azure_oauth_client_credentials_tenant_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_id must be an String") if params[:azure_oauth_client_credentials_client_id] and !params[:azure_oauth_client_credentials_client_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_secret must be an String") if params[:azure_oauth_client_credentials_client_secret] and !params[:azure_oauth_client_credentials_client_secret].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_username must be an String") if params[:qradar_username] and !params[:qradar_username].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_password must be an String") if params[:qradar_password] and !params[:qradar_password].is_a?(String) raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if params[:solar_winds_token] and !params[:solar_winds_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if params[:new_relic_api_key] and !params[:new_relic_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if params[:datadog_api_key] and !params[:datadog_api_key].is_a?(String) Api.send_request("/siem_http_destinations/send_test_entry", :post, params, ) nil end |
.update(id, params = {}, options = {}) ⇒ Object
Parameters:
name - string - Name for this Destination
additional_headers - object - Additional HTTP Headers included in calls to the destination URL
sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
email_send_enabled - boolean - Whether or not sending is enabled for email logs.
exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
destination_type - string - Destination Type
destination_url - string - Destination Url
732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 |
# File 'lib/files.com/models/siem_http_destination.rb', line 732 def self.update(id, params = {}, = {}) params ||= {} params[:id] = id raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: additional_headers must be an Hash") if params[:additional_headers] and !params[:additional_headers].is_a?(Hash) raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if params[:generic_payload_type] and !params[:generic_payload_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: splunk_token must be an String") if params[:splunk_token] and !params[:splunk_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_dcr_immutable_id must be an String") if params[:azure_dcr_immutable_id] and !params[:azure_dcr_immutable_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_stream_name must be an String") if params[:azure_stream_name] and !params[:azure_stream_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_tenant_id must be an String") if params[:azure_oauth_client_credentials_tenant_id] and !params[:azure_oauth_client_credentials_tenant_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_id must be an String") if params[:azure_oauth_client_credentials_client_id] and !params[:azure_oauth_client_credentials_client_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_secret must be an String") if params[:azure_oauth_client_credentials_client_secret] and !params[:azure_oauth_client_credentials_client_secret].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_username must be an String") if params[:qradar_username] and !params[:qradar_username].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_password must be an String") if params[:qradar_password] and !params[:qradar_password].is_a?(String) raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if params[:solar_winds_token] and !params[:solar_winds_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if params[:new_relic_api_key] and !params[:new_relic_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if params[:datadog_api_key] and !params[:datadog_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if params[:destination_type] and !params[:destination_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if params[:destination_url] and !params[:destination_url].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] response, = Api.send_request("/siem_http_destinations/#{params[:id]}", :patch, params, ) SiemHttpDestination.new(response.data, ) end |
Instance Method Details
#additional_headers ⇒ Object
object - Additional HTTP Headers included in calls to the destination URL
49 50 51 |
# File 'lib/files.com/models/siem_http_destination.rb', line 49 def additional_headers @attributes[:additional_headers] end |
#additional_headers=(value) ⇒ Object
53 54 55 |
# File 'lib/files.com/models/siem_http_destination.rb', line 53 def additional_headers=(value) @attributes[:additional_headers] = value end |
#api_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
292 293 294 |
# File 'lib/files.com/models/siem_http_destination.rb', line 292 def api_request_records_sent_entries_sent @attributes[:api_request_records_sent_entries_sent] end |
#api_request_records_sent_entries_sent=(value) ⇒ Object
296 297 298 |
# File 'lib/files.com/models/siem_http_destination.rb', line 296 def api_request_records_sent_entries_sent=(value) @attributes[:api_request_records_sent_entries_sent] = value end |
#api_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for api_request logs.
283 284 285 |
# File 'lib/files.com/models/siem_http_destination.rb', line 283 def api_request_send_enabled @attributes[:api_request_send_enabled] end |
#api_request_send_enabled=(value) ⇒ Object
287 288 289 |
# File 'lib/files.com/models/siem_http_destination.rb', line 287 def api_request_send_enabled=(value) @attributes[:api_request_send_enabled] = value end |
#automation_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
274 275 276 |
# File 'lib/files.com/models/siem_http_destination.rb', line 274 def automation_records_sent_entries_sent @attributes[:automation_records_sent_entries_sent] end |
#automation_records_sent_entries_sent=(value) ⇒ Object
278 279 280 |
# File 'lib/files.com/models/siem_http_destination.rb', line 278 def automation_records_sent_entries_sent=(value) @attributes[:automation_records_sent_entries_sent] = value end |
#automation_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for automation logs.
265 266 267 |
# File 'lib/files.com/models/siem_http_destination.rb', line 265 def automation_send_enabled @attributes[:automation_send_enabled] end |
#automation_send_enabled=(value) ⇒ Object
269 270 271 |
# File 'lib/files.com/models/siem_http_destination.rb', line 269 def automation_send_enabled=(value) @attributes[:automation_send_enabled] = value end |
#azure_dcr_immutable_id ⇒ Object
string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
85 86 87 |
# File 'lib/files.com/models/siem_http_destination.rb', line 85 def azure_dcr_immutable_id @attributes[:azure_dcr_immutable_id] end |
#azure_dcr_immutable_id=(value) ⇒ Object
89 90 91 |
# File 'lib/files.com/models/siem_http_destination.rb', line 89 def azure_dcr_immutable_id=(value) @attributes[:azure_dcr_immutable_id] = value end |
#azure_oauth_client_credentials_client_id ⇒ Object
string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
112 113 114 |
# File 'lib/files.com/models/siem_http_destination.rb', line 112 def azure_oauth_client_credentials_client_id @attributes[:azure_oauth_client_credentials_client_id] end |
#azure_oauth_client_credentials_client_id=(value) ⇒ Object
116 117 118 |
# File 'lib/files.com/models/siem_http_destination.rb', line 116 def azure_oauth_client_credentials_client_id=(value) @attributes[:azure_oauth_client_credentials_client_id] = value end |
#azure_oauth_client_credentials_client_secret ⇒ Object
string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
445 446 447 |
# File 'lib/files.com/models/siem_http_destination.rb', line 445 def azure_oauth_client_credentials_client_secret @attributes[:azure_oauth_client_credentials_client_secret] end |
#azure_oauth_client_credentials_client_secret=(value) ⇒ Object
449 450 451 |
# File 'lib/files.com/models/siem_http_destination.rb', line 449 def azure_oauth_client_credentials_client_secret=(value) @attributes[:azure_oauth_client_credentials_client_secret] = value end |
#azure_oauth_client_credentials_client_secret_masked ⇒ Object
string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
121 122 123 |
# File 'lib/files.com/models/siem_http_destination.rb', line 121 def azure_oauth_client_credentials_client_secret_masked @attributes[:azure_oauth_client_credentials_client_secret_masked] end |
#azure_oauth_client_credentials_client_secret_masked=(value) ⇒ Object
125 126 127 |
# File 'lib/files.com/models/siem_http_destination.rb', line 125 def azure_oauth_client_credentials_client_secret_masked=(value) @attributes[:azure_oauth_client_credentials_client_secret_masked] = value end |
#azure_oauth_client_credentials_tenant_id ⇒ Object
string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
103 104 105 |
# File 'lib/files.com/models/siem_http_destination.rb', line 103 def azure_oauth_client_credentials_tenant_id @attributes[:azure_oauth_client_credentials_tenant_id] end |
#azure_oauth_client_credentials_tenant_id=(value) ⇒ Object
107 108 109 |
# File 'lib/files.com/models/siem_http_destination.rb', line 107 def azure_oauth_client_credentials_tenant_id=(value) @attributes[:azure_oauth_client_credentials_tenant_id] = value end |
#azure_stream_name ⇒ Object
string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
94 95 96 |
# File 'lib/files.com/models/siem_http_destination.rb', line 94 def azure_stream_name @attributes[:azure_stream_name] end |
#azure_stream_name=(value) ⇒ Object
98 99 100 |
# File 'lib/files.com/models/siem_http_destination.rb', line 98 def azure_stream_name=(value) @attributes[:azure_stream_name] = value end |
#connection_test_entry ⇒ Object
string - Connection Test Entry
427 428 429 |
# File 'lib/files.com/models/siem_http_destination.rb', line 427 def connection_test_entry @attributes[:connection_test_entry] end |
#connection_test_entry=(value) ⇒ Object
431 432 433 |
# File 'lib/files.com/models/siem_http_destination.rb', line 431 def connection_test_entry=(value) @attributes[:connection_test_entry] = value end |
#datadog_api_key ⇒ Object
string - Applicable only for destination type: datadog. API key provided by Datadog.
481 482 483 |
# File 'lib/files.com/models/siem_http_destination.rb', line 481 def datadog_api_key @attributes[:datadog_api_key] end |
#datadog_api_key=(value) ⇒ Object
485 486 487 |
# File 'lib/files.com/models/siem_http_destination.rb', line 485 def datadog_api_key=(value) @attributes[:datadog_api_key] = value end |
#datadog_api_key_masked ⇒ Object
string - Applicable only for destination type: datadog. API key provided by Datadog.
166 167 168 |
# File 'lib/files.com/models/siem_http_destination.rb', line 166 def datadog_api_key_masked @attributes[:datadog_api_key_masked] end |
#datadog_api_key_masked=(value) ⇒ Object
170 171 172 |
# File 'lib/files.com/models/siem_http_destination.rb', line 170 def datadog_api_key_masked=(value) @attributes[:datadog_api_key_masked] = value end |
#delete(params = {}) ⇒ Object
542 543 544 545 546 547 548 549 550 |
# File 'lib/files.com/models/siem_http_destination.rb', line 542 def delete(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/siem_http_destinations/#{@attributes[:id]}", :delete, params, @options) end |
#destination_type ⇒ Object
string - Destination Type
31 32 33 |
# File 'lib/files.com/models/siem_http_destination.rb', line 31 def destination_type @attributes[:destination_type] end |
#destination_type=(value) ⇒ Object
35 36 37 |
# File 'lib/files.com/models/siem_http_destination.rb', line 35 def destination_type=(value) @attributes[:destination_type] = value end |
#destination_url ⇒ Object
string - Destination Url
40 41 42 |
# File 'lib/files.com/models/siem_http_destination.rb', line 40 def destination_url @attributes[:destination_url] end |
#destination_url=(value) ⇒ Object
44 45 46 |
# File 'lib/files.com/models/siem_http_destination.rb', line 44 def destination_url=(value) @attributes[:destination_url] = value end |
#destroy(params = {}) ⇒ Object
552 553 554 555 |
# File 'lib/files.com/models/siem_http_destination.rb', line 552 def destroy(params = {}) delete(params) nil end |
#email_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
328 329 330 |
# File 'lib/files.com/models/siem_http_destination.rb', line 328 def email_records_sent_entries_sent @attributes[:email_records_sent_entries_sent] end |
#email_records_sent_entries_sent=(value) ⇒ Object
332 333 334 |
# File 'lib/files.com/models/siem_http_destination.rb', line 332 def email_records_sent_entries_sent=(value) @attributes[:email_records_sent_entries_sent] = value end |
#email_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for email logs.
319 320 321 |
# File 'lib/files.com/models/siem_http_destination.rb', line 319 def email_send_enabled @attributes[:email_send_enabled] end |
#email_send_enabled=(value) ⇒ Object
323 324 325 |
# File 'lib/files.com/models/siem_http_destination.rb', line 323 def email_send_enabled=(value) @attributes[:email_send_enabled] = value end |
#exavault_api_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
346 347 348 |
# File 'lib/files.com/models/siem_http_destination.rb', line 346 def exavault_api_request_records_sent_entries_sent @attributes[:exavault_api_request_records_sent_entries_sent] end |
#exavault_api_request_records_sent_entries_sent=(value) ⇒ Object
350 351 352 |
# File 'lib/files.com/models/siem_http_destination.rb', line 350 def exavault_api_request_records_sent_entries_sent=(value) @attributes[:exavault_api_request_records_sent_entries_sent] = value end |
#exavault_api_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for exavault_api_request logs.
337 338 339 |
# File 'lib/files.com/models/siem_http_destination.rb', line 337 def exavault_api_request_send_enabled @attributes[:exavault_api_request_send_enabled] end |
#exavault_api_request_send_enabled=(value) ⇒ Object
341 342 343 |
# File 'lib/files.com/models/siem_http_destination.rb', line 341 def exavault_api_request_send_enabled=(value) @attributes[:exavault_api_request_send_enabled] = value end |
#ftp_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
202 203 204 |
# File 'lib/files.com/models/siem_http_destination.rb', line 202 def ftp_action_records_sent_entries_sent @attributes[:ftp_action_records_sent_entries_sent] end |
#ftp_action_records_sent_entries_sent=(value) ⇒ Object
206 207 208 |
# File 'lib/files.com/models/siem_http_destination.rb', line 206 def ftp_action_records_sent_entries_sent=(value) @attributes[:ftp_action_records_sent_entries_sent] = value end |
#ftp_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for ftp_action logs.
193 194 195 |
# File 'lib/files.com/models/siem_http_destination.rb', line 193 def ftp_action_send_enabled @attributes[:ftp_action_send_enabled] end |
#ftp_action_send_enabled=(value) ⇒ Object
197 198 199 |
# File 'lib/files.com/models/siem_http_destination.rb', line 197 def ftp_action_send_enabled=(value) @attributes[:ftp_action_send_enabled] = value end |
#generic_payload_type ⇒ Object
string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
67 68 69 |
# File 'lib/files.com/models/siem_http_destination.rb', line 67 def generic_payload_type @attributes[:generic_payload_type] end |
#generic_payload_type=(value) ⇒ Object
71 72 73 |
# File 'lib/files.com/models/siem_http_destination.rb', line 71 def generic_payload_type=(value) @attributes[:generic_payload_type] = value end |
#id ⇒ Object
int64 - SIEM HTTP Destination ID
13 14 15 |
# File 'lib/files.com/models/siem_http_destination.rb', line 13 def id @attributes[:id] end |
#id=(value) ⇒ Object
17 18 19 |
# File 'lib/files.com/models/siem_http_destination.rb', line 17 def id=(value) @attributes[:id] = value end |
#last_http_call_duration_ms ⇒ Object
int64 - Duration of the last HTTP Call in milliseconds
409 410 411 |
# File 'lib/files.com/models/siem_http_destination.rb', line 409 def last_http_call_duration_ms @attributes[:last_http_call_duration_ms] end |
#last_http_call_duration_ms=(value) ⇒ Object
413 414 415 |
# File 'lib/files.com/models/siem_http_destination.rb', line 413 def last_http_call_duration_ms=(value) @attributes[:last_http_call_duration_ms] = value end |
#last_http_call_error_message ⇒ Object
string - Last HTTP Call Error Message if applicable
391 392 393 |
# File 'lib/files.com/models/siem_http_destination.rb', line 391 def @attributes[:last_http_call_error_message] end |
#last_http_call_error_message=(value) ⇒ Object
395 396 397 |
# File 'lib/files.com/models/siem_http_destination.rb', line 395 def (value) @attributes[:last_http_call_error_message] = value end |
#last_http_call_response_body ⇒ Object
string - Last HTTP Call Response Body. Large responses are truncated.
382 383 384 |
# File 'lib/files.com/models/siem_http_destination.rb', line 382 def last_http_call_response_body @attributes[:last_http_call_response_body] end |
#last_http_call_response_body=(value) ⇒ Object
386 387 388 |
# File 'lib/files.com/models/siem_http_destination.rb', line 386 def last_http_call_response_body=(value) @attributes[:last_http_call_response_body] = value end |
#last_http_call_response_code ⇒ Object
int64 - Last HTTP Call Response Code
373 374 375 |
# File 'lib/files.com/models/siem_http_destination.rb', line 373 def last_http_call_response_code @attributes[:last_http_call_response_code] end |
#last_http_call_response_code=(value) ⇒ Object
377 378 379 |
# File 'lib/files.com/models/siem_http_destination.rb', line 377 def last_http_call_response_code=(value) @attributes[:last_http_call_response_code] = value end |
#last_http_call_success ⇒ Object
boolean - Was the last HTTP call made successful?
364 365 366 |
# File 'lib/files.com/models/siem_http_destination.rb', line 364 def last_http_call_success @attributes[:last_http_call_success] end |
#last_http_call_success=(value) ⇒ Object
368 369 370 |
# File 'lib/files.com/models/siem_http_destination.rb', line 368 def last_http_call_success=(value) @attributes[:last_http_call_success] = value end |
#last_http_call_target_type ⇒ Object
string - Type of URL that was last called. Can be ‘destination_url` or `azure_oauth_client_credentials_url`
355 356 357 |
# File 'lib/files.com/models/siem_http_destination.rb', line 355 def last_http_call_target_type @attributes[:last_http_call_target_type] end |
#last_http_call_target_type=(value) ⇒ Object
359 360 361 |
# File 'lib/files.com/models/siem_http_destination.rb', line 359 def last_http_call_target_type=(value) @attributes[:last_http_call_target_type] = value end |
#last_http_call_time ⇒ Object
string - Time of Last HTTP Call
400 401 402 |
# File 'lib/files.com/models/siem_http_destination.rb', line 400 def last_http_call_time @attributes[:last_http_call_time] end |
#last_http_call_time=(value) ⇒ Object
404 405 406 |
# File 'lib/files.com/models/siem_http_destination.rb', line 404 def last_http_call_time=(value) @attributes[:last_http_call_time] = value end |
#most_recent_http_call_success_time ⇒ Object
string - Time of Most Recent Successful HTTP Call
418 419 420 |
# File 'lib/files.com/models/siem_http_destination.rb', line 418 def most_recent_http_call_success_time @attributes[:most_recent_http_call_success_time] end |
#most_recent_http_call_success_time=(value) ⇒ Object
422 423 424 |
# File 'lib/files.com/models/siem_http_destination.rb', line 422 def most_recent_http_call_success_time=(value) @attributes[:most_recent_http_call_success_time] = value end |
#name ⇒ Object
string - Name for this Destination
22 23 24 |
# File 'lib/files.com/models/siem_http_destination.rb', line 22 def name @attributes[:name] end |
#name=(value) ⇒ Object
26 27 28 |
# File 'lib/files.com/models/siem_http_destination.rb', line 26 def name=(value) @attributes[:name] = value end |
#new_relic_api_key ⇒ Object
string - Applicable only for destination type: new_relic. API key provided by New Relic.
472 473 474 |
# File 'lib/files.com/models/siem_http_destination.rb', line 472 def new_relic_api_key @attributes[:new_relic_api_key] end |
#new_relic_api_key=(value) ⇒ Object
476 477 478 |
# File 'lib/files.com/models/siem_http_destination.rb', line 476 def new_relic_api_key=(value) @attributes[:new_relic_api_key] = value end |
#new_relic_api_key_masked ⇒ Object
string - Applicable only for destination type: new_relic. API key provided by New Relic.
157 158 159 |
# File 'lib/files.com/models/siem_http_destination.rb', line 157 def new_relic_api_key_masked @attributes[:new_relic_api_key_masked] end |
#new_relic_api_key_masked=(value) ⇒ Object
161 162 163 |
# File 'lib/files.com/models/siem_http_destination.rb', line 161 def new_relic_api_key_masked=(value) @attributes[:new_relic_api_key_masked] = value end |
#outbound_connection_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
256 257 258 |
# File 'lib/files.com/models/siem_http_destination.rb', line 256 def outbound_connection_records_sent_entries_sent @attributes[:outbound_connection_records_sent_entries_sent] end |
#outbound_connection_records_sent_entries_sent=(value) ⇒ Object
260 261 262 |
# File 'lib/files.com/models/siem_http_destination.rb', line 260 def outbound_connection_records_sent_entries_sent=(value) @attributes[:outbound_connection_records_sent_entries_sent] = value end |
#outbound_connection_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for outbound_connection logs.
247 248 249 |
# File 'lib/files.com/models/siem_http_destination.rb', line 247 def outbound_connection_send_enabled @attributes[:outbound_connection_send_enabled] end |
#outbound_connection_send_enabled=(value) ⇒ Object
251 252 253 |
# File 'lib/files.com/models/siem_http_destination.rb', line 251 def outbound_connection_send_enabled=(value) @attributes[:outbound_connection_send_enabled] = value end |
#public_hosting_request_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
310 311 312 |
# File 'lib/files.com/models/siem_http_destination.rb', line 310 def public_hosting_request_records_sent_entries_sent @attributes[:public_hosting_request_records_sent_entries_sent] end |
#public_hosting_request_records_sent_entries_sent=(value) ⇒ Object
314 315 316 |
# File 'lib/files.com/models/siem_http_destination.rb', line 314 def public_hosting_request_records_sent_entries_sent=(value) @attributes[:public_hosting_request_records_sent_entries_sent] = value end |
#public_hosting_request_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for public_hosting_request logs.
301 302 303 |
# File 'lib/files.com/models/siem_http_destination.rb', line 301 def public_hosting_request_send_enabled @attributes[:public_hosting_request_send_enabled] end |
#public_hosting_request_send_enabled=(value) ⇒ Object
305 306 307 |
# File 'lib/files.com/models/siem_http_destination.rb', line 305 def public_hosting_request_send_enabled=(value) @attributes[:public_hosting_request_send_enabled] = value end |
#qradar_password ⇒ Object
string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
454 455 456 |
# File 'lib/files.com/models/siem_http_destination.rb', line 454 def qradar_password @attributes[:qradar_password] end |
#qradar_password=(value) ⇒ Object
458 459 460 |
# File 'lib/files.com/models/siem_http_destination.rb', line 458 def qradar_password=(value) @attributes[:qradar_password] = value end |
#qradar_password_masked ⇒ Object
string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
139 140 141 |
# File 'lib/files.com/models/siem_http_destination.rb', line 139 def qradar_password_masked @attributes[:qradar_password_masked] end |
#qradar_password_masked=(value) ⇒ Object
143 144 145 |
# File 'lib/files.com/models/siem_http_destination.rb', line 143 def qradar_password_masked=(value) @attributes[:qradar_password_masked] = value end |
#qradar_username ⇒ Object
string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
130 131 132 |
# File 'lib/files.com/models/siem_http_destination.rb', line 130 def qradar_username @attributes[:qradar_username] end |
#qradar_username=(value) ⇒ Object
134 135 136 |
# File 'lib/files.com/models/siem_http_destination.rb', line 134 def qradar_username=(value) @attributes[:qradar_username] = value end |
#save ⇒ Object
557 558 559 560 561 562 563 564 565 566 |
# File 'lib/files.com/models/siem_http_destination.rb', line 557 def save if @attributes[:id] new_obj = update(@attributes) else new_obj = SiemHttpDestination.create(@attributes, @options) end @attributes = new_obj.attributes true end |
#sending_active ⇒ Object
boolean - Whether this SIEM HTTP Destination is currently being sent to or not
58 59 60 |
# File 'lib/files.com/models/siem_http_destination.rb', line 58 def sending_active @attributes[:sending_active] end |
#sending_active=(value) ⇒ Object
62 63 64 |
# File 'lib/files.com/models/siem_http_destination.rb', line 62 def sending_active=(value) @attributes[:sending_active] = value end |
#sftp_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
184 185 186 |
# File 'lib/files.com/models/siem_http_destination.rb', line 184 def sftp_action_records_sent_entries_sent @attributes[:sftp_action_records_sent_entries_sent] end |
#sftp_action_records_sent_entries_sent=(value) ⇒ Object
188 189 190 |
# File 'lib/files.com/models/siem_http_destination.rb', line 188 def sftp_action_records_sent_entries_sent=(value) @attributes[:sftp_action_records_sent_entries_sent] = value end |
#sftp_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for sftp_action logs.
175 176 177 |
# File 'lib/files.com/models/siem_http_destination.rb', line 175 def sftp_action_send_enabled @attributes[:sftp_action_send_enabled] end |
#sftp_action_send_enabled=(value) ⇒ Object
179 180 181 |
# File 'lib/files.com/models/siem_http_destination.rb', line 179 def sftp_action_send_enabled=(value) @attributes[:sftp_action_send_enabled] = value end |
#solar_winds_token ⇒ Object
string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
463 464 465 |
# File 'lib/files.com/models/siem_http_destination.rb', line 463 def solar_winds_token @attributes[:solar_winds_token] end |
#solar_winds_token=(value) ⇒ Object
467 468 469 |
# File 'lib/files.com/models/siem_http_destination.rb', line 467 def solar_winds_token=(value) @attributes[:solar_winds_token] = value end |
#solar_winds_token_masked ⇒ Object
string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
148 149 150 |
# File 'lib/files.com/models/siem_http_destination.rb', line 148 def solar_winds_token_masked @attributes[:solar_winds_token_masked] end |
#solar_winds_token_masked=(value) ⇒ Object
152 153 154 |
# File 'lib/files.com/models/siem_http_destination.rb', line 152 def solar_winds_token_masked=(value) @attributes[:solar_winds_token_masked] = value end |
#splunk_token ⇒ Object
string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
436 437 438 |
# File 'lib/files.com/models/siem_http_destination.rb', line 436 def splunk_token @attributes[:splunk_token] end |
#splunk_token=(value) ⇒ Object
440 441 442 |
# File 'lib/files.com/models/siem_http_destination.rb', line 440 def splunk_token=(value) @attributes[:splunk_token] = value end |
#splunk_token_masked ⇒ Object
string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
76 77 78 |
# File 'lib/files.com/models/siem_http_destination.rb', line 76 def splunk_token_masked @attributes[:splunk_token_masked] end |
#splunk_token_masked=(value) ⇒ Object
80 81 82 |
# File 'lib/files.com/models/siem_http_destination.rb', line 80 def splunk_token_masked=(value) @attributes[:splunk_token_masked] = value end |
#sync_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
238 239 240 |
# File 'lib/files.com/models/siem_http_destination.rb', line 238 def sync_records_sent_entries_sent @attributes[:sync_records_sent_entries_sent] end |
#sync_records_sent_entries_sent=(value) ⇒ Object
242 243 244 |
# File 'lib/files.com/models/siem_http_destination.rb', line 242 def sync_records_sent_entries_sent=(value) @attributes[:sync_records_sent_entries_sent] = value end |
#sync_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for sync logs.
229 230 231 |
# File 'lib/files.com/models/siem_http_destination.rb', line 229 def sync_send_enabled @attributes[:sync_send_enabled] end |
#sync_send_enabled=(value) ⇒ Object
233 234 235 |
# File 'lib/files.com/models/siem_http_destination.rb', line 233 def sync_send_enabled=(value) @attributes[:sync_send_enabled] = value end |
#update(params = {}) ⇒ Object
Parameters:
name - string - Name for this Destination
additional_headers - object - Additional HTTP Headers included in calls to the destination URL
sending_active - boolean - Whether this SIEM HTTP Destination is currently being sent to or not
generic_payload_type - string - Applicable only for destination type: generic. Indicates the type of HTTP body. Can be json_newline or json_array. json_newline is multiple log entries as JSON separated by newlines. json_array is a single JSON array containing multiple log entries as JSON.
splunk_token - string - Applicable only for destination type: splunk. Authentication token provided by Splunk.
azure_dcr_immutable_id - string - Applicable only for destination type: azure. Immutable ID of the Data Collection Rule.
azure_stream_name - string - Applicable only for destination type: azure. Name of the stream in the DCR that represents the destination table.
azure_oauth_client_credentials_tenant_id - string - Applicable only for destination type: azure. Client Credentials OAuth Tenant ID.
azure_oauth_client_credentials_client_id - string - Applicable only for destination type: azure. Client Credentials OAuth Client ID.
azure_oauth_client_credentials_client_secret - string - Applicable only for destination type: azure. Client Credentials OAuth Client Secret.
qradar_username - string - Applicable only for destination type: qradar. Basic auth username provided by QRadar.
qradar_password - string - Applicable only for destination type: qradar. Basic auth password provided by QRadar.
solar_winds_token - string - Applicable only for destination type: solar_winds. Authentication token provided by Solar Winds.
new_relic_api_key - string - Applicable only for destination type: new_relic. API key provided by New Relic.
datadog_api_key - string - Applicable only for destination type: datadog. API key provided by Datadog.
sftp_action_send_enabled - boolean - Whether or not sending is enabled for sftp_action logs.
ftp_action_send_enabled - boolean - Whether or not sending is enabled for ftp_action logs.
web_dav_action_send_enabled - boolean - Whether or not sending is enabled for web_dav_action logs.
sync_send_enabled - boolean - Whether or not sending is enabled for sync logs.
outbound_connection_send_enabled - boolean - Whether or not sending is enabled for outbound_connection logs.
automation_send_enabled - boolean - Whether or not sending is enabled for automation logs.
api_request_send_enabled - boolean - Whether or not sending is enabled for api_request logs.
public_hosting_request_send_enabled - boolean - Whether or not sending is enabled for public_hosting_request logs.
email_send_enabled - boolean - Whether or not sending is enabled for email logs.
exavault_api_request_send_enabled - boolean - Whether or not sending is enabled for exavault_api_request logs.
destination_type - string - Destination Type
destination_url - string - Destination Url
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 |
# File 'lib/files.com/models/siem_http_destination.rb', line 517 def update(params = {}) params ||= {} params[:id] = @attributes[:id] raise MissingParameterError.new("Current object doesn't have a id") unless @attributes[:id] raise InvalidParameterError.new("Bad parameter: id must be an Integer") if params[:id] and !params[:id].is_a?(Integer) raise InvalidParameterError.new("Bad parameter: name must be an String") if params[:name] and !params[:name].is_a?(String) raise InvalidParameterError.new("Bad parameter: generic_payload_type must be an String") if params[:generic_payload_type] and !params[:generic_payload_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: splunk_token must be an String") if params[:splunk_token] and !params[:splunk_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_dcr_immutable_id must be an String") if params[:azure_dcr_immutable_id] and !params[:azure_dcr_immutable_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_stream_name must be an String") if params[:azure_stream_name] and !params[:azure_stream_name].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_tenant_id must be an String") if params[:azure_oauth_client_credentials_tenant_id] and !params[:azure_oauth_client_credentials_tenant_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_id must be an String") if params[:azure_oauth_client_credentials_client_id] and !params[:azure_oauth_client_credentials_client_id].is_a?(String) raise InvalidParameterError.new("Bad parameter: azure_oauth_client_credentials_client_secret must be an String") if params[:azure_oauth_client_credentials_client_secret] and !params[:azure_oauth_client_credentials_client_secret].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_username must be an String") if params[:qradar_username] and !params[:qradar_username].is_a?(String) raise InvalidParameterError.new("Bad parameter: qradar_password must be an String") if params[:qradar_password] and !params[:qradar_password].is_a?(String) raise InvalidParameterError.new("Bad parameter: solar_winds_token must be an String") if params[:solar_winds_token] and !params[:solar_winds_token].is_a?(String) raise InvalidParameterError.new("Bad parameter: new_relic_api_key must be an String") if params[:new_relic_api_key] and !params[:new_relic_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: datadog_api_key must be an String") if params[:datadog_api_key] and !params[:datadog_api_key].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_type must be an String") if params[:destination_type] and !params[:destination_type].is_a?(String) raise InvalidParameterError.new("Bad parameter: destination_url must be an String") if params[:destination_url] and !params[:destination_url].is_a?(String) raise MissingParameterError.new("Parameter missing: id") unless params[:id] Api.send_request("/siem_http_destinations/#{@attributes[:id]}", :patch, params, @options) end |
#web_dav_action_records_sent_entries_sent ⇒ Object
int64 - Number of log entries sent for the lifetime of this destination.
220 221 222 |
# File 'lib/files.com/models/siem_http_destination.rb', line 220 def web_dav_action_records_sent_entries_sent @attributes[:web_dav_action_records_sent_entries_sent] end |
#web_dav_action_records_sent_entries_sent=(value) ⇒ Object
224 225 226 |
# File 'lib/files.com/models/siem_http_destination.rb', line 224 def web_dav_action_records_sent_entries_sent=(value) @attributes[:web_dav_action_records_sent_entries_sent] = value end |
#web_dav_action_send_enabled ⇒ Object
boolean - Whether or not sending is enabled for web_dav_action logs.
211 212 213 |
# File 'lib/files.com/models/siem_http_destination.rb', line 211 def web_dav_action_send_enabled @attributes[:web_dav_action_send_enabled] end |
#web_dav_action_send_enabled=(value) ⇒ Object
215 216 217 |
# File 'lib/files.com/models/siem_http_destination.rb', line 215 def web_dav_action_send_enabled=(value) @attributes[:web_dav_action_send_enabled] = value end |