pnap-location-api

Locations API


Keywords
OpenAPI, OpenAPI-Generator, Locations, API
License
Apache-2.0
Install
pip install pnap-location-api==2.0.2

Documentation


phoenixnap Bare Metal Cloud
Python SDK for Bare Metal Cloud

This SDK allows you to provision and manage Bare Metal Cloud servers via API with Python.

Bare Metal CloudAPIDevelopers PortalKnowledge BaseSupport

Requirements

Creating a Bare Metal Cloud account

  1. Go to the Bare Metal Cloud signup page.
  2. Follow the prompts to set up your account.
  3. Use your credentials to log in to Bare Metal Cloud portal.

▶️ Video tutorial: How to Create a Bare Metal Cloud Account in Minutes

▶️ Video tutorial: How to Deploy a Bare Metal Server in a Minute

SDK Usage Example

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.

Bare Metal Cloud community

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.

Resources

Documentation

Contact phoenixNAP

Get in touch with us if you have questions or need help with Bare Metal Cloud.

TwitterFacebookLinkedInInstagramYouTubeEmail


phoenixnap Bare Metal Cloud