get Ecs Invocations
This data source provides the Ecs Invocations of the current Alibaba Cloud user.
NOTE: Available in v1.168.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ecs.EcsFunctions;
import com.pulumi.alicloud.ecs.inputs.GetEcsInvocationsArgs;
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 ids = EcsFunctions.getEcsInvocations(GetEcsInvocationsArgs.builder()
.ids("example-id")
.build());
ctx.export("ecsInvocationId1", ids.applyValue(getEcsInvocationsResult -> getEcsInvocationsResult.invocations()[0].id()));
}
}
Return
A collection of values returned by getEcsInvocations.
Parameters
A collection of arguments for invoking getEcsInvocations.
Return
A collection of values returned by getEcsInvocations.
See also
Parameters
The ID of the command.
The encoding mode of the CommandContent and Output response parameters. Valid values: PlainText
, Base64
.
A list of Invocation IDs.
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.
File name where to save data source results (after running pulumi preview
).
Return
A collection of values returned by getEcsInvocations.
See also
Parameters
Builder for com.pulumi.alicloud.ecs.kotlin.inputs.GetEcsInvocationsPlainArgs.