|
9 | 9 | <module name="Module ngx_http_api_module" |
10 | 10 | link="/en/docs/http/ngx_http_api_module.html" |
11 | 11 | lang="en" |
12 | | - rev="3"> |
| 12 | + rev="4"> |
13 | 13 |
|
14 | 14 | <section id="summary"> |
15 | 15 |
|
@@ -208,6 +208,11 @@ redirect</link> happens during request processing. |
208 | 208 | <para> |
209 | 209 | <list type="bullet"> |
210 | 210 |
|
| 211 | +<listitem> |
| 212 | +The <link id="license">/license</link> data |
| 213 | +were added in <link id="api_version">version</link> 9 (1.27.2). |
| 214 | +</listitem> |
| 215 | + |
211 | 216 | <listitem> |
212 | 217 | The <link id="workers_">/workers/</link> data |
213 | 218 | were added in <link id="api_version">version</link> 9. |
@@ -298,6 +303,8 @@ were added in <link id="api_version">version</link> 2. |
298 | 303 | </para> |
299 | 304 |
|
300 | 305 | </section> |
| 306 | + |
| 307 | + |
301 | 308 | <section id="endpoints" name="Endpoints"> |
302 | 309 | <para> |
303 | 310 | <list type="tag"> |
@@ -2015,6 +2022,25 @@ Possible responses: |
2015 | 2022 | </listitem> |
2016 | 2023 | </list> |
2017 | 2024 | </tag-desc> |
| 2025 | +<tag-name id="license" name="/license"> |
| 2026 | +<literal>/license</literal> |
| 2027 | +</tag-name> |
| 2028 | +<tag-desc> |
| 2029 | +<para>Supported methods:</para> |
| 2030 | +<list type="bullet" compact="yes"> |
| 2031 | +<listitem id="getLicense"> |
| 2032 | +<literal>GET</literal> - Return license info |
| 2033 | +<para></para> |
| 2034 | +<para> |
| 2035 | +Possible responses: |
| 2036 | +</para> |
| 2037 | +<list type="bullet"> |
| 2038 | +<listitem>200 - Success, returns <link id="def_nginx_license_object">License</link></listitem> |
| 2039 | +<listitem>404 - Unknown version (<literal>UnknownVersion</literal>), returns <link id="def_nginx_error">Error</link></listitem> |
| 2040 | +</list> |
| 2041 | +</listitem> |
| 2042 | +</list> |
| 2043 | +</tag-desc> |
2018 | 2044 | <tag-name id="workers_" name="/workers/"> |
2019 | 2045 | <literal>/workers/</literal> |
2020 | 2046 | </tag-name> |
@@ -4445,6 +4471,58 @@ The total number of requests completed with an unknown error. |
4445 | 4471 | } |
4446 | 4472 | }</example> |
4447 | 4473 | </listitem> |
| 4474 | +<listitem id="def_nginx_license_object"> |
| 4475 | +<para>License:</para> |
| 4476 | +License and usage reporting status of NGINX Plus instance.<list type="tag"> |
| 4477 | +<tag-name> |
| 4478 | +<literal>eval</literal> (<literal>boolean</literal>) |
| 4479 | +</tag-name> |
| 4480 | +<tag-desc> |
| 4481 | +Indicates whether NGINX Plus license is trial. |
| 4482 | +</tag-desc> |
| 4483 | +<tag-name> |
| 4484 | +<literal>active_till</literal> (<literal>integer</literal>) |
| 4485 | +</tag-name> |
| 4486 | +<tag-desc> |
| 4487 | +The Unix timestamp of license expiration. |
| 4488 | +</tag-desc> |
| 4489 | +<tag-name> |
| 4490 | +<literal>reporting</literal></tag-name> |
| 4491 | +<tag-desc> |
| 4492 | +<list type="tag"> |
| 4493 | +<tag-name> |
| 4494 | +<literal>healthy</literal> (<literal>boolean</literal>) |
| 4495 | +</tag-name> |
| 4496 | +<tag-desc> |
| 4497 | +Indicates whether the reporting state is still considered healthy despite recent failed attempts. |
| 4498 | +</tag-desc> |
| 4499 | +<tag-name> |
| 4500 | +<literal>fails</literal> (<literal>integer</literal>) |
| 4501 | +</tag-name> |
| 4502 | +<tag-desc> |
| 4503 | +The number of failed reporting attempts, reset each time the usage report is successfully sent. |
| 4504 | +</tag-desc> |
| 4505 | +<tag-name> |
| 4506 | +<literal>grace</literal> (<literal>integer</literal>) |
| 4507 | +</tag-name> |
| 4508 | +<tag-desc> |
| 4509 | +The number of seconds before traffic processing is stopped after unsuccessful report attempt. |
| 4510 | +</tag-desc> |
| 4511 | +</list> |
| 4512 | +</tag-desc> |
| 4513 | +</list> |
| 4514 | +<para>Example:</para> |
| 4515 | +<example> |
| 4516 | +{ |
| 4517 | + "eval" : false, |
| 4518 | + "active_till" : 1749268757, |
| 4519 | + "reporting" : { |
| 4520 | + "healthy" : true, |
| 4521 | + "fails" : 2, |
| 4522 | + "grace" : 15551961 |
| 4523 | + } |
| 4524 | +}</example> |
| 4525 | +</listitem> |
4448 | 4526 | <listitem id="def_nginx_worker"> |
4449 | 4527 | <para>Worker process:</para> |
4450 | 4528 | Statistics per each worker process.<list type="tag"> |
|
0 commit comments