Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.21.0 published on Tuesday, Jun 14, 2022 by Pulumi

getEcsInvocations

This data source provides the Ecs Invocations of the current Alibaba Cloud user.

NOTE: Available in v1.168.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var ids = Output.Create(AliCloud.Ecs.GetEcsInvocations.InvokeAsync(new AliCloud.Ecs.GetEcsInvocationsArgs
        {
            Ids = 
            {
                "example-id",
            },
        }));
        this.EcsInvocationId1 = ids.Apply(ids => ids.Invocations?[0]?.Id);
    }

    [Output("ecsInvocationId1")]
    public Output<string> EcsInvocationId1 { get; set; }
}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := ecs.GetEcsInvocations(ctx, &ecs.GetEcsInvocationsArgs{
			Ids: []string{
				"example-id",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("ecsInvocationId1", ids.Invocations[0].Id)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

ids = alicloud.ecs.get_ecs_invocations(ids=["example-id"])
pulumi.export("ecsInvocationId1", ids.invocations[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const ids = alicloud.ecs.getEcsInvocations({
    ids: ["example-id"],
});
export const ecsInvocationId1 = ids.then(ids => ids.invocations?[0]?.id);

Coming soon!

Using getEcsInvocations

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 getEcsInvocations(args: GetEcsInvocationsArgs, opts?: InvokeOptions): Promise<GetEcsInvocationsResult>
function getEcsInvocationsOutput(args: GetEcsInvocationsOutputArgs, opts?: InvokeOptions): Output<GetEcsInvocationsResult>
def get_ecs_invocations(command_id: Optional[str] = None,
                        content_encoding: Optional[str] = None,
                        ids: Optional[Sequence[str]] = None,
                        invoke_status: Optional[str] = None,
                        output_file: Optional[str] = None,
                        page_number: Optional[int] = None,
                        page_size: Optional[int] = None,
                        opts: Optional[InvokeOptions] = None) -> GetEcsInvocationsResult
def get_ecs_invocations_output(command_id: Optional[pulumi.Input[str]] = None,
                        content_encoding: Optional[pulumi.Input[str]] = None,
                        ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                        invoke_status: Optional[pulumi.Input[str]] = None,
                        output_file: Optional[pulumi.Input[str]] = None,
                        page_number: Optional[pulumi.Input[int]] = None,
                        page_size: Optional[pulumi.Input[int]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetEcsInvocationsResult]
func GetEcsInvocations(ctx *Context, args *GetEcsInvocationsArgs, opts ...InvokeOption) (*GetEcsInvocationsResult, error)
func GetEcsInvocationsOutput(ctx *Context, args *GetEcsInvocationsOutputArgs, opts ...InvokeOption) GetEcsInvocationsResultOutput

> Note: This function is named GetEcsInvocations in the Go SDK.

public static class GetEcsInvocations 
{
    public static Task<GetEcsInvocationsResult> InvokeAsync(GetEcsInvocationsArgs args, InvokeOptions? opts = null)
    public static Output<GetEcsInvocationsResult> Invoke(GetEcsInvocationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEcsInvocationsResult> getEcsInvocations(GetEcsInvocationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: alicloud:ecs/getEcsInvocations:getEcsInvocations
  Arguments:
    # Arguments dictionary

The following arguments are supported:

CommandId string

The ID of the command.

ContentEncoding string

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

Ids List<string>

A list of Invocation IDs.

InvokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

OutputFile string
PageNumber int
PageSize int
CommandId string

The ID of the command.

ContentEncoding string

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

Ids []string

A list of Invocation IDs.

InvokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

OutputFile string
PageNumber int
PageSize int
commandId String

The ID of the command.

contentEncoding String

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

ids List<String>

A list of Invocation IDs.

invokeStatus String

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

outputFile String
pageNumber Integer
pageSize Integer
commandId string

The ID of the command.

contentEncoding string

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

ids string[]

A list of Invocation IDs.

invokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

outputFile string
pageNumber number
pageSize number
command_id str

The ID of the command.

content_encoding str

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

ids Sequence[str]

A list of Invocation IDs.

invoke_status str

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

output_file str
page_number int
page_size int
commandId String

The ID of the command.

contentEncoding String

The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText, Base64.

ids List<String>

A list of Invocation IDs.

invokeStatus String

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

outputFile String
pageNumber Number
pageSize Number

getEcsInvocations Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Ids List<string>
Invocations List<Pulumi.AliCloud.Ecs.Outputs.GetEcsInvocationsInvocation>
CommandId string
ContentEncoding string
InvokeStatus string
OutputFile string
PageNumber int
PageSize int
Id string

The provider-assigned unique ID for this managed resource.

Ids []string
Invocations []GetEcsInvocationsInvocation
CommandId string
ContentEncoding string
InvokeStatus string
OutputFile string
PageNumber int
PageSize int
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
invocations List<GetEcsInvocationsInvocation>
commandId String
contentEncoding String
invokeStatus String
outputFile String
pageNumber Integer
pageSize Integer
id string

The provider-assigned unique ID for this managed resource.

ids string[]
invocations GetEcsInvocationsInvocation[]
commandId string
contentEncoding string
invokeStatus string
outputFile string
pageNumber number
pageSize number
id str

The provider-assigned unique ID for this managed resource.

ids Sequence[str]
invocations Sequence[GetEcsInvocationsInvocation]
command_id str
content_encoding str
invoke_status str
output_file str
page_number int
page_size int
id String

The provider-assigned unique ID for this managed resource.

ids List<String>
invocations List<Property Map>
commandId String
contentEncoding String
invokeStatus String
outputFile String
pageNumber Number
pageSize Number

Supporting Types

GetEcsInvocationsInvocation

CommandContent string

The Base64-encoded command content.

CommandId string

The ID of the command.

CommandName string

The name of the command.

CommandType string

The type of the command.

CreateTime string

The creation time of the resource.

Frequency string

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

Id string

The ID of the Invocation.

InvocationId string

The ID of the Invocation.

InvocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

InvokeInstances List<Pulumi.AliCloud.Ecs.Inputs.GetEcsInvocationsInvocationInvokeInstance>

Execute target instance set type.

InvokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

Parameters string

The custom parameters in the command.

RepeatMode string

Indicates the execution mode of the command.

Timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
Username string

The username that was used to run the command on the instance.

CommandContent string

The Base64-encoded command content.

CommandId string

The ID of the command.

CommandName string

The name of the command.

CommandType string

The type of the command.

CreateTime string

The creation time of the resource.

Frequency string

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

Id string

The ID of the Invocation.

InvocationId string

The ID of the Invocation.

InvocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

InvokeInstances []GetEcsInvocationsInvocationInvokeInstance

Execute target instance set type.

InvokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

Parameters string

The custom parameters in the command.

RepeatMode string

Indicates the execution mode of the command.

Timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
Username string

The username that was used to run the command on the instance.

commandContent String

The Base64-encoded command content.

commandId String

The ID of the command.

commandName String

The name of the command.

commandType String

The type of the command.

createTime String

The creation time of the resource.

frequency String

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

id String

The ID of the Invocation.

invocationId String

The ID of the Invocation.

invocationStatus String

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

invokeInstances List<GetEcsInvocationsInvocationInvokeInstance>

Execute target instance set type.

invokeStatus String

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

parameters String

The custom parameters in the command.

repeatMode String

Indicates the execution mode of the command.

timed Boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
username String

The username that was used to run the command on the instance.

commandContent string

The Base64-encoded command content.

commandId string

The ID of the command.

commandName string

The name of the command.

commandType string

The type of the command.

createTime string

The creation time of the resource.

frequency string

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

id string

The ID of the Invocation.

invocationId string

The ID of the Invocation.

invocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

invokeInstances GetEcsInvocationsInvocationInvokeInstance[]

Execute target instance set type.

invokeStatus string

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

parameters string

The custom parameters in the command.

repeatMode string

Indicates the execution mode of the command.

timed boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
username string

The username that was used to run the command on the instance.

command_content str

The Base64-encoded command content.

command_id str

The ID of the command.

command_name str

The name of the command.

command_type str

The type of the command.

create_time str

The creation time of the resource.

frequency str

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

id str

The ID of the Invocation.

invocation_id str

The ID of the Invocation.

invocation_status str

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

invoke_instances Sequence[GetEcsInvocationsInvocationInvokeInstance]

Execute target instance set type.

invoke_status str

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

parameters str

The custom parameters in the command.

repeat_mode str

Indicates the execution mode of the command.

timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
username str

The username that was used to run the command on the instance.

commandContent String

The Base64-encoded command content.

commandId String

The ID of the command.

commandName String

The name of the command.

commandType String

The type of the command.

createTime String

The creation time of the resource.

frequency String

The schedule on which the recurring execution of the command takes place. For information about the value specifications, see Cron expression.

id String

The ID of the Invocation.

invocationId String

The ID of the Invocation.

invocationStatus String

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

invokeInstances List<Property Map>

Execute target instance set type.

invokeStatus String

The overall execution state of the command. Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.

parameters String

The custom parameters in the command.

repeatMode String

Indicates the execution mode of the command.

timed Boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
username String

The username that was used to run the command on the instance.

GetEcsInvocationsInvocationInvokeInstance

CreationTime string

The start time of the execution.

Dropped int

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

ErrorCode string
ErrorInfo string

Details about the reason why the command failed to be sent or run.

ExitCode int

The exit code of the execution.

FinishTime string

The end time of the execution.

InstanceId string

The ID of the instance.

InstanceInvokeStatus string
InvocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

Output string

The output of the command.

Repeats int

The number of times that the command is run on the instance.

StartTime string

The time when the command started to be run on the instance.

StopTime string

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

Timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
UpdateTime string

The time when the execution state was updated.

CreationTime string

The start time of the execution.

Dropped int

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

ErrorCode string
ErrorInfo string

Details about the reason why the command failed to be sent or run.

ExitCode int

The exit code of the execution.

FinishTime string

The end time of the execution.

InstanceId string

The ID of the instance.

InstanceInvokeStatus string
InvocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

Output string

The output of the command.

Repeats int

The number of times that the command is run on the instance.

StartTime string

The time when the command started to be run on the instance.

StopTime string

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

Timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
UpdateTime string

The time when the execution state was updated.

creationTime String

The start time of the execution.

dropped Integer

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

errorCode String
errorInfo String

Details about the reason why the command failed to be sent or run.

exitCode Integer

The exit code of the execution.

finishTime String

The end time of the execution.

instanceId String

The ID of the instance.

instanceInvokeStatus String
invocationStatus String

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

output String

The output of the command.

repeats Integer

The number of times that the command is run on the instance.

startTime String

The time when the command started to be run on the instance.

stopTime String

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

timed Boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
updateTime String

The time when the execution state was updated.

creationTime string

The start time of the execution.

dropped number

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

errorCode string
errorInfo string

Details about the reason why the command failed to be sent or run.

exitCode number

The exit code of the execution.

finishTime string

The end time of the execution.

instanceId string

The ID of the instance.

instanceInvokeStatus string
invocationStatus string

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

output string

The output of the command.

repeats number

The number of times that the command is run on the instance.

startTime string

The time when the command started to be run on the instance.

stopTime string

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

timed boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
updateTime string

The time when the execution state was updated.

creation_time str

The start time of the execution.

dropped int

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

error_code str
error_info str

Details about the reason why the command failed to be sent or run.

exit_code int

The exit code of the execution.

finish_time str

The end time of the execution.

instance_id str

The ID of the instance.

instance_invoke_status str
invocation_status str

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

output str

The output of the command.

repeats int

The number of times that the command is run on the instance.

start_time str

The time when the command started to be run on the instance.

stop_time str

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

timed bool

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
update_time str

The time when the execution state was updated.

creationTime String

The start time of the execution.

dropped Number

The size of truncated and discarded text when the value of the Output response parameter exceeds 24 KB in size.

errorCode String
errorInfo String

Details about the reason why the command failed to be sent or run.

exitCode Number

The exit code of the execution.

finishTime String

The end time of the execution.

instanceId String

The ID of the instance.

instanceInvokeStatus String
invocationStatus String

The execution state on a single instance. Valid values: Pending, Scheduled, Running, Success, Failed, Stopping, Stopped, PartialFailed.

output String

The output of the command.

repeats Number

The number of times that the command is run on the instance.

startTime String

The time when the command started to be run on the instance.

stopTime String

The time when the command stopped being run on the instance. If you call the StopInvocation operation to manually stop the execution, the value is the time when you call the operation.

timed Boolean

Indicates whether the commands are to be automatically run.

  • error_code - The code that indicates why the command failed to be sent or run.
  • instance_invoke_status - Note: We recommend that you ignore this parameter and check the value of the invocation_status response parameter for the overall execution state.
updateTime String

The time when the execution state was updated.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.