1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. Commands
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.ecs.Commands

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of ecs commands

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Ecs.Commands.Invoke(new()
        {
            CommandId = "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.Commands(ctx, &ecs.CommandsArgs{
    			CommandId: pulumi.StringRef("cmd-ychkepkhtim0tr3b****"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.CommandsArgs;
    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.Commands(CommandsArgs.builder()
                .commandId("cmd-ychkepkhtim0tr3b****")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.ecs.commands(command_id="cmd-ychkepkhtim0tr3b****")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.ecs.Commands({
        commandId: "cmd-ychkepkhtim0tr3b****",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:ecs:Commands
          Arguments:
            commandId: cmd-ychkepkhtim0tr3b****
    

    Using Commands

    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 commands(args: CommandsArgs, opts?: InvokeOptions): Promise<CommandsResult>
    function commandsOutput(args: CommandsOutputArgs, opts?: InvokeOptions): Output<CommandsResult>
    def 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,
                 type: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> CommandsResult
    def 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,
                 type: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[CommandsResult]
    func Commands(ctx *Context, args *CommandsArgs, opts ...InvokeOption) (*CommandsResult, error)
    func CommandsOutput(ctx *Context, args *CommandsOutputArgs, opts ...InvokeOption) CommandsResultOutput
    public static class Commands 
    {
        public static Task<CommandsResult> InvokeAsync(CommandsArgs args, InvokeOptions? opts = null)
        public static Output<CommandsResult> Invoke(CommandsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<CommandsResult> commands(CommandsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:ecs:Commands
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CommandId string
    The id of ecs command.
    CommandProvider 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.
    NameRegex string
    A Name Regex of Resource.
    Order string
    The order of ecs command query result.
    OutputFile string
    File name where to save data source results.
    Type string
    The type of ecs command. Valid values: Shell.
    CommandId string
    The id of ecs command.
    CommandProvider 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.
    NameRegex string
    A Name Regex of Resource.
    Order string
    The order of ecs command query result.
    OutputFile string
    File name where to save data source results.
    Type string
    The type of ecs command. Valid values: Shell.
    commandId String
    The id of ecs command.
    commandProvider 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.
    nameRegex String
    A Name Regex of Resource.
    order String
    The order of ecs command query result.
    outputFile String
    File name where to save data source results.
    type String
    The type of ecs command. Valid values: Shell.
    commandId string
    The id of ecs command.
    commandProvider 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.
    nameRegex string
    A Name Regex of Resource.
    order string
    The order of ecs command query result.
    outputFile string
    File name where to save data source results.
    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.
    type str
    The type of ecs command. Valid values: Shell.
    commandId String
    The id of ecs command.
    commandProvider 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.
    nameRegex String
    A Name Regex of Resource.
    order String
    The order of ecs command query result.
    outputFile String
    File name where to save data source results.
    type String
    The type of ecs command. Valid values: Shell.

    Commands Result

    The following output properties are available:

    Commands List<CommandsCommand>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    CommandId string
    The id of the ecs command.
    CommandProvider string
    The provider of the public command.
    Name string
    The name of the ecs command.
    NameRegex string
    Order string
    OutputFile string
    Type string
    The type of the ecs command.
    Commands []CommandsCommand
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    CommandId string
    The id of the ecs command.
    CommandProvider string
    The provider of the public command.
    Name string
    The name of the ecs command.
    NameRegex string
    Order string
    OutputFile string
    Type string
    The type of the ecs command.
    commands List<CommandsCommand>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    commandId String
    The id of the ecs command.
    commandProvider String
    The provider of the public command.
    name String
    The name of the ecs command.
    nameRegex String
    order String
    outputFile String
    type String
    The type of the ecs command.
    commands CommandsCommand[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    commandId string
    The id of the ecs command.
    commandProvider string
    The provider of the public command.
    name string
    The name of the ecs command.
    nameRegex string
    order string
    outputFile string
    type string
    The type of the ecs command.
    commands Sequence[CommandsCommand]
    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 ecs command.
    name_regex str
    order str
    output_file str
    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.
    totalCount Number
    The total count of query.
    commandId String
    The id of the ecs command.
    commandProvider String
    The provider of the public command.
    name String
    The name of the ecs command.
    nameRegex String
    order String
    outputFile String
    type String
    The type of the ecs command.

    Supporting Types

    CommandsCommand

    CommandContent string
    The base64 encoded content of the ecs command.
    CommandId string
    The id of ecs command.
    CommandProvider string
    The provider of public command. When this field is not specified, query for custom commands.
    CreatedAt string
    The create time of the ecs command.
    Description string
    The description of the ecs command.
    Id string
    The id of the ecs command.
    InvocationTimes 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.
    Timeout int
    The timeout of the ecs command.
    Type string
    The type of ecs command. Valid values: Shell.
    UpdatedAt string
    The update time of the ecs command.
    Username string
    The username of the ecs command.
    WorkingDir string
    The working directory of the ecs command.
    CommandContent string
    The base64 encoded content of the ecs command.
    CommandId string
    The id of ecs command.
    CommandProvider string
    The provider of public command. When this field is not specified, query for custom commands.
    CreatedAt string
    The create time of the ecs command.
    Description string
    The description of the ecs command.
    Id string
    The id of the ecs command.
    InvocationTimes 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.
    Timeout int
    The timeout of the ecs command.
    Type string
    The type of ecs command. Valid values: Shell.
    UpdatedAt string
    The update time of the ecs command.
    Username string
    The username of the ecs command.
    WorkingDir string
    The working directory of the ecs command.
    commandContent String
    The base64 encoded content of the ecs command.
    commandId String
    The id of ecs command.
    commandProvider String
    The provider of public command. When this field is not specified, query for custom commands.
    createdAt String
    The create time of the ecs command.
    description String
    The description of the ecs command.
    id String
    The id of the ecs command.
    invocationTimes 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.
    timeout Integer
    The timeout of the ecs command.
    type String
    The type of ecs command. Valid values: Shell.
    updatedAt String
    The update time of the ecs command.
    username String
    The username of the ecs command.
    workingDir String
    The working directory of the ecs command.
    commandContent string
    The base64 encoded content of the ecs command.
    commandId string
    The id of ecs command.
    commandProvider string
    The provider of public command. When this field is not specified, query for custom commands.
    createdAt string
    The create time of the ecs command.
    description string
    The description of the ecs command.
    id string
    The id of the ecs command.
    invocationTimes 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.
    timeout number
    The timeout of the ecs command.
    type string
    The type of ecs command. Valid values: Shell.
    updatedAt string
    The update time of the ecs command.
    username string
    The username of the ecs command.
    workingDir 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.
    created_at str
    The create time of the ecs command.
    description str
    The description of the ecs command.
    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.
    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.
    commandContent String
    The base64 encoded content of the ecs command.
    commandId String
    The id of ecs command.
    commandProvider String
    The provider of public command. When this field is not specified, query for custom commands.
    createdAt String
    The create time of the ecs command.
    description String
    The description of the ecs command.
    id String
    The id of the ecs command.
    invocationTimes 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.
    timeout Number
    The timeout of the ecs command.
    type String
    The type of ecs command. Valid values: Shell.
    updatedAt String
    The update time of the ecs command.
    username String
    The username of the ecs command.
    workingDir String
    The working directory of the ecs command.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine