Show / Hide Table of Contents

Class InstanceAgentCommand

The command payload.

Inheritance
object
InstanceAgentCommand
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.ComputeinstanceagentService.Models
Assembly: OCI.DotNetSDK.Computeinstanceagent.dll
Syntax
public class InstanceAgentCommand

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

The OCID of the compartment containing the command.

Remarks

Required

Content

Declaration
[Required(ErrorMessage = "Content is required.")]
[JsonProperty(PropertyName = "content")]
public InstanceAgentCommandContent Content { get; set; }
Property Value
Type Description
InstanceAgentCommandContent

The contents of the command.

Remarks

Required

DisplayName

Declaration
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

A user-friendly name. Does not have to be unique. Avoid entering confidential information.

ExecutionTimeOutInSeconds

Declaration
[JsonProperty(PropertyName = "executionTimeOutInSeconds")]
public int? ExecutionTimeOutInSeconds { get; set; }
Property Value
Type Description
int?

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.

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

The OCID of the command.

Remarks

Required

IsCanceled

Declaration
[JsonProperty(PropertyName = "isCanceled")]
public bool? IsCanceled { get; set; }
Property Value
Type Description
bool?

Whether a request was made to cancel the command. Canceling a command is a best-effort attempt.

Target

Declaration
[Required(ErrorMessage = "Target is required.")]
[JsonProperty(PropertyName = "target")]
public InstanceAgentCommandTarget Target { get; set; }
Property Value
Type Description
InstanceAgentCommandTarget

The target instance that the command runs on.

Remarks

Required

TimeCreated

Declaration
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time the command was created, in the format defined by RFC3339.

TimeUpdated

Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time the command was last updated, in the format defined by RFC3339.

In this article
Back to top