REST ClientFabricSIP Gateways
list
List SIP gateway resources in the project.
Response
datalist of objectsRequired
An array of objects that contain a list of SIP Gateway data
linksobjectRequired
Pagination links for the response.
Response Example
Response
{"data": [{"id": "0823a606-0aff-4c90-9eba-f88ba118fe05","project_id": "bc949800-7b40-43cf-8438-a85facfcbdd1","display_name": "My SIP Gateway","type": "sip_gateway","created_at": "2024-05-06T12:20:00Z","updated_at": "2024-05-06T12:20:00Z","sip_gateway": {"id": "cce59cad-104d-4c28-ada4-98cfd102ae09","uri": "user3@domain.com","name": "My SIP Gateway","ciphers": ["AEAD_AES_256_GCM_8"],"codecs": ["OPUS"],"encryption": "required"}}],"links": {"self": "https://example.signalwire.com/api/fabric/resources/sip_gateways?page_number=0&page_size=50","first": "https://example.signalwire.com/api/fabric/resources/sip_gateways?page_number=0&page_size=50","next": "https://example.signalwire.com/api/fabric/resources/sip_gateways?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca","prev": "https://example.signalwire.com/api/fabric/resources/sip_gateways?page_number=0&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca"}}
Example
from signalwire.rest import RestClientclient = RestClient(project="your-project-id",token="your-api-token",host="your-space.signalwire.com",)response = client.fabric.sip_gateways.list()for gateway in response.get("data", []):print(f"{gateway['display_name']}: {gateway['id']}")