All Products
Search
Document Center

Drive and Photo Service:GetDrive

Last Updated:May 26, 2026

Returns information about a drive.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/drive/get HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

Yes

body

object

No

The request body.

drive_id

string

Yes

The ID of the drive.

1

Response elements

Element

Type

Description

Example

Drive

A drive object.

Examples

Success response

JSON format

{
  "domain_id": "bj1",
  "drive_id": "1",
  "drive_name": "drv1",
  "description": "vipdrive",
  "owner": "c9b7a5aa04d14ae3867fdc886fa01da4",
  "owner_type": "user",
  "drive_type": "normal",
  "status": "enabled",
  "used_size": 20480,
  "total_size": 204800,
  "created_at": "2019-08-20T06:51:27.292Z",
  "creator": "c9b7a5aa04d14ae3867fdc886fa01da4"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.