Skip to main content
Version: v2.0

CDM Editor API overview

The CDM Editor API edits Configuration Data Management data nodes and validates configuration data.

Basic usage

Access it through the Cdm() namespace:

editor := client.Cdm().Editor()

// List nodes
nodes, err := editor.Nodes().Get(context.Background(), nil)
if err != nil {
log.Fatal(err)
}

// Create and update a node
created, err := editor.Nodes().Post(context.Background(), createRequest, nil)
if err != nil {
log.Fatal(err)
}
updated, err := editor.Nodes().ByID("{nodeID}").Put(context.Background(), updateRequest, nil)
if err != nil {
log.Fatal(err)
}

// Validate configuration data
validation, err := editor.Validation().Get(context.Background(), nil)
if err != nil {
log.Fatal(err)
}

Available operations

  • List nodesNodes().Get(ctx, config).
  • Create nodeNodes().Post(ctx, body, config).
  • Update nodeNodes().ByID(id).Put(ctx, body, config).
  • Delete nodeNodes().ByID(id).Delete(ctx, config).
  • ValidateValidation().Get(ctx, config).
Was this page helpful?