v1

latestSwagger 2.02026-07-178567199.3 KB
sources
services

Create a new service

post/sources/{id}/services

Path parameters

idstring required

ID of the source

Request body

idstring

Unique identifier representing a service.

sourceIDstring

Unique identifier of the source associated with this service

namestring required

User facing name of the service.

usernamestring

Credentials for using this service

urlstring url required

URL for the service backend (e.g. http://localhost:8093)

insecureSkipVerifyboolean

True means any certificate presented by the service is accepted. Typically used for self-signed certs. Probably should only be used for testing.

typestring

Indicates what kind of service this is (e.g. flux service)

Example request

{
  "id": "1",
  "sourceID": "1",
  "url": "http://localhost:8093",
  "insecureSkipVerify": false,
  "type": "flux",
  "metadata": {
    "active": true
  },
  "links": {
    "proxy": "/chronograf/v1/sources/1/services/1/proxy",
    "self": "/chronograf/v1/sources/1/services/1",
    "source": "/chronograf/v1/sources/1"
  }
}

Response

Returns the newly created service

idstring

Unique identifier representing a service.

sourceIDstring

Unique identifier of the source associated with this service

namestring required

User facing name of the service.

usernamestring

Credentials for using this service

urlstring url required

URL for the service backend (e.g. http://localhost:8093)

insecureSkipVerifyboolean

True means any certificate presented by the service is accepted. Typically used for self-signed certs. Probably should only be used for testing.

typestring

Indicates what kind of service this is (e.g. flux service)

Example response

{
  "id": "1",
  "sourceID": "1",
  "url": "http://localhost:8093",
  "insecureSkipVerify": false,
  "type": "flux",
  "metadata": {
    "active": true
  },
  "links": {
    "proxy": "/chronograf/v1/sources/1/services/1/proxy",
    "self": "/chronograf/v1/sources/1/services/1",
    "source": "/chronograf/v1/sources/1"
  }
}