Skip to main content
POST
/
cloud
/
v1
/
networks
/
{project_id}
/
{region_id}
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
task_id_list = client.cloud.networks.create(
    project_id=1,
    region_id=1,
    name="my network",
)
print(task_id_list.tasks)
{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
integer
required
Examples:
region_id
integer
required
Examples:

Body

application/json
name
string
required
Examples:
create_router
boolean
default:true
Examples:
tags
object
type
enum<string>
Available options:
vlan,
vxlan

Response

200 - application/json
tasks
string[]
required
Examples: