Skip to main content

cassandra_clusters_commands

Creates, updates, deletes, gets or lists a cassandra_clusters_commands resource.

Overview

Namecassandra_clusters_commands
TypeResource
Idazure.cosmos_db.cassandra_clusters_commands

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the list of shell commands.

NameDatatypeDescription
argumentsobjectThe arguments for the command to be run
cassandraStopStartbooleanIf true, stops cassandra before executing the command and then start it again
commandstringThe command which should be run
commandIdstringThe unique id of command
hoststringIP address of the cassandra host to run the command on
isAdminbooleanWhether command has admin privileges
outputFilestringThe name of the file where the result is written.
readWritebooleanIf true, allows the command to write to the cassandra directory, otherwise read-only.
resultstringResult output of the command.
statusstringStatus of the command.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectsubscriptionId, resourceGroupName, clusterNameList all commands currently running on ring info

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
clusterNamestringManaged Cassandra cluster name.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

List all commands currently running on ring info

SELECT
arguments,
cassandraStopStart,
command,
commandId,
host,
isAdmin,
outputFile,
readWrite,
result,
status
FROM azure.cosmos_db.cassandra_clusters_commands
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND clusterName = '{{ clusterName }}' -- required
;