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

Instance Method Details

#endpoint_group_endpoints(group_id) ⇒ Array<Hash>

Fetch endpoints belonging to a specific endpoint group.

Parameters:

  • group_id (String) —

    The ID of the endpoint group.

Returns:

  • (Array<Hash>) —

    Paginated response with endpoint details.



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.

Parameters:

  • endpoint_id (String) —

    The ID of the endpoint.

Returns:

  • (Hash) —

    Response with the isolation status of the endpoint.

See Also:



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.

Parameters:

  • endpoint_id (String) —

    The ID of the endpoint.

Returns:

  • (Hash) —

    Response containing tamper protection details.

See Also:



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.

Parameters:

  • migration_id (String) —

    The ID of the migration.

Returns:

  • (Array<Hash>) —

    Paginated response with endpoints involved in the 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