Add information about all access methods to the environment (#13940)

This commit is contained in:
Kamil Breguła 2021-01-28 21:26:48 +01:00 коммит произвёл GitHub
Родитель 823741cfea
Коммит 0400f09cb5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 37 добавлений и 4 удалений

Просмотреть файл

@ -111,12 +111,17 @@ In the second terminal you can check the condition of the containers and make su
74f3bbe506eb postgres:13 "docker-entrypoint.s…" 18 minutes ago Up 17 minutes (healthy) 5432/tcp compose_postgres_1
0bd6576d23cb redis:latest "docker-entrypoint.s…" 10 hours ago Up 17 minutes (healthy) 0.0.0.0:6379->6379/tcp compose_redis_1
Once the cluster has started up, you can log in to the web interface and try to run some tasks. The webserver available at: ``http://localhost:8080``. The default account has the login ``airflow`` and the password ``airflow``.
Accessing the environment
=========================
.. image:: /img/dags.png
After starting Airflow, you can interact with it in 3 ways;
Accessing Command Line Interface
================================
* by running :doc:`CLI commands </usage-cli>`.
* via a browser using :doc:`the web interface </ui>`.
* using :doc:`the REST API </stable-rest-api-ref>`.
Running the CLI commands
------------------------
You can also run :doc:`CLI commands </usage-cli>`, but you have to do it in one of the defined ``airflow-*`` services. For example, to run ``airflow info``, run the following command:
@ -150,6 +155,34 @@ python container.
./airflow.sh python
Accessing the web interface
---------------------------
Once the cluster has started up, you can log in to the web interface and try to run some tasks.
The webserver available at: ``http://localhost:8080``.
The default account has the login ``airflow`` and the password ``airflow``.
Sending requests to the REST API
--------------------------------
`Basic username password authentication <https://tools.ietf.org/html/rfc7617
https://en.wikipedia.org/wiki/Basic_access_authentication>`_ is currently
supported for the REST API, which means you can use common tools to send requests to the API.
The webserver available at: ``http://localhost:8080``.
The default account has the login ``airflow`` and the password ``airflow``.
Here is a sample ``curl`` command, which sends a request to retrieve a pool list:
.. code-block:: bash
ENDPOINT_URL="http://localhost:8080/"
curl -X GET \
--user "airflow:airflow" \
"${ENDPOINT_URL}/api/v1/pools"
Cleaning up
===========