psm analytics restart

Use this command to restart a service created with Oracle Analytics Cloud - Classic.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm analytics restart -s|--service-name service-name 
  -c|--config-payload path-to-json-payload
    [-of|--output-format json|html|short]

Parameters

Parameter Description

-s|--service-name service-name

Specifies the name of the service.

-c|—config-payload

Path to the JSON file that contains the configuration parameters for accessing the service.

-of|--output-format json|html|short

(Optional) Specifies the output format of the command’s response: JSON, HTML, or SHORT.

The default output format is the one you specified when using the psm setup command to configure the psm Command Line Interface.

JSON Payload

The JSON payload has the following syntax:

{
    "force":"",
    "allServiceHosts":"",
    "components":{
        "analytics":{
            "hosts":""
        }
    }
}
Parameter Description

force

(Optional) Set to True to force the operation, even if blocking errors are generated.

allServiceHosts

(Optional) set to True to apply the command to all host names associated with the service name. This parameter can be the only parameter in the payload.

components

Container for Oracle Analytics Cloud - Classic components and host information.

analytics

The service type.

hosts

The host name of the service. The host name is the fully qualified name of the Virtual Machine. For example, in a service named analytics–aas, the host name takes the format analytics–aas-bi-1.

Examples

The following example restarts the analytics–aas service.

$ psm Analytics restart -s analytics–aas -c /tmp/restart-service-payload.json

The payload for this command can be one of the following:

{
    "components":{
        "analytics":{
            "hosts":"[analytics–aas-bi-1]"
        }
    }
}

or

{
    "allServiceHosts":"true"
}