6 merge requests!368Update prace.md to document the change from qprace to qprod as the default...,!367Update prace.md to document the change from qprace to qprod as the default...,!366Update prace.md to document the change from qprace to qprod as the default...,!323extended-acls-storage-section,!196Master,!178Apidocs
account-expire [GET /api/v1/account-expire/(login)](#get--api-v1-account-expire-(login)){.reference .external} Account expiration date
<thead>
accounts-to-close [GET /api/v1/accounts-to-close/(category)](#get--api-v1-accounts-to-close-(category)){.reference .external} Standard accounts close to expiration date
<trclass="header">
check-access [POST /api/v1/check-access](#post--api-v1-check-access){.reference .external} Access check to queue
<th>Resource</th>
dedicated-time [GET /api/v1/dedicated-time/(cluster\_type)](#get--api-v1-dedicated-time-(cluster_type)){.reference .external} HPC dedicated time
graph\_research\_area\_stats [GET /api/v1/graph\_research\_area\_stats](#get--api-v1-graph_research_area_stats){.reference .external} Graph research area statistics
irregular-accounts-to-close [GET /api/v1/irregular-accounts-to-close](#get--api-v1-irregular-accounts-to-close){.reference .external} Special accounts close to expiration date
`GET `{.descname}`/api/v1/account-expire/`{.descname}[(]{.sig-paren}*login*[)]{.sig-paren}[](#get--api-v1-account-expire-(login) "Permalink to this definition"){.headerlink}
</tr>
<trclass="even">
: Access to this service is restricted to just few source ipv4
`GET /api/v1/account-expire/`<spanclass="sig-paren">(</span>*login*<spanclass="sig-paren">)</span><ahref="#get--api-v1-account-expire-(login)"class="headerlink"title="Permalink to this definition">¶</a>
Access to this service is restricted to just few source ipv4 addresses.
It returns the account expiration date. The account may participates on
several projects. If all projects were already finished, there will come
a time when the account expires as well. It will happen after:
- 365 days - for all standard accounts
- 31 days - for special (e.g. training) accounts
Query Parameters:
Query Parameters:
...
@@ -72,31 +118,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -72,31 +118,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
@@ -107,21 +139,15 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -107,21 +139,15 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
}
}
]
]
</div>
</div>
<!-- -->
<!-- -->
`GET `{.descname}`/api/v1/accounts-to-close/`{.descname}[(]{.sig-paren}*category*[)]{.sig-paren}[](#get--api-v1-accounts-to-close-(category) "Permalink to this definition"){.headerlink}
`GET /api/v1/accounts-to-close/`<spanclass="sig-paren">(</span>*category*<spanclass="sig-paren">)</span><ahref="#get--api-v1-accounts-to-close-(category)"class="headerlink"title="Permalink to this definition">¶</a>
Access to this service is restricted to just few source ipv4 addresses.
: Access to this service is restricted to just few source ipv4
addresses.
The standard account expires 365 days after the date when the last
The standard account expires 365 days after the date when the last
project was finished. This service returns the list of standard
project was finished. This service returns the list of standard accounts
accounts which are close to the expiration date. The closeness time
which are close to the expiration date. The closeness time interval
interval depends on requested parameter.
depends on requested parameter.
Query Parameters:
Query Parameters:
...
@@ -143,31 +169,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -143,31 +169,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
`GET `{.descname}`/api/v1/dedicated-time/`{.descname}[(]{.sig-paren}*cluster\_type*[)]{.sig-paren}[](#get--api-v1-dedicated-time-(cluster_type) "Permalink to this definition"){.headerlink}
`GET /api/v1/dedicated-time/`<spanclass="sig-paren">(</span>*cluster\_type*<spanclass="sig-paren">)</span><ahref="#get--api-v1-dedicated-time-(cluster_type)"class="headerlink"title="Permalink to this definition">¶</a>
Returns list of times dedicated for HPC maintainance. It is not possible
: Returns list of times dedicated for HPC maintainance. It is not
to use HPC services during maintainance.
possible to use HPC services during maintainance.
Query Parameters:
Query Parameters:
...
@@ -249,38 +238,24 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -249,38 +238,24 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
-**all** – returns all dedicated times for all clusters
-**all** – returns all dedicated times for all clusters
-**salomon** – returns all times just for salomon cluster
-**salomon** – returns all times just for salomon cluster
-**anselm** – returns all times just for anselm cluster
-**anselm** – returns all times just for anselm cluster
- **active** – returns dedicated times for all clusters which are
-**active** – returns dedicated times for all clusters which are now
now active
active
- **planned** – returns dedicated times for all clusters which are
-**planned** – returns dedicated times for all clusters which are now
.external} – restricted access, your ipv4 address is not allowed
**Example request**:
**Example request**:
<div class="highlight-console">
<div class="highlight">
curl -i -X GET -G https://scs.it4i.cz/api/v1/graph_utilization_stats
curl -i -X GET -G https://scs.it4i.cz/api/v1/graph_utilization_stats
</div>
</div>
**Example response**:
**Example response**:
<div class="highlight-http">
<div class="highlight">
HTTP/1.1 200 OK
HTTP/1.1 200 OK
Content-Type: application/json
Content-Type: application/json
...
@@ -671,20 +586,14 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -671,20 +586,14 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
}
}
"
"
</div>
</div>
<!-- -->
<!-- -->
`GET `{.descname}`/api/v1/irregular-accounts-to-close`{.descname}[](#get--api-v1-irregular-accounts-to-close"Permalink to this definition"){.headerlink}
`GET /api/v1/irregular-accounts-to-close`<ahref="#get--api-v1-irregular-accounts-to-close"class="headerlink"title="Permalink to this definition">¶</a>
Access to this service is restricted to just few source ipv4 addresses.
: Access to this service is restricted to just few source ipv4
addresses.
The special (e.g. training) account expires 31 days after the date
The special (e.g. training) account expires 31 days after the date when
when the last project was finished. This service returns the list of
the last project was finished. This service returns the list of special
special accounts which are already after this the expiration date.
accounts which are already after this the expiration date.
Response JSON Object:
Response JSON Object:
...
@@ -695,31 +604,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -695,31 +604,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
@@ -730,32 +625,22 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -730,32 +625,22 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
}
}
]
]
</div>
</div>
<!-- -->
<!-- -->
`POST `{.descname}`/api/v1/it4ifree/`{.descname}[(]{.sig-paren}*login*[)]{.sig-paren}[](#post--api-v1-it4ifree-(login) "Permalink to this definition"){.headerlink}
`POST /api/v1/it4ifree/`<spanclass="sig-paren">(</span>*login*<spanclass="sig-paren">)</span><ahref="#post--api-v1-it4ifree-(login)"class="headerlink"title="Permalink to this definition">¶</a>
A service to check resources of the projects on which the account
: A service to check resources of the projects on which the account
participate. If the calculation run on 1 cpu core during 1 hour, it
participate. If the calculation run on 1 cpu core during 1 hour, it
consumes 1 core-hour from the project resources. However, some
consumes 1 core-hour from the project resources. However, some
calculations (or their placement) can be cheaper. Actual consumed
calculations (or their placement) can be cheaper. Actual consumed
core-hours are reduced by a cheaping factor and then deduct from the
core-hours are reduced by a cheaping factor and then deduct from the
@@ -860,16 +730,10 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -860,16 +730,10 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
]
]
}
}
</div>
</div>
<!-- -->
<!-- -->
`GET `{.descname}`/api/v1/it4ifreetoken/`{.descname}[(]{.sig-paren}*login*[)]{.sig-paren}[](#get--api-v1-it4ifreetoken-(login) "Permalink to this definition"){.headerlink}
`GET /api/v1/it4ifreetoken/`<spanclass="sig-paren">(</span>*login*<spanclass="sig-paren">)</span><ahref="#get--api-v1-it4ifreetoken-(login)"class="headerlink"title="Permalink to this definition">¶</a>
Access to this service is restricted to just few source ipv4 addresses.
: Access to this service is restricted to just few source ipv4
addresses.
It returns free token for the account.
It returns free token for the account.
...
@@ -881,31 +745,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -881,31 +745,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
@@ -913,15 +763,10 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -913,15 +763,10 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
"it4ifreetoken": "abc"
"it4ifreetoken": "abc"
}
}
</div>
</div>
<!-- -->
<!-- -->
`GET `{.descname}`/api/v1/motd/`{.descname}[(]{.sig-paren}*category*[)]{.sig-paren}[](#get--api-v1-motd-(category) "Permalink to this definition"){.headerlink}
`GET /api/v1/motd/`<spanclass="sig-paren">(</span>*category*<spanclass="sig-paren">)</span><ahref="#get--api-v1-motd-(category)"class="headerlink"title="Permalink to this definition">¶</a>
Returns SCS messages of the day.
: Returns SCS messages of the day.
Query Parameters:
Query Parameters:
...
@@ -933,31 +778,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}
...
@@ -933,31 +778,17 @@ API Details[](#api-details "Permalink to this headline"){.headerlink}