---
title: "Update a secondary"
method: PATCH
path: "/diskgroups/{DgId}/rvgs/{RvgId}/secondaries/{SecondaryId}"
tags: ["ReplicatedVolumeGroups"]
---

# Update a secondary

`PATCH /diskgroups/{DgId}/rvgs/{RvgId}/secondaries/{SecondaryId}`

## Request

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

Perform operations on a secondary

## Path parameters

- `DgId` string, required
- `RvgId` string, required
- `SecondaryId` string, required

## Query parameters

- `nodename` string

## Request body

- RvgSecondaryV2v0
  - `SecondaryHost` string, uri: Secondary site host name or ip address
  - `SecondaryDgId` string, uri: Secondary site diskgroup identifier
  - `RlinkFromPrimary` string: Replication link from primary
  - `RlinkToPrimary` string: Replication link to primary
  - `ConfiguredMode` 'disable' | 'override': Configured replication mode. Indicates whether replication should operate in synchronous or asynchronous mode ("disable" indicates "off" attribute value in case of PATCH)
  - `CurrentMode` string: Current replication mode
  - `ReplicationStatus` string: Indicates whether Primary data is being replicated to the Secondary (use "start", "stop", "pause", "resume" or "fbsync" keywords to start, stop, pause, resume replication or perform fbsync operation respectively in case of PATCH)
  - `DataStatus` string: Indicates whether the data on this Secondary is consistent or inconsistent with respect to the data on the Primary
  - `TimestampInfo` string: Timestamp information of the secondary RLINK
  - `LoggingTo` string: Displays whether updates to the Secondary are tracked using SRL or DCM
  - `SrlProtection` 'autodcm' | 'dcm' | 'fail' | 'disable' | 'override': SRL protection setting. Indicates whether log protection is enabled for the RLINK
  - `LatencyProtection` 'fail' | 'disable' | 'override': Latency protection setting. Indicates whether latency protection is enabled for the RLINK
  - `LatencyHighMark` string: Sets the maximum number of outstanding requests when latency protection is enabled.
  - `LatencyLowMark` string: After throttling is enabled, sets the level to which the number of outstanding requests must drop before throttling is disabled.
  - `BandwidthLimit` string: Bandwidth limit setting
  - `PacketSize` integer: Number of bytes in a packet that is sent to a secondary RLINK
  - `Protocol` 'TCP' | 'UDP': Indicates the network transport protocol that is used by RLINKs for communicating between hosts
  - `DataVolumes` object[]: Data volumes
    - `VolId` string: Link of Data volume or vset being replicated

## Response `200`

The request has succeeded.

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

## Other responses

- `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)
