One authority.

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

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

Operations-ID organizations.organizationId.authorities.authorityId.get
Zugriff Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Oder: An access token the site's ZanAuth issuer minted for its app, or a static key.

Parameter

NameInTypBeschreibung
organizationId Pfad Erforderlich string (snowflake) The organization.
authorityId Pfad Erforderlich string (snowflake) The authority.

Antworten

StatusBeschreibungSchemaInhaltstyp
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
Jeder andere 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.

EigenschaftTypBeschreibung
pki_organizations_id string (snowflake) Erforderlich The organization's ID.
pki_organizations_name string Erforderlich One customer, product or team: what holds authorities, certificates and machines; up to 100 characters.
pki_agencies_id string (snowflake) Erforderlich The agency's ID; for an organization, the ID of the agency that holds it.
pki_agencies_name string Erforderlich Your company, or the agency you run for your clients, up to 100 characters; it holds their organizations.
authorities_id string (snowflake) Erforderlich The authority's ID.
authorities_name string Erforderlich What you call the authority in ZanPKI, up to 100 characters; its exported files are named after it.
authorities_common_name string Erforderlich The subject common name, such as the host name.
authorities_created_at integer (int64) Erforderlich When the authority starts, as its certificate says, in seconds since the Unix epoch.
authorities_expires_at integer (int64) Erforderlich When the authority ends, as its certificate says, in seconds since the Unix epoch.
serial string Erforderlich Its certificate's serial number, as uppercase hex pairs joined by colons.
authorities_key_type one of: 1, 2, 3, 4, 5 Erforderlich EC P-256 suits nearly every client and is the fastest; RSA is for devices that take nothing else.
key_type_label string Erforderlich 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 Erforderlich 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 Erforderlich The digest its certificate is signed over, written out for display: SHA-256, SHA-384 or SHA-512.
authorities_status one of: 1, 2 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich The authority of the organization that signed it; null when it signed itself, or its issuer is not here.
issuer_name string, or null Erforderlich 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 Erforderlich 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 Erforderlich Whether it is a root: its certificate names itself as its issuer.
authorities_origin one of: 1, 2, 3 Erforderlich 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 Erforderlich Where it came from, written out for display: Internal, Imported or Public authority.
holds_private_key boolean Erforderlich 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 Erforderlich Its two letters, such as US.
state string, or null Erforderlich The subject's state or province, up to 64 characters; empty for none.
city string, or null Erforderlich The subject's city or locality, up to 64 characters; empty for none.
organization string, or null Erforderlich 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 Erforderlich A department or team within the subject's organization, up to 64 characters; empty for none.
email string, or null Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich 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 Erforderlich The SHA-256 fingerprint of its certificate, as uppercase hex pairs joined by colons.
may_export_private_key boolean Erforderlich Whether your roles let you export its private key (authorities:manage); an export of the key also needs it held here.
may_delete boolean Erforderlich Whether your roles let you delete it (authorities:manage).
revocation_list_named string, or null Erforderlich 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.

EigenschaftTypBeschreibung
type string Erforderlich 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 Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.

422 The input was rejected; errors names each failure.

EigenschaftTypBeschreibung
type string Erforderlich 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 Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.
errors InputErrors Erforderlich What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body.

Jeder andere Status: The request was refused. The problem's type names why, and its detail explains it for people to read.

EigenschaftTypBeschreibung
type string Erforderlich 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 Erforderlich The HTTP status as text, such as Not Found.
status integer (int32) Erforderlich The HTTP status code of the response.
detail string Erforderlich An explanation of what went wrong, written for people to read.
instance string Erforderlich The path the request was sent to.

Beispiel

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

Gesamte Dokumentation

0 Datenbankabfragen · 14 Lesezugriffe aus dem Cache · 0.0 ms Wartezeit auf die Datenbank · 32,0 MiB Spitzenspeicher
public.settingsSELECTaus dem Cache
public.mesh_nodesSELECTaus dem Cache
public.fqdnsSELECTaus dem Cache
public.sitesSELECTaus dem Cache
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.filesSELECTaus dem Cache
public.api_buildsSELECTaus dem Cache
public.docs_guidesSELECTaus dem Cache