List services
Changed onRequest
- Base URL/v1.57 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared
Query parameters
A JSON encoded value of the filters (a map[string][]string) to process on the services list.
Available filters:
- id=<service id>
- label=<service label>
- mode=["replicated"|"global"]
- name=<service name>
Include service status, with count of running and desired tasks.
Response
no error
Example response
[
{
"ID": "9mnpnzenvg8p8tdbtq4wvbkcz",
"Version": {
"Index": 19
},
"CreatedAt": "2016-06-07T21:05:51.880065305Z",
"UpdatedAt": "2016-06-07T21:07:29.962229872Z",
"Spec": {
"Name": "hopeful_cori",
"TaskTemplate": {
"ContainerSpec": {
"Image": "redis"
},
"Resources": {
"Limits": {},
"Reservations": {}
},
"RestartPolicy": {
"Condition": "any",
"MaxAttempts": 0
},
"Placement": {},
"ForceUpdate": 0
},
"Mode": {
"Replicated": {
"Replicas": 1
}
},
"UpdateConfig": {
"Parallelism": 1,
"Delay": 1000000000,
"FailureAction": "pause",
"Monitor": 15000000000,
"MaxFailureRatio": 0.15
},
"RollbackConfig": {
"Parallelism": 1,
"Delay": 1000000000,
"FailureAction": "pause",
"Monitor": 15000000000,
"MaxFailureRatio": 0.15
},
"EndpointSpec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 6379,
"PublishedPort": 30001
}
]
}
},
"Endpoint": {
"Spec": {
"Mode": "vip",
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 6379,
"PublishedPort": 30001
}
]
},
"Ports": [
{
"Protocol": "tcp",
"TargetPort": 6379,
"PublishedPort": 30001
}
],
"VirtualIPs": [
{
"NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
"Addr": "10.255.0.2/16"
},
{
"NetworkID": "4qvuz4ko70xaltuqbt8956gd1",
"Addr": "10.255.0.3/16"
}
]
}
}
]Changes
- breaking
removed the media type
application/jsonfor the response with the status - info
api tag
Serviceadded - info
added the non-success response with the status
- info
added the non-success response with the status
- breaking
- breaking
the
////////response property's minItems was decreased from1to0for the response status - breaking
the
/response's property format changed fromdateTimetodate-timefor status - breaking
the
//response's property format changed fromdateTimetodate-timefor status - breaking
the
//response's property format changed fromdateTimetodate-timefor status - breaking
the
//response's property format changed fromdateTimetodate-timefor status - breaking
the
/response's property format changed fromdateTimetodate-timefor status - info
api tag
Serviceremoved - info
removed the non-success response with the status
- info
removed the non-success response with the status
- info
the
response's property default valuefalsewas removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value1was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default valuevipwas removed for the status - info
the
response's property default valuevipwas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default value0was removed for the status - info
the
response's property default valueingresswas removed for the status - info
the
response's property default valueingresswas removed for the status - info
the
response's property default valueingresswas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default valuefalsewas removed for the status - info
the
response's property default value0was removed for the status
- breaking