Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.ecs.Invocations
Explore with Pulumi AI
Use this data source to query detailed information of ecs invocations
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Ecs.Invocations.Invoke(new()
{
InvocationId = "ivk-ych9y4vujvl8j01c****",
InvocationStatuses = new[]
{
"Success",
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/ecs"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ecs.Invocations(ctx, &ecs.InvocationsArgs{
InvocationId: pulumi.StringRef("ivk-ych9y4vujvl8j01c****"),
InvocationStatuses: []string{
"Success",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.ecs.EcsFunctions;
import com.pulumi.volcengine.ecs.inputs.InvocationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var default = EcsFunctions.Invocations(InvocationsArgs.builder()
.invocationId("ivk-ych9y4vujvl8j01c****")
.invocationStatuses("Success")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.ecs.invocations(invocation_id="ivk-ych9y4vujvl8j01c****",
invocation_statuses=["Success"])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.ecs.Invocations({
invocationId: "ivk-ych9y4vujvl8j01c****",
invocationStatuses: ["Success"],
});
variables:
default:
fn::invoke:
Function: volcengine:ecs:Invocations
Arguments:
invocationId: ivk-ych9y4vujvl8j01c****
invocationStatuses:
- Success
Using Invocations
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 invocations(args: InvocationsArgs, opts?: InvokeOptions): Promise<InvocationsResult>
function invocationsOutput(args: InvocationsOutputArgs, opts?: InvokeOptions): Output<InvocationsResult>
def invocations(command_id: Optional[str] = None,
command_name: Optional[str] = None,
command_type: Optional[str] = None,
invocation_id: Optional[str] = None,
invocation_name: Optional[str] = None,
invocation_statuses: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
repeat_mode: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> InvocationsResult
def invocations_output(command_id: Optional[pulumi.Input[str]] = None,
command_name: Optional[pulumi.Input[str]] = None,
command_type: Optional[pulumi.Input[str]] = None,
invocation_id: Optional[pulumi.Input[str]] = None,
invocation_name: Optional[pulumi.Input[str]] = None,
invocation_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
repeat_mode: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[InvocationsResult]
func Invocations(ctx *Context, args *InvocationsArgs, opts ...InvokeOption) (*InvocationsResult, error)
func InvocationsOutput(ctx *Context, args *InvocationsOutputArgs, opts ...InvokeOption) InvocationsResultOutput
public static class Invocations
{
public static Task<InvocationsResult> InvokeAsync(InvocationsArgs args, InvokeOptions? opts = null)
public static Output<InvocationsResult> Invoke(InvocationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<InvocationsResult> invocations(InvocationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:ecs:Invocations
arguments:
# arguments dictionary
The following arguments are supported:
- Command
Id string - The id of ecs command.
- Command
Name string - The name of ecs command. This field support fuzzy query.
- Command
Type string - The type of ecs command. Valid values:
Shell
. - Invocation
Id string - The id of ecs invocation.
- Invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- Invocation
Statuses List<string> - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
- Command
Id string - The id of ecs command.
- Command
Name string - The name of ecs command. This field support fuzzy query.
- Command
Type string - The type of ecs command. Valid values:
Shell
. - Invocation
Id string - The id of ecs invocation.
- Invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- Invocation
Statuses []string - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
- command
Id String - The id of ecs command.
- command
Name String - The name of ecs command. This field support fuzzy query.
- command
Type String - The type of ecs command. Valid values:
Shell
. - invocation
Id String - The id of ecs invocation.
- invocation
Name String - The name of ecs invocation. This field support fuzzy query.
- invocation
Statuses List<String> - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- repeat
Mode String - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
- command
Id string - The id of ecs command.
- command
Name string - The name of ecs command. This field support fuzzy query.
- command
Type string - The type of ecs command. Valid values:
Shell
. - invocation
Id string - The id of ecs invocation.
- invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- invocation
Statuses string[] - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
- command_
id str - The id of ecs command.
- command_
name str - The name of ecs command. This field support fuzzy query.
- command_
type str - The type of ecs command. Valid values:
Shell
. - invocation_
id str - The id of ecs invocation.
- invocation_
name str - The name of ecs invocation. This field support fuzzy query.
- invocation_
statuses Sequence[str] - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- repeat_
mode str - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
- command
Id String - The id of ecs command.
- command
Name String - The name of ecs command. This field support fuzzy query.
- command
Type String - The type of ecs command. Valid values:
Shell
. - invocation
Id String - The id of ecs invocation.
- invocation
Name String - The name of ecs invocation. This field support fuzzy query.
- invocation
Statuses List<String> - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- repeat
Mode String - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
.
Invocations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocations
List<Invocations
Invocation> - The collection of query.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Command
Name string - The name of the ecs command.
- Command
Type string - The type of the ecs command.
- Invocation
Id string - The id of the ecs invocation.
- Invocation
Name string - The name of the ecs invocation.
- Invocation
Statuses List<string> - The status of the ecs invocation.
- Name
Regex string - Output
File string - Repeat
Mode string - The repeat mode of the ecs invocation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Invocations
[]Invocations
Invocation - The collection of query.
- Total
Count int - The total count of query.
- Command
Id string - The id of the ecs command.
- Command
Name string - The name of the ecs command.
- Command
Type string - The type of the ecs command.
- Invocation
Id string - The id of the ecs invocation.
- Invocation
Name string - The name of the ecs invocation.
- Invocation
Statuses []string - The status of the ecs invocation.
- Name
Regex string - Output
File string - Repeat
Mode string - The repeat mode of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocations
List<Invocations
Invocation> - The collection of query.
- total
Count Integer - The total count of query.
- command
Id String - The id of the ecs command.
- command
Name String - The name of the ecs command.
- command
Type String - The type of the ecs command.
- invocation
Id String - The id of the ecs invocation.
- invocation
Name String - The name of the ecs invocation.
- invocation
Statuses List<String> - The status of the ecs invocation.
- name
Regex String - output
File String - repeat
Mode String - The repeat mode of the ecs invocation.
- id string
- The provider-assigned unique ID for this managed resource.
- invocations
Invocations
Invocation[] - The collection of query.
- total
Count number - The total count of query.
- command
Id string - The id of the ecs command.
- command
Name string - The name of the ecs command.
- command
Type string - The type of the ecs command.
- invocation
Id string - The id of the ecs invocation.
- invocation
Name string - The name of the ecs invocation.
- invocation
Statuses string[] - The status of the ecs invocation.
- name
Regex string - output
File string - repeat
Mode string - The repeat mode of the ecs invocation.
- id str
- The provider-assigned unique ID for this managed resource.
- invocations
Sequence[Invocations
Invocation] - The collection of query.
- total_
count int - The total count of query.
- command_
id str - The id of the ecs command.
- command_
name str - The name of the ecs command.
- command_
type str - The type of the ecs command.
- invocation_
id str - The id of the ecs invocation.
- invocation_
name str - The name of the ecs invocation.
- invocation_
statuses Sequence[str] - The status of the ecs invocation.
- name_
regex str - output_
file str - repeat_
mode str - The repeat mode of the ecs invocation.
- id String
- The provider-assigned unique ID for this managed resource.
- invocations List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- command
Id String - The id of the ecs command.
- command
Name String - The name of the ecs command.
- command
Type String - The type of the ecs command.
- invocation
Id String - The id of the ecs invocation.
- invocation
Name String - The name of the ecs invocation.
- invocation
Statuses List<String> - The status of the ecs invocation.
- name
Regex String - output
File String - repeat
Mode String - The repeat mode of the ecs invocation.
Supporting Types
InvocationsInvocation
- Command
Content string - The base64 encoded content of the ecs command.
- Command
Description string - The description of the ecs command.
- Command
Id string - The id of ecs command.
- Command
Name string - The name of ecs command. This field support fuzzy query.
- Command
Provider string - The provider of the ecs command.
- Command
Type string - The type of ecs command. Valid values:
Shell
. - End
Time string - The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation.
- Id string
- The id of the ecs invocation.
- Instance
Ids List<string> - The list of ECS instance IDs.
- Instance
Number int - The instance number of the ecs invocation.
- Invocation
Description string - The description of the ecs invocation.
- Invocation
Id string - The id of ecs invocation.
- Invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- Invocation
Status string - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - Launch
Time string - The launch time of the ecs invocation.
- Recurrence
End stringTime - The recurrence end time of the ecs invocation.
- Repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Start
Time string - The start time of the ecs invocation.
- Timeout int
- The timeout of the ecs command.
- Username string
- The username of the ecs command.
- Working
Dir string - The working directory of the ecs command.
- Command
Content string - The base64 encoded content of the ecs command.
- Command
Description string - The description of the ecs command.
- Command
Id string - The id of ecs command.
- Command
Name string - The name of ecs command. This field support fuzzy query.
- Command
Provider string - The provider of the ecs command.
- Command
Type string - The type of ecs command. Valid values:
Shell
. - End
Time string - The end time of the ecs invocation.
- Frequency string
- The frequency of the ecs invocation.
- Id string
- The id of the ecs invocation.
- Instance
Ids []string - The list of ECS instance IDs.
- Instance
Number int - The instance number of the ecs invocation.
- Invocation
Description string - The description of the ecs invocation.
- Invocation
Id string - The id of ecs invocation.
- Invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- Invocation
Status string - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - Launch
Time string - The launch time of the ecs invocation.
- Recurrence
End stringTime - The recurrence end time of the ecs invocation.
- Repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - Start
Time string - The start time of the ecs invocation.
- Timeout int
- The timeout of the ecs command.
- Username string
- The username of the ecs command.
- Working
Dir string - The working directory of the ecs command.
- command
Content String - The base64 encoded content of the ecs command.
- command
Description String - The description of the ecs command.
- command
Id String - The id of ecs command.
- command
Name String - The name of ecs command. This field support fuzzy query.
- command
Provider String - The provider of the ecs command.
- command
Type String - The type of ecs command. Valid values:
Shell
. - end
Time String - The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation.
- id String
- The id of the ecs invocation.
- instance
Ids List<String> - The list of ECS instance IDs.
- instance
Number Integer - The instance number of the ecs invocation.
- invocation
Description String - The description of the ecs invocation.
- invocation
Id String - The id of ecs invocation.
- invocation
Name String - The name of ecs invocation. This field support fuzzy query.
- invocation
Status String - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - launch
Time String - The launch time of the ecs invocation.
- recurrence
End StringTime - The recurrence end time of the ecs invocation.
- repeat
Mode String - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time String - The start time of the ecs invocation.
- timeout Integer
- The timeout of the ecs command.
- username String
- The username of the ecs command.
- working
Dir String - The working directory of the ecs command.
- command
Content string - The base64 encoded content of the ecs command.
- command
Description string - The description of the ecs command.
- command
Id string - The id of ecs command.
- command
Name string - The name of ecs command. This field support fuzzy query.
- command
Provider string - The provider of the ecs command.
- command
Type string - The type of ecs command. Valid values:
Shell
. - end
Time string - The end time of the ecs invocation.
- frequency string
- The frequency of the ecs invocation.
- id string
- The id of the ecs invocation.
- instance
Ids string[] - The list of ECS instance IDs.
- instance
Number number - The instance number of the ecs invocation.
- invocation
Description string - The description of the ecs invocation.
- invocation
Id string - The id of ecs invocation.
- invocation
Name string - The name of ecs invocation. This field support fuzzy query.
- invocation
Status string - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - launch
Time string - The launch time of the ecs invocation.
- recurrence
End stringTime - The recurrence end time of the ecs invocation.
- repeat
Mode string - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time string - The start time of the ecs invocation.
- timeout number
- The timeout of the ecs command.
- username string
- The username of the ecs command.
- working
Dir string - The working directory of the ecs command.
- command_
content str - The base64 encoded content of the ecs command.
- command_
description str - The description of the ecs command.
- command_
id str - The id of ecs command.
- command_
name str - The name of ecs command. This field support fuzzy query.
- command_
provider str - The provider of the ecs command.
- command_
type str - The type of ecs command. Valid values:
Shell
. - end_
time str - The end time of the ecs invocation.
- frequency str
- The frequency of the ecs invocation.
- id str
- The id of the ecs invocation.
- instance_
ids Sequence[str] - The list of ECS instance IDs.
- instance_
number int - The instance number of the ecs invocation.
- invocation_
description str - The description of the ecs invocation.
- invocation_
id str - The id of ecs invocation.
- invocation_
name str - The name of ecs invocation. This field support fuzzy query.
- invocation_
status str - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - launch_
time str - The launch time of the ecs invocation.
- recurrence_
end_ strtime - The recurrence end time of the ecs invocation.
- repeat_
mode str - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start_
time str - The start time of the ecs invocation.
- timeout int
- The timeout of the ecs command.
- username str
- The username of the ecs command.
- working_
dir str - The working directory of the ecs command.
- command
Content String - The base64 encoded content of the ecs command.
- command
Description String - The description of the ecs command.
- command
Id String - The id of ecs command.
- command
Name String - The name of ecs command. This field support fuzzy query.
- command
Provider String - The provider of the ecs command.
- command
Type String - The type of ecs command. Valid values:
Shell
. - end
Time String - The end time of the ecs invocation.
- frequency String
- The frequency of the ecs invocation.
- id String
- The id of the ecs invocation.
- instance
Ids List<String> - The list of ECS instance IDs.
- instance
Number Number - The instance number of the ecs invocation.
- invocation
Description String - The description of the ecs invocation.
- invocation
Id String - The id of ecs invocation.
- invocation
Name String - The name of ecs invocation. This field support fuzzy query.
- invocation
Status String - The list of status of ecs invocation. Valid values:
Pending
,Scheduled
,Running
,Success
,Failed
,Stopped
,PartialFailed
,Finished
. - launch
Time String - The launch time of the ecs invocation.
- recurrence
End StringTime - The recurrence end time of the ecs invocation.
- repeat
Mode String - The repeat mode of ecs invocation. Valid values:
Once
,Rate
,Fixed
. - start
Time String - The start time of the ecs invocation.
- timeout Number
- The timeout of the ecs command.
- username String
- The username of the ecs command.
- working
Dir String - The working directory of the ecs command.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.