v1

latestOpenAPI 3.0.12026-07-13149396412.1 KB
MappingRule

post/api/v1/config/mapping-rules

Request body

dry_runboolean

If true, the MappingRule isn't created, and no response MappingRule will be returned. The response will return an error if the given MappingRule is invalid.

Example request

{
  "mapping_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ]
  }
}

Response

A successful response containing the created MappingRule.

Example response

{
  "mapping_rule": {
    "filters": [
      {
        "name": "job",
        "value_glob": "myservice*"
      }
    ]
  }
}