Create a snapshot for a volume
POST /account/{accountId}/providers/cloudmanager_cbs/api/v1/working-environment/{workingEnvironmentId}/volume/{volumeId}/snapshot
Creates a snapshot for a particular volume. The API initiates the creation of a snapshot of the volume-based on the snapshot policy assigned. The system ID, volume ID, and snapshot ID are passed as parameters for the REST API call. The snapshot name and label are used as headers.
Token usage: NetApp Console user token.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
accountId |
string |
path |
True |
Account ID |
workingEnvironmentId |
string |
path |
True |
System ID |
volumeId |
string |
path |
True |
Volume ID |
authorization |
string |
header |
True |
User token |
X-Agent-Id |
string |
header |
True |
Request identifier |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
name |
string |
False |
|
label |
string |
False |
Example request
{
"name": "string",
"label": "string"
}
Response
Status: 202, Default response
| Name | Type | Required | Description |
|---|---|---|---|
job-id |
string |
False |
Example response
{
"job-id": "string"
}
Definitions
See Definitions
body
| Name | Type | Required | Description |
|---|---|---|---|
name |
string |
False |
|
label |
string |
False |