Restarting a DDM Instance

Function

This API is used to restart a specified DDM instance.

URI

POST /v1/{project_id}/instances/{instance_id}/action

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Project ID of a tenant in a region

instance_id

Yes

DDM instance ID

Request

Request parameters

Table 2 Parameter description

Parameter

Mandatory

Type

Description

restart

No

Object

Parameters for restarting a DDM instance

Table 3 Description of parameter restart

Parameter

Mandatory

Type

Description

type

No

String

Restart type, which can be soft or hard.

  • soft: Only the process is restarted.
  • hard: The VM is forcibly restarted.

Response

Response parameters

None

Example

  • Example request
    {
        "restart": {
            "type": "soft"
        }
    }
  • Example response
    {
    }

For failure responses, see Abnormal Request Results.

Status Code

For details, see Status Codes.