boto.fps.connection GetAccountBalance

17 views
Skip to first unread message

ek ekke

unread,
Aug 21, 2015, 10:12:31 AM8/21/15
to boto-users

I am trying to get the aws account balance and account activity. the boto.fps.connection.FPSConnection module has get_account_balance and get_account_activity but it keeps timing out if i run it. Is there any examples of it working? 

The most documentation i can find is this https://boto.readthedocs.org/en/stable/ref/fps.html#boto.fps.connection.FPSConnection.APIVersion is there examples of working code somewhere?

Is there other people out there that want to find account activity via boto or it is just me?


This is the output i get from debugging:

-=-=-=-=-=-=-

fps.get_account_balance()

2015-08-21 15:03:43,611 boto [DEBUG]:Method: GET

2015-08-21 15:03:43,611 boto [DEBUG]:Path: /

2015-08-21 15:03:43,611 boto [DEBUG]:Data: 

2015-08-21 15:03:43,612 boto [DEBUG]:Headers: {}

2015-08-21 15:03:43,612 boto [DEBUG]:Host: fps.sandbox.amazonaws.com

2015-08-21 15:03:43,612 boto [DEBUG]:Port: 443

2015-08-21 15:03:43,612 boto [DEBUG]:Params: {'Action': 'GetAccountBalance', 'Version': '2010-08-28'}

2015-08-21 15:03:43,612 boto [DEBUG]:establishing HTTPS connection: host=fps.sandbox.amazonaws.com, kwargs={'port': 443, 'timeout': 70}

2015-08-21 15:03:43,612 boto [DEBUG]:Token: None

2015-08-21 15:03:43,613 boto [DEBUG]:using _calc_signature_2

2015-08-21 15:03:43,613 boto [DEBUG]:query string: AWSAccessKeyId=mykey&Action=GetAccountBalance&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-08-21T14%303%3A43Z&Version=2010-08-28

2015-08-21 15:03:43,613 boto [DEBUG]:string_to_sign: GET

fps.sandbox.amazonaws.com

/

AWSAccessKeyId=mykey&Action=GetAccountBalance&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-08-21T14%3A03%3A43Z&Version=2010-08-28

2015-08-21 15:03:43,613 boto [DEBUG]:len(b64)=44

2015-08-21 15:03:43,613 boto [DEBUG]:base64 encoded digest: someotherstuff

2015-08-21 15:03:43,613 boto [DEBUG]:query_string: AWSAccessKeyId=mykey&Action=GetAccountBalance&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-08-21T14%303%3A43Z&Version=2010-08-28 Signature: someotherstuff

2015-08-21 15:03:43,613 boto [DEBUG]:Final headers: {'Content-Length': '0', 'Host': 'fps.sandbox.amazonaws.com', 'User-Agent': 'Boto/2.38.0 Python/2.7.10 Darwin/14.5.0'}

2015-08-21 15:04:53,636 boto [DEBUG]:encountered timeout exception, reconnecting

-=-=-=-=-=-=-


Any help would be very much appreciated.


 

Reply all
Reply to author
Forward
0 new messages