1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. ecs
  5. Invocation
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

volcenginecc.ecs.Invocation

Deploy with Pulumi
volcenginecc logo
volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine

    云助手是火山引擎打造的原生自动化运维工具。您可以创建立即执行、周期执行、定时执行的作业任务,创建完成后完,云助手客户端将按照执行模式自动开始执行。

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
    
    const invocationDemo = new volcenginecc.ecs.Invocation("InvocationDemo", {
        invocationName: "InvocationDemo",
        invocationDescription: "InvocationDemo desc",
        workingDir: "/home",
        username: "InvocationDemo",
        windowsPassword: "********",
        timeout: 60,
        instanceIds: ["i-ye2v6l0pvkqc6inxxxxx"],
        repeatMode: "Rate",
        frequency: "1h",
        launchTime: "2025-08-30T11:10Z",
        recurrenceEndTime: "2025-08-31T11:04Z",
        projectName: "default",
        tags: [{
            key: "env",
            value: "test",
        }],
        commandId: "cmd-ye28kugp249tzrexxxxx",
        parameters: "{\"dirname\":\"10\"}",
    });
    
    import pulumi
    import pulumi_volcenginecc as volcenginecc
    
    invocation_demo = volcenginecc.ecs.Invocation("InvocationDemo",
        invocation_name="InvocationDemo",
        invocation_description="InvocationDemo desc",
        working_dir="/home",
        username="InvocationDemo",
        windows_password="********",
        timeout=60,
        instance_ids=["i-ye2v6l0pvkqc6inxxxxx"],
        repeat_mode="Rate",
        frequency="1h",
        launch_time="2025-08-30T11:10Z",
        recurrence_end_time="2025-08-31T11:04Z",
        project_name="default",
        tags=[{
            "key": "env",
            "value": "test",
        }],
        command_id="cmd-ye28kugp249tzrexxxxx",
        parameters="{\"dirname\":\"10\"}")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/ecs"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ecs.NewInvocation(ctx, "InvocationDemo", &ecs.InvocationArgs{
    			InvocationName:        pulumi.String("InvocationDemo"),
    			InvocationDescription: pulumi.String("InvocationDemo desc"),
    			WorkingDir:            pulumi.String("/home"),
    			Username:              pulumi.String("InvocationDemo"),
    			WindowsPassword:       pulumi.String("********"),
    			Timeout:               pulumi.Int(60),
    			InstanceIds: pulumi.StringArray{
    				pulumi.String("i-ye2v6l0pvkqc6inxxxxx"),
    			},
    			RepeatMode:        pulumi.String("Rate"),
    			Frequency:         pulumi.String("1h"),
    			LaunchTime:        pulumi.String("2025-08-30T11:10Z"),
    			RecurrenceEndTime: pulumi.String("2025-08-31T11:04Z"),
    			ProjectName:       pulumi.String("default"),
    			Tags: ecs.InvocationTagArray{
    				&ecs.InvocationTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    			CommandId:  pulumi.String("cmd-ye28kugp249tzrexxxxx"),
    			Parameters: pulumi.String("{\"dirname\":\"10\"}"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
    
    return await Deployment.RunAsync(() => 
    {
        var invocationDemo = new Volcenginecc.Ecs.Invocation("InvocationDemo", new()
        {
            InvocationName = "InvocationDemo",
            InvocationDescription = "InvocationDemo desc",
            WorkingDir = "/home",
            Username = "InvocationDemo",
            WindowsPassword = "********",
            Timeout = 60,
            InstanceIds = new[]
            {
                "i-ye2v6l0pvkqc6inxxxxx",
            },
            RepeatMode = "Rate",
            Frequency = "1h",
            LaunchTime = "2025-08-30T11:10Z",
            RecurrenceEndTime = "2025-08-31T11:04Z",
            ProjectName = "default",
            Tags = new[]
            {
                new Volcenginecc.Ecs.Inputs.InvocationTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
            CommandId = "cmd-ye28kugp249tzrexxxxx",
            Parameters = "{\"dirname\":\"10\"}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.volcengine.volcenginecc.ecs.Invocation;
    import com.volcengine.volcenginecc.ecs.InvocationArgs;
    import com.pulumi.volcenginecc.ecs.inputs.InvocationTagArgs;
    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) {
            var invocationDemo = new Invocation("invocationDemo", InvocationArgs.builder()
                .invocationName("InvocationDemo")
                .invocationDescription("InvocationDemo desc")
                .workingDir("/home")
                .username("InvocationDemo")
                .windowsPassword("********")
                .timeout(60)
                .instanceIds("i-ye2v6l0pvkqc6inxxxxx")
                .repeatMode("Rate")
                .frequency("1h")
                .launchTime("2025-08-30T11:10Z")
                .recurrenceEndTime("2025-08-31T11:04Z")
                .projectName("default")
                .tags(InvocationTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .commandId("cmd-ye28kugp249tzrexxxxx")
                .parameters("{\"dirname\":\"10\"}")
                .build());
    
        }
    }
    
    resources:
      invocationDemo:
        type: volcenginecc:ecs:Invocation
        name: InvocationDemo
        properties:
          invocationName: InvocationDemo
          invocationDescription: InvocationDemo desc
          workingDir: /home
          username: InvocationDemo
          windowsPassword: '********'
          timeout: 60
          instanceIds:
            - i-ye2v6l0pvkqc6inxxxxx
          repeatMode: Rate
          frequency: 1h
          launchTime: 2025-08-30T11:10Z
          recurrenceEndTime: 2025-08-31T11:04Z
          projectName: default
          tags:
            - key: env
              value: test
          commandId: cmd-ye28kugp249tzrexxxxx
          parameters: '{"dirname":"10"}'
    

    Create Invocation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Invocation(name: string, args: InvocationArgs, opts?: CustomResourceOptions);
    @overload
    def Invocation(resource_name: str,
                   args: InvocationArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Invocation(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   invocation_name: Optional[str] = None,
                   command_id: Optional[str] = None,
                   instance_ids: Optional[Sequence[str]] = None,
                   parameters: Optional[str] = None,
                   invocation_description: Optional[str] = None,
                   launch_time: Optional[str] = None,
                   frequency: Optional[str] = None,
                   project_name: Optional[str] = None,
                   recurrence_end_time: Optional[str] = None,
                   repeat_mode: Optional[str] = None,
                   tags: Optional[Sequence[InvocationTagArgs]] = None,
                   timeout: Optional[int] = None,
                   username: Optional[str] = None,
                   windows_password: Optional[str] = None,
                   working_dir: Optional[str] = None)
    func NewInvocation(ctx *Context, name string, args InvocationArgs, opts ...ResourceOption) (*Invocation, error)
    public Invocation(string name, InvocationArgs args, CustomResourceOptions? opts = null)
    public Invocation(String name, InvocationArgs args)
    public Invocation(String name, InvocationArgs args, CustomResourceOptions options)
    
    type: volcenginecc:ecs:Invocation
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args InvocationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args InvocationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args InvocationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InvocationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InvocationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var invocationResource = new Volcenginecc.Ecs.Invocation("invocationResource", new()
    {
        InvocationName = "string",
        CommandId = "string",
        InstanceIds = new[]
        {
            "string",
        },
        Parameters = "string",
        InvocationDescription = "string",
        LaunchTime = "string",
        Frequency = "string",
        ProjectName = "string",
        RecurrenceEndTime = "string",
        RepeatMode = "string",
        Tags = new[]
        {
            new Volcenginecc.Ecs.Inputs.InvocationTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        Timeout = 0,
        Username = "string",
        WindowsPassword = "string",
        WorkingDir = "string",
    });
    
    example, err := ecs.NewInvocation(ctx, "invocationResource", &ecs.InvocationArgs{
    	InvocationName: pulumi.String("string"),
    	CommandId:      pulumi.String("string"),
    	InstanceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Parameters:            pulumi.String("string"),
    	InvocationDescription: pulumi.String("string"),
    	LaunchTime:            pulumi.String("string"),
    	Frequency:             pulumi.String("string"),
    	ProjectName:           pulumi.String("string"),
    	RecurrenceEndTime:     pulumi.String("string"),
    	RepeatMode:            pulumi.String("string"),
    	Tags: ecs.InvocationTagArray{
    		&ecs.InvocationTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Timeout:         pulumi.Int(0),
    	Username:        pulumi.String("string"),
    	WindowsPassword: pulumi.String("string"),
    	WorkingDir:      pulumi.String("string"),
    })
    
    var invocationResource = new Invocation("invocationResource", InvocationArgs.builder()
        .invocationName("string")
        .commandId("string")
        .instanceIds("string")
        .parameters("string")
        .invocationDescription("string")
        .launchTime("string")
        .frequency("string")
        .projectName("string")
        .recurrenceEndTime("string")
        .repeatMode("string")
        .tags(InvocationTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .timeout(0)
        .username("string")
        .windowsPassword("string")
        .workingDir("string")
        .build());
    
    invocation_resource = volcenginecc.ecs.Invocation("invocationResource",
        invocation_name="string",
        command_id="string",
        instance_ids=["string"],
        parameters="string",
        invocation_description="string",
        launch_time="string",
        frequency="string",
        project_name="string",
        recurrence_end_time="string",
        repeat_mode="string",
        tags=[{
            "key": "string",
            "value": "string",
        }],
        timeout=0,
        username="string",
        windows_password="string",
        working_dir="string")
    
    const invocationResource = new volcenginecc.ecs.Invocation("invocationResource", {
        invocationName: "string",
        commandId: "string",
        instanceIds: ["string"],
        parameters: "string",
        invocationDescription: "string",
        launchTime: "string",
        frequency: "string",
        projectName: "string",
        recurrenceEndTime: "string",
        repeatMode: "string",
        tags: [{
            key: "string",
            value: "string",
        }],
        timeout: 0,
        username: "string",
        windowsPassword: "string",
        workingDir: "string",
    });
    
    type: volcenginecc:ecs:Invocation
    properties:
        commandId: string
        frequency: string
        instanceIds:
            - string
        invocationDescription: string
        invocationName: string
        launchTime: string
        parameters: string
        projectName: string
        recurrenceEndTime: string
        repeatMode: string
        tags:
            - key: string
              value: string
        timeout: 0
        username: string
        windowsPassword: string
        workingDir: string
    

    Invocation Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Invocation resource accepts the following input properties:

    CommandId string
    命令ID。
    InstanceIds List<string>
    实例ID列表,最多支持200个ID。
    InvocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    Frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    InvocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    LaunchTime string
    执行时间。
    Parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。
    RecurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    RepeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    Tags List<Volcengine.InvocationTag>
    Timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    Username string
    在ECS实例中执行命令的用户名称。
    WindowsPassword string
    自定义windows用户的密码。
    WorkingDir string
    创建的命令在ECS实例中运行的目录。
    CommandId string
    命令ID。
    InstanceIds []string
    实例ID列表,最多支持200个ID。
    InvocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    Frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    InvocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    LaunchTime string
    执行时间。
    Parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。
    RecurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    RepeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    Tags []InvocationTagArgs
    Timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    Username string
    在ECS实例中执行命令的用户名称。
    WindowsPassword string
    自定义windows用户的密码。
    WorkingDir string
    创建的命令在ECS实例中运行的目录。
    commandId String
    命令ID。
    instanceIds List<String>
    实例ID列表,最多支持200个ID。
    invocationName String
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    frequency String
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    invocationDescription String
    作业描述,默认为空字符串,不超过256个字符。
    launchTime String
    执行时间。
    parameters String
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime String
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode String
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    tags List<InvocationTag>
    timeout Integer
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username String
    在ECS实例中执行命令的用户名称。
    windowsPassword String
    自定义windows用户的密码。
    workingDir String
    创建的命令在ECS实例中运行的目录。
    commandId string
    命令ID。
    instanceIds string[]
    实例ID列表,最多支持200个ID。
    invocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    invocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    launchTime string
    执行时间。
    parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName string
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    tags InvocationTag[]
    timeout number
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username string
    在ECS实例中执行命令的用户名称。
    windowsPassword string
    自定义windows用户的密码。
    workingDir string
    创建的命令在ECS实例中运行的目录。
    command_id str
    命令ID。
    instance_ids Sequence[str]
    实例ID列表,最多支持200个ID。
    invocation_name str
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    frequency str
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    invocation_description str
    作业描述,默认为空字符串,不超过256个字符。
    launch_time str
    执行时间。
    parameters str
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    project_name str
    资源所属项目,一个资源只能归属于一个项目。
    recurrence_end_time str
    周期结束时间,仅适用于周期任务(Rate)。
    repeat_mode str
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    tags Sequence[InvocationTagArgs]
    timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username str
    在ECS实例中执行命令的用户名称。
    windows_password str
    自定义windows用户的密码。
    working_dir str
    创建的命令在ECS实例中运行的目录。
    commandId String
    命令ID。
    instanceIds List<String>
    实例ID列表,最多支持200个ID。
    invocationName String
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    frequency String
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    invocationDescription String
    作业描述,默认为空字符串,不超过256个字符。
    launchTime String
    执行时间。
    parameters String
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime String
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode String
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    tags List<Property Map>
    timeout Number
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username String
    在ECS实例中执行命令的用户名称。
    windowsPassword String
    自定义windows用户的密码。
    workingDir String
    创建的命令在ECS实例中运行的目录。

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Invocation resource produces the following output properties:

    CommandContent string
    命令内容。
    CommandDescription string
    被调用命令的描述。
    CommandName string
    任务触发时的命令名称。
    CommandProvider string
    被调用命令的提供方。
    CommandType string
    作业触发的命令类型。
    EnableParameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    EndTime string
    任务结束时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceNumber int
    执行实例数量。
    InvocationId string
    任务执行 ID。
    InvocationResults List<Volcengine.InvocationInvocationResult>
    InvocationStatus string
    命令执行的总执行状态。
    ParameterDefinitions List<Volcengine.InvocationParameterDefinition>
    StartTime string
    任务开始时间。
    CommandContent string
    命令内容。
    CommandDescription string
    被调用命令的描述。
    CommandName string
    任务触发时的命令名称。
    CommandProvider string
    被调用命令的提供方。
    CommandType string
    作业触发的命令类型。
    EnableParameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    EndTime string
    任务结束时间。
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceNumber int
    执行实例数量。
    InvocationId string
    任务执行 ID。
    InvocationResults []InvocationInvocationResult
    InvocationStatus string
    命令执行的总执行状态。
    ParameterDefinitions []InvocationParameterDefinition
    StartTime string
    任务开始时间。
    commandContent String
    命令内容。
    commandDescription String
    被调用命令的描述。
    commandName String
    任务触发时的命令名称。
    commandProvider String
    被调用命令的提供方。
    commandType String
    作业触发的命令类型。
    enableParameter Boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime String
    任务结束时间。
    id String
    The provider-assigned unique ID for this managed resource.
    instanceNumber Integer
    执行实例数量。
    invocationId String
    任务执行 ID。
    invocationResults List<InvocationInvocationResult>
    invocationStatus String
    命令执行的总执行状态。
    parameterDefinitions List<InvocationParameterDefinition>
    startTime String
    任务开始时间。
    commandContent string
    命令内容。
    commandDescription string
    被调用命令的描述。
    commandName string
    任务触发时的命令名称。
    commandProvider string
    被调用命令的提供方。
    commandType string
    作业触发的命令类型。
    enableParameter boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime string
    任务结束时间。
    id string
    The provider-assigned unique ID for this managed resource.
    instanceNumber number
    执行实例数量。
    invocationId string
    任务执行 ID。
    invocationResults InvocationInvocationResult[]
    invocationStatus string
    命令执行的总执行状态。
    parameterDefinitions InvocationParameterDefinition[]
    startTime string
    任务开始时间。
    command_content str
    命令内容。
    command_description str
    被调用命令的描述。
    command_name str
    任务触发时的命令名称。
    command_provider str
    被调用命令的提供方。
    command_type str
    作业触发的命令类型。
    enable_parameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    end_time str
    任务结束时间。
    id str
    The provider-assigned unique ID for this managed resource.
    instance_number int
    执行实例数量。
    invocation_id str
    任务执行 ID。
    invocation_results Sequence[InvocationInvocationResult]
    invocation_status str
    命令执行的总执行状态。
    parameter_definitions Sequence[InvocationParameterDefinition]
    start_time str
    任务开始时间。
    commandContent String
    命令内容。
    commandDescription String
    被调用命令的描述。
    commandName String
    任务触发时的命令名称。
    commandProvider String
    被调用命令的提供方。
    commandType String
    作业触发的命令类型。
    enableParameter Boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime String
    任务结束时间。
    id String
    The provider-assigned unique ID for this managed resource.
    instanceNumber Number
    执行实例数量。
    invocationId String
    任务执行 ID。
    invocationResults List<Property Map>
    invocationStatus String
    命令执行的总执行状态。
    parameterDefinitions List<Property Map>
    startTime String
    任务开始时间。

    Look up Existing Invocation Resource

    Get an existing Invocation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: InvocationState, opts?: CustomResourceOptions): Invocation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            command_content: Optional[str] = None,
            command_description: Optional[str] = None,
            command_id: Optional[str] = None,
            command_name: Optional[str] = None,
            command_provider: Optional[str] = None,
            command_type: Optional[str] = None,
            enable_parameter: Optional[bool] = None,
            end_time: Optional[str] = None,
            frequency: Optional[str] = None,
            instance_ids: Optional[Sequence[str]] = None,
            instance_number: Optional[int] = None,
            invocation_description: Optional[str] = None,
            invocation_id: Optional[str] = None,
            invocation_name: Optional[str] = None,
            invocation_results: Optional[Sequence[InvocationInvocationResultArgs]] = None,
            invocation_status: Optional[str] = None,
            launch_time: Optional[str] = None,
            parameter_definitions: Optional[Sequence[InvocationParameterDefinitionArgs]] = None,
            parameters: Optional[str] = None,
            project_name: Optional[str] = None,
            recurrence_end_time: Optional[str] = None,
            repeat_mode: Optional[str] = None,
            start_time: Optional[str] = None,
            tags: Optional[Sequence[InvocationTagArgs]] = None,
            timeout: Optional[int] = None,
            username: Optional[str] = None,
            windows_password: Optional[str] = None,
            working_dir: Optional[str] = None) -> Invocation
    func GetInvocation(ctx *Context, name string, id IDInput, state *InvocationState, opts ...ResourceOption) (*Invocation, error)
    public static Invocation Get(string name, Input<string> id, InvocationState? state, CustomResourceOptions? opts = null)
    public static Invocation get(String name, Output<String> id, InvocationState state, CustomResourceOptions options)
    resources:  _:    type: volcenginecc:ecs:Invocation    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CommandContent string
    命令内容。
    CommandDescription string
    被调用命令的描述。
    CommandId string
    命令ID。
    CommandName string
    任务触发时的命令名称。
    CommandProvider string
    被调用命令的提供方。
    CommandType string
    作业触发的命令类型。
    EnableParameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    EndTime string
    任务结束时间。
    Frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    InstanceIds List<string>
    实例ID列表,最多支持200个ID。
    InstanceNumber int
    执行实例数量。
    InvocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    InvocationId string
    任务执行 ID。
    InvocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    InvocationResults List<Volcengine.InvocationInvocationResult>
    InvocationStatus string
    命令执行的总执行状态。
    LaunchTime string
    执行时间。
    ParameterDefinitions List<Volcengine.InvocationParameterDefinition>
    Parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。
    RecurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    RepeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    StartTime string
    任务开始时间。
    Tags List<Volcengine.InvocationTag>
    Timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    Username string
    在ECS实例中执行命令的用户名称。
    WindowsPassword string
    自定义windows用户的密码。
    WorkingDir string
    创建的命令在ECS实例中运行的目录。
    CommandContent string
    命令内容。
    CommandDescription string
    被调用命令的描述。
    CommandId string
    命令ID。
    CommandName string
    任务触发时的命令名称。
    CommandProvider string
    被调用命令的提供方。
    CommandType string
    作业触发的命令类型。
    EnableParameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    EndTime string
    任务结束时间。
    Frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    InstanceIds []string
    实例ID列表,最多支持200个ID。
    InstanceNumber int
    执行实例数量。
    InvocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    InvocationId string
    任务执行 ID。
    InvocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    InvocationResults []InvocationInvocationResultArgs
    InvocationStatus string
    命令执行的总执行状态。
    LaunchTime string
    执行时间。
    ParameterDefinitions []InvocationParameterDefinitionArgs
    Parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    ProjectName string
    资源所属项目,一个资源只能归属于一个项目。
    RecurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    RepeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    StartTime string
    任务开始时间。
    Tags []InvocationTagArgs
    Timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    Username string
    在ECS实例中执行命令的用户名称。
    WindowsPassword string
    自定义windows用户的密码。
    WorkingDir string
    创建的命令在ECS实例中运行的目录。
    commandContent String
    命令内容。
    commandDescription String
    被调用命令的描述。
    commandId String
    命令ID。
    commandName String
    任务触发时的命令名称。
    commandProvider String
    被调用命令的提供方。
    commandType String
    作业触发的命令类型。
    enableParameter Boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime String
    任务结束时间。
    frequency String
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    instanceIds List<String>
    实例ID列表,最多支持200个ID。
    instanceNumber Integer
    执行实例数量。
    invocationDescription String
    作业描述,默认为空字符串,不超过256个字符。
    invocationId String
    任务执行 ID。
    invocationName String
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    invocationResults List<InvocationInvocationResult>
    invocationStatus String
    命令执行的总执行状态。
    launchTime String
    执行时间。
    parameterDefinitions List<InvocationParameterDefinition>
    parameters String
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime String
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode String
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    startTime String
    任务开始时间。
    tags List<InvocationTag>
    timeout Integer
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username String
    在ECS实例中执行命令的用户名称。
    windowsPassword String
    自定义windows用户的密码。
    workingDir String
    创建的命令在ECS实例中运行的目录。
    commandContent string
    命令内容。
    commandDescription string
    被调用命令的描述。
    commandId string
    命令ID。
    commandName string
    任务触发时的命令名称。
    commandProvider string
    被调用命令的提供方。
    commandType string
    作业触发的命令类型。
    enableParameter boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime string
    任务结束时间。
    frequency string
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    instanceIds string[]
    实例ID列表,最多支持200个ID。
    instanceNumber number
    执行实例数量。
    invocationDescription string
    作业描述,默认为空字符串,不超过256个字符。
    invocationId string
    任务执行 ID。
    invocationName string
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    invocationResults InvocationInvocationResult[]
    invocationStatus string
    命令执行的总执行状态。
    launchTime string
    执行时间。
    parameterDefinitions InvocationParameterDefinition[]
    parameters string
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName string
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime string
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode string
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    startTime string
    任务开始时间。
    tags InvocationTag[]
    timeout number
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username string
    在ECS实例中执行命令的用户名称。
    windowsPassword string
    自定义windows用户的密码。
    workingDir string
    创建的命令在ECS实例中运行的目录。
    command_content str
    命令内容。
    command_description str
    被调用命令的描述。
    command_id str
    命令ID。
    command_name str
    任务触发时的命令名称。
    command_provider str
    被调用命令的提供方。
    command_type str
    作业触发的命令类型。
    enable_parameter bool
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    end_time str
    任务结束时间。
    frequency str
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    instance_ids Sequence[str]
    实例ID列表,最多支持200个ID。
    instance_number int
    执行实例数量。
    invocation_description str
    作业描述,默认为空字符串,不超过256个字符。
    invocation_id str
    任务执行 ID。
    invocation_name str
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    invocation_results Sequence[InvocationInvocationResultArgs]
    invocation_status str
    命令执行的总执行状态。
    launch_time str
    执行时间。
    parameter_definitions Sequence[InvocationParameterDefinitionArgs]
    parameters str
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    project_name str
    资源所属项目,一个资源只能归属于一个项目。
    recurrence_end_time str
    周期结束时间,仅适用于周期任务(Rate)。
    repeat_mode str
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    start_time str
    任务开始时间。
    tags Sequence[InvocationTagArgs]
    timeout int
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username str
    在ECS实例中执行命令的用户名称。
    windows_password str
    自定义windows用户的密码。
    working_dir str
    创建的命令在ECS实例中运行的目录。
    commandContent String
    命令内容。
    commandDescription String
    被调用命令的描述。
    commandId String
    命令ID。
    commandName String
    任务触发时的命令名称。
    commandProvider String
    被调用命令的提供方。
    commandType String
    作业触发的命令类型。
    enableParameter Boolean
    被调用命令是否使用自定义参数。true:已启用。false:未启用。
    endTime String
    任务结束时间。
    frequency String
    执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
    instanceIds List<String>
    实例ID列表,最多支持200个ID。
    instanceNumber Number
    执行实例数量。
    invocationDescription String
    作业描述,默认为空字符串,不超过256个字符。
    invocationId String
    任务执行 ID。
    invocationName String
    作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
    invocationResults List<Property Map>
    invocationStatus String
    命令执行的总执行状态。
    launchTime String
    执行时间。
    parameterDefinitions List<Property Map>
    parameters String
    命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
    projectName String
    资源所属项目,一个资源只能归属于一个项目。
    recurrenceEndTime String
    周期结束时间,仅适用于周期任务(Rate)。
    repeatMode String
    设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
    startTime String
    任务开始时间。
    tags List<Property Map>
    timeout Number
    创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
    username String
    在ECS实例中执行命令的用户名称。
    windowsPassword String
    自定义windows用户的密码。
    workingDir String
    创建的命令在ECS实例中运行的目录。

    Supporting Types

    InvocationInvocationResult, InvocationInvocationResultArgs

    CommandId string
    命令ID。
    EndTime string
    命令执行的完成时间。
    ErrorCode string
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    ErrorMessage string
    命令执行失败的错误信息。
    ExitCode int
    脚本执行后的退出状态码。
    InstanceId string
    实例ID。
    InvocationId string
    任务执行ID。
    InvocationResultId string
    任务执行结果ID。
    InvocationResultStatus string
    单台实例的命令进度状态。
    Output string
    经过Base64编码的命令执行后输出信息。
    StartTime string
    命令在实例中开始执行的时间。
    Username string
    在实例中执行命令的用户名称。
    CommandId string
    命令ID。
    EndTime string
    命令执行的完成时间。
    ErrorCode string
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    ErrorMessage string
    命令执行失败的错误信息。
    ExitCode int
    脚本执行后的退出状态码。
    InstanceId string
    实例ID。
    InvocationId string
    任务执行ID。
    InvocationResultId string
    任务执行结果ID。
    InvocationResultStatus string
    单台实例的命令进度状态。
    Output string
    经过Base64编码的命令执行后输出信息。
    StartTime string
    命令在实例中开始执行的时间。
    Username string
    在实例中执行命令的用户名称。
    commandId String
    命令ID。
    endTime String
    命令执行的完成时间。
    errorCode String
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    errorMessage String
    命令执行失败的错误信息。
    exitCode Integer
    脚本执行后的退出状态码。
    instanceId String
    实例ID。
    invocationId String
    任务执行ID。
    invocationResultId String
    任务执行结果ID。
    invocationResultStatus String
    单台实例的命令进度状态。
    output String
    经过Base64编码的命令执行后输出信息。
    startTime String
    命令在实例中开始执行的时间。
    username String
    在实例中执行命令的用户名称。
    commandId string
    命令ID。
    endTime string
    命令执行的完成时间。
    errorCode string
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    errorMessage string
    命令执行失败的错误信息。
    exitCode number
    脚本执行后的退出状态码。
    instanceId string
    实例ID。
    invocationId string
    任务执行ID。
    invocationResultId string
    任务执行结果ID。
    invocationResultStatus string
    单台实例的命令进度状态。
    output string
    经过Base64编码的命令执行后输出信息。
    startTime string
    命令在实例中开始执行的时间。
    username string
    在实例中执行命令的用户名称。
    command_id str
    命令ID。
    end_time str
    命令执行的完成时间。
    error_code str
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    error_message str
    命令执行失败的错误信息。
    exit_code int
    脚本执行后的退出状态码。
    instance_id str
    实例ID。
    invocation_id str
    任务执行ID。
    invocation_result_id str
    任务执行结果ID。
    invocation_result_status str
    单台实例的命令进度状态。
    output str
    经过Base64编码的命令执行后输出信息。
    start_time str
    命令在实例中开始执行的时间。
    username str
    在实例中执行命令的用户名称。
    commandId String
    命令ID。
    endTime String
    命令执行的完成时间。
    errorCode String
    命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
    errorMessage String
    命令执行失败的错误信息。
    exitCode Number
    脚本执行后的退出状态码。
    instanceId String
    实例ID。
    invocationId String
    任务执行ID。
    invocationResultId String
    任务执行结果ID。
    invocationResultStatus String
    单台实例的命令进度状态。
    output String
    经过Base64编码的命令执行后输出信息。
    startTime String
    命令在实例中开始执行的时间。
    username String
    在实例中执行命令的用户名称。

    InvocationParameterDefinition, InvocationParameterDefinitionArgs

    DecimalPrecision int
    自定义参数值(数字)允许的小数点后位数。
    DefaultValue string
    自定义参数默认值。
    MaxLength int
    自定义参数值(字符串)的最大长度。
    MaxValue string
    自定义参数值(数字)的最大值。
    MinLength int
    自定义参数值(字符串)的最小长度。
    MinValue string
    自定义参数值(数字)的最小值。
    Name string
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    Required bool
    是否必填。true:必填。false:非必填。
    Type string
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
    DecimalPrecision int
    自定义参数值(数字)允许的小数点后位数。
    DefaultValue string
    自定义参数默认值。
    MaxLength int
    自定义参数值(字符串)的最大长度。
    MaxValue string
    自定义参数值(数字)的最大值。
    MinLength int
    自定义参数值(字符串)的最小长度。
    MinValue string
    自定义参数值(数字)的最小值。
    Name string
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    Required bool
    是否必填。true:必填。false:非必填。
    Type string
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
    decimalPrecision Integer
    自定义参数值(数字)允许的小数点后位数。
    defaultValue String
    自定义参数默认值。
    maxLength Integer
    自定义参数值(字符串)的最大长度。
    maxValue String
    自定义参数值(数字)的最大值。
    minLength Integer
    自定义参数值(字符串)的最小长度。
    minValue String
    自定义参数值(数字)的最小值。
    name String
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    required Boolean
    是否必填。true:必填。false:非必填。
    type String
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
    decimalPrecision number
    自定义参数值(数字)允许的小数点后位数。
    defaultValue string
    自定义参数默认值。
    maxLength number
    自定义参数值(字符串)的最大长度。
    maxValue string
    自定义参数值(数字)的最大值。
    minLength number
    自定义参数值(字符串)的最小长度。
    minValue string
    自定义参数值(数字)的最小值。
    name string
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    required boolean
    是否必填。true:必填。false:非必填。
    type string
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
    decimal_precision int
    自定义参数值(数字)允许的小数点后位数。
    default_value str
    自定义参数默认值。
    max_length int
    自定义参数值(字符串)的最大长度。
    max_value str
    自定义参数值(数字)的最大值。
    min_length int
    自定义参数值(字符串)的最小长度。
    min_value str
    自定义参数值(数字)的最小值。
    name str
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    required bool
    是否必填。true:必填。false:非必填。
    type str
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
    decimalPrecision Number
    自定义参数值(数字)允许的小数点后位数。
    defaultValue String
    自定义参数默认值。
    maxLength Number
    自定义参数值(字符串)的最大长度。
    maxValue String
    自定义参数值(数字)的最大值。
    minLength Number
    自定义参数值(字符串)的最小长度。
    minValue String
    自定义参数值(数字)的最小值。
    name String
    自定义参数名称,需要在脚本中通过{{Param}}定义 。
    required Boolean
    是否必填。true:必填。false:非必填。
    type String
    自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。

    InvocationTag, InvocationTagArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    Import

    $ pulumi import volcenginecc:ecs/invocation:Invocation example "invocation_id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    volcenginecc v0.0.2 published on Saturday, Oct 11, 2025 by Volcengine
      Meet Neo: Your AI Platform Teammate