---
title: "Perform rebalance operation"
method: POST
path: "/diskgroups/{DiskgroupId}/rebalance"
tags: ["Diskgroups"]
---

# Perform rebalance operation

`POST /diskgroups/{DiskgroupId}/rebalance`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/diskgroups/{DiskgroupId}/rebalance`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/diskgroups/:DiskgroupId/rebalance/post.ts> (a function with typed inputs; its response is checked against the schema)

Perform rebalance operation on the vset list

## Path parameters

- `DiskgroupId` string, required

## Query parameters

- `nodename` string

## Request body

- object
  - `VsetList` object[], required: Array of vset names on which rebalance operation is to be performed
    - `VsetName` string: Name of the vset
  - `AllocationAttributes` object
    - `TargetDiskList` object[]: Array of disk medianames of target disks on which data movement to be done
      - `TargetDiskName` string: Target disk medianame
    - `Mediatype` 'ssd' | 'hdd': Mediatype of disk
    - `Site` string: Specific site assosciated with disk like site:ssd_pool etc.

## Response `200`

The request has succeeded.

- Response
  - `detail` string: Error details.
  - `status` integer: http code

## Other responses

- `202`: The request has been initiated.
- `400`: Bad request
- `401`: The requested operation requires authentication.
- `403`: Forbidden
- `404`: Object that the endpoint is working on is not found.

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
