Skip to main content

Create a Network

POST 
/networking/networks

Create a new network.

Request

Body

required

    name stringrequired

    Name of the network

    resource_group_id stringrequired

    The id of the resource group the network is assigned to

    site_ids string[]

    The list of site ids that you want to add to the network.

Responses

200: Successful response

401: Authentication error

403: Authorization error

422: Invalid parameters supplied in request. See HTTP response body for details.

Request samples


curl -L 'https://api.telnyx.com/networking/networks' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"name": "string",
"resource_group_id": "string",
"site_ids": [
"string"
]
}'

Response samples


{
"data": {
"id": 0,
"site_ids": [
"string"
],
"ip_address_count": 0,
"name": "string",
"record_type": "string",
"resource_group_id": "string",
"site_count": 0,
"transit_count": 0,
"transport_count": 0,
"vxc_count": 0
}
}