Class ServiceDetails
Holds the details describing a running Docker swarm service from the service list or inspection REST APIs.
note
This type matches the Docker API v1.35.
Namespace: Neon.Docker
Assembly: Neon.Docker.dll
Syntax
public class ServiceDetails
Properties
CreatedAt
Time when the service was created (as a string).
Declaration
public string CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAtUtc
Returns the time (UTC) the service was created (as a DateTime).
Declaration
public DateTime CreatedAtUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
Endpoint
Describes the service's current endpoint state.
Declaration
public ServiceEndpoint Endpoint { get; set; }
Property Value
Type | Description |
---|---|
ServiceEndpoint |
ID
The service ID.
Declaration
public string ID { get; set; }
Property Value
Type | Description |
---|---|
string |
PreviousSpec
Optionally describes the service's state before the last update. This is the state the service will revert to when it's rolled back.
Declaration
public ServiceSpec PreviousSpec { get; set; }
Property Value
Type | Description |
---|---|
ServiceSpec |
Spec
The service specification.
Declaration
public ServiceSpec Spec { get; set; }
Property Value
Type | Description |
---|---|
ServiceSpec |
UpdateStatus
Describes the service update status.
Declaration
public ServiceUpdateStatus UpdateStatus { get; set; }
Property Value
Type | Description |
---|---|
ServiceUpdateStatus |
UpdatedAt
Time when the service was last created or updated (as a string).
Declaration
public string UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
string |
UpdatedAtUtc
Returns the time (UTC) the service was last created or updated (as a DateTime).
Declaration
public DateTime UpdatedAtUtc { get; }
Property Value
Type | Description |
---|---|
DateTime |
Version
Service update version information.
Declaration
public ServiceVersion Version { get; set; }
Property Value
Type | Description |
---|---|
ServiceVersion |
Methods
GetEnv(string)
Returns the value of an environment variable for the current service deployment.
Declaration
public string GetEnv(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | The variable name (case insensitive). |
Returns
Type | Description |
---|---|
string | The value of the variable or |
Normalize()
Recursively ensures ensures that any null class or list related properties are replaced with instances with default values or empty lists.
Declaration
public void Normalize()