list_managed_api_events
¶
list_managed_api_events(
managed_api_id: ManagedApiId,
*,
config_overrides: Optional[APIPortalClientConfig] = None,
started_after: Optional[datetime] = None,
started_before: Optional[datetime] = None,
max_results: Optional[ManagedApiEventMaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListManagedApiEventsResponse
Lists API-security events for a single managed API, most recent first. Returns up to 20 of the most recent events (not paginated).
Parameters:
-
managed_api_id(ManagedApiId) –The identifier of the Managed API.
-
started_after(Optional[datetime], default:None) –Inclusive lower bound on each event's start time; only events that started at or after this time are returned. Optional; defaults to 30 days before the current time.
-
started_before(Optional[datetime], default:None) –Exclusive upper bound on each event's start time; only events that started before this time are returned. Optional; defaults to the current time.
-
max_results(Optional[ManagedApiEventMaxResults], default:None) –The maximum number of results to return in one page, from 1 to 20.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous call. Omit it to get the first page.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
BadRequestException–The request is not valid. The message identifies the field or value that failed validation.
-
InternalServerException–The service encountered an internal error. Try the request again.
-
LimitExceededException–The request rate or a service quota was exceeded. Reduce the request rate or the number of resources and try again.
-
ResourceNotFoundException–The requested resource does not exist, or you do not have access to it.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_apiportal/_services/api_portal.py
1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 | |