api_logs_services
Creates, updates, deletes, gets or lists an api_logs_services resource.
Overview​
| Name | api_logs_services |
| Type | Resource |
| Id | ovh.me.api_logs_services |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
log_id | integer | (wire: logId) |
account | string | Account which did the Request |
date | string (date-time) | Date of the request |
ip | string (ipv4) | Source IP of the request (example: 192.0.2.0) |
method | string | HTTP Method of the request (DELETE, GET, POST, PUT) |
path | string | HTTP URI of the request |
route | string | API Route called |
API Log
| Name | Datatype | Description |
|---|---|---|
log_id | integer | (wire: logId) |
account | string | Account which did the Request |
date | string (date-time) | Date of the request |
ip | string (ipv4) | Source IP of the request (example: 192.0.2.0) |
method | string | HTTP Method of the request (DELETE, GET, POST, PUT) |
path | string | HTTP URI of the request |
route | string | API Route called |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | log_id | Get this object properties | |
list | select | x_pagination_mode | List of Api calls done on services you have access to |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
log_id | integer | (wire: logId) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get this object properties
SELECT
log_id,
account,
date,
ip,
method,
path,
route
FROM ovh.me.api_logs_services
WHERE log_id = '{{ log_id }}' -- required
;
List of Api calls done on services you have access to
SELECT
log_id,
account,
date,
ip,
method,
path,
route
FROM ovh.me.api_logs_services
WHERE x_pagination_mode = '{{ x_pagination_mode }}'
;