Skip to main content

https://cloudeos.com api sdk

Project description

CloudeosApi

Cloudeos.com için python api kullanımı örnegidir, api dökümanlarından bakarak bu örneği genişletebilirsiniz.

Mevcut istek örnekleri:

  • Get Account Detail
  • Get Current Balance
  • Create Server
  • Get Server Lists
  • Destroy Server
  • Create SSH Key
  • Get SSH Keys
  • Destroy SSH Keys
  • Get Regions
  • Get Packages

Example

Get Account Detail:

from cloudeos import API


cloudeos = API("username", "password")

account_detail = cloudeos.get_accountDetail()

print(account_detail)

Create Server:

from cloudeos import API


cloudeos = API("username", "password")

name	 = "MyServer"
region	 = "ist2"
package  = "1c-1r-25d"
image	 = "ubuntu-16-04-x64"
ssh_keys = "MySSHKey fingerprint degeri" #key olusturulmussa veya istege bagli

create   = cloudeos.create_server(name, region, package, image, ssh_keys=ssh_keys)

print(create)

Diğer örnekleri Examples klasöründe bulabilir ve genişletebilirsiniz.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudeos-0.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page