Show / Hide Table of Contents

Class RunObjectStoreScriptUserDefinedCustomPrecheckStep

Run Object Store Script User Defined custom precheck step details.

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

Properties

ObjectStorageScriptLocation

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

Required

RunAsUser

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

The user ID on the instance that will be used to execute the script specified in 'scriptCommand'. 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 of the instance where this script or command should be executed.
Example: us-ashburn-1

Remarks

Required

ScriptCommand

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

The entire path and arguments for the script that is stored in object store, or inside a compressed archive in object store. Example: /usr/bin/python3.7 scripts/start_server.py --port 8080 --env "production" --max-connections 200 --log-level "INFO"

In this article
Back to top