public class SecurityLogsApi extends CrowdinApi
clientConfig, graphqlUrl, httpClient, url
Constructor and Description |
---|
SecurityLogsApi(Credentials credentials) |
SecurityLogsApi(Credentials credentials,
ClientConfig clientConfig) |
Modifier and Type | Method and Description |
---|---|
ResponseObject<SecurityLogResource> |
getOrganizationSecurityLog(java.lang.Long securityLogId) |
ResponseObject<SecurityLogResource> |
getUserSecurityLog(java.lang.Long userId,
java.lang.Long securityLogId) |
ResponseList<SecurityLogResource> |
listOrganizationSecurityLogs(java.lang.Long limit,
java.lang.Integer offset,
java.lang.String event,
java.lang.String createdAfter,
java.lang.String createdBefore,
java.lang.String ipAddress,
java.lang.Long userId) |
ResponseList<SecurityLogResource> |
listUserSecurityLogs(java.lang.Long userId,
java.lang.Long limit,
java.lang.Integer offset,
java.lang.String event,
java.lang.String ipAddress) |
graphql, graphql
public SecurityLogsApi(Credentials credentials)
public SecurityLogsApi(Credentials credentials, ClientConfig clientConfig)
public ResponseList<SecurityLogResource> listUserSecurityLogs(java.lang.Long userId, java.lang.Long limit, java.lang.Integer offset, java.lang.String event, java.lang.String ipAddress) throws HttpException, HttpBadRequestException
userId
- user Identifierlimit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)event
- value of eventipAddress
- value of ipAddressHttpException
HttpBadRequestException
public ResponseObject<SecurityLogResource> getUserSecurityLog(java.lang.Long userId, java.lang.Long securityLogId) throws HttpException, HttpBadRequestException
userId
- user IdentifiersecurityLogId
- log IdentifierHttpException
HttpBadRequestException
public ResponseList<SecurityLogResource> listOrganizationSecurityLogs(java.lang.Long limit, java.lang.Integer offset, java.lang.String event, java.lang.String createdAfter, java.lang.String createdBefore, java.lang.String ipAddress, java.lang.Long userId) throws HttpException, HttpBadRequestException
limit
- maximum number of items to retrieve (default 25)offset
- starting offset in the collection (default 0)event
- value of eventcreatedAfter
- String Date in UTC formatcreatedBefore
- String Date in UTC formatipAddress
- value of ipAddressuserId
- user IdentifierHttpException
HttpBadRequestException
public ResponseObject<SecurityLogResource> getOrganizationSecurityLog(java.lang.Long securityLogId) throws HttpException, HttpBadRequestException
securityLogId
- log IdentifierHttpException
HttpBadRequestException