Teile der REST-API-Dokumentation wurden kürzlich an andere Stelle verschoben. Falls du nicht findest, wonach du suchst, kannst du die Aktionen-REST-API-Seite ausprobieren.
Lizenz
Verwende die REST-API, um Informationen zu deiner Enterprise-Lizenz abzurufen.
Diese Endpunkte sind nur für authentifizierte Websiteadministratoren verfügbar. Normale Benutzer erhalten eine 404
-Antwort.
Get license information
HTTP-Antwortstatuscodes für „Get license information“
Statuscode | BESCHREIBUNG |
---|---|
200 | OK |
Codebeispiele für „Get license information“
get /enterprise /settings /license
curl -L \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
https://HOSTNAME/api/v3/enterprise/settings/license
Response
Status: 200
{
"seats": 1400,
"seats_used": 1316,
"seats_available": 84,
"kind": "standard",
"days_until_expiration": 365,
"expire_at": "2016/02/06 12:41:52 -0600"
}