```python
if datasets['objects']:
  ids.extend([obj['resource'] for obj in datasets['objects'])
```