All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
abort_delete_old_mam_messages | POST /api/abort_delete_old_mam_messages | Abort currently running delete old MAM messages operation. |
abort_delete_old_messages | POST /api/abort_delete_old_messages | Abort currently running delete old offline messages operation. |
delete_expired_messages | POST /api/delete_expired_messages | Delete expired offline messages from database. |
delete_expired_pubsub_items | POST /api/delete_expired_pubsub_items | Delete expired PubSub items. |
delete_old_mam_messages | POST /api/delete_old_mam_messages | Delete MAM messages older than DAYS. |
delete_old_mam_messages_batch | POST /api/delete_old_mam_messages_batch | Delete MAM messages older than DAYS in batches. |
delete_old_mam_messages_status | POST /api/delete_old_mam_messages_status | Status of delete old MAM messages operation. |
delete_old_messages | POST /api/delete_old_messages | Delete offline messages older than DAYS. |
delete_old_messages_batch | POST /api/delete_old_messages_batch | Delete offline messages older than DAYS. |
delete_old_messages_status | POST /api/delete_old_messages_status | Status of delete old offline messages operation. |
delete_old_pubsub_items | POST /api/delete_old_pubsub_items | Keep only NUMBER of PubSub items per node. |
delete_old_push_sessions | POST /api/delete_old_push_sessions | Remove push sessions older than DAYS. |
delete_old_users | POST /api/delete_old_users | Delete users that didn't log in last days, or that never logged. |
abort_delete_old_mam_messages(abort_delete_old_mam_messages_request)
Abort currently running delete old MAM messages operation.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
abort_delete_old_mam_messages_request = EjabberdHttpClient::AbortDeleteOldMamMessagesRequest.new # AbortDeleteOldMamMessagesRequest |
begin
# Abort currently running delete old MAM messages operation.
result = api_instance.abort_delete_old_mam_messages(abort_delete_old_mam_messages_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->abort_delete_old_mam_messages: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> abort_delete_old_mam_messages_with_http_info(abort_delete_old_mam_messages_request)
begin
# Abort currently running delete old MAM messages operation.
data, status_code, headers = api_instance.abort_delete_old_mam_messages_with_http_info(abort_delete_old_mam_messages_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AbortDeleteOldMamMessages200Response>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->abort_delete_old_mam_messages_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
abort_delete_old_mam_messages_request | AbortDeleteOldMamMessagesRequest |
AbortDeleteOldMamMessages200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
abort_delete_old_messages(abort_delete_old_mam_messages_request)
Abort currently running delete old offline messages operation.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
abort_delete_old_mam_messages_request = EjabberdHttpClient::AbortDeleteOldMamMessagesRequest.new # AbortDeleteOldMamMessagesRequest |
begin
# Abort currently running delete old offline messages operation.
result = api_instance.abort_delete_old_messages(abort_delete_old_mam_messages_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->abort_delete_old_messages: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> abort_delete_old_messages_with_http_info(abort_delete_old_mam_messages_request)
begin
# Abort currently running delete old offline messages operation.
data, status_code, headers = api_instance.abort_delete_old_messages_with_http_info(abort_delete_old_mam_messages_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AbortDeleteOldMamMessages200Response>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->abort_delete_old_messages_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
abort_delete_old_mam_messages_request | AbortDeleteOldMamMessagesRequest |
AbortDeleteOldMamMessages200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
delete_expired_messages
Delete expired offline messages from database.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
begin
# Delete expired offline messages from database.
api_instance.delete_expired_messages
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_expired_messages: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_expired_messages_with_http_info
begin
# Delete expired offline messages from database.
data, status_code, headers = api_instance.delete_expired_messages_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_expired_messages_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
delete_expired_pubsub_items
Delete expired PubSub items.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
begin
# Delete expired PubSub items.
api_instance.delete_expired_pubsub_items
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_expired_pubsub_items: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_expired_pubsub_items_with_http_info
begin
# Delete expired PubSub items.
data, status_code, headers = api_instance.delete_expired_pubsub_items_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_expired_pubsub_items_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
delete_old_mam_messages(delete_old_mam_messages_request)
Delete MAM messages older than DAYS.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_mam_messages_request = EjabberdHttpClient::DeleteOldMAMMessagesRequest.new # DeleteOldMAMMessagesRequest |
begin
# Delete MAM messages older than DAYS.
api_instance.delete_old_mam_messages(delete_old_mam_messages_request)
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_old_mam_messages_with_http_info(delete_old_mam_messages_request)
begin
# Delete MAM messages older than DAYS.
data, status_code, headers = api_instance.delete_old_mam_messages_with_http_info(delete_old_mam_messages_request)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_mam_messages_request | DeleteOldMAMMessagesRequest |
nil (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
delete_old_mam_messages_batch(delete_old_mam_messages_batch_request)
Delete MAM messages older than DAYS in batches.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_mam_messages_batch_request = EjabberdHttpClient::DeleteOldMAMMessagesBatchRequest.new # DeleteOldMAMMessagesBatchRequest |
begin
# Delete MAM messages older than DAYS in batches.
api_instance.delete_old_mam_messages_batch(delete_old_mam_messages_batch_request)
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages_batch: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_old_mam_messages_batch_with_http_info(delete_old_mam_messages_batch_request)
begin
# Delete MAM messages older than DAYS in batches.
data, status_code, headers = api_instance.delete_old_mam_messages_batch_with_http_info(delete_old_mam_messages_batch_request)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages_batch_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_mam_messages_batch_request | DeleteOldMAMMessagesBatchRequest |
nil (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
delete_old_mam_messages_status(delete_old_mam_messages_status_request)
Status of delete old MAM messages operation.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_mam_messages_status_request = EjabberdHttpClient::DeleteOldMAMMessagesStatusRequest.new # DeleteOldMAMMessagesStatusRequest |
begin
# Status of delete old MAM messages operation.
result = api_instance.delete_old_mam_messages_status(delete_old_mam_messages_status_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages_status: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_old_mam_messages_status_with_http_info(delete_old_mam_messages_status_request)
begin
# Status of delete old MAM messages operation.
data, status_code, headers = api_instance.delete_old_mam_messages_status_with_http_info(delete_old_mam_messages_status_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AbortDeleteOldMamMessages200Response>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_mam_messages_status_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_mam_messages_status_request | DeleteOldMAMMessagesStatusRequest |
AbortDeleteOldMamMessages200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
delete_old_messages(delete_old_messages_request)
Delete offline messages older than DAYS.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_messages_request = EjabberdHttpClient::DeleteOldMessagesRequest.new # DeleteOldMessagesRequest |
begin
# Delete offline messages older than DAYS.
api_instance.delete_old_messages(delete_old_messages_request)
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> delete_old_messages_with_http_info(delete_old_messages_request)
begin
# Delete offline messages older than DAYS.
data, status_code, headers = api_instance.delete_old_messages_with_http_info(delete_old_messages_request)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_messages_request | DeleteOldMessagesRequest |
nil (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
String delete_old_messages_batch(delete_old_messages_batch_request)
Delete offline messages older than DAYS.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_messages_batch_request = EjabberdHttpClient::DeleteOldMessagesBatchRequest.new # DeleteOldMessagesBatchRequest |
begin
# Delete offline messages older than DAYS.
result = api_instance.delete_old_messages_batch(delete_old_messages_batch_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages_batch: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(String, Integer, Hash)> delete_old_messages_batch_with_http_info(delete_old_messages_batch_request)
begin
# Delete offline messages older than DAYS.
data, status_code, headers = api_instance.delete_old_messages_batch_with_http_info(delete_old_messages_batch_request)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages_batch_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_messages_batch_request | DeleteOldMessagesBatchRequest |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
delete_old_messages_status(delete_old_mam_messages_status_request)
Status of delete old offline messages operation.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_mam_messages_status_request = EjabberdHttpClient::DeleteOldMAMMessagesStatusRequest.new # DeleteOldMAMMessagesStatusRequest |
begin
# Status of delete old offline messages operation.
result = api_instance.delete_old_messages_status(delete_old_mam_messages_status_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages_status: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> delete_old_messages_status_with_http_info(delete_old_mam_messages_status_request)
begin
# Status of delete old offline messages operation.
data, status_code, headers = api_instance.delete_old_messages_status_with_http_info(delete_old_mam_messages_status_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <AbortDeleteOldMamMessages200Response>
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_messages_status_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_mam_messages_status_request | DeleteOldMAMMessagesStatusRequest |
AbortDeleteOldMamMessages200Response
No authorization required
- Content-Type: application/json
- Accept: application/json
Integer delete_old_pubsub_items(delete_old_pubsub_items_request)
Keep only NUMBER of PubSub items per node.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_pubsub_items_request = EjabberdHttpClient::DeleteOldPubsubItemsRequest.new # DeleteOldPubsubItemsRequest |
begin
# Keep only NUMBER of PubSub items per node.
result = api_instance.delete_old_pubsub_items(delete_old_pubsub_items_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_pubsub_items: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> delete_old_pubsub_items_with_http_info(delete_old_pubsub_items_request)
begin
# Keep only NUMBER of PubSub items per node.
data, status_code, headers = api_instance.delete_old_pubsub_items_with_http_info(delete_old_pubsub_items_request)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_pubsub_items_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_pubsub_items_request | DeleteOldPubsubItemsRequest |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json
Integer delete_old_push_sessions(delete_old_messages_request)
Remove push sessions older than DAYS.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_messages_request = EjabberdHttpClient::DeleteOldMessagesRequest.new # DeleteOldMessagesRequest |
begin
# Remove push sessions older than DAYS.
result = api_instance.delete_old_push_sessions(delete_old_messages_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_push_sessions: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Integer, Integer, Hash)> delete_old_push_sessions_with_http_info(delete_old_messages_request)
begin
# Remove push sessions older than DAYS.
data, status_code, headers = api_instance.delete_old_push_sessions_with_http_info(delete_old_messages_request)
p status_code # => 2xx
p headers # => { ... }
p data # => Integer
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_push_sessions_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_messages_request | DeleteOldMessagesRequest |
Integer
No authorization required
- Content-Type: application/json
- Accept: application/json
String delete_old_users(delete_old_users_request)
Delete users that didn't log in last days, or that never logged.
require 'time'
require 'ejabberd_http_client'
api_instance = EjabberdHttpClient::PurgeApi.new
delete_old_users_request = EjabberdHttpClient::DeleteOldUsersRequest.new # DeleteOldUsersRequest |
begin
# Delete users that didn't log in last days, or that never logged.
result = api_instance.delete_old_users(delete_old_users_request)
p result
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_users: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(String, Integer, Hash)> delete_old_users_with_http_info(delete_old_users_request)
begin
# Delete users that didn't log in last days, or that never logged.
data, status_code, headers = api_instance.delete_old_users_with_http_info(delete_old_users_request)
p status_code # => 2xx
p headers # => { ... }
p data # => String
rescue EjabberdHttpClient::ApiError => e
puts "Error when calling PurgeApi->delete_old_users_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
delete_old_users_request | DeleteOldUsersRequest |
String
No authorization required
- Content-Type: application/json
- Accept: application/json