One authority.

GET /organizations/{organizationId}/authorities/{authorityId}

GET https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}

ID da operação organizations.organizationId.authorities.authorityId.get
Acesso Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Ou: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parâmetros

NomeEmTipoDescrição
organizationId Caminho Obrigatório string (snowflake) The organization.
authorityId Caminho Obrigatório string (snowflake) The authority.

Respostas

StatusDescriçãoEsquemaTipo de conteúdo
200 One authority. AuthorityPage application/json, text/html, text/markdown
403 Your roles here do not allow this. Problem application/json, text/html, text/markdown
422 The input was rejected; errors names each failure. ValidationProblem application/json, text/html, text/markdown
Qualquer outro status The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json, text/html, text/markdown

200 One authority.

PropriedadeTipoDescrição
pki_organizations_id string (snowflake) Obrigatório The organization's ID.
pki_organizations_name string Obrigatório One customer, product or team: what holds authorities, certificates and machines; up to 100 characters.
pki_agencies_id string (snowflake) Obrigatório The agency's ID; for an organization, the ID of the agency that holds it.
pki_agencies_name string Obrigatório Your company, or the agency you run for your clients, up to 100 characters; it holds their organizations.
authorities_id string (snowflake) Obrigatório The authority's ID.
authorities_name string Obrigatório What you call the authority in ZanPKI, up to 100 characters; its exported files are named after it.
authorities_common_name string Obrigatório The subject common name, such as the host name.
authorities_created_at integer (int64) Obrigatório When the authority starts, as its certificate says, in seconds since the Unix epoch.
authorities_expires_at integer (int64) Obrigatório When the authority ends, as its certificate says, in seconds since the Unix epoch.
serial string Obrigatório Its certificate's serial number, as uppercase hex pairs joined by colons.
authorities_key_type one of: 1, 2, 3, 4, 5 Obrigatório EC P-256 suits nearly every client and is the fastest; RSA is for devices that take nothing else.
key_type_label string Obrigatório The key's type written out for display: RSA 2048, RSA 3072, RSA 4096, EC P-256 or EC P-384.
authorities_digest one of: 1, 2, 3 Obrigatório What its certificate is signed over; empty for the one that matches the signing key: SHA-384 for P-384, SHA-256 for the rest.
digest_label string Obrigatório The digest its certificate is signed over, written out for display: SHA-256, SHA-384 or SHA-512.
authorities_status one of: 1, 2 Obrigatório Where it stands: 1 active, in force until it ends, or 2 revoked, which its issuer's revocation list tells everyone. An active one whose end has passed has ended, which status_label says.
status_label string Obrigatório Its status written out for display: Active, Revoked, or Ended for one still active whose end has passed.
authorities_revoked_at integer (int64), or null Obrigatório When it was revoked, in seconds since the Unix epoch; null while it is not.
authorities_revocation_reason one of: 0, 1, 2, 3, 4, 5, 9, null Obrigatório Why it was revoked, as its issuer's revocation list says: 0 unspecified, 1 key compromised, 2 authority compromised, 3 affiliation changed, 4 superseded, 5 no longer in use or 9 privilege withdrawn; null while it is not revoked.
revocation_reason_label string, or null Obrigatório Why it was revoked, written out for display, such as Key compromised; null while it is not revoked.
revocation_list_url string (uri), or null Obrigatório Where its revocation list is, on plain http, for anyone given the address; null until it has one.
revocation_list_next_update integer (int64), or null Obrigatório When its next list is due, in seconds since the Unix epoch; null without a list, or when one is due now.
revocation_list_due boolean Obrigatório Whether its revocation list is due now: it has none yet, its last one has ended, or a revocation is not on it yet. Only an authority that can sign its list, active and in force with its key held here, is ever due.
may_publish_revocation_list boolean Obrigatório Whether you may publish its revocation list now: it can sign one, being active and in force with its key held here, and your roles let you manage authorities or issue certificates (authorities:manage or certificates:issue).
authorities_issuer_authority_id string (snowflake), or null Obrigatório The authority of the organization that signed it; null when it signed itself, or its issuer is not here.
issuer_name string, or null Obrigatório The name of the authority here that signed it; null when it signed itself, or its issuer is not here.
revoked_above_name string, or null Obrigatório The name of the nearest revoked authority in its issuer chain; null when none is. Clients refuse everything under a revoked authority.
signs_itself boolean Obrigatório Whether it is a root: its certificate names itself as its issuer.
authorities_origin one of: 1, 2, 3 Obrigatório Where it came from: 1 internal, made by ZanPKI; 2 imported; or 3 public authority, standing for the root of a public certificate authority (Let's Encrypt, ZeroSSL or Google), which holds no key here.
origin_label string Obrigatório Where it came from, written out for display: Internal, Imported or Public authority.
holds_private_key boolean Obrigatório Whether its private key is held here, so it can sign; false for one imported without its key, and for a public authority.
country string, or null Obrigatório Its two letters, such as US.
state string, or null Obrigatório The subject's state or province, up to 64 characters; empty for none.
city string, or null Obrigatório The subject's city or locality, up to 64 characters; empty for none.
organization string, or null Obrigatório The company or other organization the subject belongs to, as the certificate names it, up to 64 characters; empty for none.
unit string, or null Obrigatório A department or team within the subject's organization, up to 64 characters; empty for none.
email string, or null Obrigatório An email address in the subject; empty for none. It must be one the signing authority and every authority above it permit.
permitted_names list of string Obrigatório The names its certificate's name constraints permit, the only ones it and every authority under it may certify, each written as OpenSSL writes it, such as DNS:example.com or IP:10.3.1.0/24; empty when it has no such constraint.
excluded_names list of string Obrigatório The names its certificate's name constraints exclude, written the same way, such as DNS:every name for one that permits only IP ranges; empty for none.
may_create_intermediate boolean Obrigatório Whether you may create an authority under it now: your roles let you manage authorities (authorities:manage), it can sign, being active and in force with its key held here, nothing in its issuer chain is revoked, and the path length limits of its chain leave room for one more.
may_revoke boolean Obrigatório Whether you may revoke it now: your roles let you manage authorities (authorities:manage), it is active, and its issuer here can sign, being active and in force with its key held here.
fingerprint_sha256 string Obrigatório The SHA-256 fingerprint of its certificate, as uppercase hex pairs joined by colons.
may_export_private_key boolean Obrigatório Whether your roles let you export its private key (authorities:manage); an export of the key also needs it held here.
may_delete boolean Obrigatório Whether your roles let you delete it (authorities:manage).
revocation_list_named string, or null Obrigatório The revocation list address its certificate names when that is not its issuer's list here, as for one signed before its issuer was imported; null when it names that list or none, or its issuer is not here.

403 Your roles here do not allow this.

PropriedadeTipoDescrição
type string Obrigatório A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Obrigatório The HTTP status as text, such as Not Found.
status integer (int32) Obrigatório The HTTP status code of the response.
detail string Obrigatório An explanation of what went wrong, written for people to read.
instance string Obrigatório The path the request was sent to.

422 The input was rejected; errors names each failure.

PropriedadeTipoDescrição
type string Obrigatório A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Obrigatório The HTTP status as text, such as Not Found.
status integer (int32) Obrigatório The HTTP status code of the response.
detail string Obrigatório An explanation of what went wrong, written for people to read.
instance string Obrigatório The path the request was sent to.
errors InputErrors Obrigatório What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Qualquer outro status: The request was refused. The problem's type names why, and its detail explains it for people to read.

PropriedadeTipoDescrição
type string Obrigatório A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Obrigatório The HTTP status as text, such as Not Found.
status integer (int32) Obrigatório The HTTP status code of the response.
detail string Obrigatório An explanation of what went wrong, written for people to read.
instance string Obrigatório The path the request was sent to.

Exemplo

curl -X GET 'https://dev.zanpki.com/organizations/{organizationId}/authorities/{authorityId}' \
  -H 'Authorization: Bearer <access token>'

Toda a documentação

0 instrução de banco de dados · 14 leituras do cache · 0.0 ms aguardando o banco de dados · 32,0 MiB de pico de memória
public.settingsSELECTdo cache
public.mesh_nodesSELECTdo cache
public.fqdnsSELECTdo cache
public.sitesSELECTdo cache
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.filesSELECTdo cache
public.api_buildsSELECTdo cache
public.docs_guidesSELECTdo cache