'List software deployments.'

@util.policy_enforce
def index(self, req):

    whitelist = {'server_id': util.PARAM_TYPE_SINGLE}
    params = util.get_allowed_params(req.params, whitelist)
    sds = self.rpc_client.list_software_deployments(req.context, **params)
    return {'software_deployments': sds}
