All URIs are relative to https://api.cloudsmith.io
| Method | HTTP request | Description |
|---|---|---|
| quotaHistoryRead | GET /quota/history/{owner}/ | Quota history for a given namespace. |
| quotaOssHistoryRead | GET /quota/oss/history/{owner}/ | Open-source Quota history for a given namespace. |
| quotaOssRead | GET /quota/oss/{owner}/ | Open-source Quota usage for a given namespace. |
| quotaRead | GET /quota/{owner}/ | Quota usage for a given namespace. |
QuotaHistory quotaHistoryRead(owner)
Quota history for a given namespace.
Quota history for a given namespace.
// 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.QuotaApi;
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");
QuotaApi apiInstance = new QuotaApi();
String owner = "owner_example"; // String |
try {
QuotaHistory result = apiInstance.quotaHistoryRead(owner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QuotaApi#quotaHistoryRead");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| owner | String |
- Content-Type: application/json
- Accept: application/json
QuotaHistory quotaOssHistoryRead(owner)
Open-source Quota history for a given namespace.
Open-source Quota history for a given namespace.
// 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.QuotaApi;
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");
QuotaApi apiInstance = new QuotaApi();
String owner = "owner_example"; // String |
try {
QuotaHistory result = apiInstance.quotaOssHistoryRead(owner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QuotaApi#quotaOssHistoryRead");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| owner | String |
- Content-Type: application/json
- Accept: application/json
Quota quotaOssRead(owner)
Open-source Quota usage for a given namespace.
Open-source Quota usage for a given namespace.
// 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.QuotaApi;
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");
QuotaApi apiInstance = new QuotaApi();
String owner = "owner_example"; // String |
try {
Quota result = apiInstance.quotaOssRead(owner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QuotaApi#quotaOssRead");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| owner | String |
- Content-Type: application/json
- Accept: application/json
Quota quotaRead(owner)
Quota usage for a given namespace.
Quota usage for a given namespace.
// 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.QuotaApi;
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");
QuotaApi apiInstance = new QuotaApi();
String owner = "owner_example"; // String |
try {
Quota result = apiInstance.quotaRead(owner);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QuotaApi#quotaRead");
e.printStackTrace();
}| Name | Type | Description | Notes |
|---|---|---|---|
| owner | String |
- Content-Type: application/json
- Accept: application/json