Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions docs/compute/drivers/linode.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Linode Compute Driver Documentation
===================================

`Linode`_ is an American cloud hosting provider offering virtual private
servers (Linodes) in data centers around the world.

.. figure:: /_static/images/provider_logos/linode.png
:align: center
:width: 200
:target: https://www.linode.com/

How to get API Access Token
---------------------------

Visit https://cloud.linode.com/profile/tokens and create a Personal Access
Token. The token is used as the ``key`` argument when instantiating the driver.

Examples
--------

1. Create Linode driver - how to create the Linode driver with an access token
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: /examples/compute/linode/linode_compute_simple.py
:language: python

API Docs
--------

.. autoclass:: libcloud.compute.drivers.linode.LinodeNodeDriverV4
:members:
:inherited-members:

.. _`Linode`: https://www.linode.com/
40 changes: 40 additions & 0 deletions docs/dns/drivers/linode.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Linode DNS Driver Documentation
===============================

`Linode`_ is an American cloud hosting provider that offers managed DNS for
domains through its Domains service.

.. figure:: /_static/images/provider_logos/linode.png
:align: center
:width: 200
:target: https://www.linode.com/

Driver features
---------------

* Manage zones (domains) and records for Linode hosted domains
* Supports the SOA, NS, MX, A, AAAA, CNAME, PTR, TXT, SRV and CAA record types

How to get API Access Token
---------------------------

Visit https://cloud.linode.com/profile/tokens and create a Personal Access
Token. The token is used as the ``key`` argument when instantiating the driver.

Examples
--------

Instantiating the driver
~~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: /examples/dns/linode/instantiate_driver.py
:language: python

API Docs
--------

.. autoclass:: libcloud.dns.drivers.linode.LinodeDNSDriverV4
:members:
:inherited-members:

.. _`Linode`: https://www.linode.com/
8 changes: 8 additions & 0 deletions docs/examples/compute/linode/linode_compute_simple.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver

cls = get_driver(Provider.LINODE)
driver = cls("your access token")

nodes = driver.list_nodes()
print(nodes)
5 changes: 5 additions & 0 deletions docs/examples/dns/linode/instantiate_driver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from libcloud.dns.types import Provider
from libcloud.dns.providers import get_driver

cls = get_driver(Provider.LINODE)
driver = cls(key="your access token")