VK Cloud logo

ivkcs_agent_script_result data source

The arguments of the ivkcs_agent_script_result data source are provided in table 1.

Table 1 — Arguments of the ivkcs_agent_script_result data source

Name

Description

Format

Required

uuid

Service deployment identifier

string

ivkcs_agent_script_result data source

host

The name of the host where the script was executed. Corresponds to the name specified in the hosts argument of the ivkcs_agent_exec resource

string

ivkcs_agent_script_result data source

group

The name of the script group. Corresponds to the value of the name argument of the ivkcs_agent_exec resource

string

ivkcs_agent_script_result data source

index

The script index. Corresponds to the value of the step.index argument of the ivkcs_agent_exec resource

integer

ivkcs_agent_script_result data source

The ivkcs_agent_script_result data source returns the attributes provided in table 2.

Table 2 — Attributes of the ivkcs_agent_script_result data source

Name

Description

result

The script execution result

structured_result

The formatted result of the script execution

Example of the `ivkcs_agent_script_result` data source
data "ivkcs_agent_script_result" "step_1_result" {  uuid  = var.instance_uuid  host  = local.hosts_names[0]  group = ivkcs_agent_exec.start.name  index = 1  depends_on = [    ivkcs_agent_exec.start  ]}
Was this article helpful?