Clones a snapshot of a file or folder for a Basic Edition instance.
Operation description
Request description
PolarFsInstanceIdis required. It specifies the PolarDB instance for the operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ClonePolarFsBasicSnapshot |
none |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PolarFsInstanceId |
string |
No |
The ID of the Polarlakebase instance. |
pfs-test***** |
| DBClusterId |
string |
No |
The ID of the database cluster. |
pc-************** |
| SourcePath |
string |
No |
The source path of the file resource. This parameter is empty if the type is local. |
/test |
| TargetPath |
string |
No |
The destination path. |
/testclone |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
CED079B7-A408-41A1-BFF1-EC608E****** |
| SourcePath |
string |
The source path of the file resource. |
/test |
| TargetPath |
string |
The destination path. |
/testclone |
| DBClusterId |
string |
The cluster ID. |
pc-bp150t3**** |
| PolarFsInstanceId |
string |
The ID of the Polarlakebase instance. |
pfs-2ze0i7***** |
Examples
Success response
JSON format
{
"RequestId": "CED079B7-A408-41A1-BFF1-EC608E******",
"SourcePath": "/test",
"TargetPath": "/testclone",
"DBClusterId": "pc-bp150t3****",
"PolarFsInstanceId": "pfs-2ze0i7*****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.