This SDK allows you to provision and manage Bare Metal Cloud servers via API with Python.
Bare Metal Cloud • API • Developers Portal • Knowledge Base • Support
- Bare Metal Cloud account
- Python
- Go to the Bare Metal Cloud signup page.
- Follow the prompts to set up your account.
- Use your credentials to log in to Bare Metal Cloud portal.
Bare Metal Cloud Python SDK provides a library of resources and APIs that can be used to interact with the platform. Below is a sample code to create dependancy:
import pnap_bmc_api
from pprint import pprint
from pnap_bmc_api.api import servers_api
# Configure OAuth2 access token for authorization: OAuth2
configuration = pnap_bmc_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
with pnap_bmc_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = servers_api.ServersApi(api_client)
try:
# List servers
api_response = api_instance.servers_get()
pprint(api_response)
except pnap_bmc_api.ApiException as e:
print("Exception when calling ServersApi->servers_get: %s\n" % e)
💡 For each submodule, API-specific documentation is available as follows:
- Audit Logs API: read audit log entries and track API calls and activities in the BMC Portal
- BMC API: create, power on, power off, reset, reboot or shut down your servers. Deprovision your servers, get SSH keys, and more.
- Network API: create, list, edit, and delete private networks.
- Rancher solutions API: deploy Kubernetes clusters faster using BMC integration with Rancher.
- Tag API: assign tags to relevant resources in your BMC portal to group and categorize them.
- IP API: request and delete IP Blocks.
Become part of the Bare Metal Cloud community to get updates on new features, help us improve the platform, and engage with developers and other users.
- Follow @phoenixNAP on Twitter
- Join the official Slack channel
- Sign up for our Developers Monthly newsletter
Get in touch with us if you have questions or need help with Bare Metal Cloud.