One of the organization's machines and its credentials.
GET /organizations/{organizationId}/machines/{beingId}
GET https://dev.zanpki.com/organizations/{organizationId}/machines/{beingId}
| Operation ID |
organizations.organizationId.machines.beingId.get
|
|---|---|
| Access | Signed in through ZanAuth: the access token cookie, with its ID token and refresh token companions. Or: An access token the site's ZanAuth issuer minted for its app, or a static key. |
Parameters
| Name | In | Type | Description | |
|---|---|---|---|---|
organizationId
| Path | Required | string (snowflake) | The organization. |
beingId
| Path | Required | string (snowflake) | The machine. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | One of the organization's machines and its credentials. | MachinePage | 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 |
| Any other 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 of the organization's machines and its credentials.
| Property | Type | Description | |
|---|---|---|---|
pki_organizations_id
| string (snowflake) | Required | The organization's ID. |
pki_organizations_name
| string | Required | One customer, product or team: what holds authorities, certificates and machines; up to 100 characters. |
pki_agencies_id
| string (snowflake) | Required | The agency's ID; for an organization, the ID of the agency that holds it. |
pki_agencies_name
| string | Required | Your company, or the agency you run for your clients, up to 100 characters; it holds their organizations. |
being_id
| string (snowflake) | Required | The machine's ID. |
username
| string, or null | Required | The machine's username in ZanPKI's solar system; null when it has none. |
roles
| list of string | Required | The roles it holds in the organization, by name: organization_admin or certificate_issuer. |
credentials
| list of CredentialLine | Required | The machine's credentials, how its programs sign in, never their secrets. |
may_manage
| boolean | Required | Whether you may change its credentials and ACME bindings: your roles let you manage machines (machines:manage), and it holds roles in this organization alone. |
held_elsewhere
| boolean | Required | Whether it also holds roles outside this organization, so no organization changes its credentials: a machine holds roles only in the organization that made it. |
acme_bindings
| list of AcmeBindingLine | Required | Its ACME bindings, each letting an ACME client open accounts on one authority for the names listed, never their MAC keys. |
profiles
| list of ProfileLine | Required | The organization's own profiles, by name, which a new ACME binding may follow. |
acme_authorities
| list of AcmeAuthorityOption | Required | The organization's authorities a new ACME binding may order from: those active and in force that hold their key here or are public authorities. |
403 Your roles here do not allow this.
| 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 | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
422 The input was rejected; errors names each 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 | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
errors
| InputErrors | Required | What is wrong with each refused value. Parameters come as a list, and body errors as a tree shaped like the body. |
Any other status: The request was refused. The problem's type names why, and its detail explains it for people to read.
| 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 | An explanation of what went wrong, written for people to read. |
instance
| string | Required | The path the request was sent to. |
Example
curl -X GET 'https://dev.zanpki.com/organizations/{organizationId}/machines/{beingId}' \
-H 'Authorization: Bearer <access token>'