airflow.providers.microsoft.psrp.operators.psrp

Module Contents

class airflow.providers.microsoft.psrp.operators.psrp.PSRPOperator(*, psrp_conn_id: str, command: Optional[str] = None, powershell: Optional[str] = None, **kwargs)[source]

Bases: airflow.models.BaseOperator

PowerShell Remoting Protocol operator.

Parameters
  • psrp_conn_id (str) – connection id

  • command (str) – command to execute on remote host. (templated)

  • powershell (str) – powershell to execute on remote host. (templated)

template_fields = ['command', 'powershell'][source]
template_fields_renderers[source]
ui_color = #901dd2[source]
execute(self, context: dict)[source]

Was this entry helpful?