项目作者: mikespub

项目描述 :
富士通云IaaS可信公众S5(TPS5)的客户端API库,即富士通全球云平台(FGCP)
高级语言: Python
项目地址: git://github.com/mikespub/fgcp-client-api.git
创建时间: 2015-03-21T01:03:55Z
项目社区:https://github.com/mikespub/fgcp-client-api

开源协议:Apache License 2.0

下载


Client API library for the Fujitsu Global Cloud Platform (FGCP)

using XML-RPC API Version 2015-01-30


Using this library

If you already have access to the Fujitsu Global Cloud Platform (FGCP), have a look at the demo script:

Usage: fgcp_demo.py [pem_file] [region]

If not, register on one of the Service Portals from the list below. Afterwards, you can access your resources via command-line scripts, web interfaces etc. as you prefer.

  1. # Connect with your client certificate to region 'uk'
  2. from fgcp.resource import FGCPVDataCenter
  3. vdc = FGCPVDataCenter('client.pem', 'uk')
  4. # Do typical actions on resources
  5. vsystem = vdc.get_vsystem('Demo System')
  6. vsystem.show_status()
  7. #for vserver in vsystem.vservers:
  8. # result = vserver.backup(wait=True)
  9. #...
  10. # See tests/test_resource.py for more examples

Note: this client API library provides higher-level Client Methods, intermediate Resource Actions and lower-level API Commands.


Fujitsu Global Cloud Platform (FGCP)

http://mikespub.net/fgcp_client_api.png

Service Portal


Requirements

This module uses tlslite.utils or gdata.tlslite.utils to create the key signature, see https://pypi.python.org/pypi/tlslite-ng or https://pypi.python.org/pypi/tlslite for download and installation

Note: to convert your .p12 or .pfx file to unencrypted PEM format, you can use
the following ‘openssl’ command:

  1. openssl pkcs12 -in UserCert.p12 -out client.pem -nodes