Skip to Content

Public M2M API — vpc

Review the operation, its input and access requirements. Parameter names and enum values are protocol identifiers and must retain the exact spelling shown. Optional/defaulted input is marked as such; required fields nested beneath an optional object apply when that object is supplied. Only statically recognized literal constraints are shown; additional validation, conditional requirements and provider rules may apply.

Authentication and permissions · Requests, results and recovery

/api/v1/vpc

Exported methods: GET, POST

GET

  • Resource scopes: networking:read
  • Query parameters: tokenId
  • Explicit response statuses: 422
  • Explicit error codes: networking_error
  • Response keys observed across outcomes: data, networks, total

POST

  • Resource scopes: networking:write
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request, networking_error
  • Response keys observed across outcomes: data, network

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
deleteProtectionbooleanYesNo—default(false)
ipRangestringYesNo—min(7), max(32), default("10.0.0.0/16")
labelsobjectYesNo——
namestringNoNo—min(1), max(64)
regionstringYesNo—min(1), max(32), default("eu-central")
subnetsarrayYesNo——
subnets[].ipRangestringNoNo—min(7), max(32)
subnets[].networkZonestringYesNo—min(1), max(32), default("eu-central")
subnets[].typeenumYesNocloud, server, vswitchdefault("cloud")
tokenIdstringYesNo—min(1)

/api/v1/vpc/{id}

Exported methods: GET, PATCH, DELETE

GET

  • Resource scopes: networking:read
  • Path parameters: id
  • Query parameters: tokenId
  • Explicit response statuses: 404, 422
  • Explicit error codes: networking_error, not_found
  • Response keys observed across outcomes: data, network

PATCH

  • Resource scopes: networking:write
  • Path parameters: id
  • Explicit response statuses: 404, 422
  • Explicit error codes: invalid_request, not_found
  • Response keys observed across outcomes: data, network

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
actionenumYesNoadd_route, delete_route, attach_server, detach_server—
deleteProtectionbooleanYesNo——
destinationstringYesNo——
gatewaystringYesNo——
labelsobjectYesNo——
namestringYesNo—min(1), max(64)
serverIdunionYesNo——
tokenIdstringYesNo—min(1)

DELETE

  • Resource scopes: networking:write
  • Path parameters: id
  • Query parameters: tokenId
  • Explicit response statuses: 404, 422
  • Explicit error codes: networking_error, not_found
  • Response keys observed across outcomes: deleted, id

Request input was not extracted for this operation; consult its specific contract before sending. Do not infer that no body is required.

/api/v1/vpc/{id}/subnets

Exported methods: GET, POST, PATCH, DELETE

GET

  • Resource scopes: networking:read
  • Path parameters: id
  • Query parameters: tokenId
  • Explicit response statuses: 404, 422
  • Explicit error codes: networking_error, not_found
  • Response keys observed across outcomes: data, ipRange, networkId, subnets

POST

  • Resource scopes: networking:write
  • Path parameters: id
  • Explicit response statuses: 201, 422
  • Explicit error codes: invalid_request, networking_error
  • Response keys observed across outcomes: data, subnet

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
cidrstringYesNo—min(7), max(32)
ipRangestringYesNo—min(7), max(32)
networkZonestringYesNo—min(1), max(32)
tokenIdstringYesNo—min(1)
typeenumYesNocloud, server, vswitchdefault("cloud")
zonestringYesNo—min(1), max(32)

PATCH

  • Resource scopes: networking:write
  • Path parameters: id
  • Explicit response statuses: 422
  • Explicit error codes: invalid_request
  • Response keys observed across outcomes: description, gateway, ipRange, networkId, ok

Validated request fields

FieldTypeOptional/defaultedNullableAllowed literal valuesObserved literal constraints
cidrstringYesNo—min(3), max(64)
descriptionstringYesNo—max(255)
gatewaystringYesNo——
ipRangestringYesNo—min(3), max(64)
subnetIdstringYesNo—min(1), max(64)

DELETE

  • Resource scopes: networking:write
  • Path parameters: id
  • Query parameters: cidr, ipRange, subnetId, tokenId
  • Explicit response statuses: 400, 422
  • Explicit error codes: invalid_request, networking_error
  • Response keys observed across outcomes: deleted, ipRange, networkId

Provide ipRange (aliases cidr or subnetId) in query or JSON and the network ID in the path. With tokenId, the provider delete is requested; without it the handler returns a deletion result without that provider call. Verify provider state.

JSON properties observed: cidr, ipRange, subnetId, tokenId.

These names are read by the handler; they are not a complete schema or a promise that every property applies to every branch. Check the validation messages and operation result.