Skip to main content

addService

A Graze API POST request that adds a new external service to the database. An external service is a business entity monitored by Moogsoft Enterprise via event streams.

Back to Graze API EndPoint Reference.

Request arguments

Endpoint addService takes the following request arguments:

Name

Type

Required

Description

auth_token

String

Yes

A valid auth_token returned from the authenticate request. Alternatively, basic authenticate headers can be used in place of this parameter. See the authenticate endpoint for more information and usage examples.

name

String

Yes

Name of the external service you are adding.

description

String

No

Service description.

Response

Endpoint addService returns the following response:

Examples

The following examples demonstrate typical use of endpoint addService:

Request example

Example cURL request to add service "New Service 1" with a description:

curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/addService" -H "Content-Type: application/json; charset=UTF-8" -d '{"name" : "New Service 1", "description" : "This is my description 12345"}'

Response example