Show / Hide Table of Contents

Class UpdateRunLocalScriptUserDefinedCustomPrecheckStepDetails

The details for updating a Run Local Script Precheck step.

Inheritance
object
UpdateDrPlanUserDefinedStepDetails
UpdateRunLocalScriptUserDefinedCustomPrecheckStepDetails
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DisasterrecoveryService.Models
Assembly: OCI.DotNetSDK.Disasterrecovery.dll
Syntax
public class UpdateRunLocalScriptUserDefinedCustomPrecheckStepDetails : UpdateDrPlanUserDefinedStepDetails

Properties

RunAsUser

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

The userid on the instance to be used for executing the script or command.
Example: opc

RunOnInstanceId

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

The OCID of the instance on which this precheck script or command should be executed.
For moving instances: runOnInstanceId must be the OCID of the instance in the region where the instance is currently present.
For non-moving instances: runOnInstanceId must be the OCID of the non-moving instance.
Example: ocid1.instance.oc1..uniqueID

Remarks

Required

ScriptCommand

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

The script name and arguments.
Example: /usr/bin/python3 /home/opc/scripts/my_app_script.py arg1 arg2 arg3

Remarks

Required

In this article
Back to top