airflow.providers.fab.www.security.permissions¶
Attributes¶
Classes¶
Details of a resource (actions and prefix). |
Functions¶
|
Return the resource name for a DAG id. |
|
Return the resource name for a DAG id. |
Module Contents¶
- airflow.providers.fab.www.security.permissions.RESOURCE_DAG_DEPENDENCIES = 'DAG Dependencies'[source]¶
- airflow.providers.fab.www.security.permissions.RESOURCE_CLUSTER_ACTIVITY = 'Cluster Activity'[source]¶
- airflow.providers.fab.www.security.permissions.RESOURCE_TASK_RESCHEDULE = 'Task Reschedules'[source]¶
- airflow.providers.fab.www.security.permissions.RESOURCE_USER_STATS_CHART = 'User Stats Chart'[source]¶
- airflow.providers.fab.www.security.permissions.DEPRECATED_ACTION_CAN_DAG_READ = 'can_dag_read'[source]¶
- airflow.providers.fab.www.security.permissions.DEPRECATED_ACTION_CAN_DAG_EDIT = 'can_dag_edit'[source]¶
- class airflow.providers.fab.www.security.permissions.ResourceDetails[source]¶
Bases:
TypedDict
Details of a resource (actions and prefix).
- airflow.providers.fab.www.security.permissions.resource_name(root_dag_id, resource)[source]¶
Return the resource name for a DAG id.
Note that since a sub-DAG should follow the permission of its parent DAG, you should pass
DagModel.root_dag_id
to this function, for a subdag. A normal dag should pass theDagModel.dag_id
.
- airflow.providers.fab.www.security.permissions.resource_name_for_dag(root_dag_id)[source]¶
Return the resource name for a DAG id.
Note that since a sub-DAG should follow the permission of its parent DAG, you should pass
DagModel.root_dag_id
to this function, for a subdag. A normal dag should pass theDagModel.dag_id
.Note: This function is kept for backwards compatibility.