Skip to content

Latest commit

 

History

History
144 lines (108 loc) · 5.34 KB

File metadata and controls

144 lines (108 loc) · 5.34 KB

AuditLogApi

All URIs are relative to https://api.cloudsmith.io

Method HTTP request Description
auditLogNamespaceList GET /audit-log/{owner}/ Lists audit log entries for a specific namespace.
auditLogRepoList GET /audit-log/{owner}/{repo}/ Lists audit log entries for a specific repository.

auditLogNamespaceList

List<NamespaceAuditLog> auditLogNamespaceList(owner, page, pageSize, query)

Lists audit log entries for a specific namespace.

Lists audit log entries for a specific namespace.

Example

// Import classes:
//import io.cloudsmith.api.ApiClient;
//import io.cloudsmith.api.ApiException;
//import io.cloudsmith.api.Configuration;
//import io.cloudsmith.api.auth.*;
//import io.cloudsmith.api.apis.AuditLogApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: apikey
ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.setApiKeyPrefix("Token");

// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

AuditLogApi apiInstance = new AuditLogApi();
String owner = "owner_example"; // String | 
java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set.
java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page.
String query = "query_example"; // String | A search term for querying events, actors, or timestamps of log records.
try {
    List<NamespaceAuditLog> result = apiInstance.auditLogNamespaceList(owner, page, pageSize, query);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AuditLogApi#auditLogNamespaceList");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
owner String
page java.math.BigInteger A page number within the paginated result set. [optional]
pageSize java.math.BigInteger Number of results to return per page. [optional]
query String A search term for querying events, actors, or timestamps of log records. [optional]

Return type

List<NamespaceAuditLog>

Authorization

apikey, basic

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

auditLogRepoList

List<RepositoryAuditLog> auditLogRepoList(owner, repo, page, pageSize, query)

Lists audit log entries for a specific repository.

Lists audit log entries for a specific repository.

Example

// Import classes:
//import io.cloudsmith.api.ApiClient;
//import io.cloudsmith.api.ApiException;
//import io.cloudsmith.api.Configuration;
//import io.cloudsmith.api.auth.*;
//import io.cloudsmith.api.apis.AuditLogApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: apikey
ApiKeyAuth apikey = (ApiKeyAuth) defaultClient.getAuthentication("apikey");
apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apikey.setApiKeyPrefix("Token");

// Configure HTTP basic authorization: basic
HttpBasicAuth basic = (HttpBasicAuth) defaultClient.getAuthentication("basic");
basic.setUsername("YOUR USERNAME");
basic.setPassword("YOUR PASSWORD");

AuditLogApi apiInstance = new AuditLogApi();
String owner = "owner_example"; // String | 
String repo = "repo_example"; // String | 
java.math.BigInteger page = new java.math.BigInteger(); // java.math.BigInteger | A page number within the paginated result set.
java.math.BigInteger pageSize = new java.math.BigInteger(); // java.math.BigInteger | Number of results to return per page.
String query = "query_example"; // String | A search term for querying events, actors, or timestamps of log records.
try {
    List<RepositoryAuditLog> result = apiInstance.auditLogRepoList(owner, repo, page, pageSize, query);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling AuditLogApi#auditLogRepoList");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
owner String
repo String
page java.math.BigInteger A page number within the paginated result set. [optional]
pageSize java.math.BigInteger Number of results to return per page. [optional]
query String A search term for querying events, actors, or timestamps of log records. [optional]

Return type

List<RepositoryAuditLog>

Authorization

apikey, basic

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json