All Products
Search
Document Center

ENS:CopySnapshot

Last Updated:Mar 12, 2024

Copies a snapshot.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SnapshotIdstringYes

The ID of the source snapshot.

sp-bp1c0doj0taqyzzl****
DestinationRegionIdsarrayYes

The destination nodes.

stringYes

The destination nodes.

["cn-hangzhou-26","cn-hangzhou-27"]
DestinationSnapshotNamestringNo

The name of the snapshot. The name must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).

testSnapshotName
DestinationSnapshotDescriptionstringNo

The description of the snapshot. The description must be 2 to 256 characters in length and cannot start with http:// or https://.

testDescription

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

EA3758E0-8899-17D3-9526-5F62CF33A586
AllocationIdobject []

The list of created snapshots.

EnsRegionIdstring

The ID of the node.

cn-chengdu-telecom-4
InstanceIdarray

An array of instance IDs.

string

An array of instance IDs.

["e426409223"]
BizStatusCodestring

Success status code.

  • PartSuccess: partially succeeded.
  • AllSuccess: all succeeded.
AllSuccess
UnAllocationIdobject []

The list of nodes that are not created.

EnsRegionIdstring

The ID of the node.

cn-chengdu-26

Examples

Sample success responses

JSONformat

{
  "RequestId": "EA3758E0-8899-17D3-9526-5F62CF33A586",
  "AllocationId": [
    {
      "EnsRegionId": "cn-chengdu-telecom-4",
      "InstanceId": [
        "[\"e426409223\"]"
      ]
    }
  ],
  "BizStatusCode": "AllSuccess",
  "UnAllocationId": [
    {
      "EnsRegionId": "cn-chengdu-26"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400OrderFailed-
400SaleControl.VerificationFailedYou did not pass the salecontrol verification.Please contact the product.Failed to pass the sales constraint verification when you create the resource.
400Invalid%sThe specified parameter %s is invalid.-
400ENS_SERVICE_ARREARAGE-
400NoPermissionPermission denied.-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-24The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400