Search certificates requested for a domain by name, one page at a time.
POST /organizations/{organizationId}/external_issuers/domains/{domainId}/certificates/search
POST https://zanpki.com/organizations/{organizationId}/external_issuers/domains/{domainId}/certificates/search
| Operation ID |
organizations.organizationId.external_issuers.domains.domainId.certificates.search.post
|
|---|---|
| Access | Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key. |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
organizationId
| Path | Required | string (snowflake) | Organization ID. |
domainId
| Path | Required | string (snowflake) | Domain ID. |
Request body
Required, sent as application/x-www-form-urlencoded, application/json.
Schema: DomainCertificateSearchBody
| Property | Type | Description | |
|---|---|---|---|
page
| integer (int32) | Optional | The page number to show, starting at 1. Values past the last page return the last page. |
results_per_page
| one of: 10, 25, 50, 100 | Optional | How many results to show on each page. |
certificates_requested_names
| string, or null | Optional | Requested DNS names for a certificate from an external issuer, one per line (the apex domain, subdomains, or wildcards such as *.acme.com). Searches match substrings. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | One page of matching search results. | DomainCertificateSearchAnswer | application/json |
| 422 | The request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json |
| 503 | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json |
| Any other status | The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. | Problem | application/json |
200 One page of matching search results.
| Property | Type | Description | |
|---|---|---|---|
pagination
| Pagination | Required | Pagination details for this page of results. |
rows
| list of DomainCertificateLine | Required | Certificates on this page, newest first. |
422 The request input was rejected. The errors object lists each validation failure.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure. |
503 The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.
| Property | Type | Description | |
|---|---|---|---|
type
| string | Required | 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 | Required | The HTTP status as text, such as Not Found. |
status
| integer (int32) | Required | The HTTP status code of the response. |
detail
| string | Required | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X POST 'https://zanpki.com/organizations/{organizationId}/external_issuers/domains/{domainId}/certificates/search' \
-H 'Authorization: Bearer <access token>' \
-H 'Content-Type: application/json' \
-d '{}'