The Wayback Machine - https://web.archive.org/web/20220817193904/https://docs.github.com/pt/enterprise-server@3.5/rest/enterprise-admin/license
Skip to main content

We've recently moved some of the REST API documentation. If you can't find what you're looking for, you might try the Actions REST API page.

Licença

A API de Licença fornece informações sobre sua licença empresarial.

Só está disponível para administradores do site autenticados. Usuários normais receberão uma mensagem 404 se tentarem acessá-la.

Get license information

HTTP response status codes

Status codeDescrição
200

OK

Amostras de código

get/enterprise/settings/license
curl \ -H "Accept: application/vnd.github+json" \ -H "Authorization: token <TOKEN>" \ http(s)://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" }