Add a public certificate authority (Let's Encrypt, ZeroSSL or Google Trust Services) as one of the organization's authorities.

POST /organizations/{organizationId}/authorities/public

POST https://dev.zanpki.com/organizations/{organizationId}/authorities/public

オペレーション ID organizations.organizationId.authorities.public.post
アクセス 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.

リクエストボディ

必須(application/x-www-form-urlencoded, application/json として送信)。

スキーマ: CreatePublicAuthorityBody

プロパティ型説明
authorities_name string 必須 What you call the authority in ZanPKI, up to 100 characters; its exported files are named after it.
public_authority_settings_directory one of: 1, 2, 3, 4 必須 Who signs its certificates. Let's Encrypt staging signs certificates no client trusts: try it there first.
public_authority_settings_eab_key_id string 任意 ZeroSSL and Google only: the account-binding key id from your account there.
public_authority_settings_eab_mac_key string (secret) 任意(書き込み専用) ZeroSSL and Google only: the account-binding MAC key that goes with it. Kept sealed; used once, when the account is opened.
public_authority_settings_domains string 任意 The public domains whose DNS your provider below holds, separated by spaces, commas or lines: ZanPKI proves names under them with a DNS record. Leave empty for an authority that only takes certificate requests for hostnames ZFrame serves, proved over HTTP.
public_authority_settings_dns_provider one of: 1, 2 任意 Where the domains' DNS is held, so ZanPKI can prove names under them with a DNS record: 1 DNSimple, with your account there and an API token, or 2 ZanNS, ZanHosting's own. It is needed with domains; with none, the authority proves names only over HTTP, for hostnames ZFrame serves.
public_authority_settings_dns_account string 任意 The provider's account whose zones hold the domains, such as DNSimple's account id. ZanNS needs none: its zones name the organization that may prove names in them.
public_authority_settings_dns_token string (secret) 任意(書き込み専用) An API token that may change the domains' records, kept sealed, opened only while proving names. ZanNS needs none.

レスポンス

ステータス説明スキーマコンテンツタイプ
201 Authority added: its page.
403 Your roles here do not allow this. Problem application/json
422 The input was rejected; errors names each failure. ValidationProblem application/json
その他のステータス The request was refused. The problem's type names why, and its detail explains it for people to read. Problem application/json

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 POST 'https://dev.zanpki.com/organizations/{organizationId}/authorities/public' \
  -H 'Authorization: Bearer <access token>' \
  -H 'Content-Type: application/json' \
  -d '{
    "authorities_name": "<string>",
    "public_authority_settings_directory": "<one of: 1, 2, 3, 4>"
}'

すべてのドキュメント

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キャッシュから