One authority.

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

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

オペレーション ID organizations.organizationId.authorities.authorityId.get
アクセス Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. または: An access token the site's ZanAuth issuer minted for its app, or a static key.

パラメータ

名前場所型説明
organizationId パス 必須 string (snowflake) The organization.
authorityId パス 必須 string (snowflake) The authority.

レスポンス

ステータス説明スキーマコンテンツタイプ
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
その他のステータス 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.

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

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

422 The input was rejected; errors names each failure.

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

その他のステータス: The request was refused. The problem's type names why, and its detail explains it for people to read.

プロパティ型説明
type string 必須 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 必須 The HTTP status as text, such as Not Found.
status integer (int32) 必須 The HTTP status code of the response.
detail string 必須 An explanation of what went wrong, written for people to read.
instance string 必須 The path the request was sent to.

例

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

すべてのドキュメント

0件のデータベースステートメント · キャッシュからの読み取り 14件 · データベース待機時間 0.0 ms · ピークメモリ 32.0 MiB
public.settingsSELECTキャッシュから
public.mesh_nodesSELECTキャッシュから
public.fqdnsSELECTキャッシュから
public.sitesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.filesSELECTキャッシュから
public.api_buildsSELECTキャッシュから
public.docs_guidesSELECTキャッシュから