Show an organization machine
GET /organizations/{organizationId}/machines/{beingId}
GET https://zanpki.com/organizations/{organizationId}/machines/{beingId}
| Operation ID |
organizations.organizationId.machines.beingId.get
|
|---|---|
| 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. |
beingId
| Path | Required | string (snowflake) | Being ID. |
Responses
| Status | Description | Schema | Content type |
|---|---|---|---|
| 200 | The machine's details and 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 request input was rejected. The errors object lists each validation failure. | ValidationProblem | application/json, text/html, text/markdown |
| 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, text/html, text/markdown |
200 The machine's details and credentials.
| Property | Type | Description | |
|---|---|---|---|
agency_id
| string (snowflake) | Required | The agency's ID. |
agency_name
| string | Required | The agency's display name. |
organization_id
| string (snowflake) | Required | The organization's ID. |
organization_name
| string | Required | The organization's display name. |
organization_url
| string | Required | Link to the organization's page. |
being_id
| string (snowflake) | Required | The machine's ID. |
username
| string, or null | Optional | The machine's username. |
roles
| list of string | Required | Roles the machine has on this organization. |
credentials
| list of B2bMachineCredentialLine | Required | Credentials currently issued for this machine. |
token_lifetime
| integer (minutes), or null | Optional | Access token lifetime in minutes, or null when using the default. |
held_elsewhere
| boolean | Required | Whether this machine also has roles outside this organization. |
may_manage_machines
| boolean | Required | Whether the caller may manage this machine's credentials and token lifetime. |
may_manage_members
| boolean | Required | Whether the caller may edit this machine's organization roles. |
member_url
| string | Required | Link to edit this machine's roles on the organization. |
acme_bindings
| list of AcmeBindingLine | Required | The machine's ACME bindings (excluding MAC keys). Each binding allows an ACME client to register accounts with one authority for the listed names. |
profiles
| list of ProfileLine | Required | The organization's custom certificate profiles available when creating a new ACME binding. |
acme_authorities
| list of AcmeAuthorityOption | Required | The organization's authorities available for a new ACME binding: active, unexpired authorities whose private keys are stored in ZanPKI, plus configured 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 | A human-readable explanation of what went wrong. |
instance
| string | Required | The path the request was sent to. |
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. |
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 GET 'https://zanpki.com/organizations/{organizationId}/machines/{beingId}' \
-H 'Authorization: Bearer <access token>'