volcengine.ecs.Commands
Explore with Pulumi AI
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:
- 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.
- 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.
- 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.
- 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.
- 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
.
- 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.
- type String
The type of ecs command. Valid values:
Shell
.
Commands Result
The following output properties are available:
- Commands
List<Volcengine.
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 ecs command.
- Name
Regex string - Order string
- Output
File string - Type string
The type of the ecs command.
- Commands
[]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 ecs command.
- Name
Regex string - Order string
- Output
File string - Type string
The type of the ecs command.
- commands
List<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 ecs command.
- name
Regex String - order String
- output
File String - type String
The type of the ecs command.
- commands
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 ecs command.
- name
Regex string - order string
- output
File string - type string
The type of the ecs command.
- commands
Sequence[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 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.
- 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 ecs command.
- name
Regex String - order String
- output
File String - type String
The type of the ecs command.
Supporting Types
CommandsCommand
- 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.
- Created
At string The create time of the ecs command.
- Description string
The description of the ecs command.
- 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.
- 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.
- Created
At string The create time of the ecs command.
- Description string
The description of the ecs command.
- 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.
- 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.
- created
At String The create time of the ecs command.
- description String
The description of the ecs command.
- 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.
- 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.
- created
At string The create time of the ecs command.
- description string
The description of the ecs command.
- 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.
- 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.
- 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.
- 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.
- created
At String The create time of the ecs command.
- description String
The description of the ecs command.
- 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.
- 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.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
volcengine
Terraform Provider.