volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
volcenginecc.ecs.getCommand
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
Data Source schema for Volcengine::ECS::Command
Using getCommand
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCommand(args: GetCommandArgs, opts?: InvokeOptions): Promise<GetCommandResult>
function getCommandOutput(args: GetCommandOutputArgs, opts?: InvokeOptions): Output<GetCommandResult>
def get_command(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCommandResult
def get_command_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCommandResult]
func LookupCommand(ctx *Context, args *LookupCommandArgs, opts ...InvokeOption) (*LookupCommandResult, error)
func LookupCommandOutput(ctx *Context, args *LookupCommandOutputArgs, opts ...InvokeOption) LookupCommandResultOutput
> Note: This function is named LookupCommand
in the Go SDK.
public static class GetCommand
{
public static Task<GetCommandResult> InvokeAsync(GetCommandArgs args, InvokeOptions? opts = null)
public static Output<GetCommandResult> Invoke(GetCommandInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCommandResult> getCommand(GetCommandArgs args, InvokeOptions options)
public static Output<GetCommandResult> getCommand(GetCommandArgs args, InvokeOptions options)
fn::invoke:
function: volcenginecc:ecs/getCommand:getCommand
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- Uniquely identifies the resource.
- Id string
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
- id string
- Uniquely identifies the resource.
- id str
- Uniquely identifies the resource.
- id String
- Uniquely identifies the resource.
getCommand Result
The following output properties are available:
- Command
Content string - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- Command
Id string - 自定义命令ID。
- Content
Encoding string - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- Created
Time string - 创建时间。
- Description string
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- Enable
Parameter bool - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- Id string
- Uniquely identifies the resource.
- Invocation
Times int - 命令被调用次数。
- Name string
- 命令名称。字符长度1~32。不限制特殊字符。
- Parameter
Definitions List<Volcengine.Get Command Parameter Definition> - 自定义参数定义信息。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Provider
Name string - 命令的提供方。
- List<Volcengine.
Get Command Tag> - 标签键值对。
- Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- Type string
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- Updated
Time string - 更新时间。
- Username string
- 执行命令时的用户名。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- Command
Content string - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- Command
Id string - 自定义命令ID。
- Content
Encoding string - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- Created
Time string - 创建时间。
- Description string
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- Enable
Parameter bool - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- Id string
- Uniquely identifies the resource.
- Invocation
Times int - 命令被调用次数。
- Name string
- 命令名称。字符长度1~32。不限制特殊字符。
- Parameter
Definitions []GetCommand Parameter Definition - 自定义参数定义信息。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Provider
Name string - 命令的提供方。
- []Get
Command Tag - 标签键值对。
- Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- Type string
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- Updated
Time string - 更新时间。
- Username string
- 执行命令时的用户名。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- command
Content String - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- command
Id String - 自定义命令ID。
- content
Encoding String - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- created
Time String - 创建时间。
- description String
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- enable
Parameter Boolean - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- id String
- Uniquely identifies the resource.
- invocation
Times Integer - 命令被调用次数。
- name String
- 命令名称。字符长度1~32。不限制特殊字符。
- parameter
Definitions List<GetCommand Parameter Definition> - 自定义参数定义信息。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- provider
Name String - 命令的提供方。
- List<Get
Command Tag> - 标签键值对。
- timeout Integer
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- type String
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- updated
Time String - 更新时间。
- username String
- 执行命令时的用户名。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
- command
Content string - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- command
Id string - 自定义命令ID。
- content
Encoding string - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- created
Time string - 创建时间。
- description string
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- enable
Parameter boolean - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- id string
- Uniquely identifies the resource.
- invocation
Times number - 命令被调用次数。
- name string
- 命令名称。字符长度1~32。不限制特殊字符。
- parameter
Definitions GetCommand Parameter Definition[] - 自定义参数定义信息。
- project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- provider
Name string - 命令的提供方。
- Get
Command Tag[] - 标签键值对。
- timeout number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- type string
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- updated
Time string - 更新时间。
- username string
- 执行命令时的用户名。
- working
Dir string - 创建的命令在ECS实例中运行的目录。
- command_
content str - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- command_
id str - 自定义命令ID。
- content_
encoding str - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- created_
time str - 创建时间。
- description str
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- enable_
parameter bool - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- id str
- Uniquely identifies the resource.
- invocation_
times int - 命令被调用次数。
- name str
- 命令名称。字符长度1~32。不限制特殊字符。
- parameter_
definitions Sequence[GetCommand Parameter Definition] - 自定义参数定义信息。
- project_
name str - 资源所属项目,一个资源只能归属于一个项目。
- provider_
name str - 命令的提供方。
- Sequence[Get
Command Tag] - 标签键值对。
- timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- type str
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- updated_
time str - 更新时间。
- username str
- 执行命令时的用户名。
- working_
dir str - 创建的命令在ECS实例中运行的目录。
- command
Content String - 命令内容。请根据ContentEncoding参数传入相应命令内容。命令内容不能超过16KB。
- command
Id String - 自定义命令ID。
- content
Encoding String - 命令内容是否经过Base64编码处理。Base64(默认):经过Base64编码处理。PlainText: 未进行编码处理。
- created
Time String - 创建时间。
- description String
- 命令描述,默认为空字符串。字符长度0~256。不限制特殊字符。
- enable
Parameter Boolean - 创建的命令是否使用自定义参数。false:默认,表示不使用自定义参数。true:表示使用自定义参数。
- id String
- Uniquely identifies the resource.
- invocation
Times Number - 命令被调用次数。
- name String
- 命令名称。字符长度1~32。不限制特殊字符。
- parameter
Definitions List<Property Map> - 自定义参数定义信息。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- provider
Name String - 命令的提供方。
- List<Property Map>
- 标签键值对。
- timeout Number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。取值范围:30~86400。默认值:60。
- type String
- 命令的类型。Shell:表示创建一个在Linux实例中运行的Shell脚本。Python:表示创建一个Python脚本。Bat:表示创建一个Bat脚本。PowerShell:表示创建一个PowerShell脚本。
- updated
Time String - 更新时间。
- username String
- 执行命令时的用户名。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
Supporting Types
GetCommandParameterDefinition
- Decimal
Precision int - 自定义参数值(数字)允许的小数点后位数。
- Default
Value string - 自定义参数默认值。
- Max
Length int - 自定义参数值(字符串)的最大长度。
- Max
Value string - 自定义参数值(数字)的最大值。
- Min
Length int - 自定义参数值(字符串)的最小长度。
- Min
Value string - 自定义参数值(数字)的最小值。
- Name string
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- Required bool
- 是否必填。
- Type string
- 自定义参数类型。
- Decimal
Precision int - 自定义参数值(数字)允许的小数点后位数。
- Default
Value string - 自定义参数默认值。
- Max
Length int - 自定义参数值(字符串)的最大长度。
- Max
Value string - 自定义参数值(数字)的最大值。
- Min
Length int - 自定义参数值(字符串)的最小长度。
- Min
Value string - 自定义参数值(数字)的最小值。
- Name string
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- Required bool
- 是否必填。
- Type string
- 自定义参数类型。
- decimal
Precision Integer - 自定义参数值(数字)允许的小数点后位数。
- default
Value String - 自定义参数默认值。
- max
Length Integer - 自定义参数值(字符串)的最大长度。
- max
Value String - 自定义参数值(数字)的最大值。
- min
Length Integer - 自定义参数值(字符串)的最小长度。
- min
Value String - 自定义参数值(数字)的最小值。
- name String
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- required Boolean
- 是否必填。
- type String
- 自定义参数类型。
- decimal
Precision number - 自定义参数值(数字)允许的小数点后位数。
- default
Value string - 自定义参数默认值。
- max
Length number - 自定义参数值(字符串)的最大长度。
- max
Value string - 自定义参数值(数字)的最大值。
- min
Length number - 自定义参数值(字符串)的最小长度。
- min
Value string - 自定义参数值(数字)的最小值。
- name string
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- required boolean
- 是否必填。
- type string
- 自定义参数类型。
- decimal_
precision int - 自定义参数值(数字)允许的小数点后位数。
- default_
value str - 自定义参数默认值。
- max_
length int - 自定义参数值(字符串)的最大长度。
- max_
value str - 自定义参数值(数字)的最大值。
- min_
length int - 自定义参数值(字符串)的最小长度。
- min_
value str - 自定义参数值(数字)的最小值。
- name str
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- required bool
- 是否必填。
- type str
- 自定义参数类型。
- decimal
Precision Number - 自定义参数值(数字)允许的小数点后位数。
- default
Value String - 自定义参数默认值。
- max
Length Number - 自定义参数值(字符串)的最大长度。
- max
Value String - 自定义参数值(数字)的最大值。
- min
Length Number - 自定义参数值(字符串)的最小长度。
- min
Value String - 自定义参数值(数字)的最小值。
- name String
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。单个参数名不能超过64字节。遵循Shell变量命名规则,a-zA-Z0-9-_的组合。首个字符不能以数字开头。中间不能有空格,可以使用下划线。
- required Boolean
- 是否必填。
- type String
- 自定义参数类型。
GetCommandTag
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcenginecc
Terraform Provider.
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine