ArmCosmosDBModelFactory.CassandraClusterCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CassandraClusterCommand.
public static Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommand CassandraClusterCommand (string command = default, string commandId = default, BinaryData arguments = default, string host = default, bool? isAdmin = default, bool? shouldStopCassandraBeforeStart = default, bool? isReadWrite = default, string result = default, Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommandStatus? status = default, string outputFile = default);
static member CassandraClusterCommand : string * string * BinaryData * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommandStatus> * string -> Azure.ResourceManager.CosmosDB.Models.CassandraClusterCommand
Public Shared Function CassandraClusterCommand (Optional command As String = Nothing, Optional commandId As String = Nothing, Optional arguments As BinaryData = Nothing, Optional host As String = Nothing, Optional isAdmin As Nullable(Of Boolean) = Nothing, Optional shouldStopCassandraBeforeStart As Nullable(Of Boolean) = Nothing, Optional isReadWrite As Nullable(Of Boolean) = Nothing, Optional result As String = Nothing, Optional status As Nullable(Of CassandraClusterCommandStatus) = Nothing, Optional outputFile As String = Nothing) As CassandraClusterCommand
Parameters
- command
- String
The command which should be run.
- commandId
- String
The unique id of command.
- arguments
- BinaryData
The arguments for the command to be run.
- host
- String
IP address of the cassandra host to run the command on.
If true, stops cassandra before executing the command and then start it again.
If true, allows the command to write to the cassandra directory, otherwise read-only.
- result
- String
Result output of the command.
Status of the command.
- outputFile
- String
The name of the file where the result is written.
Returns
A new CassandraClusterCommand instance for mocking.