Purchase a port

Purchase a new port in CloudLX.

Request

Endpoint: /api/ports/purchase
Method: POST
Headers: Accept: application/vnd.cloudlx.v1+json
Authorization: Bearer <access_token>

Example Request:

                                
    {
        "ports": [
            {
                "port_id": 1066,
                "name": "My first port"
            },
            ...
        ]
    }
                                
                            

Request Values - Required

ports Description The list of ports
Type Array[Objects]
Example See example above
port_id Description The ID of the port
Type Integer
Example 1066
name Description The name of the port
Type String
Example My first port

Response

Example:

                                
    {
        "success": true,
        "message": "2 ports ordered successfully"
    }
                                
                            

Back to top