Class RunObjectStoreScriptUserDefinedStep
Run Object Store Script step details.
Inherited Members
Namespace: Oci.DisasterrecoveryService.Models
Assembly: OCI.DotNetSDK.Disasterrecovery.dll
Syntax
public class RunObjectStoreScriptUserDefinedStep : 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. |
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.
|
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" |