/search/services[GET / POST]


Search for available micro services.

URL Parameters


Name Optional Valid values
start Yes Integer (search services from a start position where last created service is 0, the default)
limit Yes Integer (max services to fetch in each call, default is 100)


Body Parameters


Name Optional Valid values
start No Integer (search services from a start position where last created service is 0, the default)
limit No Integer (max services to fetch in each call, default is 100)
filter Yes Filter may include the following parameters:
  • generic : string, free search pattern (checks in service name, description and properties)


Request Examples       

## using GET method

curl -k -u admin:admin https://OPERETOHOST/search/services?start=0&limit=3

     

## using POST method, useful in case of complex filters, for example:
## get all services with property name or value "webserver"

curl -k -u admin:admin -X POST -H "Content-Type: application/json" -d '{
"start" : 0,
"limit" : 100,
"filter": {
   "generic" : "aws"
  }
}' https://OPERETOHOST/search/services

        

Response Example     

{
  "status": "success",
  "data": [
    {
      "modified_date": "2016-11-20T21:21:14.861599",
      "orig_date": "2016-11-20T12:01:21.933684",
      "type": "action",
      "id": "aws_create_cf_stack",
      "name": ""
    },
    {
      "modified_date": "2016-11-21T20:54:04.712606",
      "orig_date": "2016-11-21T20:54:04.557825",
      "type": "action",
      "id": "aws_get_file_from_s3",
      "name": ""
    },
    {
      "modified_date": "2016-11-24T15:45:35.885665",
      "orig_date": "2016-11-24T14:12:39.997651",
      "type": "action",
      "id": "aws_manage_dns_entry",
      "name": ""
    }
  ]
}