Class: MetronomeSDK::Resources::V1::Services
- Inherits:
-
Object
- Object
- MetronomeSDK::Resources::V1::Services
- Defined in:
- lib/metronome_sdk/resources/v1/services.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Services
constructor
private
A new instance of Services.
-
#list(request_options: {}) ⇒ MetronomeSDK::Models::V1::ServiceListResponse
Gets Metronome’s service registry with associated IP addresses for security allowlisting and firewall configuration.
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.
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.
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 |