Twilio.Trunking.V1.Trunk.IpAccessControlListService (twilio_elixir v0.1.1)

Copy Markdown View Source

List of IP addresses for accessing a trunk

Operations: list, create, fetch, delete

Summary

Functions

Associate an IP Access Control List with a Trunk

Remove an associated IP Access Control List from a Trunk

Operation: FetchIpAccessControlList | Tags: TrunkingV1IpAccessControlList

List all IP Access Control Lists for a Trunk

Stream: List all IP Access Control Lists for a Trunk (lazy auto-pagination).

Functions

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

@spec create(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.Trunking.V1.Trunk.IpAccessControlList.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Associate an IP Access Control List with a Trunk

Operation: CreateIpAccessControlList | Tags: TrunkingV1IpAccessControlList

Required Parameters

ParameterTypeDescription

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

| IpAccessControlListSid | string | The SID of the IP Access Control List that you want to associate with the trunk. |

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

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

Remove an associated IP Access Control List from a Trunk

Operation: DeleteIpAccessControlList | Tags: TrunkingV1IpAccessControlList

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

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

Operation: FetchIpAccessControlList | Tags: TrunkingV1IpAccessControlList

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

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

List all IP Access Control Lists for a Trunk

Operation: ListIpAccessControlList | Tags: TrunkingV1IpAccessControlList

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

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

Stream: List all IP Access Control Lists for a Trunk (lazy auto-pagination).