Skip to main content
PUT
/
cloud
/
v2
/
ports
/
{project_id}
/
{region_id}
/
{port_id}
/
allow_address_pairs
Assign allowed address pairs for instance port
curl --request PUT \
  --url https://api.gcore.com/cloud/v2/ports/{project_id}/{region_id}/{port_id}/allow_address_pairs \
  --header 'Authorization: <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

Authorization
string
header
required

Path Parameters

project_id
integer
required
region_id
integer
required
port_id
string
required

Body

application/json
allowed_address_pairs
AllowedAddressPairsSerializer · object[]
Maximum length: 10
Examples:

Response

tasks
string[]
required
Examples: