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": []
}
'
{
  "tasks": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

project_id
integer
required

Project ID

region_id
integer
required

Region ID

port_id
string
required

Port ID

Body

application/json
allowed_address_pairs
AllowedAddressPairsSerializer · object[]

A set of zero or more allowed port address pair and/or subnet masks

Maximum array length: 10

Response

List of created tasks

tasks
string[]
required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.