Class: MetronomeSDK::Resources::V1::Services

Inherits:
Object
  • Object
show all
Defined in:
lib/metronome_sdk/resources/v1/services.rb

Overview

[Security](docs.metronome.com/developer-resources/security/) endpoints allow you to retrieve security-related data.

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Services

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Services.

Parameters:



35
36
37
# File 'lib/metronome_sdk/resources/v1/services.rb', line 35

def initialize(client:)
  @client = client
end

Instance Method Details

#list(request_options: {}) ⇒ MetronomeSDK::Models::V1::ServiceListResponse

Gets Metronome’s service registry with associated IP addresses for security allowlisting and firewall configuration. Use this endpoint to maintain an up-to-date list of IPs that your systems should trust for Metronome communications. Returns service names and their current IP ranges, with new IPs typically appearing 30+ days before first use to ensure smooth allowlist updates.

Parameters:

Returns:

See Also:



23
24
25
26
27
28
29
30
# File 'lib/metronome_sdk/resources/v1/services.rb', line 23

def list(params = {})
  @client.request(
    method: :get,
    path: "v1/services",
    model: MetronomeSDK::Models::V1::ServiceListResponse,
    options: params[:request_options]
  )
end