Sha256: 7fc344674770379bf020d975a2a13b54c031024a50e70760de2070913265cae2
Contents?: true
Size: 765 Bytes
Versions: 1
Compression:
Stored size: 765 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new security_filter_id = "security_filter_id_example" # String | The ID of the security filter. body = DatadogAPIClient::V2::SecurityFilterUpdateRequest.new({ data: DatadogAPIClient::V2::SecurityFilterUpdateData.new({ attributes: DatadogAPIClient::V2::SecurityFilterUpdateAttributes.new, type: DatadogAPIClient::V2::SecurityFilterType::SECURITY_FILTERS }) }) # SecurityFilterUpdateRequest | New definition of the security filter. begin # Update a security filter result = api_instance.update_security_filter(security_filter_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling SecurityMonitoringAPI->update_security_filter: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v2/security-monitoring/UpdateSecurityFilter.rb |