Skip to content

Commit

Permalink
add CassandraClusters repair and nodeFetchStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
rsharm7 committed Feb 27, 2023
1 parent 4fb10df commit 0f17db1
Showing 1 changed file with 89 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,95 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/repair": {
"post": {
"operationId": "CassandraClusters_RequestRepair",
"description": "Request that repair begin on this cluster as soon as possible.",
"x-ms-examples": {
"CosmosDBManagedCassandraRepair": {
"$ref": "./examples/CosmosDBManagedCassandraRepair.json"
}
},
"x-ms-long-running-operation": true,
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/clusterNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/RepairPostBody"
},
"description": "Specification of what keyspaces and tables to run repair on."
}
],
"responses": {
"200": {
"description": "Success. The repair operation will begin as soon as possible."
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/fetchNodeStatus": {
"post": {
"operationId": "CassandraClusters_FetchNodeStatus",
"description": "Request the status of all nodes in the cluster (as returned by 'nodetool status').",
"x-ms-long-running-operation": true,
"x-ms-examples": {
"CosmosDBManagedCassandraClusterFetchNodeStatus": {
"$ref": "./examples/CosmosDBManagedCassandraClusterFetchNodeStatus.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/clusterNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"202": {
"description": "Accepted. The node status will be returned asynchronously."
},
"200": {
"description": "Successfully fetched the status of all nodes in the cluster.",
"schema": {
"$ref": "#/definitions/ClusterNodeStatus"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "cosmos-db.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups": {
"get": {
"operationId": "CassandraClusters_ListBackups",
Expand Down

0 comments on commit 0f17db1

Please sign in to comment.