/services/verify[ POST ]


Check the validity of a given service configuration. 


Body Parameters


Name Optional Valid values
id No string: service name/id
spec No string: service specification
agents Yes json: specification of agents mapping.
description Yes text: any description written in text or markdown style.


Request Examples       

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '{
    "id" : "my_service",
    "spec": {
        "type": "action",
        "cmd": "python -u run.py",
        "timeout": 600,
        "item_properties": [
               {"key" : "key1", "type": "text", "value":"value1"},
               {"key" : "key2", "type": "boolean", "value": true}
        ]
    }
}' https://OPERETOHOST/services/verify

    

       

Response Examples  

{"status": "success", "data": {"errors": [], "success": true, "warnings": []}}

         

{
  "status": "success",
  "data": {
    "errors": [
      "Missing type specification. Valid types are: ['cycle', 'container', 'feedback', 'action', 'fixture', 'setup', 'teardown', 'test']",
      "Missing repository parameter: [access_key]"
    ],
    "success": false,
    "warnings": []
  }
}