Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-8046

Introducing /appcode and /config endpoints in eventing

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • 1

    Description

      We have now added the ability to change the appcode through REST when the function is undeployed or paused state. A REST call to "/api/v1/functions/<function_name>/appcode/" can be used to replace the appcode inplace.

      Similary, the user can now change the deployment configurations like source keyspace and meta keyspace while in undeployed state and bindings in paused and undeployed state after creating the function. The new changes are available through "/api/v1/functions/<function_name>/config/" and the body of the request should comprise of

      {
      	Buckets                   []bucket                         `json:"buckets,omitempty"`
      	Curl                          []common.Curl              `json:"curl,omitempty"`
      	Constants                []common.Constant     `json:"constants,omitempty"`
      	SourceBucket          string                             `json:"source_bucket"`
      	SourceScope           string                             `json:"source_scope"`
      	SourceCollection     string                             `json:"source_collection"`
      	MetadataBucket      string                             `json:"metadata_bucket"`
      	MetadataScope       string                             `json:"metadata_scope"`
      	MetadataCollection string                             `json:"metadata_collection"`
      }
      

      Attachments

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

        Activity

          Jon Strabala These endpoints are being backported to 6.6.3 too, requesting your assistance in completing documentation.

          vinayaka.kamath Vinayaka Kamath (Inactive) added a comment - Jon Strabala These endpoints are being backported to 6.6.3 too, requesting your assistance in completing documentation.
          jon.strabala Jon Strabala added a comment - As per https://github.com/couchbase/docs-server/pull/2496

          People

            jon.strabala Jon Strabala
            vinayaka.kamath Vinayaka Kamath (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty