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 invocation results
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.ecs.getInvocationResults({
invocationId: "ivk-ych9y4vujvl8j01c****",
invocationResultStatuses: ["Success"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.ecs.get_invocation_results(invocation_id="ivk-ych9y4vujvl8j01c****",
invocation_result_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.GetInvocationResults(ctx, &ecs.GetInvocationResultsArgs{
InvocationId: "ivk-ych9y4vujvl8j01c****",
InvocationResultStatuses: []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.GetInvocationResults.Invoke(new()
{
InvocationId = "ivk-ych9y4vujvl8j01c****",
InvocationResultStatuses = 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.GetInvocationResultsArgs;
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.getInvocationResults(GetInvocationResultsArgs.builder()
.invocationId("ivk-ych9y4vujvl8j01c****")
.invocationResultStatuses("Success")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:ecs:getInvocationResults
Arguments:
invocationId: ivk-ych9y4vujvl8j01c****
invocationResultStatuses:
- Success
Using getInvocationResults
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 getInvocationResults(args: GetInvocationResultsArgs, opts?: InvokeOptions): Promise<GetInvocationResultsResult>
function getInvocationResultsOutput(args: GetInvocationResultsOutputArgs, opts?: InvokeOptions): Output<GetInvocationResultsResult>def get_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) -> GetInvocationResultsResult
def get_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[GetInvocationResultsResult]func GetInvocationResults(ctx *Context, args *GetInvocationResultsArgs, opts ...InvokeOption) (*GetInvocationResultsResult, error)
func GetInvocationResultsOutput(ctx *Context, args *GetInvocationResultsOutputArgs, opts ...InvokeOption) GetInvocationResultsResultOutput> Note: This function is named GetInvocationResults in the Go SDK.
public static class GetInvocationResults
{
public static Task<GetInvocationResultsResult> InvokeAsync(GetInvocationResultsArgs args, InvokeOptions? opts = null)
public static Output<GetInvocationResultsResult> Invoke(GetInvocationResultsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetInvocationResultsResult> getInvocationResults(GetInvocationResultsArgs args, InvokeOptions options)
public static Output<GetInvocationResultsResult> getInvocationResults(GetInvocationResultsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:ecs/getInvocationResults:getInvocationResults
arguments:
# arguments dictionaryThe following arguments are supported:
- Invocation
Id string - The id of ecs invocation.
- Command
Id string - The id of ecs command.
- Instance
Id string - The id of ecs instance.
- Invocation
Result List<string>Statuses - The list of status of ecs invocation in a single instance. Valid values:
Pending,Running,Success,Failed,Timeout. - Output
File string - File name where to save data source results.
- Invocation
Id string - The id of ecs invocation.
- Command
Id string - The id of ecs command.
- Instance
Id string - The id of ecs instance.
- Invocation
Result []stringStatuses - The list of status of ecs invocation in a single instance. Valid values:
Pending,Running,Success,Failed,Timeout. - Output
File string - File name where to save data source results.
- invocation
Id String - The id of ecs invocation.
- command
Id String - The id of ecs command.
- instance
Id String - The id of ecs instance.
- invocation
Result List<String>Statuses - The list of status of ecs invocation in a single instance. Valid values:
Pending,Running,Success,Failed,Timeout. - output
File String - File name where to save data source results.
- invocation
Id string - The id of ecs invocation.
- command
Id string - The id of ecs command.
- instance
Id string - The id of ecs instance.
- invocation
Result string[]Statuses - The list of status of ecs invocation in a single instance. Valid values:
Pending,Running,Success,Failed,Timeout. - output
File 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_ Sequence[str]statuses - 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.
- invocation
Id String - The id of ecs invocation.
- command
Id String - The id of ecs command.
- instance
Id String - The id of ecs instance.
- invocation
Result List<String>Statuses - The list of status of ecs invocation in a single instance. Valid values:
Pending,Running,Success,Failed,Timeout. - output
File String - File name where to save data source results.
getInvocationResults Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Id string - The id of the ecs invocation.
- Invocation
Results List<GetInvocation Results Invocation Result> - The collection of query.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Instance
Id string - The id of the ecs instance.
- Invocation
Result List<string>Statuses - The status of ecs invocation in a single instance.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocation
Id string - The id of the ecs invocation.
- Invocation
Results []GetInvocation Results Invocation Result - The collection of query.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Instance
Id string - The id of the ecs instance.
- Invocation
Result []stringStatuses - The status of ecs invocation in a single instance.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Id String - The id of the ecs invocation.
- invocation
Results List<GetInvocation Results Invocation Result> - The collection of query.
- total
Count Integer - The total count of query.
- command
Id String - The id of the ecs command.
- instance
Id String - The id of the ecs instance.
- invocation
Result List<String>Statuses - The status of ecs invocation in a single instance.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- invocation
Id string - The id of the ecs invocation.
- invocation
Results GetInvocation Results Invocation Result[] - The collection of query.
- total
Count number - The total count of query.
- command
Id string - The id of the ecs command.
- instance
Id string - The id of the ecs instance.
- invocation
Result string[]Statuses - The status of ecs invocation in a single instance.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- invocation_
id str - The id of the ecs invocation.
- invocation_
results Sequence[GetInvocation Results Invocation Result] - 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_ Sequence[str]statuses - The status of ecs invocation in a single instance.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- invocation
Id String - The id of the ecs invocation.
- invocation
Results List<Property Map> - The collection of query.
- total
Count Number - The total count of query.
- command
Id String - The id of the ecs command.
- instance
Id String - The id of the ecs instance.
- invocation
Result List<String>Statuses - The status of ecs invocation in a single instance.
- output
File String
Supporting Types
GetInvocationResultsInvocationResult
- Command
Id string - The id of ecs command.
- End
Time string - The end time of the ecs invocation in the instance.
- Error
Code string - The error code of the ecs invocation.
- Error
Message string - The error message of the ecs invocation.
- Exit
Code int - The exit code of the ecs command.
- Id string
- The id of the ecs invocation result.
- Instance
Id string - The id of ecs instance.
- Invocation
Id string - The id of ecs invocation.
- Invocation
Result stringId - The id of the ecs invocation result.
- Invocation
Result stringStatus - 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.
- Start
Time string - The start time of the ecs invocation in the instance.
- Username string
- The username of the ecs command.
- Command
Id string - The id of ecs command.
- End
Time string - The end time of the ecs invocation in the instance.
- Error
Code string - The error code of the ecs invocation.
- Error
Message string - The error message of the ecs invocation.
- Exit
Code int - The exit code of the ecs command.
- Id string
- The id of the ecs invocation result.
- Instance
Id string - The id of ecs instance.
- Invocation
Id string - The id of ecs invocation.
- Invocation
Result stringId - The id of the ecs invocation result.
- Invocation
Result stringStatus - 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.
- Start
Time string - The start time of the ecs invocation in the instance.
- Username string
- The username of the ecs command.
- command
Id String - The id of ecs command.
- end
Time String - The end time of the ecs invocation in the instance.
- error
Code String - The error code of the ecs invocation.
- error
Message String - The error message of the ecs invocation.
- exit
Code Integer - The exit code of the ecs command.
- id String
- The id of the ecs invocation result.
- instance
Id String - The id of ecs instance.
- invocation
Id String - The id of ecs invocation.
- invocation
Result StringId - The id of the ecs invocation result.
- invocation
Result StringStatus - 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.
- start
Time String - The start time of the ecs invocation in the instance.
- username String
- The username of the ecs command.
- command
Id string - The id of ecs command.
- end
Time string - The end time of the ecs invocation in the instance.
- error
Code string - The error code of the ecs invocation.
- error
Message string - The error message of the ecs invocation.
- exit
Code number - The exit code of the ecs command.
- id string
- The id of the ecs invocation result.
- instance
Id string - The id of ecs instance.
- invocation
Id string - The id of ecs invocation.
- invocation
Result stringId - The id of the ecs invocation result.
- invocation
Result stringStatus - 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.
- start
Time 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_ strid - The id of the ecs invocation result.
- invocation_
result_ strstatus - 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.
- command
Id String - The id of ecs command.
- end
Time String - The end time of the ecs invocation in the instance.
- error
Code String - The error code of the ecs invocation.
- error
Message String - The error message of the ecs invocation.
- exit
Code Number - The exit code of the ecs command.
- id String
- The id of the ecs invocation result.
- instance
Id String - The id of ecs instance.
- invocation
Id String - The id of ecs invocation.
- invocation
Result StringId - The id of the ecs invocation result.
- invocation
Result StringStatus - 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.
- start
Time 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
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
