Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding description of unlink action to Replication Link Swagger #8720

Merged
merged 1 commit into from
Apr 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"role": "Secondary",
"partnerRole": "Primary",
"replicationMode": "ASYNC",
"startTime": "2017-02-10T01:37:49.153",
"startTime": "2017-02-10T01:37:49.153Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"role": "Secondary",
"partnerRole": "Primary",
"replicationMode": "ASYNC",
"startTime": "2017-02-10T01:44:27.117",
"startTime": "2017-02-10T01:44:27.117Z",
"percentComplete": 100,
"replicationState": "CATCH_UP",
"isTerminationAllowed": true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "sqlcrudtest-8931",
"serverName": "sqlcrudtest-2137",
"databaseName": "testdb",
"linkId": "f0550bf5-07ce-4270-8e4b-71737975973a",
"api-version": "2014-04-01",
"parameters": {
"forcedTermination": true
}
},
"responses": {
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,66 @@
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink": {
"post": {
"tags": [
"DatabaseReplicationLinks"
],
"operationId": "ReplicationLinks_Unlink",
"description": "Deletes a database replication link in forced or friendly way.",
"x-ms-examples": {
"Delete replication link": {
"$ref": "./examples/ReplicationLinkUnlink.json"
}
},
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"name": "databaseName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the database that has the replication link to be failed over."
},
{
"name": "linkId",
"in": "path",
"required": true,
"type": "string",
"description": "The ID of the replication link to be failed over."
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UnlinkParameters"
},
"description": "The required parameters for unlinking replication link."
}
],
"responses": {
"204": {
"description": "No Content"
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks": {
"get": {
"tags": [
Expand Down Expand Up @@ -387,6 +447,15 @@
}
},
"description": "Represents the response to a List database replication link request."
},
"UnlinkParameters": {
"properties": {
"forcedTermination": {
"type": "boolean",
"description": "Determines whether link will be terminated in a forced or a friendly way."
}
},
"description": "Represents the parameters for Unlink Replication Link request."
}
},
"parameters": {
Expand Down