1. Packages
  2. Volcengine
  3. API Docs
  4. ecs
  5. InvocationResults
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.ecs.InvocationResults

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Use this data source to query detailed information of ecs invocation results

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Ecs.InvocationResults.Invoke(new()
        {
            InvocationId = "ivk-ych9y4vujvl8j01c****",
            InvocationResultStatuses = new[]
            {
                "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.InvocationResults(ctx, &ecs.InvocationResultsArgs{
    			InvocationId: "ivk-ych9y4vujvl8j01c****",
    			InvocationResultStatuses: []string{
    				"Success",
    			},
    		}, 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.InvocationResultsArgs;
    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.InvocationResults(InvocationResultsArgs.builder()
                .invocationId("ivk-ych9y4vujvl8j01c****")
                .invocationResultStatuses("Success")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.ecs.invocation_results(invocation_id="ivk-ych9y4vujvl8j01c****",
        invocation_result_statuses=["Success"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.ecs.InvocationResults({
        invocationId: "ivk-ych9y4vujvl8j01c****",
        invocationResultStatuses: ["Success"],
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:ecs:InvocationResults
          Arguments:
            invocationId: ivk-ych9y4vujvl8j01c****
            invocationResultStatuses:
              - Success
    

    Using InvocationResults

    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 invocationResults(args: InvocationResultsArgs, opts?: InvokeOptions): Promise<InvocationResultsResult>
    function invocationResultsOutput(args: InvocationResultsOutputArgs, opts?: InvokeOptions): Output<InvocationResultsResult>
    def invocation_results(command_id: Optional[str] = None,
                           instance_id: Optional[str] = None,
                           invocation_id: Optional[str] = None,
                           invocation_result_statuses: Optional[Sequence[str]] = None,
                           output_file: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> InvocationResultsResult
    def invocation_results_output(command_id: Optional[pulumi.Input[str]] = None,
                           instance_id: Optional[pulumi.Input[str]] = None,
                           invocation_id: Optional[pulumi.Input[str]] = None,
                           invocation_result_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[InvocationResultsResult]
    func InvocationResults(ctx *Context, args *InvocationResultsArgs, opts ...InvokeOption) (*InvocationResultsResult, error)
    func InvocationResultsOutput(ctx *Context, args *InvocationResultsOutputArgs, opts ...InvokeOption) InvocationResultsResultOutput
    public static class InvocationResults 
    {
        public static Task<InvocationResultsResult> InvokeAsync(InvocationResultsArgs args, InvokeOptions? opts = null)
        public static Output<InvocationResultsResult> Invoke(InvocationResultsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<InvocationResultsResult> invocationResults(InvocationResultsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:ecs:InvocationResults
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InvocationId string
    The id of ecs invocation.
    CommandId string
    The id of ecs command.
    InstanceId string
    The id of ecs instance.
    InvocationResultStatuses List<string>
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    OutputFile string
    File name where to save data source results.
    InvocationId string
    The id of ecs invocation.
    CommandId string
    The id of ecs command.
    InstanceId string
    The id of ecs instance.
    InvocationResultStatuses []string
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    OutputFile string
    File name where to save data source results.
    invocationId String
    The id of ecs invocation.
    commandId String
    The id of ecs command.
    instanceId String
    The id of ecs instance.
    invocationResultStatuses List<String>
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    outputFile String
    File name where to save data source results.
    invocationId string
    The id of ecs invocation.
    commandId string
    The id of ecs command.
    instanceId string
    The id of ecs instance.
    invocationResultStatuses string[]
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    outputFile string
    File name where to save data source results.
    invocation_id str
    The id of ecs invocation.
    command_id str
    The id of ecs command.
    instance_id str
    The id of ecs instance.
    invocation_result_statuses Sequence[str]
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    output_file str
    File name where to save data source results.
    invocationId String
    The id of ecs invocation.
    commandId String
    The id of ecs command.
    instanceId String
    The id of ecs instance.
    invocationResultStatuses List<String>
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    outputFile String
    File name where to save data source results.

    InvocationResults Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationId string
    The id of the ecs invocation.
    InvocationResults List<InvocationResultsInvocationResult>
    The collection of query.
    TotalCount int
    The total count of query.
    CommandId string
    The id of the ecs command.
    InstanceId string
    The id of the ecs instance.
    InvocationResultStatuses List<string>
    The status of ecs invocation in a single instance.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    InvocationId string
    The id of the ecs invocation.
    InvocationResults []InvocationResultsInvocationResult
    The collection of query.
    TotalCount int
    The total count of query.
    CommandId string
    The id of the ecs command.
    InstanceId string
    The id of the ecs instance.
    InvocationResultStatuses []string
    The status of ecs invocation in a single instance.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    invocationId String
    The id of the ecs invocation.
    invocationResults List<InvocationResultsInvocationResult>
    The collection of query.
    totalCount Integer
    The total count of query.
    commandId String
    The id of the ecs command.
    instanceId String
    The id of the ecs instance.
    invocationResultStatuses List<String>
    The status of ecs invocation in a single instance.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    invocationId string
    The id of the ecs invocation.
    invocationResults InvocationResultsInvocationResult[]
    The collection of query.
    totalCount number
    The total count of query.
    commandId string
    The id of the ecs command.
    instanceId string
    The id of the ecs instance.
    invocationResultStatuses string[]
    The status of ecs invocation in a single instance.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    invocation_id str
    The id of the ecs invocation.
    invocation_results Sequence[InvocationResultsInvocationResult]
    The collection of query.
    total_count int
    The total count of query.
    command_id str
    The id of the ecs command.
    instance_id str
    The id of the ecs instance.
    invocation_result_statuses Sequence[str]
    The status of ecs invocation in a single instance.
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    invocationId String
    The id of the ecs invocation.
    invocationResults List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    commandId String
    The id of the ecs command.
    instanceId String
    The id of the ecs instance.
    invocationResultStatuses List<String>
    The status of ecs invocation in a single instance.
    outputFile String

    Supporting Types

    InvocationResultsInvocationResult

    CommandId string
    The id of ecs command.
    EndTime string
    The end time of the ecs invocation in the instance.
    ErrorCode string
    The error code of the ecs invocation.
    ErrorMessage string
    The error message of the ecs invocation.
    ExitCode int
    The exit code of the ecs command.
    Id string
    The id of the ecs invocation result.
    InstanceId string
    The id of ecs instance.
    InvocationId string
    The id of ecs invocation.
    InvocationResultId string
    The id of the ecs invocation result.
    InvocationResultStatus string
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    Output string
    The base64 encoded output message of the ecs invocation.
    StartTime string
    The start time of the ecs invocation in the instance.
    Username string
    The username of the ecs command.
    CommandId string
    The id of ecs command.
    EndTime string
    The end time of the ecs invocation in the instance.
    ErrorCode string
    The error code of the ecs invocation.
    ErrorMessage string
    The error message of the ecs invocation.
    ExitCode int
    The exit code of the ecs command.
    Id string
    The id of the ecs invocation result.
    InstanceId string
    The id of ecs instance.
    InvocationId string
    The id of ecs invocation.
    InvocationResultId string
    The id of the ecs invocation result.
    InvocationResultStatus string
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    Output string
    The base64 encoded output message of the ecs invocation.
    StartTime string
    The start time of the ecs invocation in the instance.
    Username string
    The username of the ecs command.
    commandId String
    The id of ecs command.
    endTime String
    The end time of the ecs invocation in the instance.
    errorCode String
    The error code of the ecs invocation.
    errorMessage String
    The error message of the ecs invocation.
    exitCode Integer
    The exit code of the ecs command.
    id String
    The id of the ecs invocation result.
    instanceId String
    The id of ecs instance.
    invocationId String
    The id of ecs invocation.
    invocationResultId String
    The id of the ecs invocation result.
    invocationResultStatus String
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    output String
    The base64 encoded output message of the ecs invocation.
    startTime String
    The start time of the ecs invocation in the instance.
    username String
    The username of the ecs command.
    commandId string
    The id of ecs command.
    endTime string
    The end time of the ecs invocation in the instance.
    errorCode string
    The error code of the ecs invocation.
    errorMessage string
    The error message of the ecs invocation.
    exitCode number
    The exit code of the ecs command.
    id string
    The id of the ecs invocation result.
    instanceId string
    The id of ecs instance.
    invocationId string
    The id of ecs invocation.
    invocationResultId string
    The id of the ecs invocation result.
    invocationResultStatus string
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    output string
    The base64 encoded output message of the ecs invocation.
    startTime string
    The start time of the ecs invocation in the instance.
    username string
    The username of the ecs command.
    command_id str
    The id of ecs command.
    end_time str
    The end time of the ecs invocation in the instance.
    error_code str
    The error code of the ecs invocation.
    error_message str
    The error message of the ecs invocation.
    exit_code int
    The exit code of the ecs command.
    id str
    The id of the ecs invocation result.
    instance_id str
    The id of ecs instance.
    invocation_id str
    The id of ecs invocation.
    invocation_result_id str
    The id of the ecs invocation result.
    invocation_result_status str
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    output str
    The base64 encoded output message of the ecs invocation.
    start_time str
    The start time of the ecs invocation in the instance.
    username str
    The username of the ecs command.
    commandId String
    The id of ecs command.
    endTime String
    The end time of the ecs invocation in the instance.
    errorCode String
    The error code of the ecs invocation.
    errorMessage String
    The error message of the ecs invocation.
    exitCode Number
    The exit code of the ecs command.
    id String
    The id of the ecs invocation result.
    instanceId String
    The id of ecs instance.
    invocationId String
    The id of ecs invocation.
    invocationResultId String
    The id of the ecs invocation result.
    invocationResultStatus String
    The list of status of ecs invocation in a single instance. Valid values: Pending, Running, Success, Failed, Timeout.
    output String
    The base64 encoded output message of the ecs invocation.
    startTime String
    The start time of the ecs invocation in the instance.
    username String
    The username 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.26 published on Friday, Sep 13, 2024 by Volcengine