def get_cos_instances(resource_instances):
    """return available cos instances by name and id"""
    storage_instances = []
    for resource in resource_instances:
        if 'cloud-object-storage' in resource['id']:
            storage_instances.append({"name": resource['name'], "id": resource['id']})

    return storage_instances