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"
]
}
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"
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
Region ID
Port ID
List of created tasks
The response is of type object
.
Was this page helpful?