CreateInstanceAgentCommandDetails

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

Bases: object

Creation details for an Oracle Cloud Agent command.

Methods:

__init__(**kwargs)

Initializes a new CreateInstanceAgentCommandDetails object with values from keyword arguments.

Attributes:

compartment_id

[Required] Gets the compartment_id of this CreateInstanceAgentCommandDetails.

content

[Required] Gets the content of this CreateInstanceAgentCommandDetails.

display_name

Gets the display_name of this CreateInstanceAgentCommandDetails.

execution_time_out_in_seconds

[Required] Gets the execution_time_out_in_seconds of this CreateInstanceAgentCommandDetails.

target

[Required] Gets the target of this CreateInstanceAgentCommandDetails.

__init__(**kwargs)

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

Parameters
  • compartment_id (str) – The value to assign to the compartment_id property of this CreateInstanceAgentCommandDetails.

  • execution_time_out_in_seconds (int) – The value to assign to the execution_time_out_in_seconds property of this CreateInstanceAgentCommandDetails.

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

  • target (oci.compute_instance_agent.models.InstanceAgentCommandTarget) – The value to assign to the target property of this CreateInstanceAgentCommandDetails.

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

property compartment_id

[Required] Gets the compartment_id of this CreateInstanceAgentCommandDetails. The OCID of the compartment to create the command in.

Returns

The compartment_id of this CreateInstanceAgentCommandDetails.

Return type

str

property content

[Required] Gets the content of this CreateInstanceAgentCommandDetails. The contents of the command.

Returns

The content of this CreateInstanceAgentCommandDetails.

Return type

oci.compute_instance_agent.models.InstanceAgentCommandContent

property display_name

Gets the display_name of this CreateInstanceAgentCommandDetails. A user-friendly name for the command. It does not have to be unique. Avoid entering confidential information.

Example: Database Backup Script

Returns

The display_name of this CreateInstanceAgentCommandDetails.

Return type

str

property execution_time_out_in_seconds

[Required] Gets the execution_time_out_in_seconds of this CreateInstanceAgentCommandDetails. The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing out. The timer starts when Oracle Cloud Agent starts the command. Zero means no timeout.

Returns

The execution_time_out_in_seconds of this CreateInstanceAgentCommandDetails.

Return type

int

property target

[Required] Gets the target of this CreateInstanceAgentCommandDetails. The target instance to run the command on.

Returns

The target of this CreateInstanceAgentCommandDetails.

Return type

oci.compute_instance_agent.models.InstanceAgentCommandTarget