Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of ecs commands
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.ecs.getCommands({
commandId: "cmd-ychkepkhtim0tr3b****",
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.ecs.get_commands(command_id="cmd-ychkepkhtim0tr3b****")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.GetCommands(ctx, &ecs.GetCommandsArgs{
CommandId: pulumi.StringRef("cmd-ychkepkhtim0tr3b****"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Ecs.GetCommands.Invoke(new()
{
CommandId = "cmd-ychkepkhtim0tr3b****",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.GetCommandsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = EcsFunctions.getCommands(GetCommandsArgs.builder()
.commandId("cmd-ychkepkhtim0tr3b****")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:ecs:getCommands
Arguments:
commandId: cmd-ychkepkhtim0tr3b****
Using getCommands
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 getCommands(args: GetCommandsArgs, opts?: InvokeOptions): Promise<GetCommandsResult>
function getCommandsOutput(args: GetCommandsOutputArgs, opts?: InvokeOptions): Output<GetCommandsResult>def get_commands(command_id: Optional[str] = None,
command_provider: Optional[str] = None,
name: Optional[str] = None,
name_regex: Optional[str] = None,
order: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[GetCommandsTag]] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCommandsResult
def get_commands_output(command_id: Optional[pulumi.Input[str]] = None,
command_provider: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
order: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetCommandsTagArgs]]]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCommandsResult]func GetCommands(ctx *Context, args *GetCommandsArgs, opts ...InvokeOption) (*GetCommandsResult, error)
func GetCommandsOutput(ctx *Context, args *GetCommandsOutputArgs, opts ...InvokeOption) GetCommandsResultOutput> Note: This function is named GetCommands in the Go SDK.
public static class GetCommands
{
public static Task<GetCommandsResult> InvokeAsync(GetCommandsArgs args, InvokeOptions? opts = null)
public static Output<GetCommandsResult> Invoke(GetCommandsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCommandsResult> getCommands(GetCommandsArgs args, InvokeOptions options)
public static Output<GetCommandsResult> getCommands(GetCommandsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:ecs/getCommands:getCommands
arguments:
# arguments dictionaryThe following arguments are supported:
- Command
Id string - The id of ecs command.
- Command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- Name string
- The name of ecs command. This field support fuzzy query.
- Name
Regex string - A Name Regex of Resource.
- Order string
- The order of ecs command query result.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of ecs command.
-
List<Get
Commands Tag> - Tags.
- Type string
- The type of ecs command. Valid values:
Shell.
- Command
Id string - The id of ecs command.
- Command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- Name string
- The name of ecs command. This field support fuzzy query.
- Name
Regex string - A Name Regex of Resource.
- Order string
- The order of ecs command query result.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of ecs command.
-
[]Get
Commands Tag - Tags.
- Type string
- The type of ecs command. Valid values:
Shell.
- command
Id String - The id of ecs command.
- command
Provider String - The provider of public command. When this field is not specified, query for custom commands.
- name String
- The name of ecs command. This field support fuzzy query.
- name
Regex String - A Name Regex of Resource.
- order String
- The order of ecs command query result.
- output
File String - File name where to save data source results.
- project
Name String - The project name of ecs command.
-
List<Get
Commands Tag> - Tags.
- type String
- The type of ecs command. Valid values:
Shell.
- command
Id string - The id of ecs command.
- command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- name string
- The name of ecs command. This field support fuzzy query.
- name
Regex string - A Name Regex of Resource.
- order string
- The order of ecs command query result.
- output
File string - File name where to save data source results.
- project
Name string - The project name of ecs command.
-
Get
Commands Tag[] - Tags.
- type string
- The type of ecs command. Valid values:
Shell.
- command_
id str - The id of ecs command.
- command_
provider str - The provider of public command. When this field is not specified, query for custom commands.
- name str
- The name of ecs command. This field support fuzzy query.
- name_
regex str - A Name Regex of Resource.
- order str
- The order of ecs command query result.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of ecs command.
-
Sequence[Get
Commands Tag] - Tags.
- type str
- The type of ecs command. Valid values:
Shell.
- command
Id String - The id of ecs command.
- command
Provider String - The provider of public command. When this field is not specified, query for custom commands.
- name String
- The name of ecs command. This field support fuzzy query.
- name
Regex String - A Name Regex of Resource.
- order String
- The order of ecs command query result.
- output
File String - File name where to save data source results.
- project
Name String - The project name of ecs command.
- List<Property Map>
- Tags.
- type String
- The type of ecs command. Valid values:
Shell.
getCommands Result
The following output properties are available:
- Commands
List<Get
Commands Command> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Command
Provider string - The provider of the public command.
- Name string
- The name of the custom parameter.
- Name
Regex string - Order string
- Output
File string - Project
Name string - The project name of the ecs command.
-
List<Get
Commands Tag> - Tags.
- Type string
- The type of the ecs command.
- Commands
[]Get
Commands Command - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Command
Provider string - The provider of the public command.
- Name string
- The name of the custom parameter.
- Name
Regex string - Order string
- Output
File string - Project
Name string - The project name of the ecs command.
-
[]Get
Commands Tag - Tags.
- Type string
- The type of the ecs command.
- commands
List<Get
Commands Command> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- command
Id String - The id of the ecs command.
- command
Provider String - The provider of the public command.
- name String
- The name of the custom parameter.
- name
Regex String - order String
- output
File String - project
Name String - The project name of the ecs command.
-
List<Get
Commands Tag> - Tags.
- type String
- The type of the ecs command.
- commands
Get
Commands Command[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- command
Id string - The id of the ecs command.
- command
Provider string - The provider of the public command.
- name string
- The name of the custom parameter.
- name
Regex string - order string
- output
File string - project
Name string - The project name of the ecs command.
-
Get
Commands Tag[] - Tags.
- type string
- The type of the ecs command.
- commands
Sequence[Get
Commands Command] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- command_
id str - The id of the ecs command.
- command_
provider str - The provider of the public command.
- name str
- The name of the custom parameter.
- name_
regex str - order str
- output_
file str - project_
name str - The project name of the ecs command.
-
Sequence[Get
Commands Tag] - Tags.
- type str
- The type of the ecs command.
- commands List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- command
Id String - The id of the ecs command.
- command
Provider String - The provider of the public command.
- name String
- The name of the custom parameter.
- name
Regex String - order String
- output
File String - project
Name String - The project name of the ecs command.
- List<Property Map>
- Tags.
- type String
- The type of the ecs command.
Supporting Types
GetCommandsCommand
- Command
Content string - The base64 encoded content of the ecs command.
- Command
Id string - The id of ecs command.
- Command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- Content
Encoding string - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - Created
At string - The create time of the ecs command.
- Description string
- The description of the ecs command.
- Enable
Parameter bool - Whether to enable custom parameter. Default is
false. - Id string
- The id of the ecs command.
- Invocation
Times int - The invocation times of the ecs command. Public commands do not display the invocation times.
- Name string
- The name of ecs command. This field support fuzzy query.
- Parameter
Definitions List<GetCommands Command Parameter Definition> - The custom parameter definitions of the ecs command.
- Project
Name string - The project name of ecs command.
-
List<Get
Commands Command Tag> - Tags.
- Timeout int
- The timeout of the ecs command.
- Type string
- The type of ecs command. Valid values:
Shell. - Updated
At string - The update time of the ecs command.
- Username string
- The username of the ecs command.
- Working
Dir string - The working directory of the ecs command.
- Command
Content string - The base64 encoded content of the ecs command.
- Command
Id string - The id of ecs command.
- Command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- Content
Encoding string - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - Created
At string - The create time of the ecs command.
- Description string
- The description of the ecs command.
- Enable
Parameter bool - Whether to enable custom parameter. Default is
false. - Id string
- The id of the ecs command.
- Invocation
Times int - The invocation times of the ecs command. Public commands do not display the invocation times.
- Name string
- The name of ecs command. This field support fuzzy query.
- Parameter
Definitions []GetCommands Command Parameter Definition - The custom parameter definitions of the ecs command.
- Project
Name string - The project name of ecs command.
-
[]Get
Commands Command Tag - Tags.
- Timeout int
- The timeout of the ecs command.
- Type string
- The type of ecs command. Valid values:
Shell. - Updated
At string - The update time of the ecs command.
- Username string
- The username of the ecs command.
- Working
Dir string - The working directory of the ecs command.
- command
Content String - The base64 encoded content of the ecs command.
- command
Id String - The id of ecs command.
- command
Provider String - The provider of public command. When this field is not specified, query for custom commands.
- content
Encoding String - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - created
At String - The create time of the ecs command.
- description String
- The description of the ecs command.
- enable
Parameter Boolean - Whether to enable custom parameter. Default is
false. - id String
- The id of the ecs command.
- invocation
Times Integer - The invocation times of the ecs command. Public commands do not display the invocation times.
- name String
- The name of ecs command. This field support fuzzy query.
- parameter
Definitions List<GetCommands Command Parameter Definition> - The custom parameter definitions of the ecs command.
- project
Name String - The project name of ecs command.
-
List<Get
Commands Command Tag> - Tags.
- timeout Integer
- The timeout of the ecs command.
- type String
- The type of ecs command. Valid values:
Shell. - updated
At String - The update time of the ecs command.
- username String
- The username of the ecs command.
- working
Dir String - The working directory of the ecs command.
- command
Content string - The base64 encoded content of the ecs command.
- command
Id string - The id of ecs command.
- command
Provider string - The provider of public command. When this field is not specified, query for custom commands.
- content
Encoding string - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - created
At string - The create time of the ecs command.
- description string
- The description of the ecs command.
- enable
Parameter boolean - Whether to enable custom parameter. Default is
false. - id string
- The id of the ecs command.
- invocation
Times number - The invocation times of the ecs command. Public commands do not display the invocation times.
- name string
- The name of ecs command. This field support fuzzy query.
- parameter
Definitions GetCommands Command Parameter Definition[] - The custom parameter definitions of the ecs command.
- project
Name string - The project name of ecs command.
-
Get
Commands Command Tag[] - Tags.
- timeout number
- The timeout of the ecs command.
- type string
- The type of ecs command. Valid values:
Shell. - updated
At string - The update time of the ecs command.
- username string
- The username of the ecs command.
- working
Dir string - The working directory of the ecs command.
- command_
content str - The base64 encoded content of the ecs command.
- command_
id str - The id of ecs command.
- command_
provider str - The provider of public command. When this field is not specified, query for custom commands.
- content_
encoding str - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - created_
at str - The create time of the ecs command.
- description str
- The description of the ecs command.
- enable_
parameter bool - Whether to enable custom parameter. Default is
false. - id str
- The id of the ecs command.
- invocation_
times int - The invocation times of the ecs command. Public commands do not display the invocation times.
- name str
- The name of ecs command. This field support fuzzy query.
- parameter_
definitions Sequence[GetCommands Command Parameter Definition] - The custom parameter definitions of the ecs command.
- project_
name str - The project name of ecs command.
-
Sequence[Get
Commands Command Tag] - Tags.
- timeout int
- The timeout of the ecs command.
- type str
- The type of ecs command. Valid values:
Shell. - updated_
at str - The update time of the ecs command.
- username str
- The username of the ecs command.
- working_
dir str - The working directory of the ecs command.
- command
Content String - The base64 encoded content of the ecs command.
- command
Id String - The id of ecs command.
- command
Provider String - The provider of public command. When this field is not specified, query for custom commands.
- content
Encoding String - Whether the command content is base64 encoded. Valid values:
Base64,PlainText. Default isBase64. - created
At String - The create time of the ecs command.
- description String
- The description of the ecs command.
- enable
Parameter Boolean - Whether to enable custom parameter. Default is
false. - id String
- The id of the ecs command.
- invocation
Times Number - The invocation times of the ecs command. Public commands do not display the invocation times.
- name String
- The name of ecs command. This field support fuzzy query.
- parameter
Definitions List<Property Map> - The custom parameter definitions of the ecs command.
- project
Name String - The project name of ecs command.
- List<Property Map>
- Tags.
- timeout Number
- The timeout of the ecs command.
- type String
- The type of ecs command. Valid values:
Shell. - updated
At String - The update time of the ecs command.
- username String
- The username of the ecs command.
- working
Dir String - The working directory of the ecs command.
GetCommandsCommandParameterDefinition
- Decimal
Precision int - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - Default
Value string - The default value of the custom parameter.
- Max
Length int - The maximum length of the custom parameter. This field is required when the parameter type is
String. - Max
Value string - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - Min
Length int - The minimum length of the custom parameter. This field is required when the parameter type is
String. - Min
Value string - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - Name string
- The name of ecs command. This field support fuzzy query.
- Required bool
- Whether the custom parameter is required.
- Type string
- The type of ecs command. Valid values:
Shell.
- Decimal
Precision int - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - Default
Value string - The default value of the custom parameter.
- Max
Length int - The maximum length of the custom parameter. This field is required when the parameter type is
String. - Max
Value string - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - Min
Length int - The minimum length of the custom parameter. This field is required when the parameter type is
String. - Min
Value string - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - Name string
- The name of ecs command. This field support fuzzy query.
- Required bool
- Whether the custom parameter is required.
- Type string
- The type of ecs command. Valid values:
Shell.
- decimal
Precision Integer - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - default
Value String - The default value of the custom parameter.
- max
Length Integer - The maximum length of the custom parameter. This field is required when the parameter type is
String. - max
Value String - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - min
Length Integer - The minimum length of the custom parameter. This field is required when the parameter type is
String. - min
Value String - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - name String
- The name of ecs command. This field support fuzzy query.
- required Boolean
- Whether the custom parameter is required.
- type String
- The type of ecs command. Valid values:
Shell.
- decimal
Precision number - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - default
Value string - The default value of the custom parameter.
- max
Length number - The maximum length of the custom parameter. This field is required when the parameter type is
String. - max
Value string - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - min
Length number - The minimum length of the custom parameter. This field is required when the parameter type is
String. - min
Value string - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - name string
- The name of ecs command. This field support fuzzy query.
- required boolean
- Whether the custom parameter is required.
- type string
- The type of ecs command. Valid values:
Shell.
- decimal_
precision int - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - default_
value str - The default value of the custom parameter.
- max_
length int - The maximum length of the custom parameter. This field is required when the parameter type is
String. - max_
value str - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - min_
length int - The minimum length of the custom parameter. This field is required when the parameter type is
String. - min_
value str - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - name str
- The name of ecs command. This field support fuzzy query.
- required bool
- Whether the custom parameter is required.
- type str
- The type of ecs command. Valid values:
Shell.
- decimal
Precision Number - The decimal precision of the custom parameter. This field is required when the parameter type is
Digit. - default
Value String - The default value of the custom parameter.
- max
Length Number - The maximum length of the custom parameter. This field is required when the parameter type is
String. - max
Value String - The maximum value of the custom parameter. This field is required when the parameter type is
Digit. - min
Length Number - The minimum length of the custom parameter. This field is required when the parameter type is
String. - min
Value String - The minimum value of the custom parameter. This field is required when the parameter type is
Digit. - name String
- The name of ecs command. This field support fuzzy query.
- required Boolean
- Whether the custom parameter is required.
- type String
- The type of ecs command. Valid values:
Shell.
GetCommandsCommandTag
GetCommandsTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
