airflow.providers.microsoft.psrp.operators.psrp

Module Contents

Classes

PSRPOperator

PowerShell Remoting Protocol operator.

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 :Sequence[str] = ['command', 'powershell'][source]
template_fields_renderers[source]
ui_color = #901dd2[source]
execute(self, context: airflow.utils.context.Context) List[str][source]

This is the main method to derive when creating an operator. Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?