Inspect a service Run in API Explorer

GET /services/{id}

Path parameters

  • id string Required

    ID or name of service.

Query parameters

  • insertDefaults boolean

    Fill empty fields with default values.

    Default value is false.

Responses

  • 200 application/json

    no error

    Hide response attributes Show response attributes object
    • ID string
    • Version object

      The version number of the object such as node, service, etc. This is needed to avoid conflicting writes. The client must send the version number along with the modified specification when updating these objects.

      This approach ensures safe concurrency and determinism in that the change on the object may not be applied if the version number has changed from the last read. In other words, if two update requests specify the same base version, only one of the requests can succeed. As a result, two separate update requests that happen at the same time will not unintentionally overwrite each other.

      Hide Version attribute Show Version attribute object
      • Index integer(uint64)
    • CreatedAt string(dateTime)
    • UpdatedAt string(dateTime)
    • Spec object

      User modifiable configuration for a service.

      Hide Spec attributes Show Spec attributes object
      • Name string

        Name of the service.

      • Labels object

        User-defined key/value metadata.

        Hide Labels attribute Show Labels attribute object
        • * string Additional properties
      • TaskTemplate object

        User modifiable task configuration.

        Hide TaskTemplate attributes Show TaskTemplate attributes object
        • PluginSpec object

          Plugin spec for the service. (Experimental release only.)


          Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are mutually exclusive. PluginSpec is only used when the Runtime field is set to plugin. NetworkAttachmentSpec is used when the Runtime field is set to attachment.

          Hide PluginSpec attributes Show PluginSpec attributes object
          • Name string

            The name or 'alias' to use for the plugin.

          • Remote string

            The plugin image reference to use.

          • Disabled boolean

            Disable the plugin once scheduled.

          • PluginPrivilege array[object]

            Describes a permission the user has to accept upon installing the plugin.

            Hide PluginPrivilege attributes Show PluginPrivilege attributes object
            • Name string
            • Description string
            • Value array[string]
        • ContainerSpec object

          Container spec for the service.


          Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are mutually exclusive. PluginSpec is only used when the Runtime field is set to plugin. NetworkAttachmentSpec is used when the Runtime field is set to attachment.

          Hide ContainerSpec attributes Show ContainerSpec attributes object
          • Image string

            The image name to use for the container

          • Labels object

            User-defined key/value data.

            Hide Labels attribute Show Labels attribute object
            • * string Additional properties
          • Command array[string]

            The command to be run in the image.

          • Args array[string]

            Arguments to the command.

          • Hostname string

            The hostname to use for the container, as a valid RFC 1123 hostname.

          • Env array[string]

            A list of environment variables in the form VAR=value.

          • Dir string

            The working directory for commands to run in.

          • User string

            The user inside the container.

          • Groups array[string]

            A list of additional groups that the container process will run as.

          • Privileges object

            Security options for the container

            Hide Privileges attributes Show Privileges attributes object
            • CredentialSpec object

              CredentialSpec for managed service account (Windows only)

              Hide CredentialSpec attributes Show CredentialSpec attributes object
              • Config string

                Load credential spec from a Swarm Config with the given ID. The specified config must also be present in the Configs field with the Runtime property set.


                Note: CredentialSpec.File, CredentialSpec.Registry, and CredentialSpec.Config are mutually exclusive.

              • File string

                Load credential spec from this file. The file is read by the daemon, and must be present in the CredentialSpecs subdirectory in the docker data directory, which defaults to C:\ProgramData\Docker\ on Windows.

                For example, specifying spec.json loads C:\ProgramData\Docker\CredentialSpecs\spec.json.


                Note: CredentialSpec.File, CredentialSpec.Registry, and CredentialSpec.Config are mutually exclusive.

              • Registry string

                Load credential spec from this value in the Windows registry. The specified registry value must be located in:

                HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Virtualization\Containers\CredentialSpecs


                Note: CredentialSpec.File, CredentialSpec.Registry, and CredentialSpec.Config are mutually exclusive.

            • SELinuxContext object

              SELinux labels of the container

              Hide SELinuxContext attributes Show SELinuxContext attributes object
              • Disable boolean

                Disable SELinux

              • User string

                SELinux user label

              • Role string

                SELinux role label

              • Type string

                SELinux type label

              • Level string

                SELinux level label

            • Seccomp object

              Options for configuring seccomp on the container

              Hide Seccomp attributes Show Seccomp attributes object
              • Mode string

                Values are default, unconfined, or custom.

              • Profile string

                The custom seccomp profile as a json object

            • AppArmor object

              Options for configuring AppArmor on the container

              Hide AppArmor attribute Show AppArmor attribute object
              • Mode string

                Values are default or disabled.

            • NoNewPrivileges boolean

              Configuration of the no_new_privs bit in the container

          • TTY boolean

            Whether a pseudo-TTY should be allocated.

          • OpenStdin boolean

            Open stdin

          • ReadOnly boolean

            Mount the container's root filesystem as read only.

          • Mounts array[object]

            Specification for mounts to be added to containers created as part of the service.

            Hide Mounts attributes Show Mounts attributes object
            • Target string

              Container path.

            • Source string

              Mount source (e.g. a volume name, a host path).

            • Type string

              The mount type. Available types:

              • bind Mounts a file or directory from the host into the container. Must exist prior to creating the container.
              • volume Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are not removed when the container is removed.
              • tmpfs Create a tmpfs with the given options. The mount source cannot be specified for tmpfs.
              • npipe Mounts a named pipe from the host into the container. Must exist prior to creating the container.
              • cluster a Swarm cluster volume

              Values are bind, volume, tmpfs, npipe, or cluster.

            • ReadOnly boolean

              Whether the mount should be read-only.

            • Consistency string

              The consistency requirement for the mount: default, consistent, cached, or delegated.

            • BindOptions object

              Optional configuration for the bind type.

              Hide BindOptions attributes Show BindOptions attributes object
              • Propagation string

                A propagation mode with the value [r]private, [r]shared, or [r]slave.

                Values are private, rprivate, shared, rshared, slave, or rslave.

              • NonRecursive boolean

                Disable recursive bind mount.

                Default value is false.

              • CreateMountpoint boolean

                Create mount point on host if missing

                Default value is false.

              • ReadOnlyNonRecursive boolean

                Make the mount non-recursively read-only, but still leave the mount recursive (unless NonRecursive is set to true in conjunction).

                Default value is false.

              • ReadOnlyForceRecursive boolean

                Raise an error if the mount cannot be made recursively read-only.

                Default value is false.

            • VolumeOptions object

              Optional configuration for the volume type.

              Hide VolumeOptions attributes Show VolumeOptions attributes object
              • NoCopy boolean

                Populate volume with data from the target.

                Default value is false.

              • Labels object

                User-defined key/value metadata.

                Hide Labels attribute Show Labels attribute object
                • * string Additional properties
              • DriverConfig object

                Map of driver specific options

                Hide DriverConfig attributes Show DriverConfig attributes object
                • Name string

                  Name of the driver to use to create the volume.

                • Options object

                  key/value map of driver specific options.

                  Hide Options attribute Show Options attribute object
                  • * string Additional properties
            • TmpfsOptions object

              Optional configuration for the tmpfs type.

              Hide TmpfsOptions attributes Show TmpfsOptions attributes object
              • SizeBytes integer(int64)

                The size for the tmpfs mount in bytes.

              • Mode integer

                The permission mode for the tmpfs mount in an integer.

          • StopSignal string

            Signal to stop the container.

          • StopGracePeriod integer(int64)

            Amount of time to wait for the container to terminate before forcefully killing it.

          • HealthCheck object

            A test to perform to check that the container is healthy.

            Hide HealthCheck attributes Show HealthCheck attributes object
            • Test array[string]

              The test to perform. Possible values are:

              • [] inherit healthcheck from image or parent image
              • ["NONE"] disable healthcheck
              • ["CMD", args...] exec arguments directly
              • ["CMD-SHELL", command] run command with system's default shell
            • Interval integer(int64)

              The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

            • Timeout integer(int64)

              The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

            • Retries integer

              The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit.

            • StartPeriod integer(int64)

              Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

            • StartInterval integer(int64)

              The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit.

          • Hosts array[string]

            A list of hostname/IP mappings to add to the container's hosts file. The format of extra hosts is specified in the hosts(5) man page:

            IP_address canonical_hostname [aliases...]

          • DNSConfig object

            Specification for DNS related configurations in resolver configuration file (resolv.conf).

            Hide DNSConfig attributes Show DNSConfig attributes object
            • Nameservers array[string]

              The IP addresses of the name servers.

            • Options array[string]

              A list of internal resolver variables to be modified (e.g., debug, ndots:3, etc.).

          • Secrets array[object]

            Secrets contains references to zero or more secrets that will be exposed to the service.

            Hide Secrets attributes Show Secrets attributes object
            • File object

              File represents a specific target that is backed by a file.

              Hide File attributes Show File attributes object
              • Name string

                Name represents the final filename in the filesystem.

              • UID string

                UID represents the file UID.

              • GID string

                GID represents the file GID.

              • Mode integer(uint32)

                Mode represents the FileMode of the file.

            • SecretID string

              SecretID represents the ID of the specific secret that we're referencing.

            • SecretName string

              SecretName is the name of the secret that this references, but this is just provided for lookup/display purposes. The secret in the reference will be identified by its ID.

          • Configs array[object]

            Configs contains references to zero or more configs that will be exposed to the service.

            Hide Configs attributes Show Configs attributes object
            • File object

              File represents a specific target that is backed by a file.


              Note: Configs.File and Configs.Runtime are mutually exclusive

              Hide File attributes Show File attributes object
              • Name string

                Name represents the final filename in the filesystem.

              • UID string

                UID represents the file UID.

              • GID string

                GID represents the file GID.

              • Mode integer(uint32)

                Mode represents the FileMode of the file.

            • Runtime object

              Runtime represents a target that is not mounted into the container but is used by the task


              Note: Configs.File and Configs.Runtime are mutually exclusive

            • ConfigID string

              ConfigID represents the ID of the specific config that we're referencing.

            • ConfigName string

              ConfigName is the name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID.

          • Isolation string

            Isolation technology of the containers running the service. (Windows only)

            Values are default, process, or hyperv.

          • Init boolean

            Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used.

          • Sysctls object

            Set kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service.

            Hide Sysctls attribute Show Sysctls attribute object
            • * string Additional properties
          • CapabilityAdd array[string]

            A list of kernel capabilities to add to the default set for the container.

          • CapabilityDrop array[string]

            A list of kernel capabilities to drop from the default set for the container.

          • Ulimits array[object]

            A list of resource limits to set in the container. For example: {"Name": "nofile", "Soft": 1024, "Hard": 2048}"

            Hide Ulimits attributes Show Ulimits attributes object
            • Name string

              Name of ulimit

            • Soft integer

              Soft limit

            • Hard integer

              Hard limit

        • NetworkAttachmentSpec object

          Read-only spec type for non-swarm containers attached to swarm overlay networks.


          Note: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are mutually exclusive. PluginSpec is only used when the Runtime field is set to plugin. NetworkAttachmentSpec is used when the Runtime field is set to attachment.

          Hide NetworkAttachmentSpec attribute Show NetworkAttachmentSpec attribute object
          • ContainerID string

            ID of the container represented by this task

        • Resources object

          Resource requirements which apply to each individual container created as part of the service.

          Hide Resources attributes Show Resources attributes object
          • Limits object

            Define resources limits.

            Hide Limits attributes Show Limits attributes object
            • NanoCPUs integer(int64)
            • MemoryBytes integer(int64)
            • Pids integer(int64)

              Limits the maximum number of PIDs in the container. Set 0 for unlimited.

              Default value is 0.

          • Reservations object

            An object describing the resources which can be advertised by a node and requested by a task.

            Hide Reservations attributes Show Reservations attributes object
            • NanoCPUs integer(int64)
            • MemoryBytes integer(int64)
            • GenericResources array[object]

              User-defined resources can be either Integer resources (e.g, SSD=3) or String resources (e.g, GPU=UUID1).

              Hide GenericResources attributes Show GenericResources attributes object
              • NamedResourceSpec object
                Hide NamedResourceSpec attributes Show NamedResourceSpec attributes object
                • Kind string
                • Value string
              • DiscreteResourceSpec object
                Hide DiscreteResourceSpec attributes Show DiscreteResourceSpec attributes object
                • Kind string
                • Value integer(int64)
        • RestartPolicy object

          Specification for the restart policy which applies to containers created as part of this service.

          Hide RestartPolicy attributes Show RestartPolicy attributes object
          • Condition string

            Condition for restart.

            Values are none, on-failure, or any.

          • Delay integer(int64)

            Delay between restart attempts.

          • MaxAttempts integer(int64)

            Maximum attempts to restart a given container before giving up (default value is 0, which is ignored).

            Default value is 0.

          • Window integer(int64)

            Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded).

            Default value is 0.

        • Placement object
          Hide Placement attributes Show Placement attributes object
          • Constraints array[string]

            An array of constraint expressions to limit the set of nodes where a task can be scheduled. Constraint expressions can either use a match (==) or exclude (!=) rule. Multiple constraints find nodes that satisfy every expression (AND match). Constraints can match node or Docker Engine labels as follows:

            node attribute matches example
            node.id Node ID node.id==2ivku8v2gvtg4
            node.hostname Node hostname node.hostname!=node-2
            node.role Node role (manager/worker) node.role==manager
            node.platform.os Node operating system node.platform.os==windows
            node.platform.arch Node architecture node.platform.arch==x86_64
            node.labels User-defined node labels node.labels.security==high
            engine.labels Docker Engine's labels engine.labels.operatingsystem==ubuntu-14.04

            engine.labels apply to Docker Engine labels like operating system, drivers, etc. Swarm administrators add node.labels for operational purposes by using the node update endpoint.

          • Preferences array[object]

            Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence.

            Hide Preferences attribute Show Preferences attribute object
            • Spread object
              Hide Spread attribute Show Spread attribute object
              • SpreadDescriptor string

                label descriptor, such as engine.labels.az.

          • MaxReplicas integer(int64)

            Maximum number of replicas for per node (default value is 0, which is unlimited)

            Default value is 0.

          • Platforms array[object]

            Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions.

            Platform represents the platform (Arch/OS).

            Hide Platforms attributes Show Platforms attributes object
            • Architecture string

              Architecture represents the hardware architecture (for example, x86_64).

            • OS string

              OS represents the Operating System (for example, linux or windows).

        • ForceUpdate integer

          A counter that triggers an update even if no relevant parameters have been changed.

        • Runtime string

          Runtime is the type of runtime specified for the task executor.

        • Networks array[object]

          Specifies which networks the service should attach to.

          Specifies how a service should be attached to a particular network.

          Hide Networks attributes Show Networks attributes object
          • Target string

            The target network for attachment. Must be a network name or ID.

          • Aliases array[string]

            Discoverable alternate names for the service on this network.

          • DriverOpts object

            Driver attachment options for the network target.

            Hide DriverOpts attribute Show DriverOpts attribute object
            • * string Additional properties
        • LogDriver object

          Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified.

          Hide LogDriver attributes Show LogDriver attributes object
          • Name string
          • Options object
            Hide Options attribute Show Options attribute object
            • * string Additional properties
      • Mode object

        Scheduling mode for the service.

        Hide Mode attributes Show Mode attributes object
        • Replicated object
          Hide Replicated attribute Show Replicated attribute object
          • Replicas integer(int64)
        • Global object
        • ReplicatedJob object

          The mode used for services with a finite number of tasks that run to a completed state.

          Hide ReplicatedJob attributes Show ReplicatedJob attributes object
          • MaxConcurrent integer(int64)

            The maximum number of replicas to run simultaneously.

            Default value is 1.

          • TotalCompletions integer(int64)

            The total number of replicas desired to reach the Completed state. If unset, will default to the value of MaxConcurrent

        • GlobalJob object

          The mode used for services which run a task to the completed state on each valid node.

      • UpdateConfig object

        Specification for the update strategy of the service.

        Hide UpdateConfig attributes Show UpdateConfig attributes object
        • Parallelism integer(int64)

          Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism).

        • Delay integer(int64)

          Amount of time between updates, in nanoseconds.

        • FailureAction string

          Action to take if an updated task fails to run, or stops running during the update.

          Values are continue, pause, or rollback.

        • Monitor integer(int64)

          Amount of time to monitor each updated task for failures, in nanoseconds.

        • MaxFailureRatio number

          The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1.

          Default value is 0.

        • Order string

          The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.

          Values are stop-first or start-first.

      • RollbackConfig object

        Specification for the rollback strategy of the service.

        Hide RollbackConfig attributes Show RollbackConfig attributes object
        • Parallelism integer(int64)

          Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism).

        • Delay integer(int64)

          Amount of time between rollback iterations, in nanoseconds.

        • FailureAction string

          Action to take if an rolled back task fails to run, or stops running during the rollback.

          Values are continue or pause.

        • Monitor integer(int64)

          Amount of time to monitor each rolled back task for failures, in nanoseconds.

        • MaxFailureRatio number

          The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1.

          Default value is 0.

        • Order string

          The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down.

          Values are stop-first or start-first.

      • Networks array[object]

        Specifies which networks the service should attach to.

        Deprecated: This field is deprecated since v1.44. The Networks field in TaskSpec should be used instead.

        Specifies how a service should be attached to a particular network.

        Hide Networks attributes Show Networks attributes object
        • Target string

          The target network for attachment. Must be a network name or ID.

        • Aliases array[string]

          Discoverable alternate names for the service on this network.

        • DriverOpts object

          Driver attachment options for the network target.

          Hide DriverOpts attribute Show DriverOpts attribute object
          • * string Additional properties
      • EndpointSpec object

        Properties that can be configured to access and load balance a service.

        Hide EndpointSpec attributes Show EndpointSpec attributes object
        • Mode string

          The mode of resolution to use for internal load balancing between tasks.

          Values are vip or dnsrr. Default value is vip.

        • Ports array[object]

          List of exposed ports that this service is accessible on from the outside. Ports can only be provided if vip resolution mode is used.

          Hide Ports attributes Show Ports attributes object
          • Name string
          • Protocol string

            Values are tcp, udp, or sctp.

          • TargetPort integer

            The port inside the container.

          • PublishedPort integer

            The port on the swarm hosts.

          • PublishMode string

            The mode in which port is published.


            • "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not.
            • "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running.

            Values are ingress or host. Default value is ingress.

    • Endpoint object
      Hide Endpoint attributes Show Endpoint attributes object
      • Spec object

        Properties that can be configured to access and load balance a service.

        Hide Spec attributes Show Spec attributes object
        • Mode string

          The mode of resolution to use for internal load balancing between tasks.

          Values are vip or dnsrr. Default value is vip.

        • Ports array[object]

          List of exposed ports that this service is accessible on from the outside. Ports can only be provided if vip resolution mode is used.

          Hide Ports attributes Show Ports attributes object
          • Name string
          • Protocol string

            Values are tcp, udp, or sctp.

          • TargetPort integer

            The port inside the container.

          • PublishedPort integer

            The port on the swarm hosts.

          • PublishMode string

            The mode in which port is published.


            • "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not.
            • "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running.

            Values are ingress or host. Default value is ingress.

      • Ports array[object]
        Hide Ports attributes Show Ports attributes object
        • Name string
        • Protocol string

          Values are tcp, udp, or sctp.

        • TargetPort integer

          The port inside the container.

        • PublishedPort integer

          The port on the swarm hosts.

        • PublishMode string

          The mode in which port is published.


          • "ingress" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not.
          • "host" bypasses the routing mesh and publish the port directly on the swarm node where that service is running.

          Values are ingress or host. Default value is ingress.

      • VirtualIPs array[object]
        Hide VirtualIPs attributes Show VirtualIPs attributes object
        • NetworkID string
        • Addr string
    • UpdateStatus object

      The status of a service update.

      Hide UpdateStatus attributes Show UpdateStatus attributes object
      • State string

        Values are updating, paused, or completed.

      • StartedAt string(dateTime)
      • CompletedAt string(dateTime)
      • Message string
    • ServiceStatus object

      The status of the service's tasks. Provided only when requested as part of a ServiceList operation.

      Hide ServiceStatus attributes Show ServiceStatus attributes object
      • RunningTasks integer(uint64)

        The number of tasks for the service currently in the Running state.

      • DesiredTasks integer(uint64)

        The number of tasks for the service desired to be running. For replicated services, this is the replica count from the service spec. For global services, this is computed by taking count of all tasks for the service with a Desired State other than Shutdown.

      • CompletedTasks integer(uint64)

        The number of tasks for a job that are in the Completed state. This field must be cross-referenced with the service type, as the value of 0 may mean the service is not in a job mode, or it may mean the job-mode service has no tasks yet Completed.

    • JobStatus object

      The status of the service when it is in one of ReplicatedJob or GlobalJob modes. Absent on Replicated and Global mode services. The JobIteration is an ObjectVersion, but unlike the Service's version, does not need to be sent with an update request.

      Hide JobStatus attributes Show JobStatus attributes object
      • JobIteration object

        The version number of the object such as node, service, etc. This is needed to avoid conflicting writes. The client must send the version number along with the modified specification when updating these objects.

        This approach ensures safe concurrency and determinism in that the change on the object may not be applied if the version number has changed from the last read. In other words, if two update requests specify the same base version, only one of the requests can succeed. As a result, two separate update requests that happen at the same time will not unintentionally overwrite each other.

        Hide JobIteration attribute Show JobIteration attribute object
        • Index integer(uint64)
      • LastExecution string(dateTime)

        The last time, as observed by the server, that this job was started.

  • 404 application/json

    no such service

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 503 application/json

    node is not part of a swarm

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

GET /services/{id}
curl \
 --request GET 'http://api.example.com/v1.44/services/{id}'
Response examples (200)
{
  "ID": "9mnpnzenvg8p8tdbtq4wvbkcz",
  "Spec": {
    "Mode": {
      "Replicated": {
        "Replicas": 1
      }
    },
    "Name": "hopeful_cori",
    "EndpointSpec": {
      "Mode": "vip",
      "Ports": [
        {
          "Protocol": "tcp",
          "TargetPort": 6379,
          "PublishedPort": 30001
        }
      ]
    },
    "TaskTemplate": {
      "Placement": {},
      "Resources": {
        "Limits": {},
        "Reservations": {}
      },
      "ForceUpdate": 0,
      "ContainerSpec": {
        "Image": "redis"
      },
      "RestartPolicy": {
        "Condition": "any",
        "MaxAttempts": 0
      }
    },
    "UpdateConfig": {
      "Delay": 1000000000,
      "Monitor": 15000000000,
      "Parallelism": 1,
      "FailureAction": "pause",
      "MaxFailureRatio": 0.15
    },
    "RollbackConfig": {
      "Delay": 1000000000,
      "Monitor": 15000000000,
      "Parallelism": 1,
      "FailureAction": "pause",
      "MaxFailureRatio": 0.15
    }
  },
  "Version": {
    "Index": 19
  },
  "Endpoint": {
    "Spec": {
      "Mode": "vip",
      "Ports": [
        {
          "Protocol": "tcp",
          "TargetPort": 6379,
          "PublishedPort": 30001
        }
      ]
    },
    "Ports": [
      {
        "Protocol": "tcp",
        "TargetPort": 6379,
        "PublishedPort": 30001
      }
    ],
    "VirtualIPs": [
      {
        "Addr": "10.255.0.2/16",
        "NetworkID": "4qvuz4ko70xaltuqbt8956gd1"
      },
      {
        "Addr": "10.255.0.3/16",
        "NetworkID": "4qvuz4ko70xaltuqbt8956gd1"
      }
    ]
  },
  "CreatedAt": "2016-06-07T21:05:51.880065305Z",
  "UpdatedAt": "2016-06-07T21:07:29.962229872Z"
}
Response examples (200)
{
  "ID": "9mnpnzenvg8p8tdbtq4wvbkcz",
  "Spec": {
    "Mode": {
      "Replicated": {
        "Replicas": 1
      }
    },
    "Name": "hopeful_cori",
    "EndpointSpec": {
      "Mode": "vip",
      "Ports": [
        {
          "Protocol": "tcp",
          "TargetPort": 6379,
          "PublishedPort": 30001
        }
      ]
    },
    "TaskTemplate": {
      "Placement": {},
      "Resources": {
        "Limits": {},
        "Reservations": {}
      },
      "ForceUpdate": 0,
      "ContainerSpec": {
        "Image": "redis"
      },
      "RestartPolicy": {
        "Condition": "any",
        "MaxAttempts": 0
      }
    },
    "UpdateConfig": {
      "Delay": 1000000000,
      "Monitor": 15000000000,
      "Parallelism": 1,
      "FailureAction": "pause",
      "MaxFailureRatio": 0.15
    },
    "RollbackConfig": {
      "Delay": 1000000000,
      "Monitor": 15000000000,
      "Parallelism": 1,
      "FailureAction": "pause",
      "MaxFailureRatio": 0.15
    }
  },
  "Version": {
    "Index": 19
  },
  "Endpoint": {
    "Spec": {
      "Mode": "vip",
      "Ports": [
        {
          "Protocol": "tcp",
          "TargetPort": 6379,
          "PublishedPort": 30001
        }
      ]
    },
    "Ports": [
      {
        "Protocol": "tcp",
        "TargetPort": 6379,
        "PublishedPort": 30001
      }
    ],
    "VirtualIPs": [
      {
        "Addr": "10.255.0.2/16",
        "NetworkID": "4qvuz4ko70xaltuqbt8956gd1"
      },
      {
        "Addr": "10.255.0.3/16",
        "NetworkID": "4qvuz4ko70xaltuqbt8956gd1"
      }
    ]
  },
  "CreatedAt": "2016-06-07T21:05:51.880065305Z",
  "UpdatedAt": "2016-06-07T21:07:29.962229872Z"
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}
Response examples (503)
{
  "message": "Something went wrong."
}