Skip to main content
Version: v2.0

Application Service API overview

The Application Service API manages CSDM application services: register or create services and query service details from the CMDB.

Basic usage

Access it through the CMDB namespace:

appService := client.Now().Cmdb().AppService()

// Register an existing application service
resp, err := appService.Csdm().RegisterService().Post(context.Background(), registerRequest, nil)
if err != nil {
log.Fatal(err)
}

// Find a service
found, err := appService.Csdm().FindService().Get(context.Background(), nil)
if err != nil {
log.Fatal(err)
}

Available operations

  • Create serviceAppService().Create().Post(ctx, body, config).
  • Register serviceCsdm().RegisterService().Post(ctx, body, config).
  • Find serviceCsdm().FindService().Get(ctx, config).
  • Service detailsCsdm().ByID(sysID).ServiceDetails() reads details for a service.
  • Populate serviceCsdm().ByID(sysID).PopulateService() populates a service's mapping.
Was this page helpful?