{
"id": "http://localhost:3000/api/services/1",
"name": "first service",
"actions": [
{"name": "edit", "method": "post", "href": "http://localhost:3000/api/services/1"},
{"name": "retire", "method": "post", "href": "http://localhost:3000/api/services/1"},
{"name": "delete", "method": "delete", "href": "http://localhost:3000/api/services/1"}
]
}
- tags
Required
name
Optional
description
Name | Description |
---|---|
edit | Edit a Service |
retire | Retire one or more Services |
delete | Remove one or more Services from the VMDB |
POST /api/services/1
{
"action": "edit",
"resource": {
"description" : "Updated Description"
}
}
Delete a single existing service
DELETE /api/services/1
Delete multiple services
POST /api/services
{
"action" : "delete"
"resources" : [
{ "href" : "http://localhost:3000/api/services/1" },
{ "href" : "http://localhost:3000/api/services/2" }
]
}
Tags on a Service can be accessed as a subcollection. Please refer to the Tags section for reference.
Back to Features
Back to Design Specification