API Actions: ReseedTable

API Actions: ReseedTable

Supported in product version 12.50 and above
Call this API method to initiate/cancel a table reseeding. To check on the status of the reseeding process, call /api/ReseedTableStatus.

Request Syntax:

XML

POST /api/ReseedTable HTTP/1.1
Host: use.your.host.name:82
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Content-Type: application/xml
X-Amz-Date: 20171115T202130Z
Authorization: AWS4-HMAC-SHA256 Credential= UQOPWUVNBALABCABCABC/20171115/us-east-1/cloudbasic/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=995374189c189e8e68ed3de82c1764ca11971711fb5179eeab2b19edd883dd74
 
<ReseedTableRequest>
	<ReplicationId>998acaec-9211-4dac-b90b-196fd1d17993</ReplicationId>
	<TableName>[dbo].[TableName1]</TableName>
	<Action>Initiate</Action>
</ReseedTableRequest>

JSON

POST /api/ReseedTable HTTP/1.1
Host: use.your.host.name:82
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Content-Type: application/json
X-Amz-Date: 20171115T202130Z
Authorization: AWS4-HMAC-SHA256 Credential= UQOPWUVNBALABCABCABC/20171115/us-east-1/cloudbasic/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-content-sha256;x-amz-date, Signature=995374189c189e8e68ed3de82c1764ca11971711fb5179eeab2b19edd883dd74
 
{
	"replicationId": "998acaec-9211-4dac-b90b-196fd1d17993",
	"TableName": "[dbo].[TableName1]",
	"Action": "Initiate"
}

 

Request Parameters

Parameter Description Required
ReplicationId The GUID value that uniquely identifies a Replication. Yes
Type: String
Default: None
TableName The name of the table to be reseeded. Yes
Type: String
Default: None
Action The reseeding/cancellation of reseeding action to be performed. Yes
Type: String
Default: None
Valid values: Initiate/ Cancel

 

Request Headers

This implementation uses only request headers that are common to all operations. For more information please see the section Common Request Headers

 

Response Syntax:

XML

HTTP/1.1 200
status: 200

JSON

HTTP/1.1 200
status: 200

Response Parameters

None

 

Error Response Syntax:

XML

HTTP/1.1 400
status: 400

<?xml version="1.0" encoding="utf-8"?>
<ErrorResponse> 
	<RequestId>26</RequestId> 
	<Errors> 
		<Error> {Action}: Valid values for Action=[Initiate,Cancel]. Found value = Initiated </Error> 
	</Errors> 
</ErrorResponse>

JSON

HTTP/1.1 400
status: 400

{
    "errors": [
        "{Action}: Valid values for Action=[Initiate,Cancel]. Found value = Initiated."
    ],
    "requestId": "26"
}