CommandProps
Properties for defining a Command
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-command
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new CommandProps {
object Type,
object CommandContent = null,
object ContentEncoding = null,
object Description = null,
object EnableParameter = null,
object Name = null,
object ResourceGroupId = null,
TagsProperty[] Tags = null,
object Timeout = null,
object WorkingDir = null
};
Properties
Name | Type | Description |
---|---|---|
Type |
object |
Property type: The type of command. |
CommandContent |
object |
Property commandContent: The content of command. |
ContentEncoding |
object |
Property contentEncoding: The encoding mode of script content (CommandContent). |
Description |
object |
Property description: The description of command. |
EnableParameter |
object |
Property enableParameter: Specifies whether the script contains custom parameters. |
Name |
object |
Property name: The name of command. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
Tags |
TagsProperty[] |
Property tags: Tags to attach to command. |
Timeout |
object |
Property timeout: Total timeout when the command is executed in the instance. |
WorkingDir |
object |
Property workingDir: The path where command will be executed in the instance. |
Type
Required
public object Type { get; set; }
- Type: object
Property type: The type of command.
CommandContent
Optional
public object CommandContent { get; set; }
- Type: object
Property commandContent: The content of command.
Content requires base64 encoding. Maximum size support 16KB.
ContentEncoding
Optional
public object ContentEncoding { get; set; }
- Type: object
Property contentEncoding: The encoding mode of script content (CommandContent).
Valid values (case insensitive): PlainText: The script content is not encoded, and transmitted in plaintext. Base64: base64-encoded. Default value: Base64. If the specified value of this parameter is invalid, Base64 is used by default.
Description
Optional
public object Description { get; set; }
- Type: object
Property description: The description of command.
EnableParameter
Optional
public object EnableParameter { get; set; }
- Type: object
Property enableParameter: Specifies whether the script contains custom parameters.
Default value: false
Name
Optional
public object Name { get; set; }
- Type: object
Property name: The name of command.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
Tags
Optional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: Tags to attach to command.
Max support 20 tags to add during create command. Each tag with two properties Key and Value, and Key is required.
Timeout
Optional
public object Timeout { get; set; }
- Type: object
Property timeout: Total timeout when the command is executed in the instance.
Input the time unit as second. Default is 60s.
WorkingDir
Optional
public object WorkingDir { get; set; }
- Type: object
Property workingDir: The path where command will be executed in the instance.