Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-51495

Enhance Eventing api to include function scope

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Duplicate
    • Major
    • None
    • None
    • sdkdev
    • None
    • 1

    Description

      Eventing started supporting full RBAC with scoped eventing functions in Neo and same function name can appear under different function scopes. With this all the life cycle operation needs to include "bucket" and "scope" name in uri(by default its value is * for backward compatibility)

      Rest api:
      /api/v1/functions/<function name>/<lifecycle operation>?bucket=<function_scope.bucket>&scope=<function_scope.scope>

      Example:
      /api/v1/functions/test/deploy?bucket=b1&scope=s1

      Example schema: https://github.com/couchbase/eventing/blob/master/parser/handler_schema.json

      status and stats api will include "function_scope" value to differentiate between different function

      curl -X GET -u Administrator:password http://localhost:9300/api/v1/status{ "apps": [  {   "composite_status": "undeployed",   "name": "test",   "function_scope": {    "bucket": "src_bucket",    "scope": "_default"   },   "num_bootstrapping_nodes": 0,   "num_deployed_nodes": 0,   "deployment_status": false,   "processing_status": false,   "redeploy_required": false  } ], "num_eventing_nodes": 1}%  

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              daschl Michael Nitschinger
              ankit.prabhu Ankit Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty