Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine
volcengine.ecs.Invocations
Explore with Pulumi AI
Use this data source to query detailed information of ecs invocations
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.ecs.Invocations({
    invocationId: "ivk-ych9y4vujvl8j01c****",
    invocationStatuses: ["Success"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.ecs.invocations(invocation_id="ivk-ych9y4vujvl8j01c****",
    invocation_statuses=["Success"])
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.Invocations(ctx, &ecs.InvocationsArgs{
			InvocationId: pulumi.StringRef("ivk-ych9y4vujvl8j01c****"),
			InvocationStatuses: []string{
				"Success",
			},
		}, 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.Invocations.Invoke(new()
    {
        InvocationId = "ivk-ych9y4vujvl8j01c****",
        InvocationStatuses = new[]
        {
            "Success",
        },
    });
});
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.InvocationsArgs;
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.Invocations(InvocationsArgs.builder()
            .invocationId("ivk-ych9y4vujvl8j01c****")
            .invocationStatuses("Success")
            .build());
    }
}
variables:
  default:
    fn::invoke:
      Function: volcengine:ecs:Invocations
      Arguments:
        invocationId: ivk-ych9y4vujvl8j01c****
        invocationStatuses:
          - Success
Using Invocations
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 invocations(args: InvocationsArgs, opts?: InvokeOptions): Promise<InvocationsResult>
function invocationsOutput(args: InvocationsOutputArgs, opts?: InvokeOptions): Output<InvocationsResult>def invocations(command_id: Optional[str] = None,
                command_name: Optional[str] = None,
                command_type: Optional[str] = None,
                invocation_id: Optional[str] = None,
                invocation_name: Optional[str] = None,
                invocation_statuses: Optional[Sequence[str]] = None,
                name_regex: Optional[str] = None,
                output_file: Optional[str] = None,
                repeat_mode: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> InvocationsResult
def invocations_output(command_id: Optional[pulumi.Input[str]] = None,
                command_name: Optional[pulumi.Input[str]] = None,
                command_type: Optional[pulumi.Input[str]] = None,
                invocation_id: Optional[pulumi.Input[str]] = None,
                invocation_name: Optional[pulumi.Input[str]] = None,
                invocation_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                name_regex: Optional[pulumi.Input[str]] = None,
                output_file: Optional[pulumi.Input[str]] = None,
                repeat_mode: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[InvocationsResult]func Invocations(ctx *Context, args *InvocationsArgs, opts ...InvokeOption) (*InvocationsResult, error)
func InvocationsOutput(ctx *Context, args *InvocationsOutputArgs, opts ...InvokeOption) InvocationsResultOutputpublic static class Invocations 
{
    public static Task<InvocationsResult> InvokeAsync(InvocationsArgs args, InvokeOptions? opts = null)
    public static Output<InvocationsResult> Invoke(InvocationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<InvocationsResult> invocations(InvocationsArgs args, InvokeOptions options)
public static Output<InvocationsResult> invocations(InvocationsArgs args, InvokeOptions options)
fn::invoke:
  function: volcengine:ecs:Invocations
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CommandId string
- The id of ecs command.
- CommandName string
- The name of ecs command. This field support fuzzy query.
- CommandType string
- The type of ecs command. Valid values: Shell.
- InvocationId string
- The id of ecs invocation.
- InvocationName string
- The name of ecs invocation. This field support fuzzy query.
- InvocationStatuses List<string>
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- RepeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- CommandId string
- The id of ecs command.
- CommandName string
- The name of ecs command. This field support fuzzy query.
- CommandType string
- The type of ecs command. Valid values: Shell.
- InvocationId string
- The id of ecs invocation.
- InvocationName string
- The name of ecs invocation. This field support fuzzy query.
- InvocationStatuses []string
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- NameRegex string
- A Name Regex of Resource.
- OutputFile string
- File name where to save data source results.
- RepeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- commandId String
- The id of ecs command.
- commandName String
- The name of ecs command. This field support fuzzy query.
- commandType String
- The type of ecs command. Valid values: Shell.
- invocationId String
- The id of ecs invocation.
- invocationName String
- The name of ecs invocation. This field support fuzzy query.
- invocationStatuses List<String>
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- repeatMode String
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- commandId string
- The id of ecs command.
- commandName string
- The name of ecs command. This field support fuzzy query.
- commandType string
- The type of ecs command. Valid values: Shell.
- invocationId string
- The id of ecs invocation.
- invocationName string
- The name of ecs invocation. This field support fuzzy query.
- invocationStatuses string[]
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- nameRegex string
- A Name Regex of Resource.
- outputFile string
- File name where to save data source results.
- repeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- command_id str
- The id of ecs command.
- command_name str
- The name of ecs command. This field support fuzzy query.
- command_type str
- The type of ecs command. Valid values: Shell.
- invocation_id str
- The id of ecs invocation.
- invocation_name str
- The name of ecs invocation. This field support fuzzy query.
- invocation_statuses Sequence[str]
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- name_regex str
- A Name Regex of Resource.
- output_file str
- File name where to save data source results.
- repeat_mode str
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- commandId String
- The id of ecs command.
- commandName String
- The name of ecs command. This field support fuzzy query.
- commandType String
- The type of ecs command. Valid values: Shell.
- invocationId String
- The id of ecs invocation.
- invocationName String
- The name of ecs invocation. This field support fuzzy query.
- invocationStatuses List<String>
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- nameRegex String
- A Name Regex of Resource.
- outputFile String
- File name where to save data source results.
- repeatMode String
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
Invocations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocations
List<InvocationsInvocation> 
- The collection of query.
- TotalCount int
- The total count of query.
- CommandId string
- The id of the ecs command.
- CommandName string
- The name of the ecs command.
- CommandType string
- The type of the ecs command.
- InvocationId string
- The id of the ecs invocation.
- InvocationName string
- The name of the ecs invocation.
- InvocationStatuses List<string>
- The status of the ecs invocation.
- NameRegex string
- OutputFile string
- RepeatMode string
- The repeat mode of the ecs invocation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocations
[]InvocationsInvocation 
- The collection of query.
- TotalCount int
- The total count of query.
- CommandId string
- The id of the ecs command.
- CommandName string
- The name of the ecs command.
- CommandType string
- The type of the ecs command.
- InvocationId string
- The id of the ecs invocation.
- InvocationName string
- The name of the ecs invocation.
- InvocationStatuses []string
- The status of the ecs invocation.
- NameRegex string
- OutputFile string
- RepeatMode string
- The repeat mode of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocations
List<InvocationsInvocation> 
- The collection of query.
- totalCount Integer
- The total count of query.
- commandId String
- The id of the ecs command.
- commandName String
- The name of the ecs command.
- commandType String
- The type of the ecs command.
- invocationId String
- The id of the ecs invocation.
- invocationName String
- The name of the ecs invocation.
- invocationStatuses List<String>
- The status of the ecs invocation.
- nameRegex String
- outputFile String
- repeatMode String
- The repeat mode of the ecs invocation.
- id string
- The provider-assigned unique ID for this managed resource.
- invocations
InvocationsInvocation[] 
- The collection of query.
- totalCount number
- The total count of query.
- commandId string
- The id of the ecs command.
- commandName string
- The name of the ecs command.
- commandType string
- The type of the ecs command.
- invocationId string
- The id of the ecs invocation.
- invocationName string
- The name of the ecs invocation.
- invocationStatuses string[]
- The status of the ecs invocation.
- nameRegex string
- outputFile string
- repeatMode string
- The repeat mode of the ecs invocation.
- id str
- The provider-assigned unique ID for this managed resource.
- invocations
Sequence[InvocationsInvocation] 
- The collection of query.
- total_count int
- The total count of query.
- command_id str
- The id of the ecs command.
- command_name str
- The name of the ecs command.
- command_type str
- The type of the ecs command.
- invocation_id str
- The id of the ecs invocation.
- invocation_name str
- The name of the ecs invocation.
- invocation_statuses Sequence[str]
- The status of the ecs invocation.
- name_regex str
- output_file str
- repeat_mode str
- The repeat mode of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocations List<Property Map>
- The collection of query.
- totalCount Number
- The total count of query.
- commandId String
- The id of the ecs command.
- commandName String
- The name of the ecs command.
- commandType String
- The type of the ecs command.
- invocationId String
- The id of the ecs invocation.
- invocationName String
- The name of the ecs invocation.
- invocationStatuses List<String>
- The status of the ecs invocation.
- nameRegex String
- outputFile String
- repeatMode String
- The repeat mode of the ecs invocation.
Supporting Types
InvocationsInvocation 
- CommandContent string
- The base64 encoded content of the ecs command.
- CommandDescription string
- The description of the ecs command.
- CommandId string
- The id of ecs command.
- CommandName string
- The name of ecs command. This field support fuzzy query.
- CommandProvider string
- The provider of the ecs command.
- CommandType string
- The type of ecs command. Valid values: Shell.
- EndTime string
- The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation.
- Id string
- The id of the ecs invocation.
- InstanceIds List<string>
- The list of ECS instance IDs.
- InstanceNumber int
- The instance number of the ecs invocation.
- InvocationDescription string
- The description of the ecs invocation.
- InvocationId string
- The id of ecs invocation.
- InvocationName string
- The name of ecs invocation. This field support fuzzy query.
- InvocationStatus string
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- LaunchTime string
- The launch time of the ecs invocation.
- RecurrenceEnd stringTime 
- The recurrence end time of the ecs invocation.
- RepeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- StartTime string
- The start time of the ecs invocation.
- Timeout int
- The timeout 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.
- CommandDescription string
- The description of the ecs command.
- CommandId string
- The id of ecs command.
- CommandName string
- The name of ecs command. This field support fuzzy query.
- CommandProvider string
- The provider of the ecs command.
- CommandType string
- The type of ecs command. Valid values: Shell.
- EndTime string
- The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation.
- Id string
- The id of the ecs invocation.
- InstanceIds []string
- The list of ECS instance IDs.
- InstanceNumber int
- The instance number of the ecs invocation.
- InvocationDescription string
- The description of the ecs invocation.
- InvocationId string
- The id of ecs invocation.
- InvocationName string
- The name of ecs invocation. This field support fuzzy query.
- InvocationStatus string
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- LaunchTime string
- The launch time of the ecs invocation.
- RecurrenceEnd stringTime 
- The recurrence end time of the ecs invocation.
- RepeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- StartTime string
- The start time of the ecs invocation.
- Timeout int
- The timeout 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.
- commandDescription String
- The description of the ecs command.
- commandId String
- The id of ecs command.
- commandName String
- The name of ecs command. This field support fuzzy query.
- commandProvider String
- The provider of the ecs command.
- commandType String
- The type of ecs command. Valid values: Shell.
- endTime String
- The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation.
- id String
- The id of the ecs invocation.
- instanceIds List<String>
- The list of ECS instance IDs.
- instanceNumber Integer
- The instance number of the ecs invocation.
- invocationDescription String
- The description of the ecs invocation.
- invocationId String
- The id of ecs invocation.
- invocationName String
- The name of ecs invocation. This field support fuzzy query.
- invocationStatus String
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- launchTime String
- The launch time of the ecs invocation.
- recurrenceEnd StringTime 
- The recurrence end time of the ecs invocation.
- repeatMode String
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- startTime String
- The start time of the ecs invocation.
- timeout Integer
- The timeout 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.
- commandDescription string
- The description of the ecs command.
- commandId string
- The id of ecs command.
- commandName string
- The name of ecs command. This field support fuzzy query.
- commandProvider string
- The provider of the ecs command.
- commandType string
- The type of ecs command. Valid values: Shell.
- endTime string
- The end time of the ecs invocation.
- frequency string
- The frequency of the ecs invocation.
- id string
- The id of the ecs invocation.
- instanceIds string[]
- The list of ECS instance IDs.
- instanceNumber number
- The instance number of the ecs invocation.
- invocationDescription string
- The description of the ecs invocation.
- invocationId string
- The id of ecs invocation.
- invocationName string
- The name of ecs invocation. This field support fuzzy query.
- invocationStatus string
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- launchTime string
- The launch time of the ecs invocation.
- recurrenceEnd stringTime 
- The recurrence end time of the ecs invocation.
- repeatMode string
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- startTime string
- The start time of the ecs invocation.
- timeout number
- The timeout 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_description str
- The description of the ecs command.
- command_id str
- The id of ecs command.
- command_name str
- The name of ecs command. This field support fuzzy query.
- command_provider str
- The provider of the ecs command.
- command_type str
- The type of ecs command. Valid values: Shell.
- end_time str
- The end time of the ecs invocation.
- frequency str
- The frequency of the ecs invocation.
- id str
- The id of the ecs invocation.
- instance_ids Sequence[str]
- The list of ECS instance IDs.
- instance_number int
- The instance number of the ecs invocation.
- invocation_description str
- The description of the ecs invocation.
- invocation_id str
- The id of ecs invocation.
- invocation_name str
- The name of ecs invocation. This field support fuzzy query.
- invocation_status str
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- launch_time str
- The launch time of the ecs invocation.
- recurrence_end_ strtime 
- The recurrence end time of the ecs invocation.
- repeat_mode str
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- start_time str
- The start time of the ecs invocation.
- timeout int
- The timeout 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.
- commandDescription String
- The description of the ecs command.
- commandId String
- The id of ecs command.
- commandName String
- The name of ecs command. This field support fuzzy query.
- commandProvider String
- The provider of the ecs command.
- commandType String
- The type of ecs command. Valid values: Shell.
- endTime String
- The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation.
- id String
- The id of the ecs invocation.
- instanceIds List<String>
- The list of ECS instance IDs.
- instanceNumber Number
- The instance number of the ecs invocation.
- invocationDescription String
- The description of the ecs invocation.
- invocationId String
- The id of ecs invocation.
- invocationName String
- The name of ecs invocation. This field support fuzzy query.
- invocationStatus String
- The list of status of ecs invocation. Valid values: Pending,Scheduled,Running,Success,Failed,Stopped,PartialFailed,Finished.
- launchTime String
- The launch time of the ecs invocation.
- recurrenceEnd StringTime 
- The recurrence end time of the ecs invocation.
- repeatMode String
- The repeat mode of ecs invocation. Valid values: Once,Rate,Fixed.
- startTime String
- The start time of the ecs invocation.
- timeout Number
- The timeout 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 volcengineTerraform Provider.