API Actions: FinalizeAllReplications
Supported in product version 12.44 and above. Applicable only if the replication was initiated with replication method ContinuousWithSemiAutoSeeding.
Request Syntax
XML
POST /api/FinalizeAllReplications 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
<FinalizeAllReplicationsRequest>
<AuthenticationType>SqlServerAuthentication</AuthenticationType>
<Server>your-server</Server>
<Username>your-username</Username>
<Password>your_password</Password>
<DisableReplicaCt>false</DisableReplicaCt>
<!--
<DisableReplicaCdc>false</DisableReplicaCdc>
-->
</FinalizeAllReplicationsRequest>
JSON
POST /api/FinalizeAllReplications 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
{
"authenticationType": SqlServerAuthentication,
"server": your-server,
"username": your_username,
"password": Your_password,
"disableReplicaCt": false //"disableReplicaCdc": false
}
Request Parameters
| Parameter | Description | Required |
|---|---|---|
| AuthenticationType& | SqlServerAuthentication or ActiveDirectoryAuthentication | Yes |
| Type: String Default: None Valid value: SqlServerAuthentication/ ActiveDirectoryAuthentication |
||
| Server | The End Point of the destination/replica server | Yes |
| Type: String Default: None |
||
| Username | The login name to the destination/replica server | Yes |
| Type: String Default: None |
||
| Password | Password | Yes |
| Type: String Default: None |
||
| DisableReplicaCt | Applicable only if the replication was activated with the default change tracking type ChangeTracking If set to TRUE, the finalize process will attempt to disable Change Tracking on the restored database (backup of the source database is taken after change tracking is activated) |
Yes |
| Type: String Default: None Valid value: true/ false |
||
| DisableReplicaCdc | Applicable only if the replication was activated with change tracking type CDC. If set to TRUE, the finalize process will attempt to disable CDC on the restored database (backup of the source database is taken after CDC is activated) |
Yes |
| Type: String Default: None Valid value: true/ false |
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>1</RequestId>
<Errors>
<Error> {AuthenticationType}: AuthenticationType is required. </Error>
</Errors>
</ErrorResponse>
JSON
HTTP/1.1 400
status: 400
{
"errors": [
"{AuthenticationType}: AuthenticationType is required."
],
"requestId": 1
}
XML
HTTP/1.1 400
status: 400
<?xml version="1.0" encoding="utf-8"?>
<ErrorResponse>
<RequestId>2</RequestId>
<Errors>
<Error> {AuthenticationType}: Valid values for AuthenticationType=[SqlServerAuthentication,ActiveDirectoryAuthentication]. Found value = ActiveDirectory1 </Error>
</Errors>
</ErrorResponse>
JSON
HTTP/1.1 400
status: 400
{
"errors": [
"{AuthenticationType}: Valid values for AuthenticationType=[SqlServer,ActiveDirectory]. Found value = ActiveDirectory1"
],
"requestId": 2
}
