volcenginecc.ecs.Invocation
云助手是火山引擎打造的原生自动化运维工具。您可以创建立即执行、周期执行、定时执行的作业任务,创建完成后完,云助手客户端将按照执行模式自动开始执行。
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:
- Command
Id string - 命令ID。
- Instance
Ids List<string> - 实例ID列表,最多支持200个ID。
- Invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- Frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- Invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- Launch
Time string - 执行时间。
- Parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- Repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- List<Volcengine.
Invocation Tag> - Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- Username string
- 在ECS实例中执行命令的用户名称。
- Windows
Password string - 自定义windows用户的密码。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- Command
Id string - 命令ID。
- Instance
Ids []string - 实例ID列表,最多支持200个ID。
- Invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- Frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- Invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- Launch
Time string - 执行时间。
- Parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- Repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- []Invocation
Tag Args - Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- Username string
- 在ECS实例中执行命令的用户名称。
- Windows
Password string - 自定义windows用户的密码。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- command
Id String - 命令ID。
- instance
Ids List<String> - 实例ID列表,最多支持200个ID。
- invocation
Name String - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- frequency String
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- invocation
Description String - 作业描述,默认为空字符串,不超过256个字符。
- launch
Time String - 执行时间。
- parameters String
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End StringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode String - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- List<Invocation
Tag> - timeout Integer
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username String
- 在ECS实例中执行命令的用户名称。
- windows
Password String - 自定义windows用户的密码。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
- command
Id string - 命令ID。
- instance
Ids string[] - 实例ID列表,最多支持200个ID。
- invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- launch
Time string - 执行时间。
- parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- Invocation
Tag[] - timeout number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username string
- 在ECS实例中执行命令的用户名称。
- windows
Password string - 自定义windows用户的密码。
- working
Dir 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_ strtime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat_
mode str - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- Sequence[Invocation
Tag Args] - timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username str
- 在ECS实例中执行命令的用户名称。
- windows_
password str - 自定义windows用户的密码。
- working_
dir str - 创建的命令在ECS实例中运行的目录。
- command
Id String - 命令ID。
- instance
Ids List<String> - 实例ID列表,最多支持200个ID。
- invocation
Name String - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- frequency String
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- invocation
Description String - 作业描述,默认为空字符串,不超过256个字符。
- launch
Time String - 执行时间。
- parameters String
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End StringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode String - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- List<Property Map>
- timeout Number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username String
- 在ECS实例中执行命令的用户名称。
- windows
Password String - 自定义windows用户的密码。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
Outputs
All input properties are implicitly available as output properties. Additionally, the Invocation resource produces the following output properties:
- Command
Content string - 命令内容。
- Command
Description string - 被调用命令的描述。
- Command
Name string - 任务触发时的命令名称。
- Command
Provider string - 被调用命令的提供方。
- Command
Type string - 作业触发的命令类型。
- Enable
Parameter bool - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- End
Time string - 任务结束时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Number int - 执行实例数量。
- Invocation
Id string - 任务执行 ID。
- Invocation
Results List<Volcengine.Invocation Invocation Result> - Invocation
Status string - 命令执行的总执行状态。
- Parameter
Definitions List<Volcengine.Invocation Parameter Definition> - Start
Time string - 任务开始时间。
- Command
Content string - 命令内容。
- Command
Description string - 被调用命令的描述。
- Command
Name string - 任务触发时的命令名称。
- Command
Provider string - 被调用命令的提供方。
- Command
Type string - 作业触发的命令类型。
- Enable
Parameter bool - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- End
Time string - 任务结束时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Number int - 执行实例数量。
- Invocation
Id string - 任务执行 ID。
- Invocation
Results []InvocationInvocation Result - Invocation
Status string - 命令执行的总执行状态。
- Parameter
Definitions []InvocationParameter Definition - Start
Time string - 任务开始时间。
- command
Content String - 命令内容。
- command
Description String - 被调用命令的描述。
- command
Name String - 任务触发时的命令名称。
- command
Provider String - 被调用命令的提供方。
- command
Type String - 作业触发的命令类型。
- enable
Parameter Boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time String - 任务结束时间。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Number Integer - 执行实例数量。
- invocation
Id String - 任务执行 ID。
- invocation
Results List<InvocationInvocation Result> - invocation
Status String - 命令执行的总执行状态。
- parameter
Definitions List<InvocationParameter Definition> - start
Time String - 任务开始时间。
- command
Content string - 命令内容。
- command
Description string - 被调用命令的描述。
- command
Name string - 任务触发时的命令名称。
- command
Provider string - 被调用命令的提供方。
- command
Type string - 作业触发的命令类型。
- enable
Parameter boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time string - 任务结束时间。
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Number number - 执行实例数量。
- invocation
Id string - 任务执行 ID。
- invocation
Results InvocationInvocation Result[] - invocation
Status string - 命令执行的总执行状态。
- parameter
Definitions InvocationParameter Definition[] - start
Time 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[InvocationInvocation Result] - invocation_
status str - 命令执行的总执行状态。
- parameter_
definitions Sequence[InvocationParameter Definition] - start_
time str - 任务开始时间。
- command
Content String - 命令内容。
- command
Description String - 被调用命令的描述。
- command
Name String - 任务触发时的命令名称。
- command
Provider String - 被调用命令的提供方。
- command
Type String - 作业触发的命令类型。
- enable
Parameter Boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time String - 任务结束时间。
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Number Number - 执行实例数量。
- invocation
Id String - 任务执行 ID。
- invocation
Results List<Property Map> - invocation
Status String - 命令执行的总执行状态。
- parameter
Definitions List<Property Map> - start
Time 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.
- Command
Content string - 命令内容。
- Command
Description string - 被调用命令的描述。
- Command
Id string - 命令ID。
- Command
Name string - 任务触发时的命令名称。
- Command
Provider string - 被调用命令的提供方。
- Command
Type string - 作业触发的命令类型。
- Enable
Parameter bool - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- End
Time string - 任务结束时间。
- Frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- Instance
Ids List<string> - 实例ID列表,最多支持200个ID。
- Instance
Number int - 执行实例数量。
- Invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- Invocation
Id string - 任务执行 ID。
- Invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- Invocation
Results List<Volcengine.Invocation Invocation Result> - Invocation
Status string - 命令执行的总执行状态。
- Launch
Time string - 执行时间。
- Parameter
Definitions List<Volcengine.Invocation Parameter Definition> - Parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- Repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- Start
Time string - 任务开始时间。
- List<Volcengine.
Invocation Tag> - Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- Username string
- 在ECS实例中执行命令的用户名称。
- Windows
Password string - 自定义windows用户的密码。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- Command
Content string - 命令内容。
- Command
Description string - 被调用命令的描述。
- Command
Id string - 命令ID。
- Command
Name string - 任务触发时的命令名称。
- Command
Provider string - 被调用命令的提供方。
- Command
Type string - 作业触发的命令类型。
- Enable
Parameter bool - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- End
Time string - 任务结束时间。
- Frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- Instance
Ids []string - 实例ID列表,最多支持200个ID。
- Instance
Number int - 执行实例数量。
- Invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- Invocation
Id string - 任务执行 ID。
- Invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- Invocation
Results []InvocationInvocation Result Args - Invocation
Status string - 命令执行的总执行状态。
- Launch
Time string - 执行时间。
- Parameter
Definitions []InvocationParameter Definition Args - Parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- Project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- Recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- Repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- Start
Time string - 任务开始时间。
- []Invocation
Tag Args - Timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- Username string
- 在ECS实例中执行命令的用户名称。
- Windows
Password string - 自定义windows用户的密码。
- Working
Dir string - 创建的命令在ECS实例中运行的目录。
- command
Content String - 命令内容。
- command
Description String - 被调用命令的描述。
- command
Id String - 命令ID。
- command
Name String - 任务触发时的命令名称。
- command
Provider String - 被调用命令的提供方。
- command
Type String - 作业触发的命令类型。
- enable
Parameter Boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time String - 任务结束时间。
- frequency String
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- instance
Ids List<String> - 实例ID列表,最多支持200个ID。
- instance
Number Integer - 执行实例数量。
- invocation
Description String - 作业描述,默认为空字符串,不超过256个字符。
- invocation
Id String - 任务执行 ID。
- invocation
Name String - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- invocation
Results List<InvocationInvocation Result> - invocation
Status String - 命令执行的总执行状态。
- launch
Time String - 执行时间。
- parameter
Definitions List<InvocationParameter Definition> - parameters String
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End StringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode String - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- start
Time String - 任务开始时间。
- List<Invocation
Tag> - timeout Integer
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username String
- 在ECS实例中执行命令的用户名称。
- windows
Password String - 自定义windows用户的密码。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
- command
Content string - 命令内容。
- command
Description string - 被调用命令的描述。
- command
Id string - 命令ID。
- command
Name string - 任务触发时的命令名称。
- command
Provider string - 被调用命令的提供方。
- command
Type string - 作业触发的命令类型。
- enable
Parameter boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time string - 任务结束时间。
- frequency string
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- instance
Ids string[] - 实例ID列表,最多支持200个ID。
- instance
Number number - 执行实例数量。
- invocation
Description string - 作业描述,默认为空字符串,不超过256个字符。
- invocation
Id string - 任务执行 ID。
- invocation
Name string - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- invocation
Results InvocationInvocation Result[] - invocation
Status string - 命令执行的总执行状态。
- launch
Time string - 执行时间。
- parameter
Definitions InvocationParameter Definition[] - parameters string
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name string - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End stringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode string - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- start
Time string - 任务开始时间。
- Invocation
Tag[] - timeout number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username string
- 在ECS实例中执行命令的用户名称。
- windows
Password string - 自定义windows用户的密码。
- working
Dir 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[InvocationInvocation Result Args] - invocation_
status str - 命令执行的总执行状态。
- launch_
time str - 执行时间。
- parameter_
definitions Sequence[InvocationParameter Definition Args] - parameters str
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project_
name str - 资源所属项目,一个资源只能归属于一个项目。
- recurrence_
end_ strtime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat_
mode str - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- start_
time str - 任务开始时间。
- Sequence[Invocation
Tag Args] - timeout int
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username str
- 在ECS实例中执行命令的用户名称。
- windows_
password str - 自定义windows用户的密码。
- working_
dir str - 创建的命令在ECS实例中运行的目录。
- command
Content String - 命令内容。
- command
Description String - 被调用命令的描述。
- command
Id String - 命令ID。
- command
Name String - 任务触发时的命令名称。
- command
Provider String - 被调用命令的提供方。
- command
Type String - 作业触发的命令类型。
- enable
Parameter Boolean - 被调用命令是否使用自定义参数。true:已启用。false:未启用。
- end
Time String - 任务结束时间。
- frequency String
- 执行频率。RepeatMode=Rate 时本参数必填。格式:<执行间隔数值><执行间隔单位>,执行间隔单位:支持分钟(5m-60m)、小时(1h-24h)和天(1d-7d)。执行间隔基于固定频率,与作业实际执行需要的时间无关。创建作业后基于LaunchTime执行一次,根据间隔设置确定下一次执行时间。
- instance
Ids List<String> - 实例ID列表,最多支持200个ID。
- instance
Number Number - 执行实例数量。
- invocation
Description String - 作业描述,默认为空字符串,不超过256个字符。
- invocation
Id String - 任务执行 ID。
- invocation
Name String - 作业名称。不超过64个字符。暂不限制特殊字符。同地域下作业名称可重复。
- invocation
Results List<Property Map> - invocation
Status String - 命令执行的总执行状态。
- launch
Time String - 执行时间。
- parameter
Definitions List<Property Map> - parameters String
- 命令中包含自定义参数时,需通过本参数传入自定义参数的键值对。自定义参数个数范围为0~60。Key不允许为空字符串,最多支持64个字符。Value允许为空字符串。自定义参数与原始命令内容在Base64编码后,综合长度不能超过16KB。设置的自定义参数名集合必须为创建命令时定义的参数集的子集。对于未传入的参数,使用默认值代替。
- project
Name String - 资源所属项目,一个资源只能归属于一个项目。
- recurrence
End StringTime - 周期结束时间,仅适用于周期任务(Rate)。
- repeat
Mode String - 设置命令执行的方式。Once:默认,表示立即执行命令。Rate:周期执行命令,需要通过Frequency参数传入Rate表达式指定执行周期。Fixed:定时执行命令,需要通过LaunchTime参数指定的执行时间。
- start
Time String - 任务开始时间。
- List<Property Map>
- timeout Number
- 创建的命令在ECS实例中执行时最大的超时时间,单位为秒。默认值:60。可选范围为:30~86400。
- username String
- 在ECS实例中执行命令的用户名称。
- windows
Password String - 自定义windows用户的密码。
- working
Dir String - 创建的命令在ECS实例中运行的目录。
Supporting Types
InvocationInvocationResult, InvocationInvocationResultArgs
- Command
Id string - 命令ID。
- End
Time string - 命令执行的完成时间。
- Error
Code string - 命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
- Error
Message string - 命令执行失败的错误信息。
- Exit
Code int - 脚本执行后的退出状态码。
- Instance
Id string - 实例ID。
- Invocation
Id string - 任务执行ID。
- Invocation
Result stringId - 任务执行结果ID。
- Invocation
Result stringStatus - 单台实例的命令进度状态。
- Output string
- 经过Base64编码的命令执行后输出信息。
- Start
Time string - 命令在实例中开始执行的时间。
- Username string
- 在实例中执行命令的用户名称。
- Command
Id string - 命令ID。
- End
Time string - 命令执行的完成时间。
- Error
Code string - 命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
- Error
Message string - 命令执行失败的错误信息。
- Exit
Code int - 脚本执行后的退出状态码。
- Instance
Id string - 实例ID。
- Invocation
Id string - 任务执行ID。
- Invocation
Result stringId - 任务执行结果ID。
- Invocation
Result stringStatus - 单台实例的命令进度状态。
- Output string
- 经过Base64编码的命令执行后输出信息。
- Start
Time string - 命令在实例中开始执行的时间。
- Username string
- 在实例中执行命令的用户名称。
- command
Id String - 命令ID。
- end
Time String - 命令执行的完成时间。
- error
Code String - 命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
- error
Message String - 命令执行失败的错误信息。
- exit
Code Integer - 脚本执行后的退出状态码。
- instance
Id String - 实例ID。
- invocation
Id String - 任务执行ID。
- invocation
Result StringId - 任务执行结果ID。
- invocation
Result StringStatus - 单台实例的命令进度状态。
- output String
- 经过Base64编码的命令执行后输出信息。
- start
Time String - 命令在实例中开始执行的时间。
- username String
- 在实例中执行命令的用户名称。
- command
Id string - 命令ID。
- end
Time string - 命令执行的完成时间。
- error
Code string - 命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
- error
Message string - 命令执行失败的错误信息。
- exit
Code number - 脚本执行后的退出状态码。
- instance
Id string - 实例ID。
- invocation
Id string - 任务执行ID。
- invocation
Result stringId - 任务执行结果ID。
- invocation
Result stringStatus - 单台实例的命令进度状态。
- output string
- 经过Base64编码的命令执行后输出信息。
- start
Time 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_ strid - 任务执行结果ID。
- invocation_
result_ strstatus - 单台实例的命令进度状态。
- output str
- 经过Base64编码的命令执行后输出信息。
- start_
time str - 命令在实例中开始执行的时间。
- username str
- 在实例中执行命令的用户名称。
- command
Id String - 命令ID。
- end
Time String - 命令执行的完成时间。
- error
Code String - 命令执行失败的错误码。TaskDeliveryTimeout:表示命令下发超时。TaskExecutionTimeout:表示命令执行超时。TaskExecutionFailed:表示命令执行失败。
- error
Message String - 命令执行失败的错误信息。
- exit
Code Number - 脚本执行后的退出状态码。
- instance
Id String - 实例ID。
- invocation
Id String - 任务执行ID。
- invocation
Result StringId - 任务执行结果ID。
- invocation
Result StringStatus - 单台实例的命令进度状态。
- output String
- 经过Base64编码的命令执行后输出信息。
- start
Time String - 命令在实例中开始执行的时间。
- username String
- 在实例中执行命令的用户名称。
InvocationParameterDefinition, InvocationParameterDefinitionArgs
- Decimal
Precision int - 自定义参数值(数字)允许的小数点后位数。
- Default
Value string - 自定义参数默认值。
- Max
Length int - 自定义参数值(字符串)的最大长度。
- Max
Value string - 自定义参数值(数字)的最大值。
- Min
Length int - 自定义参数值(字符串)的最小长度。
- Min
Value string - 自定义参数值(数字)的最小值。
- Name string
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。
- Required bool
- 是否必填。true:必填。false:非必填。
- Type string
- 自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
- Decimal
Precision int - 自定义参数值(数字)允许的小数点后位数。
- Default
Value string - 自定义参数默认值。
- Max
Length int - 自定义参数值(字符串)的最大长度。
- Max
Value string - 自定义参数值(数字)的最大值。
- Min
Length int - 自定义参数值(字符串)的最小长度。
- Min
Value string - 自定义参数值(数字)的最小值。
- Name string
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。
- Required bool
- 是否必填。true:必填。false:非必填。
- Type string
- 自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
- decimal
Precision Integer - 自定义参数值(数字)允许的小数点后位数。
- default
Value String - 自定义参数默认值。
- max
Length Integer - 自定义参数值(字符串)的最大长度。
- max
Value String - 自定义参数值(数字)的最大值。
- min
Length Integer - 自定义参数值(字符串)的最小长度。
- min
Value String - 自定义参数值(数字)的最小值。
- name String
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。
- required Boolean
- 是否必填。true:必填。false:非必填。
- type String
- 自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
- decimal
Precision number - 自定义参数值(数字)允许的小数点后位数。
- default
Value string - 自定义参数默认值。
- max
Length number - 自定义参数值(字符串)的最大长度。
- max
Value string - 自定义参数值(数字)的最大值。
- min
Length number - 自定义参数值(字符串)的最小长度。
- min
Value 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:表示自定义参数类型为数值类型。
- decimal
Precision Number - 自定义参数值(数字)允许的小数点后位数。
- default
Value String - 自定义参数默认值。
- max
Length Number - 自定义参数值(字符串)的最大长度。
- max
Value String - 自定义参数值(数字)的最大值。
- min
Length Number - 自定义参数值(字符串)的最小长度。
- min
Value String - 自定义参数值(数字)的最小值。
- name String
- 自定义参数名称,需要在脚本中通过{{Param}}定义 。
- required Boolean
- 是否必填。true:必填。false:非必填。
- type String
- 自定义参数类型。String:表示自定义参数类型字符串类型。Digit:表示自定义参数类型为数值类型。
InvocationTag, InvocationTagArgs
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.