Skip to main content
POST
/
v1
/
regions
/
{region}
/
compute
/
peering
Create peering connection
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({name: '<string>', sourceNetworkId: '<string>', targetNetworkId: '<string>'})
};

fetch('https://api.example.com/v1/regions/{region}/compute/peering', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "data": {
    "id": "<string>",
    "name": "<string>",
    "sourceNetworkId": "<string>",
    "targetNetworkId": "<string>",
    "status": "active",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

region
string
required

Region identifier

Body

application/json
name
string
required
sourceNetworkId
string
required
targetNetworkId
string
required

Response

201 - application/json

Peering connection created

success
enum<boolean>
Available options:
true
data
object

Within-region network peering