Class: AWS.EBS
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.EBS
- Identifier:
- ebs
- API Version:
- 2019-11-02
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
You can use the Amazon Elastic Block Store (Amazon EBS) direct APIs to create Amazon EBS snapshots, write data directly to your snapshots, read data on your snapshots, and identify the differences or changes between two snapshots. If you’re an independent software vendor (ISV) who offers backup services for Amazon EBS, the EBS direct APIs make it more efficient and cost-effective to track incremental changes on your Amazon EBS volumes through snapshots. This can be done without having to create new volumes from snapshots, and then use Amazon Elastic Compute Cloud (Amazon EC2) instances to compare the differences.
You can create incremental snapshots directly from data on-premises into volumes and the cloud to use for quick disaster recovery. With the ability to write and read snapshots, you can write your on-premises data to an snapshot during a disaster. Then after recovery, you can restore it back to Amazon Web Services or on-premises from the snapshot. You no longer need to build and maintain complex mechanisms to copy data to and from Amazon EBS.
This API reference provides detailed information about the actions, data types, parameters, and errors of the EBS direct APIs. For more information about the elements that make up the EBS direct APIs, and examples of how to use them effectively, see Accessing the Contents of an Amazon EBS Snapshot in the Amazon Elastic Compute Cloud User Guide. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas for the EBS direct APIs, see Amazon Elastic Block Store Endpoints and Quotas in the Amazon Web Services General Reference.
Sending a Request Using EBS
var ebs = new AWS.EBS();
ebs.completeSnapshot(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the EBS object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var ebs = new AWS.EBS({apiVersion: '2019-11-02'});
You can also set the API version globally in AWS.config.apiVersions
using
the ebs service identifier:
AWS.config.apiVersions = {
ebs: '2019-11-02',
// other service API versions
};
var ebs = new AWS.EBS();
Constructor Summary collapse
-
new AWS.EBS(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
completeSnapshot(params = {}, callback) ⇒ AWS.Request
Seals and completes the snapshot after all of the required blocks of data have been written to it.
-
getSnapshotBlock(params = {}, callback) ⇒ AWS.Request
Returns the data in a block in an Amazon Elastic Block Store snapshot.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses.- listChangedBlocks(params = {}, callback) ⇒ AWS.Request
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses.- listSnapshotBlocks(params = {}, callback) ⇒ AWS.Request
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses.- putSnapshotBlock(params = {}, callback) ⇒ AWS.Request
Writes a block of data to a snapshot.
- startSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a new Amazon EBS snapshot.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.EBS(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
completeSnapshot(params = {}, callback) ⇒ AWS.Request
Seals and completes the snapshot after all of the required blocks of data have been written to it. Completing the snapshot changes the status to
completed
. You cannot write new blocks to a snapshot after it has been completed.Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.getSnapshotBlock(params = {}, callback) ⇒ AWS.Request
Returns the data in a block in an Amazon Elastic Block Store snapshot.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.listChangedBlocks(params = {}, callback) ⇒ AWS.Request
Returns information about the blocks that are different between two Amazon Elastic Block Store snapshots of the same volume/snapshot lineage.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.listSnapshotBlocks(params = {}, callback) ⇒ AWS.Request
Returns information about the blocks in an Amazon Elastic Block Store snapshot.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.putSnapshotBlock(params = {}, callback) ⇒ AWS.Request
Writes a block of data to a snapshot. If the specified block contains data, the existing data is overwritten. The target snapshot must be in the
pending
state.Data written to a snapshot must be aligned with 512-KiB sectors.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide.startSnapshot(params = {}, callback) ⇒ AWS.Request
Creates a new Amazon EBS snapshot. The new snapshot enters the
pending
state after the request completes.After creating the snapshot, use PutSnapshotBlock to write blocks of data to the snapshot.
Note: You should always retry requests that receive server (5xx
) error responses, andThrottlingException
andRequestThrottledException
client error responses. For more information see Error retries in the Amazon Elastic Compute Cloud User Guide. - listChangedBlocks(params = {}, callback) ⇒ AWS.Request