All URIs are relative to https://api.cloudsmith.io
| Method | HTTP request | Description |
|---|---|---|
| distros_list | GET /distros/ | Get a list of all supported distributions. |
| distros_read | GET /distros/{slug}/ | View for viewing/listing distributions. |
list[DistributionFull] distros_list()
Get a list of all supported distributions.
Get a list of all supported distributions.
from __future__ import print_function
import time
import cloudsmith_api
from cloudsmith_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikey
configuration = cloudsmith_api.Configuration()
configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Configure HTTP basic authorization: basic
configuration = cloudsmith_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudsmith_api.DistrosApi(cloudsmith_api.ApiClient(configuration))
try:
# Get a list of all supported distributions.
api_response = api_instance.distros_list()
pprint(api_response)
except ApiException as e:
print("Exception when calling DistrosApi->distros_list: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DistributionFull distros_read(slug)
View for viewing/listing distributions.
View for viewing/listing distributions.
from __future__ import print_function
import time
import cloudsmith_api
from cloudsmith_api.rest import ApiException
from pprint import pprint
# Configure API key authorization: apikey
configuration = cloudsmith_api.Configuration()
configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Configure HTTP basic authorization: basic
configuration = cloudsmith_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = cloudsmith_api.DistrosApi(cloudsmith_api.ApiClient(configuration))
slug = 'slug_example' # str |
try:
# View for viewing/listing distributions.
api_response = api_instance.distros_read(slug)
pprint(api_response)
except ApiException as e:
print("Exception when calling DistrosApi->distros_read: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| slug | str |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]