Console API
  1. subnets
Console API
  • User
    • User Info
      GET
  • Tenant / Regions
    • Get Regions & Tenant info
      GET
    • Get Tenant Info
      GET
  • VPC
    • Get VPC List
      GET
    • Rename VPC
      PUT
    • Create VPC
      POST
  • Images
    • Get images
      GET
  • Flavors
    • Get flavors
      GET
  • Storage Policy
    • List
      GET
  • Instances
    • List
      GET
    • Detail
      GET
    • Security Group
      GET
    • Create instance
      POST
    • Power off
      POST
    • Reboot
      POST
    • Power on
      POST
    • Terminate
      POST
    • Resize
      POST
    • Lock Termination
      POST
    • Rename
      POST
    • Manage tag
      POST
  • Subnet
    • List
    • Create
    • Rename
    • Delete
    • Manage tags
  • Security group
    • Security Group List
    • Security Group Detail
    • Rule Types
    • Create Security Group
    • Create Rule
    • Apply to private ip
    • Delete Rule
    • Delete security group
    • Manage tag
  • Floating IP
    • List
    • Allocate
    • Connect to instance
    • Disconnect
    • Release
    • Manage tag
  • Activity Logs
    • List
  • Tags
    • Lists
  • Iam
    • Add user to user group
    • Get all user groups
    • Create user group
    • Update user group
    • Get roles
    • Get user vpcs
  • Billing
    • Bill
      • Get bills by date
      • Get Bills by paging
      • Bill Info
      • Bill service types
  • Project
    • Get projects
  • S3
    • Get bucket policy
    • List buckets
    • Get s3 service enabled
  • IP Access
    • API Portal Access Log
  • Baremetal
    • server
      • Create a baremetal server
      • Get list server
      • Get server detail
      • get server console url
      • Rename a specific server (Rename on portal only)
      • Power on a specific server
      • Power off a specific server
      • Delete specific server id
    • subnets
      • List subnets
        GET
      • Create a subnet
        POST
      • Get available subnets
        GET
      • Delete a subnet
        DELETE
      • Update a subnet
        PUT
    • images
      • List images
      • List custom images
      • Register a new image
      • Get presigned upload URLs
      • Complete image upload
      • Delete an image
      • Sync an image
    • server_package
      • Get list server types. This part will be represent all server type that user can deploy We using server type name as the rule of selecting server on maas System ex. In maas we have serveral server names (H100.1, H100.2, H100.3, H100.4, H100.5, H100.6, H10
    • api-internal
      • Associate a new floating IP to HPC server
    • Network ACLs
      • Retrieve the list of Network ACLs for a VPC
      • Get details of a specific Network ACL
      • Update a Network ACL
      • Update firewall rules for a firewall policy
      • List all firewall policies of a Network ACL
  1. subnets

Create a subnet

POST
/api/v2/vmware/vpc/{vpc_id}/hpc/subnets

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "name": "string",
    "cidr": "string",
    "gateway": "string",
    "description": "string",
    "id": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v2/vmware/vpc//hpc/subnets' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "cidr": "string",
    "gateway": "string",
    "description": "string",
    "id": "string"
}'

Responses

🟢201Created
application/json
Subnet created successfully.
Body

Example
{
    "message": "string",
    "data": {}
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🔴500Server Error
Modified at 2025-08-19 04:33:30
Previous
List subnets
Next
Get available subnets
Built with