Class CreateInstanceAgentCommandDetails
Creation details for an Oracle Cloud Agent command.
Inherited Members
Namespace: Oci.ComputeinstanceagentService.Models
Assembly: OCI.DotNetSDK.Computeinstanceagent.dll
Syntax
public class CreateInstanceAgentCommandDetails
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 to create the command in. |
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 for the command. It does not have to be unique.
Avoid entering confidential information.
|
ExecutionTimeOutInSeconds
Declaration
[Required(ErrorMessage = "ExecutionTimeOutInSeconds is required.")]
[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. |
Remarks
Required
Target
Declaration
[Required(ErrorMessage = "Target is required.")]
[JsonProperty(PropertyName = "target")]
public InstanceAgentCommandTarget Target { get; set; }
Property Value
Type | Description |
---|---|
InstanceAgentCommandTarget | The target instance to run the command on. |
Remarks
Required