Share via


AppInstanceExecAction Class

Definition

ExecAction describes a "run in container" action.

public class AppInstanceExecAction : Azure.ResourceManager.AppPlatform.Models.AppInstanceProbeAction, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.AppPlatform.Models.AppInstanceExecAction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.AppPlatform.Models.AppInstanceExecAction>
type AppInstanceExecAction = class
    inherit AppInstanceProbeAction
    interface IJsonModel<AppInstanceExecAction>
    interface IPersistableModel<AppInstanceExecAction>
Public Class AppInstanceExecAction
Inherits AppInstanceProbeAction
Implements IJsonModel(Of AppInstanceExecAction), IPersistableModel(Of AppInstanceExecAction)
Inheritance
System.Object
AppInstanceExecAction
Implements
System.ClientModel.Primitives.IJsonModel<AppInstanceExecAction> System.ClientModel.Primitives.IPersistableModel<AppInstanceExecAction> System.ClientModel.Primitives.IPersistableModel<T>

Constructors

AppInstanceExecAction()

Initializes a new instance of AppInstanceExecAction.

Properties

Command

Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<AppInstanceExecAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AppInstanceExecAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

IJsonModel<AppInstanceProbeAction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from AppInstanceProbeAction)
IJsonModel<AppInstanceProbeAction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided System.Text.Json.Utf8JsonWriter.

(Inherited from AppInstanceProbeAction)
IPersistableModel<AppInstanceExecAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

IPersistableModel<AppInstanceExecAction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AppInstanceExecAction>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

IPersistableModel<AppInstanceProbeAction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided System.BinaryData into a model.

(Inherited from AppInstanceProbeAction)
IPersistableModel<AppInstanceProbeAction>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from AppInstanceProbeAction)
IPersistableModel<AppInstanceProbeAction>.Write(ModelReaderWriterOptions)

Writes the model into a System.BinaryData.

(Inherited from AppInstanceProbeAction)

Applies to