Twilio.Voice.V1.SourceIpMappingService (twilio_elixir v0.1.1)

Copy Markdown View Source

credo:disable-for-next-line Credo.Check.Readability.MaxLineLength

With Source IP Mappings, Twilio can recognize your SIP requests based on where they are sent from. The Request-URI no longer has to have the FQDN (Fully Qualified Domain Name) of your SIP Domain.

Operations: list, create, fetch, update, delete

Summary

Functions

Operation: CreateSourceIpMapping | Tags: VoiceV1SourceIpMapping

Operation: DeleteSourceIpMapping | Tags: VoiceV1SourceIpMapping

Operation: FetchSourceIpMapping | Tags: VoiceV1SourceIpMapping

Operation: ListSourceIpMapping | Tags: VoiceV1SourceIpMapping

Stream: (lazy auto-pagination).

Operation: UpdateSourceIpMapping | Tags: VoiceV1SourceIpMapping

Functions

create(client, params \\ %{}, opts \\ [])

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Voice.V1.SourceIpMapping.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: CreateSourceIpMapping | Tags: VoiceV1SourceIpMapping

Required Parameters

ParameterTypeDescription
IpRecordSidstringThe Twilio-provided string that uniquely identifies the IP Record resource to map from.
SipDomainSidstringThe SID of the SIP Domain that the IP Record should be mapped to.

delete(client, sid, opts \\ [])

@spec delete(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, map()} | {:ok, map(), map()} | :ok | {:error, Twilio.Error.t()}

Operation: DeleteSourceIpMapping | Tags: VoiceV1SourceIpMapping

fetch(client, sid, opts \\ [])

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.Voice.V1.SourceIpMapping.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: FetchSourceIpMapping | Tags: VoiceV1SourceIpMapping

list(client, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: ListSourceIpMapping | Tags: VoiceV1SourceIpMapping

stream(client, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()

Stream: (lazy auto-pagination).

update(client, sid, params \\ %{}, opts \\ [])

@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Voice.V1.SourceIpMapping.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: UpdateSourceIpMapping | Tags: VoiceV1SourceIpMapping

Required Parameters

ParameterTypeDescription
SipDomainSidstringThe SID of the SIP Domain that the IP Record should be mapped to.