snapshots=s.rds2conn.describe_db_snapshots(filters={'tag:tenant':tenant,})
JSONResponseError: 400 Bad Request
u'Error': {u'Message': u'Unrecognized filter name: null', u'Code': u'InvalidParameterValue', u'Type': u'Sender'
describe_db_snapshots(filters=[{'tag:tenant':tenant},])
describe_db_snapshots(filters=[{'tag:tenant':tenant,}])
snapshotList = rdsWestConn.describe_db_snapshots(filters=[{'tag:Name': 'Python Automated'}])
boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request
{u'RequestId': u'e181a4a6-e8fc-11e4-82c3-9735a38857d9', u'Error': {u'Message': u'Unrecognized filter name: null', u'Code': u'InvalidParameterValue', u'Type': u'Sender'}}
snapshotList=rdsWestConn.describe_db_snapshots(filters=[{'tag:managedBy':'Python Automated'},])
snapshotList=rdsWestConn.describe_db_snapshots(filters=[{'tag:managedBy':'Python Automated'}])
Still get the same error message:
> <mailto:boto-users+unsub...@googlegroups.com>.
There is. Name was in there by accident. Key = managed by. Value = python automated
iPhone. iTypos. iApologize
--
You received this message because you are subscribed to a topic in the Google Groups "boto-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boto-users/9xmmHOp_NNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
No. Still not working. Just mixed up the key when pasting here.
iPhone. iTypos. iApologize
:) yes. I tried with and without spaces.
iPhone. iTypos. iApologize
To unsubscribe from this group and all its topics, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Almost home. I will get screen shots and post them in just a bit
iPhone. iTypos. iApologize
snapshotList=rdsWestConn.describe_db_snapshots(filters=[{'tag:managedBy':'Python'}])
snapshotList=rdsWestConn.describe_db_snapshots(filters=[{'tag:managedBy':'Python'},])
from boto import rds2
rdsWestConn = rds2.connect_to_region('us-west-2')
snapshotList=rdsWestConn.describe_db_snapshots(filters=[{'tag:managedBy':'Python'}])
print snapshotList
::ERROR::
boto.exception.JSONResponseError: JSONResponseError: 400 Bad Request
{u'RequestId': u'09ecef89-e9c1-11e4-9af8-e1d278fbd34d', u'Error': {u'Message': u'Unrecognized filter name: null', u'Code': u'InvalidParameterValue', u'Type': u'Sender'}}
--
You received this message because you are subscribed to a topic in the Google Groups "boto-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boto-users/9xmmHOp_NNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.
When I do the following, this is the result I get. No where in the dictionary are the tags...
CODE::
from boto import rds2
rdsWestConn = rds2.connect_to_region('us-west-2')
snapshotList=rdsWestConn.describe_db_snapshots()
for snap in snapshotList['DescribeDBSnapshotsResponse']['DescribeDBSnapshotsResult']['DBSnapshots']:
print snap
Result::
{u'Engine': u'mysql', u'SnapshotCreateTime': 1406379334.974, u'AvailabilityZone': u'us-west-2b', u'SourceRegion': None, u'MasterUsername': u'NA', u'VpcId': u'NA', u'LicenseModel': u'general-public-license', u'Status': u'available', u'PercentProgress': 100, u'DBSnapshotIdentifier': u'ca-db-2013-archive-20170726-0855', u'InstanceCreateTime': 1373758541.193, u'OptionGroupName': u'default:mysql-5-6', u'AllocatedStorage': 1536, u'EngineVersion': u'5.6.12', u'SnapshotType': u'manual', u'Iops': 15000, u'Port': 3306, u'DBInstanceIdentifier': u'proddb'}
--
You received this message because you are subscribed to a topic in the Google Groups "boto-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/boto-users/9xmmHOp_NNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to boto-users+...@googlegroups.com.
To post to this group, send email to boto-...@googlegroups.com.
Visit this group at http://groups.google.com/group/boto-users.
For more options, visit https://groups.google.com/d/optout.
for arn in rdslist['arns']:
t=rds2conn.list_tags_for_resource(arn)
taglist=t['ListTagsForResourceResponse']['ListTagsForResourceResult']['TagList']
for tag in taglist:
print tag['Key'], tag['Value']