Contract
Retrieve a paginated list of contracts, provisioned under the Master Reseller contract. Default limit is the first 50 items; use pagination query parameters for listing more items.
The first element (from the complete list of the elements) to include in the response (used together with limit for pagination).
0
The maximum number of elements to return (use together with offset for pagination).
50
Filter the list by contract status [BILLABLE, CEASED, REJECTED].
GET /reseller/v2/contracts HTTP/1.1
Host:
Authorization: Basic username:password
Accept: */*
{
"items": [
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
],
"offset": 0,
"limit": 1000,
"_links": {
"prev": "<PREVIOUS-PAGE-URI>",
"self": "<THIS-PAGE-URI>",
"next": "<NEXT-PAGE-URI>"
}
}
name of the contract
reseller reference of the contract
POST /reseller/v2/contracts HTTP/1.1
Host:
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"name": "text",
"resellerReference": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
PUT /reseller/v2/contracts/{contractNumber}/name HTTP/1.1
Host:
Authorization: Basic username:password
Content-Type: text/plain
Accept: */*
Content-Length: 6
"text"
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
maximum ram per virtual machine
maximum number of cpu per virtual machine
maximum hdd volume size
maximum ssd volume size
maximum ram per contract
maximum cpu per contract
maximum hhd volume per contract
maximum ssd volume per contract
maximum ips per contract
PUT /reseller/v2/contracts/{contractNumber}/resourcelimits HTTP/1.1
Host:
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 181
{
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
GET /reseller/v2/contracts/{contractNumber} HTTP/1.1
Host:
Authorization: Basic username:password
Accept: */*
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
name of the contract
reseller reference of the contract
PUT /reseller/v2/contracts/{contractNumber} HTTP/1.1
Host:
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 241
{
"name": "text",
"resellerReference": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
{
"id": "15514",
"href": "https://api.ionos.com/reseller/v2/contract/15514",
"name": "text",
"resellerReference": "text",
"status": "text",
"resourceLimits": {
"ramServerMax": 1,
"cpuServerMax": 1,
"hddVolumeMaxSize": 1,
"ssdVolumeMaxSize": 1,
"ramContractMax": 1,
"cpuContractMax": 1,
"hddVolumeContractMaxSize": 1,
"ssdVolumeContractMaxSize": 1,
"ips": 1
}
}
Was this helpful?