Module: Sophos::Client::Endpoint
- Included in:
- TenantClient
- Defined in:
- lib/sophos/client/endpoint.rb
Overview
Module to interact with Sophos Endpoint API
Instance Method Summary collapse
-
#endpoint_group_endpoints(group_id) ⇒ Array<Hash>
Fetch endpoints belonging to a specific endpoint group.
-
#endpoint_isolation(endpoint_id) ⇒ Hash
Fetch the isolation status for a specific endpoint.
-
#endpoint_tamper_protection(endpoint_id) ⇒ Hash
Fetch tamper protection settings for a specific endpoint.
-
#migration_endpoints(migration_id) ⇒ Array<Hash>
Fetch endpoints involved in a specific migration.
Instance Method Details
#endpoint_group_endpoints(group_id) ⇒ Array<Hash>
Fetch endpoints belonging to a specific endpoint group.
24 25 26 |
# File 'lib/sophos/client/endpoint.rb', line 24 def endpoint_group_endpoints(group_id) get_paged Helper::endpoint_url("endpoint-groups/#{group_id}/endpoints") end |
#endpoint_isolation(endpoint_id) ⇒ Hash
Fetch the isolation status for a specific endpoint.
52 53 54 |
# File 'lib/sophos/client/endpoint.rb', line 52 def endpoint_isolation(endpoint_id) get Helper::endpoint_url("endpoints/#{endpoint_id}/isolation") end |
#endpoint_tamper_protection(endpoint_id) ⇒ Hash
Fetch tamper protection settings for a specific endpoint.
60 61 62 |
# File 'lib/sophos/client/endpoint.rb', line 60 def endpoint_tamper_protection(endpoint_id) get Helper::endpoint_url("endpoints/#{endpoint_id}/tamper-protection") end |
#migration_endpoints(migration_id) ⇒ Array<Hash>
Fetch endpoints involved in a specific migration.
35 36 37 |
# File 'lib/sophos/client/endpoint.rb', line 35 def migration_endpoints(migration_id) get_paged Helper::endpoint_url("migrations/#{migration_id}/endpoints") end |