PUT
/
cloud
/
v2
/
ports
/
{project_id}
/
{region_id}
/
{port_id}
/
allow_address_pairs
curl --request PUT \
  --url https://api.gcore.com/cloud/v2/ports/{project_id}/{region_id}/{port_id}/allow_address_pairs \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "allowed_address_pairs": [
    {
      "ip_address": "192.168.123.20",
      "mac_address": "00:16:3e:f2:87:16"
    },
    {
      "ip_address": "192.168.0.0/17",
      "mac_address": "00:16:3e:f2:87:89"
    }
  ]
}'
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

port_id
string
required

Port ID

Body

application/json

Response

200
application/json

List of created tasks

The response is of type object.