InstanceAgentCommandExecution

class oci.compute_instance_agent.models.InstanceAgentCommandExecution(**kwargs)

Bases: object

A command’s execution summary.

Attributes:

DELIVERY_STATE_ACKED

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution.

DELIVERY_STATE_ACKED_CANCELED

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution.

DELIVERY_STATE_EXPIRED

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution.

DELIVERY_STATE_PENDING

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution.

DELIVERY_STATE_VISIBLE

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_ACCEPTED

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_CANCELED

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_FAILED

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_IN_PROGRESS

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_SUCCEEDED

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

LIFECYCLE_STATE_TIMED_OUT

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution.

content

[Required] Gets the content of this InstanceAgentCommandExecution.

delivery_state

[Required] Gets the delivery_state of this InstanceAgentCommandExecution. Specifies the command delivery state. * VISIBLE - The command is visible to instance. * PENDING - The command is pending ack from the instance. * ACKED - The command has been received and acked by the instance. * ACKED_CANCELED - The canceled command has been received and acked by the instance. * EXPIRED - The instance has not requested for commands and its delivery has expired.

display_name

Gets the display_name of this InstanceAgentCommandExecution.

instance_agent_command_id

[Required] Gets the instance_agent_command_id of this InstanceAgentCommandExecution.

instance_id

[Required] Gets the instance_id of this InstanceAgentCommandExecution.

lifecycle_state

[Required] Gets the lifecycle_state of this InstanceAgentCommandExecution.

sequence_number

[Required] Gets the sequence_number of this InstanceAgentCommandExecution.

time_created

[Required] Gets the time_created of this InstanceAgentCommandExecution.

time_updated

[Required] Gets the time_updated of this InstanceAgentCommandExecution.

Methods:

__init__(**kwargs)

Initializes a new InstanceAgentCommandExecution object with values from keyword arguments.

DELIVERY_STATE_ACKED = 'ACKED'

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution. This constant has a value of “ACKED”

DELIVERY_STATE_ACKED_CANCELED = 'ACKED_CANCELED'

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution. This constant has a value of “ACKED_CANCELED”

DELIVERY_STATE_EXPIRED = 'EXPIRED'

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution. This constant has a value of “EXPIRED”

DELIVERY_STATE_PENDING = 'PENDING'

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution. This constant has a value of “PENDING”

DELIVERY_STATE_VISIBLE = 'VISIBLE'

A constant which can be used with the delivery_state property of a InstanceAgentCommandExecution. This constant has a value of “VISIBLE”

LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “ACCEPTED”

LIFECYCLE_STATE_CANCELED = 'CANCELED'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “CANCELED”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “FAILED”

LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “IN_PROGRESS”

LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “SUCCEEDED”

LIFECYCLE_STATE_TIMED_OUT = 'TIMED_OUT'

A constant which can be used with the lifecycle_state property of a InstanceAgentCommandExecution. This constant has a value of “TIMED_OUT”

__init__(**kwargs)

Initializes a new InstanceAgentCommandExecution object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • instance_agent_command_id (str) – The value to assign to the instance_agent_command_id property of this InstanceAgentCommandExecution.

  • instance_id (str) – The value to assign to the instance_id property of this InstanceAgentCommandExecution.

  • delivery_state (str) – The value to assign to the delivery_state property of this InstanceAgentCommandExecution. Allowed values for this property are: “VISIBLE”, “PENDING”, “ACKED”, “ACKED_CANCELED”, “EXPIRED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this InstanceAgentCommandExecution. Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “TIMED_OUT”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

  • time_created (datetime) – The value to assign to the time_created property of this InstanceAgentCommandExecution.

  • time_updated (datetime) – The value to assign to the time_updated property of this InstanceAgentCommandExecution.

  • sequence_number (int) – The value to assign to the sequence_number property of this InstanceAgentCommandExecution.

  • display_name (str) – The value to assign to the display_name property of this InstanceAgentCommandExecution.

  • content (oci.compute_instance_agent.models.InstanceAgentCommandExecutionOutputContent) – The value to assign to the content property of this InstanceAgentCommandExecution.

property content

[Required] Gets the content of this InstanceAgentCommandExecution.

Returns

The content of this InstanceAgentCommandExecution.

Return type

oci.compute_instance_agent.models.InstanceAgentCommandExecutionOutputContent

property delivery_state

[Required] Gets the delivery_state of this InstanceAgentCommandExecution. Specifies the command delivery state.

  • VISIBLE - The command is visible to instance.

  • PENDING - The command is pending ack from the instance.

  • ACKED - The command has been received and acked by the instance.

  • ACKED_CANCELED - The canceled command has been received and acked by the instance.

  • EXPIRED - The instance has not requested for commands and its delivery has expired.

Allowed values for this property are: “VISIBLE”, “PENDING”, “ACKED”, “ACKED_CANCELED”, “EXPIRED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The delivery_state of this InstanceAgentCommandExecution.

Return type

str

property display_name

Gets the display_name of this InstanceAgentCommandExecution. The user friendly display name of the command.

Returns

The display_name of this InstanceAgentCommandExecution.

Return type

str

property instance_agent_command_id

[Required] Gets the instance_agent_command_id of this InstanceAgentCommandExecution. The OCID of the command

Returns

The instance_agent_command_id of this InstanceAgentCommandExecution.

Return type

str

property instance_id

[Required] Gets the instance_id of this InstanceAgentCommandExecution. The OCID of the instance

Returns

The instance_id of this InstanceAgentCommandExecution.

Return type

str

property lifecycle_state

[Required] Gets the lifecycle_state of this InstanceAgentCommandExecution. command execution life cycle state. * ACCEPTED - The command execution has been accepted to run. * IN_PROGRESS - The command execution is in progress. * SUCCEEDED - The command execution is successful. * FAILED - The command execution has failed. * TIMED_OUT - The command execution has timedout. * CANCELED - The command execution has canceled.

Allowed values for this property are: “ACCEPTED”, “IN_PROGRESS”, “SUCCEEDED”, “FAILED”, “TIMED_OUT”, “CANCELED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns

The lifecycle_state of this InstanceAgentCommandExecution.

Return type

str

property sequence_number

[Required] Gets the sequence_number of this InstanceAgentCommandExecution. The large non-consecutive number that Run Command Service assigns to each created command.

Returns

The sequence_number of this InstanceAgentCommandExecution.

Return type

int

property time_created

[Required] Gets the time_created of this InstanceAgentCommandExecution. The command creation date

Returns

The time_created of this InstanceAgentCommandExecution.

Return type

datetime

property time_updated

[Required] Gets the time_updated of this InstanceAgentCommandExecution. The command last updated at date.

Returns

The time_updated of this InstanceAgentCommandExecution.

Return type

datetime