Navigation

Get all Disk Partitions

Note

Groups and projects are synonymous terms. Your {GROUP-ID} is the same as your project id. For existing groups, your group/project id remains the same. This page uses the more familiar term group when referring to descriptions. The endpoint remains as stated in the document.

Base URL: https://cloud.mongodb.com/

Resource

GET /api/public/v1.0/groups/{GROUP-ID}/hosts/{HOST-ID}/disks

Retrieves all disk partitions on the specified host.

Request Path Parameters

Parameter Required/Optional Description
GROUP-ID Required ID of the group where the disk partition resides.
HOST-ID Required ID of the host where the disk partition resides.

Request Query Parameters

This endpoint does not use HTTP request query parameters.

Request Body Parameters

This endpoint does not use HTTP request body parameters.

Response

Contains one document for each disk partition on the specified host.

Name Type Description
partitionName string The name of the disk partition.
links array Links to related subresources. All links arrays in responses contain at least one link called self.

Example Request

curl -i -u "username:apiKey" --digest "https://cloud.mongodb.com/api/public/v1.0/groups/533c5895b910306f21033a/hosts/814e70da8167883b9939608a12a/disks"

Example Response

HTTP/1.1 200 OK

{
  "results" : [ {
    "links" : [ ... ],
    "partitionName" : "xvdf"
  }, ... ],
  "links" : [ ... ],
  "totalCount" : 4
}