The Service namespace provides commands to manage a single/set of vCenter Server services.
List of commands:
dcli com vmware vcenter services service start
Description
Starts a service
Options
Option Name | Type | Required | Description |
---|---|---|---|
service |
string | Yes | identifier of the service to start The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service. |
Example
dcli com vmware vcenter services service start --service testId
dcli com vmware vcenter services service stop
Description
Stops a service
Options
Option Name | Type | Required | Description |
---|---|---|---|
service |
string | Yes | identifier of the service to stop The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service. |
Example
dcli com vmware vcenter services service stop --service testId
dcli com vmware vcenter services service restart
Description
Restarts a service
Options
Option Name | Type | Required | Description |
---|---|---|---|
service |
string | Yes | identifier of the service to restart The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service. |
Example
dcli com vmware vcenter services service restart --service testId
dcli com vmware vcenter services service get
Description
Returns the state of a service.
Options
Option Name | Type | Required | Description |
---|---|---|---|
service |
string | Yes | identifier of the service whose state is being queried. The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service. |
Example
dcli com vmware vcenter services service get --service testId
dcli com vmware vcenter services service update
Description
Updates the properties of a service.
Options
Option Name | Type | Required | Description |
---|---|---|---|
service |
string | Yes | identifier of the service whose properties are being updated. The parameter must be an identifier for the resource type: com.vmware.vcenter.services.Service. |
startup‑type |
string | No | Startup Type If unspecified, leaves value unchanged. Valid values are: {MANUAL, AUTOMATIC, DISABLED} |
Example
dcli com vmware vcenter services service update --service testId
dcli com vmware vcenter services service listdetails
Description
Lists details of vCenter services.
Example
dcli com vmware vcenter services service listdetails