Show / Hide Table of Contents

Class RunLocalScriptUserDefinedStep

Run Local Script step details.

Inheritance
object
DrPlanUserDefinedStep
RunLocalScriptUserDefinedStep
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 RunLocalScriptUserDefinedStep : DrPlanUserDefinedStep

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 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

RunOnInstanceRegion

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

The region in which the instance is present.
Example: us-ashburn-1

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