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

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

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:



33
34
35
# File 'lib/metronome_sdk/resources/v1/services.rb', line 33

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:



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

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