Apilog API
SaaSus ApiLog API スキーマ (1.0.0)
SaaSus ApiLog API Schema
全API実行ログ取得
全API実行のログ登録を取得します。
Authorizations:
Bearer
query Parameters
created_date | string <date> ログを取得する日付 (YYYY-MM-DD 形式) |
created_at | string <date-time> ログを取得する日時 (ISO 8601 形式の日時) |
limit | integer <int64> >= 1 取得するログの最大数 |
cursor | string カーソルページネーション用のカーソル |
Responses
Response samples
- 200
- 500
Content type
application/json
{- "api_logs": [
- {
- "trace_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "api_log_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1670997124,
- "created_date": "2022-12-14",
- "ttl": 1670997124,
- "request_method": "GET",
- "saas_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "api_key": "icFS9Hit7jZjeSKMbNZP2cmfqBseyxnJZ",
- "response_status": 200,
- "request_uri": "/v1/auth/tenants",
- "remote_address": "192.168.0.20",
- "referer": "/v1/auth/user_info",
- "request_body": "{\"name\":\"1207 Tenant\",\"back_office_staff_email\":\"example.com\"}",
- "response_body": "{\"id\": \"98684c58-ca59-4046-9c2a-861ef6f12dd4\", \"name\":\"1207 Tenant\"}"
}
], - "cursor": "string"
}
API実行ログ取得
指定したIDのAPI実行のログ登録を取得します。
Authorizations:
Bearer
path Parameters
api_log_id required | string (Uuid) Example: 69e732d6-8ecc-45c4-c2eb-8438f7ffe775 APIログID |
Responses
Response samples
- 200
- 500
Content type
application/json
{- "trace_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "api_log_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "created_at": 1670997124,
- "created_date": "2022-12-14",
- "ttl": 1670997124,
- "request_method": "GET",
- "saas_id": "69e732d6-8ecc-45c4-c2eb-8438f7ffe775",
- "api_key": "icFS9Hit7jZjeSKMbNZP2cmfqBseyxnJZ",
- "response_status": 200,
- "request_uri": "/v1/auth/tenants",
- "remote_address": "192.168.0.20",
- "referer": "/v1/auth/user_info",
- "request_body": "{\"name\":\"1207 Tenant\",\"back_office_staff_email\":\"example.com\"}",
- "response_body": "{\"id\": \"98684c58-ca59-4046-9c2a-861ef6f12dd4\", \"name\":\"1207 Tenant\"}"
}