Update a shadow copy
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
PATCH /protocols/cifs/shadow-copies/{client_uuid}
Introduced In: 9.11
Specify list Files to be added as a part of Shadowcopy creation
Learn more
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
restore |
boolean |
query |
False |
Indicates whether to restore a directory |
Request Body
Name | Type | Description |
---|---|---|
_links |
||
client_uuid |
string |
The universally-unique identifier of the client's shadow copy. |
destination_dir |
string |
The path of the destination directory. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the volume. |
files |
array[string] |
The list of files to shadow copy in the share. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the share. |
shadowcopy_set |
||
share |
||
source_dir |
string |
The path of the source directory. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the volume. |
svm |
SVM, applies only to SVM-scoped objects. |
|
uuid |
string |
The universally-unique identifier of the storage's shadow copy. |
volume |
The name of the volume where the source and destination directories reside. |
|
with_content |
boolean |
Specifies what needs to be restored. False specifies the directory only. True indicates the directory and its content. |
Example request
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"client_uuid": "abc13450-1f19-40ba-9b82-ebf277517e7e",
"destination_dir": "/dir2",
"files": [
"/vhd1",
"/vhd2"
],
"shadowcopy_set": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"uuid": "5f4e19f3-5e2d-11ec-8766-005056a7c134"
},
"share": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "sh1"
},
"source_dir": "/dir1",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"uuid": "fef32805-1f19-40ba-9b82-ebf277517e7e",
"volume": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "volume1",
"uuid": "028baa66-41bd-11e9-81d5-00a0986138f7"
}
}
Response
Status: 200, Ok
Name | Type | Description |
---|---|---|
storage_shadowcopy_set_uuid |
string |
The universally-unique identifier of the storage's shadow copy set. |
storage_shadowcopy_uuid |
string |
The universally-unique identifier of the storage's shadow copy. |
Example response
{
"storage_shadowcopy_set_uuid": "f8328660-00e6-11e6-80d9-005056bd65a9",
"storage_shadowcopy_uuid": "fef32805-1f19-40ba-9b82-ebf277517e7e"
}
Error
Status: Default, Error
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
self_link
Name | Type | Description |
---|---|---|
self |
shadowcopy_set
Name | Type | Description |
---|---|---|
_links |
||
uuid |
string |
share
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
Share name |
svm
SVM, applies only to SVM-scoped objects.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the SVM. This field cannot be specified in a PATCH method. |
uuid |
string |
The unique identifier of the SVM. This field cannot be specified in a PATCH method. |
volume
The name of the volume where the source and destination directories reside.
Name | Type | Description |
---|---|---|
_links |
||
name |
string |
The name of the volume. This field cannot be specified in a POST or PATCH method. |
uuid |
string |
Unique identifier for the volume. This corresponds to the instance-uuid that is exposed in the CLI and ONTAPI. It does not change due to a volume move.
|
shadowcopy
Name | Type | Description |
---|---|---|
_links |
||
client_uuid |
string |
The universally-unique identifier of the client's shadow copy. |
destination_dir |
string |
The path of the destination directory. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the volume. |
files |
array[string] |
The list of files to shadow copy in the share. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the share. |
shadowcopy_set |
||
share |
||
source_dir |
string |
The path of the source directory. The path is in UTF8 and uses forward slash as a directory separator. The path is relative to the root of the volume. |
svm |
SVM, applies only to SVM-scoped objects. |
|
uuid |
string |
The universally-unique identifier of the storage's shadow copy. |
volume |
The name of the volume where the source and destination directories reside. |
|
with_content |
boolean |
Specifies what needs to be restored. False specifies the directory only. True indicates the directory and its content. |
error_arguments
Name | Type | Description |
---|---|---|
code |
string |
Argument code |
message |
string |
Message argument |
returned_error
Name | Type | Description |
---|---|---|
arguments |
array[error_arguments] |
Message arguments |
code |
string |
Error code |
message |
string |
Error message |
target |
string |
The target parameter that caused the error. |