Contracts
This operation is retrieving a list of contracts that your account credentials are authorized to access. This operation is primarily useful to IONOS' Resellers, as a non-reseller user account will only have access to a single contract.
GET /activitylog/v1/contracts HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
[
{
"id": 12345678,
"type": "contracts",
"href": "https://api.ionos.com/activitylog/v1/contracts/12345678"
},
{
"id": 98765432,
"type": "contracts",
"href": "https://api.ionos.com/activitylog/v1/contracts/98765432"
}
]
This operation returns the actual activity log data related to the specific contractId supplied in the request. The amount of data returned can be limited by providing one or both of the optional startDate and endDate parameters.
If valid values for both dateStart and dateEnd are supplied, then the activity log information for the date range specified will be returned. Omitting either dateStart or dateEnd will return all entries available after dateStart or before dateEnd.
For pagination use the page and size parameters.
Contract number thats activity log entires should be downloaded.
Start date for the Activity Log entries (inclusive) (e.g. '2021-09-23T11:43:51Z' or '2016-07-01')
End date for the Activity Log entries (exclusive) (e.g. '2021-09-27T10:31:15Z' or '2016-07-30')
Page index ( the number of hits to skip )
0
Page size ( the maximum number of hits to return )
20
GET /activitylog/v1/contracts/{contractNumber} HTTP/1.1
Host: api.ionos.com
Authorization: Basic username:password
Accept: */*
{
"hits": {
"total": 1,
"hits": [
{
"_source": {
"@uuid": "c1b9b1b0-7b1b-11e6-9a41-000d3a002f99",
"meta": {
"auditVersion": "0.1",
"time": "2016-09-23T12:02:52.394Z"
},
"principal": {
"sourceIP": "203.0.113.42",
"identity": {
"contractNumber": "31721060",
"username": "[email protected]"
},
"sourceService": "ExampleService"
},
"event": {
"param": {},
"resources": [
{
"action": [
"sec.user.create"
],
"id": "1466",
"type": "user"
}
],
"type": "RequestAccepted"
}
}
}
]
}
}
Was this helpful?