Help Center/ ModelArts/ API Reference/ Lite Server Management/ Unmounting a Disk from a Lite Server
Updated on 2026-01-30 GMT+08:00

Unmounting a Disk from a Lite Server

Function

This API is used to unmount a disk from a Lite Server. It is used when you need to release storage resources or reallocate disks. Before using this API, ensure that the Lite Server has been created and is running or stopped, you have the permission to unmount disks, and the specified disk has been mounted to the server. After the unmounting, the disk is unmounted from the Lite Server, and you can mount the disk to another server or perform other operations. If the Lite Server does not exist, the specified disk is not mounted to the server, or you do not have the required permission, the API returns an error message.

Constraints

Only for A3.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.

URI

DELETE /v1/{project_id}/dev-servers/{id}/detachvolume/{volume_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition: Project ID. For details, see Obtaining a Project ID and Name.

Constraints: The value can contain 1 to 64 characters. Letters, digits, and hyphens (-) are allowed.

Range: N/A

Default Value: N/A

id

Yes

String

Definition: Lite Server instance ID.

Constraints: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$

Range: N/A

Default Value: N/A

volume_id

Yes

String

Definition: ID of the disk to be detached

Constraints: [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}

Range: N/A

Default Value: N/A

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

operation_id

String

Definition: Operation ID.

Range: [8, 36]

operation_status

String

Definition: Operation status.

Range: [8, 36]

operation_type

String

Definition: Operation type.

Range: [8, 36]

operation_error

ServerOperationError object

Definition: Error message.

Table 3 ServerOperationError

Parameter

Type

Description

code

String

Definition: Error code.

Range: 8 to 36 characters

message

String

Definition: Error message.

Range: 2 to 512 characters

Example Requests

None

Example Responses

Status code: 200

{
    "operation_id": "UUID",
    "operation_status": "running",
    "operation_type": "node_detach_volume",
}

Status Codes

Status Code

Description

200

Error Codes

See Error Codes.