Requests
Retrieve the properties of the specified request.
The unique ID of the request.
Controls whether the response is pretty-printed (with indentations and new lines).
true
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
0
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
GET /cloudapi/v6/requests/{requestId} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"id": "15f67991-0f51-4efc-a8ad-ef1fb31a480c",
"type": "request",
"href": "<RESOURCE-URI>",
"metadata": {
"createdDate": "2015-12-04T14:34:09.809Z",
"createdBy": "[email protected]",
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"requestStatus": {
"id": "15f67991-0f51-4efc-a8ad-ef1fb31a480c",
"type": "request-status",
"href": "<RESOURCE-URI>",
"metadata": {
"status": "QUEUED",
"message": "text",
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"targets": [
{
"target": {
"id": "text",
"type": "resource",
"href": "<RESOURCE-URI>"
},
"status": "QUEUED"
}
]
}
}
},
"properties": {
"method": "text",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"body": "text",
"url": "text"
}
}
List all API requests.
Controls whether the response is pretty-printed (with indentations and new lines).
true
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
0
Filter the list by request status [QUEUED, RUNNING, DONE, FAILED]. Filter is not affected by the depth query parameter.
Filter the list to only include the requests created after the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter.
Filter the list to only include the requests created before the date, specified in the yyyy-MM-dd HH:mm:ss format. Filter is not affected by the depth query parameter.
Filter the list to only include the requests that contain the createdDate, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the createdBy, specified in the yyyy-MM-dd HH:mm:ss format. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified etag. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified requestStatus. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified method. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified headers. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified body. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
Filter the list to only include the requests that contain the specified URL. The value is not case-sensitive, and the filter requires that the depth query parameter value is greater than zero.
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).
1000
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
GET /cloudapi/v6/requests HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"id": "requests",
"type": "collection",
"href": "<RESOURCE-URI>",
"items": [
{
"id": "15f67991-0f51-4efc-a8ad-ef1fb31a480c",
"type": "request",
"href": "<RESOURCE-URI>",
"metadata": {
"createdDate": "2015-12-04T14:34:09.809Z",
"createdBy": "[email protected]",
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"requestStatus": {
"id": "15f67991-0f51-4efc-a8ad-ef1fb31a480c",
"type": "request-status",
"href": "<RESOURCE-URI>",
"metadata": {
"status": "QUEUED",
"message": "text",
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"targets": [
{
"target": {
"id": "text",
"type": "resource",
"href": "<RESOURCE-URI>"
},
"status": "QUEUED"
}
]
}
}
},
"properties": {
"method": "text",
"headers": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"body": "text",
"url": "text"
}
}
],
"offset": 0,
"limit": 1000,
"_links": {
"prev": "<PREVIOUS-PAGE-URI>",
"self": "<THIS-PAGE-URI>",
"next": "<NEXT-PAGE-URI>"
}
}
Retrieve the status of the specified request.
The unique ID of the request.
Controls whether the response is pretty-printed (with indentations and new lines).
true
Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
0
Users with multiple contracts must provide the contract number, for which all API requests are to be executed.
GET /cloudapi/v6/requests/{requestId}/status HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"id": "15f67991-0f51-4efc-a8ad-ef1fb31a480c",
"type": "request-status",
"href": "<RESOURCE-URI>",
"metadata": {
"status": "QUEUED",
"message": "text",
"etag": "45480eb3fbfc31f1d916c1eaa4abdcc3",
"targets": [
{
"target": {
"id": "text",
"type": "resource",
"href": "<RESOURCE-URI>"
},
"status": "QUEUED"
}
]
}
}
Was this helpful?