Order

Order a product

POST https://api.netcon.dk/projects/:projectId/products

Path Parameters

NameTypeDescription

projectId*

String

Project id

Headers

NameTypeDescription

authorization*

String

Api key

Request Body

NameTypeDescription

type*

String

vps

name*

String

My VPS

os*

String

ubuntu

version*

String

20.04

package*

String

AR-1

password*

String

VPS password

billing_type*

String

subscription

{
    "_id": String,
    "project": String,
    "type": String,
    "openId": String,
    "name": String,
    "status": String,
    "online": Boolean,
    "created": Number, //Unix (ms)
    "network": {
        "macaddress": String,
        "ipv4": {
            "ip": String,
            "gateway": String,
            "subnet": String,
            "type": String
        },
        "ipv6": {
            "ip": String
        },
        "floating": []
    },
    "package": {
        "series": String,
        "name": String,
        "cores": Number,
        "memory": Number,
        "storage": Number, //Storage in mb
        "internet": Number, //Speed in Mbit
        "price": Number //Price * 100
    },
    "datacenter": String,
    "node": String,
    "renew": Number, //Unix (ms)
    "image": {
        "long": String,
        "short": String,
        "flavor": String,
        "version": String,
        "icon": String //MDI Icon
    },
    "usage": {
        "cpu": Number,
        "ram": Number
    },
    "password": String,
    "subscription": String
}

Last updated