Skip to main content

manager/operations_gen.go (package manager)

Source: sdks/go/manager/operations_gen.go. Back to the Go SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class AgentTemplatesAPI​

AgentTemplatesAPI wraps the Platform Manager agent_templates operations.

AgentTemplatesAPI.AgentTemplate​

AgentTemplate(ctx context.Context, templateId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an agent template. One agent template by its identifier: name and description (fr and en), publisher, version, status, catalog service, documentation and source paths, components, published, reason, publication, publishable and publish_blocker. Any signed in user; 404 for an unknown template.

Route: /api/v1/agent-templates/{template_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
templateIdstringyesIdentifier of the agent template, equal to the name of its descriptor file.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an agent template". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AgentTemplatesAPI.AgentTemplates​

AgentTemplates(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the agent templates. Every agent template of the registry, sorted by identifier, with published computed against the loaded catalog and the publications of this Manager, reason (fr and en) when it cannot be deployed, publication (version, who, when) when it was published here, publishable and publish_blocker. Returns items and count. Any signed in user.

Route: /api/v1/agent-templates (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the agent templates". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AgentTemplatesAPI.PublishAgentTemplate​

PublishAgentTemplate(ctx context.Context, templateId string, opts ...eai.CallOption) (json.RawMessage, error)

Validate and publish an agent template. The validation of the customer: the service definition and the templates of the agent are checked by the catalog loader together with the whole catalog (on a staging copy, nothing is written when a check fails), then copied under published_templates_dir; the service joins the catalog of this Manager, the template answers published: true and its Deploy button opens the install wizard. Publishing again replaces the files with the current sources. Returns the template. Permission agent_templates:publish; audited as agent_template.publish. Errors: 404 agent_template_unknown, 409 agent_template_not_publishable (planned or in development), 409 agent_template_sources_missing, 409 agent_template_already_published (service shipped with the catalog), 422 agent_template_invalid (the problems found are in details.problems).

Route: /api/v1/agent-templates/{template_id}/publish (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
templateIdstringyesIdentifier of the agent template.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Validate and publish an agent template". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AgentTemplatesAPI.WithdrawAgentTemplate​

WithdrawAgentTemplate(ctx context.Context, templateId string, opts ...eai.CallOption) (json.RawMessage, error)

Withdraw the publication of an agent template. Removes the service definition and the templates published on this Manager and the publication record: the service leaves the catalog and the template is awaiting validation again. Refused while an instance of the service is installed in a cluster (409 agent_template_in_use, the instances are in details.instances). Returns the template. Permission agent_templates:publish; audited as agent_template.unpublish. Errors: 404 agent_template_unknown, 404 agent_template_not_published.

Route: /api/v1/agent-templates/{template_id}/publication (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
templateIdstringyesIdentifier of the agent template.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Withdraw the publication of an agent template". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class AlertsAPI​

AlertsAPI wraps the Platform Manager alerts operations.

AlertsAPI.AckAlert​

AckAlert(ctx context.Context, alertId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Acknowledge an alert. Records who acknowledged the alert, when, and the note; the alert stays open until its condition clears. Returns the alert. Permission alerts:manage on its cluster. Audited as alert.ack.

Route: /api/v1/alerts/{alert_id}/ack (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
alertIdstringyesIdentifier of the alert.
bodyanyyesOptional note.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Acknowledge an alert". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.CreateTarget​

CreateTarget(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Add a notification target. Creates a target and returns it (201). An email target needs config.to, a webhook target config.url (http:// or https://); a syslog target uses the syslog server of the settings. Permission alerts:manage; 422 notification_target_invalid. Audited as notification_target.create.

Route: /api/v1/notification-targets (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, kind, configuration and minimum severity of the target.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Add a notification target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.DeleteTarget​

DeleteTarget(ctx context.Context, targetId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a notification target. Deletes the target. Answers 204. Permission alerts:manage; 404 notification_target_not_found. Audited as notification_target.delete.

Route: /api/v1/notification-targets/{target_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
targetIdstringyesIdentifier of the notification target.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a notification target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.GetAlert​

GetAlert(ctx context.Context, alertId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an alert. Returns one alert with the history of its state changes (the last 200: ts, from_state, to_state, value, text). Permission alerts:read on its cluster; 404 alert_not_found.

Route: /api/v1/alerts/{alert_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
alertIdstringyesIdentifier of the alert.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an alert". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.ListAlerts​

ListAlerts(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the alerts of a cluster. Alerts of the cluster, last changed first (at most 500): definition, label, fingerprint, host, service, component, state, text, value, first and last seen, acknowledgement and resolution. Open alerts only unless include_resolved. Permission alerts:read.

Route: /api/v1/clusters/{cluster_id}/alerts (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the alerts of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.ListDefinitions​

ListDefinitions(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the alert definitions. Every definition with its name, scope, kind, label, description, enabled, interval_s, warning and critical thresholds and params. Permission alerts:read.

Route: /api/v1/alert-definitions (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the alert definitions". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.ListTargets​

ListTargets(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the notification targets. Every target with its kind, config, min_severity, enabled and whether an HMAC secret is set (never its value). Permission alerts:manage.

Route: /api/v1/notification-targets (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the notification targets". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.PatchDefinition​

PatchDefinition(ctx context.Context, definitionId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Tune an alert definition. Turns a definition on or off and changes its thresholds or its evaluation interval; a field left out is kept. Returns the definition. Permission alerts:manage; 404 alert_definition_not_found. Audited as alert_definition.update.

Route: /api/v1/alert-definitions/{definition_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
definitionIdstringyesIdentifier of the alert definition.
bodyanyyesFields of the definition to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Tune an alert definition". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.PatchTarget​

PatchTarget(ctx context.Context, targetId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a notification target. Changes the fields given and returns the target. Permission alerts:manage. Errors: 404 notification_target_not_found, 422 notification_target_invalid. Audited as notification_target.update.

Route: /api/v1/notification-targets/{target_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
targetIdstringyesIdentifier of the notification target.
bodyanyyesFields of the target to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a notification target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AlertsAPI.TestTarget​

TestTarget(ctx context.Context, targetId string, opts ...eai.CallOption) (json.RawMessage, error)

Send a test notification. Sends a test message (state warning, fingerprint test) to the target now and returns {"ok": true}. Permission alerts:manage. Errors: 404 notification_target_not_found, 502 notification_failed (the target refused or could not be reached). Audited as notification_target.test.

Route: /api/v1/notification-targets/{target_id}/test (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
targetIdstringyesIdentifier of the notification target.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Send a test notification". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class AuditAPI​

AuditAPI wraps the Platform Manager audit operations.

AuditAPI.Export​

Export(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Export the audit trail. Streams every event of the period in sequence order as a file download: audit.ndjson (one JSON object per line) or audit.csv (cells a spreadsheet would read as a formula are prefixed with a quote). Permission audit:read; 422 export_format_invalid for another format. Audited as audit.export.

Route: /api/v1/audit/export (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Export the audit trail". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuditAPI.ListAudit​

ListAudit(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Search the audit trail. Events matching every filter given, newest first: seq, id, ts, actor_type, actor_id, actor_name, action, target_type, target_id, cluster_id, outcome, ip, details, prev_hash, hash. Paginated with limit and cursor. Permission audit:read.

Route: /api/v1/audit (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Search the audit trail". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuditAPI.Verify​

Verify(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Verify the hash chain of the audit trail. Recomputes the hash of every event and checks the link to the previous one. Returns valid, the number of events checked and first_broken_seq (null when the chain is intact). Permission audit:read. Audited as audit.verify (outcome failure when the chain is broken).

Route: /api/v1/audit/verify (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Verify the hash chain of the audit trail". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class AuthAPI​

AuthAPI wraps the Platform Manager auth operations.

AuthAPI.Providers​

Providers(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the sign in methods. Public endpoint used by the login page. Returns local (always true), ldap (enabled, name), oidc (the enabled providers, id and name), setup_required (true while no user exists: call POST /auth/setup) and mfa (whether the TOTP second factor is turned on for this Manager).

Route: /api/v1/auth/providers (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the sign in methods". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthAPI.Session​

Session(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Read the current session. Returns the authenticated user (user), its effective permissions (permissions.global and permissions.clusters by cluster identifier), the csrf_token of the session (null for an API token) and expires_at (of the session or of the token). Any authenticated caller; 401 otherwise.

Route: /api/v1/auth/session (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Read the current session". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class AuthConfigAPI​

AuthConfigAPI wraps the Platform Manager auth_config operations.

AuthConfigAPI.CreateOIDC​

CreateOIDC(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Add an OIDC provider. Creates a provider and returns it (201). The scopes must include openid. Permission auth:manage. Errors: 409 provider_name_taken, 422 oidc_config_invalid, 422 role_invalid. Audited.

Route: /api/v1/auth-config/oidc (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSettings of the provider.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Add an OIDC provider". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.DeleteOIDC​

DeleteOIDC(ctx context.Context, providerId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete an OIDC provider. Removes the provider; its users can no longer sign in through it. Answers 204. Permission auth:manage; 404 oidc_provider_not_found. Audited as auth_config.oidc_delete.

Route: /api/v1/auth-config/oidc/{provider_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
providerIdstringyesIdentifier of the OIDC provider.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete an OIDC provider". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.GetLDAP​

GetLDAP(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the LDAP configuration. Returns the LDAP settings with their defaults, the bind password as {"secret": true, "set": ...} and the role mappings. Permission auth:manage.

Route: /api/v1/auth-config/ldap (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the LDAP configuration". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.GetOIDC​

GetOIDC(ctx context.Context, providerId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an OIDC provider. Returns one provider with its settings and mappings. Permission auth:manage; 404 oidc_provider_not_found.

Route: /api/v1/auth-config/oidc/{provider_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
providerIdstringyesIdentifier of the OIDC provider.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an OIDC provider". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.GetPolicy​

GetPolicy(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the security policy. Returns the current policy, defaults included: password minimum length 12, history 5, no maximum age, lockout after 5 failures for 15 minutes, sessions of 30 idle minutes and 12 hours at most, MFA required for admin and security_admin. Permission auth:manage.

Route: /api/v1/auth-config/policy (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the security policy". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.ListOIDC​

ListOIDC(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the OIDC providers. Every OIDC provider, enabled or not, with its settings and mappings; client secrets are never returned. Permission auth:manage.

Route: /api/v1/auth-config/oidc (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the OIDC providers". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.PutLDAP​

PutLDAP(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Save the LDAP configuration. Replaces the LDAP settings and role mappings and returns them. Every URL must be protected by TLS (ldaps://, or ldap:// with start_tls), at least one URL is needed when enabled, filters must be balanced in parentheses. Permission auth:manage. Errors: 422 ldap_config_invalid (with details.problems), 422 role_invalid. Audited as auth_config.ldap.

Route: /api/v1/auth-config/ldap (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesComplete LDAP settings.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Save the LDAP configuration". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.PutOIDC​

PutOIDC(ctx context.Context, providerId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update an OIDC provider. Replaces the settings and mappings of the provider and returns it; the client secret is kept unless a new one is sent. Permission auth:manage. Errors: 404 oidc_provider_not_found, 409 provider_name_taken, 422 oidc_config_invalid. Audited.

Route: /api/v1/auth-config/oidc/{provider_id} (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
providerIdstringyesIdentifier of the OIDC provider.
bodyanyyesComplete settings of the provider.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update an OIDC provider". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.PutPolicy​

PutPolicy(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Save the security policy. Replaces the whole policy and returns it. It applies to the next password change, sign in and session check. Permission auth:manage; 422 role_invalid for an unknown role in mfa_required_roles. Audited as auth_config.policy.

Route: /api/v1/auth-config/policy (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesEvery field of the policy.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Save the security policy". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.TestLDAP​

TestLDAP(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Test the LDAP configuration. Binds with the stored settings and, when a test account is given, searches the user, checks its password and reads its groups. Returns ok, bind, user_found, groups and error_code. Nothing is changed. Permission auth:manage; 404 ldap_not_configured. Audited as auth_config.ldap_test.

Route: /api/v1/auth-config/ldap/test (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesOptional test account.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Test the LDAP configuration". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AuthConfigAPI.TestOIDC​

TestOIDC(ctx context.Context, providerId string, opts ...eai.CallOption) (json.RawMessage, error)

Test an OIDC provider. Reads the discovery document of the issuer and its signing keys. Returns ok, issuer, jwks_keys (number of keys) and error_code. Permission auth:manage; 404 oidc_provider_not_found. Audited as auth_config.oidc_test.

Route: /api/v1/auth-config/oidc/{provider_id}/test (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
providerIdstringyesIdentifier of the OIDC provider.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Test an OIDC provider". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class AvailabilityAPI​

AvailabilityAPI wraps the Platform Manager availability operations.

AvailabilityAPI.CreateGroup​

CreateGroup(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a high availability group. Declares a group and its members and returns it (201). The profile must be met by desired_replicas and fault_domains, two members cannot share a host. Permission cluster:manage on the cluster. Errors: 422 ha_profile_unmet, 422 ha_mode_unsupported, 422 ha_members_same_host, 404 cluster_not_found, 404 host_not_found. Audited as ha_group.create.

Route: /api/v1/ha-groups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe group, its policy and its members.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a high availability group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AvailabilityAPI.GetGroup​

GetGroup(ctx context.Context, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a high availability group. Returns the group with its members, its HA status and its last test run. Permission cluster:read on its cluster; 404 ha_group_not_found.

Route: /api/v1/ha-groups/{group_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
groupIdstringyesIdentifier of the HA group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a high availability group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AvailabilityAPI.HAModes​

HAModes(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the deployment modes and their support. Every deployment mode with supported, ha_possible and the reason in both languages. Any signed in user.

Route: /api/v1/ha-modes (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the deployment modes and their support". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AvailabilityAPI.ListGroups​

ListGroups(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the high availability groups. Groups of every cluster the caller may read (cluster:read), sorted by name, each with its members, its HA status and its last test run.

Route: /api/v1/ha-groups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the high availability groups". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AvailabilityAPI.Operations​

Operations(ctx context.Context, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the failover history of a group. Returns test_runs (status, fencing token, observed RTO and RPO in seconds, evidence, times), fencing_operations (member, method, verified, token) and the last 200 events. Permission cluster:read.

Route: /api/v1/ha-groups/{group_id}/operations (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
groupIdstringyesIdentifier of the HA group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the failover history of a group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

AvailabilityAPI.TestFailover​

TestFailover(ctx context.Context, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Run a failover test. Takes the failover lease of the group, records a test run with a new fencing token and, when the group is bound to installed components, starts the failover. Answers 202 with run_id, status, fencing_token, executed and the started operations. Permission services:operate. Errors: 409 ha_operation_locked (another failover holds the lease), 409 ha_client_managed_refused. Audited as ha_group.test_failover.

Route: /api/v1/ha-groups/{group_id}/test-failover (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
groupIdstringyesIdentifier of the HA group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run a failover test". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class BackupAPI​

BackupAPI wraps the Platform Manager backup operations.

BackupAPI.ApproveExercise​

ApproveExercise(ctx context.Context, exerciseId string, opts ...eai.CallOption) (json.RawMessage, error)

Approve a DR exercise or failover. Approves the request; the approver must not be the requester. Permission dr:manage. Errors: 403 restore_self_approval, 404 dr_exercise_not_found. Audited as dr.approve.

Route: /api/v1/dr-exercises/{exercise_id}/approve (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
exerciseIdstringyesIdentifier of the exercise or failover request.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve a DR exercise or failover". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ApproveRestore​

ApproveRestore(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Approve a restore plan. Adds the approval of the caller; two approvals by people other than the requester are needed. Permission restore:execute. Errors: 403 restore_self_approval, 409 restore_not_approvable. Audited as restore.approve.

Route: /api/v1/restores/{plan_id}/approve (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.BackupConsistency​

BackupConsistency(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Check the consistency of a backup target. Compares the database rows, the stored objects and the artefact registry of a filesystem target (its bucket is the root directory). With reconcile, rows whose object is gone are marked missing and orphan objects are moved into a quarantine directory, never deleted. Permission backup:manage. Errors: 404 backup_target_not_found, 422 backup_provider_unsupported (not filesystem).

Route: /api/v1/backups/consistency (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTarget, registry digests and reconcile flag.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Check the consistency of a backup target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.CompleteExercise​

CompleteExercise(ctx context.Context, exerciseId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Complete a DR exercise with its measures. Records the observed RPO and RTO, the result and the evidence of an approved exercise or failover. Permission dr:manage; 409 dr_not_approved. Audited as dr.complete.

Route: /api/v1/dr-exercises/{exercise_id}/complete (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
exerciseIdstringyesIdentifier of the exercise or failover request.
bodyanyyesObserved measures, result and evidence.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Complete a DR exercise with its measures". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.CreateDRPlan​

CreateDRPlan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a DR plan. Creates a plan between a primary and a secondary site (created when unknown) and returns it (201). Permission dr:manage. Errors: 422 dr_mode_invalid, 422 dr_same_site. Audited as dr.plan.create.

Route: /api/v1/dr-plans (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, mode, sites, targets and sequence of the plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a DR plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.CreatePlan​

CreatePlan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a backup plan. Creates a backup plan on a target and returns it (201). With immutability_required the target must have verified object lock and retention capabilities. Permission backup:manage. Errors: 404 backup_target_not_found, 409 backup_worm_unsupported. Audited as backup.plan.create.

Route: /api/v1/backup-plans (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTarget, scope, schedule, encryption and retention of the plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a backup plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.CreateTarget​

CreateTarget(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Declare a backup target. Creates a target and returns it (201). Permission backup:manage; 422 backup_provider_unsupported. Audited as backup.target.create.

Route: /api/v1/backup-targets (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesProvider, location and capabilities of the target.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Declare a backup target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.DeclareTraffic​

DeclareTraffic(ctx context.Context, planId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Declare a traffic switch of a DR plan. Declares (or replaces) a DNS record or a load balancer of the plan with its value per site and the health check that must pass before a switch (201). Permission dr:manage. Errors: 422 dr_traffic_invalid, 404 dr_plan_not_found. Audited as dr.traffic.declare.

Route: /api/v1/dr-plans/{plan_id}/traffic (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the DR plan.
bodyanyyesKind, name and specification of the switch.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Declare a traffic switch of a DR plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.DeleteBackup​

DeleteBackup(ctx context.Context, backupId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a backup. Deletes a backup artefact whose retention is over. Permission backup:manage. Errors: 409 backup_retention_active (before expires_at), 404 backup_artifact_not_found. Audited as backup.delete.

Route: /api/v1/backups/{backup_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
backupIdstringyesIdentifier of the backup artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.DryRunRestore​

DryRunRestore(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Dry run a restore plan. Checks the digest, decryption and compatibility without writing to the destination, and returns the recorded approvers. For a named destination it also checks its identity, emptiness and restricted role (checks.destination, checks.executor). A successful dry run does not authorize execution: two approvals are still required. Permission restore:execute. Audited as restore.dry_run.

Route: /api/v1/restores/{plan_id}/dry-run (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Dry run a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.EnforceRetention​

EnforceRetention(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Apply the retention now. Removes the artefacts past their expires_at and marks them expired. Returns expired. Permission backup:manage. Audited as backup.expire.

Route: /api/v1/backups/retention/enforce (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Apply the retention now". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ExecuteRestore​

ExecuteRestore(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Execute an approved restore. Runs an approved plan with a destination: status executing and a durable execution_token are committed before any write. The artefact is checked again (size, digest, decryption), restored with pg_restore --single-transaction by the restricted role, then its rows are read back and compared with the backup inventory (result.inventory, rows, tables). Success: executed. Recorded failure: failed, rollback_performed: false, HTTP 502 restore_execution_failed; its nested result.error identifies the cause, including backup_corrupted, restore_target_busy or restore_execution_timeout. A process interruption can leave executing for manual inspection. Nothing is automatically rolled back or replayed. Pre-execution refusals include 409 restore_not_approved, 501 restore_executor_unavailable and 409 restore_target_changed. Permission restore:execute. Audited as restore.execute.started and restore.execute.

Route: /api/v1/restores/{plan_id}/execute (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Execute an approved restore". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.GetRestore​

GetRestore(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a restore plan. Returns the plan with its compatibility, steps, approvers and required_approvals (2). Permission backup:read; 404 restore_plan_not_found.

Route: /api/v1/restores/{plan_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListBackups​

ListBackups(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the backups. The last 200 backup artefacts, newest first: location, SHA-256, size, versions, expiry, plan and the outcome of their last verification. Permission backup:read.

Route: /api/v1/backups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the backups". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListDRPlans​

ListDRPlans(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the DR plans. Every disaster recovery plan with its mode, its primary and secondary sites, its RPO and RTO targets and its sequence. Permission backup:read.

Route: /api/v1/dr-plans (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the DR plans". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListExercises​

ListExercises(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the DR exercises and failovers. The last 200 exercises and failover requests with their report: status, requester, approver, observed RPO and RTO compared with the targets, evidence. Permission backup:read.

Route: /api/v1/dr-exercises (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the DR exercises and failovers". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListJobs​

ListJobs(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the backup jobs. The last 200 backup jobs, newest first, with their plan name, status and error. Permission backup:read.

Route: /api/v1/backup-jobs (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the backup jobs". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListPlans​

ListPlans(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the backup plans. Every backup plan, and alerts: the plans whose last successful backup is older than the interval plus the window, or whose last job failed. Permission backup:read.

Route: /api/v1/backup-plans (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the backup plans". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListRestoreTargets​

ListRestoreTargets(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the restore destinations. The restore destinations declared by the operator in the restore_targets setting: name, environment, kind (pg_dump) and declared versions. Connection strings and secret variable names never leave the server. Permission restore:execute.

Route: /api/v1/restore-targets (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the restore destinations". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListRestoreTests​

ListRestoreTests(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the restore tests. The last 200 restore tests with their outcome and signed report. Permission backup:read.

Route: /api/v1/restore-tests (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the restore tests". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListRestores​

ListRestores(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the restore plans. The last 200 restore plans with their status and number of approvals. Permission backup:read.

Route: /api/v1/restores (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the restore plans". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListSites​

ListSites(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the DR sites. Sites known to the disaster recovery plans, with their role (primary or secondary). Sites are created by the plans. Permission backup:read.

Route: /api/v1/dr-sites (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the DR sites". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListTraffic​

ListTraffic(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

List the traffic switches of a DR plan. DNS records and load balancers declared for the plan, with their value per site and health check. Permission backup:read.

Route: /api/v1/dr-plans/{plan_id}/traffic (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the DR plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the traffic switches of a DR plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.ListVerifications​

ListVerifications(ctx context.Context, backupId string, opts ...eai.CallOption) (json.RawMessage, error)

List the verifications of a backup. Every verification of the artefact, newest first, with its outcome (passed or failed) and details (expected and observed digest, size, reason). Permission backup:read.

Route: /api/v1/backups/{backup_id}/verifications (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
backupIdstringyesIdentifier of the backup artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the verifications of a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.PlanRestore​

PlanRestore(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Plan a restore. Creates a restore plan for a backup artefact: checks the compatibility of the backed up versions with the target versions (same major version) and lists the steps (verify artefact, verify destination, restore, verify restored). With target_name, the artefact must be an available pg_dump with a verification_inventory and the destination an empty PostgreSQL database owned by a restricted role; its identity is frozen in target_snapshot. Returns the plan (201). Permission restore:execute. Errors: 404 backup_artifact_not_found, 501 restore_executor_unavailable (unknown destination), 409 restore_target_invalid, 409 restore_target_not_empty, 422 restore_inventory_required. Audited as restore.plan.

Route: /api/v1/restores/plan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesArtefact, environment, destination and target versions.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Plan a restore". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.RecordBackup​

RecordBackup(ctx context.Context, planId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Record a backup. Records one job and its artefact: the Manager hashes the file at location, stores its digest, size and versions, and sets expires_at from the retention of the plan. When the file cannot be read the job is recorded as failed. Returns the job with its artifact (201). Permission backup:manage; 404 backup_policy_not_found. Audited as backup.job.

Route: /api/v1/backup-plans/{plan_id}/backups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the backup plan.
bodyanyyesLocation, kind and versions of the artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Record a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.RequestExercise​

RequestExercise(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request a DR exercise. Records an exercise request for a plan (201); another person must approve it before it can be completed. Permission dr:manage; 404 dr_plan_not_found. Audited as dr.exercise.request.

Route: /api/v1/dr-exercises (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe DR plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request a DR exercise". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.RequestFailover​

RequestFailover(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request a DR failover. Records a real failover request for a plan (201); it follows the same approval and completion as an exercise. Permission dr:manage; 404 dr_plan_not_found. Audited as dr.failover.request.

Route: /api/v1/dr-failovers/request (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe DR plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request a DR failover". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.RunRestoreTest​

RunRestoreTest(ctx context.Context, backupId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run a restore test. Copies the artefact into an isolated directory, optionally injects a corruption, verifies the digest and the decryption and signs the report (Ed25519). A failure raises an audited alarm. Returns the test (201). Permission backup:manage. Audited as backup.restore_test.

Route: /api/v1/backups/{backup_id}/restore-tests (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
backupIdstringyesIdentifier of the backup artefact.
bodyanyyesWhether to inject a corruption (to prove the test catches it).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run a restore test". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.SetDRTargets​

SetDRTargets(ctx context.Context, planId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Set the RPO and RTO targets of a DR plan. Sets your own recovery objectives (seconds, or null to clear); the product never proposes them. Permission dr:manage; 404 dr_plan_not_found. Audited as dr.plan.targets.

Route: /api/v1/dr-plans/{plan_id}/targets (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the DR plan.
bodyanyyesRPO and RTO targets.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Set the RPO and RTO targets of a DR plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.TrafficSwitchPlan​

TrafficSwitchPlan(ctx context.Context, planId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Plan a traffic switch to a site. Runs the health checks of the declared switches against the target site (real HTTP requests) and returns the ordered DNS and load balancer changes. Nothing is applied: applying needs the API of your DNS and load balancer (status requires_client_provider). Permission dr:manage.

Route: /api/v1/dr-plans/{plan_id}/switch-plan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the DR plan.
bodyanyyesSite to switch the traffic to.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Plan a traffic switch to a site". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupAPI.VerifyBackup​

VerifyBackup(ctx context.Context, backupId string, opts ...eai.CallOption) (json.RawMessage, error)

Verify a backup. Hashes the file again, compares digest and size with the recorded ones and, when they match, decrypts it with its key. Returns the verification with its outcome (passed or failed). Permission backup:manage; 404 backup_artifact_not_found. Audited as backup.verify.

Route: /api/v1/backups/{backup_id}/verify (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
backupIdstringyesIdentifier of the backup artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Verify a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class BackupsAPI​

BackupsAPI wraps the Platform Manager backups operations.

BackupsAPI.CreatePlan​

CreatePlan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a backup plan. Creates a backup plan on a target and returns it (201). With immutability_required the target must have verified object lock and retention capabilities. Permission backup:manage. Errors: 404 backup_target_not_found, 409 backup_worm_unsupported. Audited as backup.plan.create.

Route: /api/v1/backup-plans (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTarget, scope, schedule, encryption and retention of the plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a backup plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupsAPI.List​

List(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the backups. The last 200 backup artefacts, newest first: location, SHA-256, size, versions, expiry, plan and the outcome of their last verification. Permission backup:read.

Route: /api/v1/backups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the backups". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupsAPI.Run​

Run(ctx context.Context, planId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Record a backup. Records one job and its artefact: the Manager hashes the file at location, stores its digest, size and versions, and sets expires_at from the retention of the plan. When the file cannot be read the job is recorded as failed. Returns the job with its artifact (201). Permission backup:manage; 404 backup_policy_not_found. Audited as backup.job.

Route: /api/v1/backup-plans/{plan_id}/backups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the backup plan.
bodyanyyesLocation, kind and versions of the artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Record a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BackupsAPI.Verify​

Verify(ctx context.Context, backupId string, opts ...eai.CallOption) (json.RawMessage, error)

Verify a backup. Hashes the file again, compares digest and size with the recorded ones and, when they match, decrypts it with its key. Returns the verification with its outcome (passed or failed). Permission backup:manage; 404 backup_artifact_not_found. Audited as backup.verify.

Route: /api/v1/backups/{backup_id}/verify (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
backupIdstringyesIdentifier of the backup artefact.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Verify a backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class BlueprintAPI​

BlueprintAPI wraps the Platform Manager blueprint operations.

BlueprintAPI.ApplyBlueprint​

ApplyBlueprint(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Apply a blueprint to a cluster. Turns the blueprint and the host mapping into install requests and creates one install operation (type blueprint.apply), with the same checks as a service install. Returns operation_id and the ha checks. Permissions cluster:manage and services:install. Errors: 422 blueprint_invalid (with details.errors), and the errors of an install. Audited as blueprint.apply.

Route: /api/v1/clusters/{cluster_id}/blueprint/apply (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesBlueprint, host mapping and install options.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Apply a blueprint to a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BlueprintAPI.ExportBlueprint​

ExportBlueprint(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Export the blueprint of a cluster. Returns the blueprint of the cluster: its managed services with their non secret configuration (secrets are never exported) and host groups built from the components that run together; hosts of a group lists the hosts of this cluster for information. Permission cluster:manage.

Route: /api/v1/clusters/{cluster_id}/blueprint (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Export the blueprint of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BlueprintAPI.ValidateBlueprint​

ValidateBlueprint(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Validate a blueprint for a cluster. Checks the shape of the blueprint and, when a host_mapping is given, the mapping and the resulting install requests. Returns ok and errors (each with service, field, code, message_i18n). Nothing is changed. Permission cluster:manage.

Route: /api/v1/clusters/{cluster_id}/blueprint/validate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesBlueprint and optional host mapping.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Validate a blueprint for a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class ClustersAPI​

ClustersAPI wraps the Platform Manager clusters operations.

ClustersAPI.CreateCluster​

CreateCluster(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a cluster. Creates an empty cluster on the current catalog version and returns it (201). Without a profile, production and preprod clusters get standard, the other modes development. Permission clusters:create; 409 cluster_name_taken (names are case insensitive). Audited as cluster.create.

Route: /api/v1/clusters (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, mode, description and profile of the cluster.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.CreateToken​

CreateToken(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a bootstrap token for new hosts. Creates a token that lets agents register in this cluster and returns id, token (shown only here), expires_at, register_command (the nm-agent register command with the server URL, the token and the fingerprint of the CA) and install_command (a script that installs the agent from the mirror and registers it). Answers 201. Permission hosts:manage. Audited as bootstrap_token.create.

Route: /api/v1/clusters/{cluster_id}/bootstrap-tokens (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesLifetime and number of uses of the token.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a bootstrap token for new hosts". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.DeleteCluster​

DeleteCluster(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete an empty cluster. Deletes a cluster that has no service and no host other than decommissioned ones. Answers 204. Permission cluster:manage. Errors: 404 cluster_not_found, 409 cluster_not_empty. Audited as cluster.delete.

Route: /api/v1/clusters/{cluster_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete an empty cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.GetCluster​

GetCluster(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a cluster. Returns the cluster. Permission cluster:read; 404 cluster_not_found.

Route: /api/v1/clusters/{cluster_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.ImportKubernetes​

ImportKubernetes(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Register a Kubernetes cluster. Checks the kubeconfig against the API server given, calls /version, seals the kubeconfig and turns the cluster into a Kubernetes cluster. The cluster must have no host. Returns the target (201). Permission cluster:manage. Errors: 409 k8s_already_registered, 409 k8s_cluster_has_hosts, kubeconfig guard and API errors. Audited as k8s.cluster.register.

Route: /api/v1/clusters/{cluster_id}/kubernetes (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesAPI server, kubeconfig and namespace.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Register a Kubernetes cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.ListClusters​

ListClusters(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the clusters. Clusters the caller may read (cluster:read globally or on the cluster), sorted by name: id, name, mode, description, stack_version, profile, kind (hosts or kubernetes), created_at, updated_at.

Route: /api/v1/clusters (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the clusters". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.ListTokens​

ListTokens(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the bootstrap tokens of a cluster. Tokens of the cluster, newest first, with prefix, expires_at, max_uses, uses, created_at and revoked_at; the secret is never returned. Permission hosts:manage.

Route: /api/v1/clusters/{cluster_id}/bootstrap-tokens (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the bootstrap tokens of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.PatchCluster​

PatchCluster(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Rename a cluster or change its profile. Changes the name, the description or the profile; a field left out is kept. Returns the cluster. Permission cluster:manage. Errors: 404 cluster_not_found, 409 cluster_name_taken. Audited as cluster.update.

Route: /api/v1/clusters/{cluster_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesFields of the cluster to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Rename a cluster or change its profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.Register​

Register(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a cluster. Creates an empty cluster on the current catalog version and returns it (201). Without a profile, production and preprod clusters get standard, the other modes development. Permission clusters:create; 409 cluster_name_taken (names are case insensitive). Audited as cluster.create.

Route: /api/v1/clusters (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, mode, description and profile of the cluster.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.RevokeToken​

RevokeToken(ctx context.Context, clusterId string, tokenId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke a bootstrap token. Revokes the token: no new agent can register with it; hosts already registered are not affected. Answers 204. Permission hosts:manage; 404 bootstrap_token_not_found (unknown or already revoked). Audited as bootstrap_token.revoke.

Route: /api/v1/clusters/{cluster_id}/bootstrap-tokens/{token_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
tokenIdstringyesIdentifier of the bootstrap token.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke a bootstrap token". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.Status​

Status(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the summary of a cluster. Counters for the home page of a cluster: hosts by state, services by state and by health, open alerts (critical, warning) and running operations. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/summary (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the summary of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.Summary​

Summary(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the summary of a cluster. Counters for the home page of a cluster: hosts by state, services by state and by health, open alerts (critical, warning) and running operations. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/summary (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the summary of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.Topology​

Topology(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the topology of a cluster. Hosts (id, hostname, state, rack) and component instances (service, component, host_id, state, health) of the cluster, to draw where every component runs. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/topology (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the topology of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ClustersAPI.Validate​

Validate(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run the installation preflight of a cluster. Every check that must pass before a service is installed or upgraded, with its severity, evidence and a blocking verdict: host facts, DNS, catalog preflight entries, firewall, capacity, versions, TLS and profile rules. A check in fail blocks. Nothing is changed. Permission services:install.

Route: /api/v1/clusters/{cluster_id}/preflight (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesServices and hosts to check.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run the installation preflight of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class ConfigsAPI​

ConfigsAPI wraps the Platform Manager configs operations.

ConfigsAPI.Apply​

Apply(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Apply the configuration to the hosts. Starts the operation that writes the current configuration to the hosts and restarts the components as asked (rolling by batch_size, all, or none). Returns operation_id. Permission configs:edit. Under banking-secure an approval is needed (409 approval_required). Audited as config.apply.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/apply (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesRestart policy of the apply.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Apply the configuration to the hosts". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.CreateGroup​

CreateGroup(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a config group. Creates a group of hosts with values that override the service configuration on them. A host belongs to one group at most. Permission configs:edit. Errors: 409 config_group_name_taken, 409 config_group_host_conflict, 422 config_group_host_invalid, 422 config_invalid. Audited as config_group.create.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/groups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesName, hosts and overrides of the group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a config group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.DeleteGroup​

DeleteGroup(ctx context.Context, clusterId string, service string, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a config group. Deletes the group; its hosts fall back to the service configuration at the next apply. Answers 204. Permission configs:edit; 404 config_group_not_found. Audited as config_group.delete.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/groups/{group_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
groupIdstringyesIdentifier of the config group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a config group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.Diff​

Diff(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Compare two configuration versions. Lists the parameters whose value differs between the two versions, each with param, secret, from and to; for a secret only whether it is set is shown. Permission configs:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/diff (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Compare two configuration versions". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.GetConfig​

GetConfig(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the configuration of a service. Returns the current version, the effective properties (defaults merged, secrets masked), the parameter definitions params and sections of the catalog, the recommendations computed for the hosts, the config groups and the stale_hosts. Permission configs:read; 409 service_unmanaged for a service the Manager does not manage.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the configuration of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.GetVersion​

GetVersion(ctx context.Context, clusterId string, service string, version string, opts ...eai.CallOption) (json.RawMessage, error)

Get a configuration version. Returns the values of one version (secrets masked) with its note and author. Permission configs:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/versions/{version} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
versionstringyesVersion number, starting at 1.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a configuration version". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.ListGroups​

ListGroups(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

List the config groups of a service. Every config group with its id, name, hosts, overrides (secrets masked) and updated_at. Permission configs:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/groups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the config groups of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.ListVersions​

ListVersions(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

List the configuration versions. Versions of the configuration, newest first: version, note, restored_from, secret_keys, created_by, created_at. Paginated with limit and cursor. Permission configs:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/versions (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the configuration versions". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.Preview​

Preview(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Preview the files of a component instance. Renders the configuration files one instance would receive with the current version and its groups: path, mode, owner, group, content, secrets redacted. Nothing is written. Permission configs:read; 404 host_component_not_found.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/preview (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Preview the files of a component instance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.PutConfig​

PutConfig(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Save a new configuration version. Merges the properties sent over the current values, validates them against the parameter definitions and saves a new version. Returns version and stale_hosts. Permission configs:edit. Errors: 422 config_invalid (with the fields), 409 service_unmanaged. Audited as config.update (parameter names only).

Route: /api/v1/clusters/{cluster_id}/services/{service}/config (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesChanged properties and a note.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Save a new configuration version". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.Restore​

Restore(ctx context.Context, clusterId string, service string, version string, opts ...eai.CallOption) (json.RawMessage, error)

Restore a configuration version. Saves the values of an old version as a new version (note restore of version N) and returns version and stale_hosts; apply it to reach the hosts. Permission configs:edit. Audited as config.restore.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/versions/{version}/restore (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
versionstringyesVersion number to restore.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Restore a configuration version". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConfigsAPI.UpdateGroup​

UpdateGroup(ctx context.Context, clusterId string, service string, groupId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a config group. Replaces the name, hosts and overrides of the group. Permission configs:edit. Errors: 404 config_group_not_found, 409 config_group_name_taken, 409 config_group_host_conflict, 422 config_group_host_invalid. Audited as config_group.update.

Route: /api/v1/clusters/{cluster_id}/services/{service}/config/groups/{group_id} (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
groupIdstringyesIdentifier of the config group.
bodyanyyesName, hosts and overrides of the group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a config group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class ConnectionsAPI​

ConnectionsAPI wraps the Platform Manager connections operations.

ConnectionsAPI.CreateConnection​

CreateConnection(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a connection. Saves a connection and returns it (201). Permission connections:manage. Errors: 409 connection_name_taken, 422 connection_params_invalid (fields in details.fields). Audited as connection.create.

Route: /api/v1/connections (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, type, parameters and secret of the connection.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a connection". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.DeleteConnection​

DeleteConnection(ctx context.Context, connectionId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a connection. Deletes a connection no service is bound to. Answers 204. Permission connections:manage. Errors: 404 connection_not_found, 409 connection_in_use (services in details.services). Audited as connection.delete.

Route: /api/v1/connections/{connection_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
connectionIdstringyesIdentifier of the connection.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a connection". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.GetConnection​

GetConnection(ctx context.Context, connectionId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a connection. Returns one connection, its secret masked. Permission connections:read; 404 connection_not_found.

Route: /api/v1/connections/{connection_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
connectionIdstringyesIdentifier of the connection.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a connection". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.ListConnections​

ListConnections(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the external connections. Connections sorted by name: id, name, type, params, secret (set or not), description, last_test, created_at, updated_at. Paginated with limit and cursor. Permission connections:read.

Route: /api/v1/connections (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the external connections". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.PatchConnection​

PatchConnection(ctx context.Context, connectionId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a connection. Changes the fields given; the type cannot change. Returns the connection. Permission connections:manage. Errors: 404 connection_not_found, 409 connection_name_taken, 422 connection_params_invalid. Audited as connection.update.

Route: /api/v1/connections/{connection_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
connectionIdstringyesIdentifier of the connection.
bodyanyyesFields of the connection to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a connection". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.TestConnection​

TestConnection(ctx context.Context, connectionId string, opts ...eai.CallOption) (json.RawMessage, error)

Test a saved connection. Runs the protocol test with the stored parameters and secret, stores the result with its time in last_test and returns it (ok, error_code, latency_ms...). Permission connections:manage; 404 connection_not_found. Audited as connection.test.

Route: /api/v1/connections/{connection_id}/test (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
connectionIdstringyesIdentifier of the connection.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Test a saved connection". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConnectionsAPI.ValidateConnection​

ValidateConnection(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Test a connection before saving it. Dry run: checks the parameters of the type, then runs the real protocol test with the given secret. Returns the test result (ok, error_code, latency_ms...). Nothing is stored; the secret is never sent back nor audited. Permission connections:manage. Audited as connection.validate.

Route: /api/v1/connections/validate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesType, parameters and secret to test.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Test a connection before saving it". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class ConsolesAPI​

ConsolesAPI wraps the Platform Manager consoles operations.

ConsolesAPI.ListConsoles​

ListConsoles(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the service consoles of a cluster. Every console of the catalog with its state on the cluster: installed or not, health, internal address, compliance checks, whether the caller may open it and, for the vault administrators, the vault entry holding its credentials. Services without a web interface are listed apart with their HTTP endpoints. Permission services:operate. Audited as consoles.list.

Route: /api/v1/clusters/{cluster_id}/consoles (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the service consoles of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConsolesAPI.OpenConsole​

OpenConsole(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Open a service console. Returns url, the checks and compliant. Needs services:operate and the permission of the console (vault:manage for an identity or secrets console). Errors: 404 console_unknown, 409 console_not_installed, 409 console_no_url, 409 console_not_compliant (production or pre-production). Audited as console.open.

Route: /api/v1/clusters/{cluster_id}/consoles/{service}/open (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Open a service console". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConsolesAPI.PutAccess​

PutAccess(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Publish the internal address of a console. Sets the internal address of the console (behind the HTTPS gateway of the bank) and its protection; both null go back to the discovered address. Returns the console; the vault entry of the service is updated with the new address. Permission cluster:manage; 422 console_url_invalid. Audited as console.access.

Route: /api/v1/clusters/{cluster_id}/consoles/{service}/access (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesPublished address and protection.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Publish the internal address of a console". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ConsolesAPI.RotateCredentials​

RotateCredentials(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Rotate the password of a console account. Sets a new password (generated when omitted) for the console account read from the configuration: creates a new configuration version and starts the apply operation; the vault entry follows when the apply succeeds. Answers 202 with operation_id and version. The password is never logged. Permissions configs:edit and vault:manage. Errors: 409 console_no_credential, 409 console_rotation_manual, 409 service_unmanaged, 422 config_invalid. Audited as console.credentials.rotate.

Route: /api/v1/clusters/{cluster_id}/consoles/{service}/credentials/rotate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesNew password and restart policy.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Rotate the password of a console account". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class DRAPI​

DRAPI wraps the Platform Manager dr operations.

DRAPI.Approve​

Approve(ctx context.Context, exerciseId string, opts ...eai.CallOption) (json.RawMessage, error)

Approve a DR exercise or failover. Approves the request; the approver must not be the requester. Permission dr:manage. Errors: 403 restore_self_approval, 404 dr_exercise_not_found. Audited as dr.approve.

Route: /api/v1/dr-exercises/{exercise_id}/approve (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
exerciseIdstringyesIdentifier of the exercise or failover request.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve a DR exercise or failover". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.Complete​

Complete(ctx context.Context, exerciseId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Complete a DR exercise with its measures. Records the observed RPO and RTO, the result and the evidence of an approved exercise or failover. Permission dr:manage; 409 dr_not_approved. Audited as dr.complete.

Route: /api/v1/dr-exercises/{exercise_id}/complete (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
exerciseIdstringyesIdentifier of the exercise or failover request.
bodyanyyesObserved measures, result and evidence.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Complete a DR exercise with its measures". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.ListPlans​

ListPlans(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the DR plans. Every disaster recovery plan with its mode, its primary and secondary sites, its RPO and RTO targets and its sequence. Permission backup:read.

Route: /api/v1/dr-plans (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the DR plans". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.Plan​

Plan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a DR plan. Creates a plan between a primary and a secondary site (created when unknown) and returns it (201). Permission dr:manage. Errors: 422 dr_mode_invalid, 422 dr_same_site. Audited as dr.plan.create.

Route: /api/v1/dr-plans (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesName, mode, sites, targets and sequence of the plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a DR plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.RequestFailover​

RequestFailover(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request a DR failover. Records a real failover request for a plan (201); it follows the same approval and completion as an exercise. Permission dr:manage; 404 dr_plan_not_found. Audited as dr.failover.request.

Route: /api/v1/dr-failovers/request (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe DR plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request a DR failover". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.Status​

Status(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the DR exercises and failovers. The last 200 exercises and failover requests with their report: status, requester, approver, observed RPO and RTO compared with the targets, evidence. Permission backup:read.

Route: /api/v1/dr-exercises (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the DR exercises and failovers". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DRAPI.Test​

Test(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request a DR exercise. Records an exercise request for a plan (201); another person must approve it before it can be completed. Permission dr:manage; 404 dr_plan_not_found. Audited as dr.exercise.request.

Route: /api/v1/dr-exercises (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe DR plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request a DR exercise". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class HAAPI​

HAAPI wraps the Platform Manager ha operations.

HAAPI.List​

List(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the high availability groups. Groups of every cluster the caller may read (cluster:read), sorted by name, each with its members, its HA status and its last test run.

Route: /api/v1/ha-groups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the high availability groups". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HAAPI.Plan​

Plan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a high availability group. Declares a group and its members and returns it (201). The profile must be met by desired_replicas and fault_domains, two members cannot share a host. Permission cluster:manage on the cluster. Errors: 422 ha_profile_unmet, 422 ha_mode_unsupported, 422 ha_members_same_host, 404 cluster_not_found, 404 host_not_found. Audited as ha_group.create.

Route: /api/v1/ha-groups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe group, its policy and its members.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a high availability group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HAAPI.Status​

Status(ctx context.Context, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a high availability group. Returns the group with its members, its HA status and its last test run. Permission cluster:read on its cluster; 404 ha_group_not_found.

Route: /api/v1/ha-groups/{group_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
groupIdstringyesIdentifier of the HA group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a high availability group". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HAAPI.TestFailover​

TestFailover(ctx context.Context, groupId string, opts ...eai.CallOption) (json.RawMessage, error)

Run a failover test. Takes the failover lease of the group, records a test run with a new fencing token and, when the group is bound to installed components, starts the failover. Answers 202 with run_id, status, fencing_token, executed and the started operations. Permission services:operate. Errors: 409 ha_operation_locked (another failover holds the lease), 409 ha_client_managed_refused. Audited as ha_group.test_failover.

Route: /api/v1/ha-groups/{group_id}/test-failover (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
groupIdstringyesIdentifier of the HA group.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run a failover test". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class HostsAPI​

HostsAPI wraps the Platform Manager hosts operations.

HostsAPI.Bootstrap​

Bootstrap(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Bootstrap a node agent over SSH. Starts an operation that installs and registers the agent on one host:

Route: /api/v1/hosts/bootstrap (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTarget host, jump hosts, SSH account, private key or certificate.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Bootstrap a node agent over SSH". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.BootstrapPlan​

BootstrapPlan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Preview the bootstrap of a node agent. Checks the credential against the SSH policy and returns the plan without connecting: SSH user, target, jumps, credential verdict, the sudoers file and its validation, the allowlist, the systemd unit and the staging directory. Permission hosts:manage; 422 ssh_policy_refused.

Route: /api/v1/hosts/bootstrap/plan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSame body as a bootstrap.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Preview the bootstrap of a node agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Decommission​

Decommission(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Decommission a host. Starts an operation in two stages: the agent runs its decommission task, then the Manager marks the host decommissioned and revokes its certificates. The host must have no component left. Answers 202 with operation_id. Permission hosts:manage; 409 host_has_components. Audited as host.decommission.

Route: /api/v1/hosts/{host_id}/decommission (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Decommission a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.DeleteHost​

DeleteHost(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a host. Removes the host from the Manager and revokes its agent certificates, without contacting the agent (use decommission to clean the machine). Answers 204. Permission hosts:manage. Errors: 404 host_not_found, 409 host_has_components. Audited as host.delete.

Route: /api/v1/hosts/{host_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Diagnostics​

Diagnostics(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the inventory of a host. Returns host_id, the inventory reconciled from the agent facts (hardware, GPUs, platform) and updated_at. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/inventory (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the inventory of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Discover​

Discover(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the hosts of every cluster. Hosts of every cluster the caller may read (or of one cluster), sorted by FQDN, with their trust state, management mode, identity, metrics, inventory and platform.

Route: /api/v1/hosts (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the hosts of every cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Enroll​

Enroll(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Issue an enrollment token for one agent key. Issues a single use token for one host and one key: host_fingerprint is the SHA-256 (hex) of the public key of the agent (nm-agent prints it before enrolling). The token expires after at most 15 minutes and is consumed by the first enrollment that presents a CSR of that exact key. Returns id, token, expires_at, ttl_s, host_fingerprint and agent_url (201). Permission hosts:manage. Audited as host.enroll_token.

Route: /api/v1/hosts/enroll (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesCluster, FQDN and key fingerprint of the host.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Issue an enrollment token for one agent key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.GetHost​

GetHost(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a host with its facts. Returns the host with the full facts reported by its agent. Permission cluster:read on its cluster; 404 host_not_found.

Route: /api/v1/hosts/{host_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a host with its facts". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.GetParameters​

GetParameters(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the kernel parameters of a host. The sysctl settings and the resource limits (nofile, nproc, memlock) of the host, each with its current value (reported by the agent), its desired value (set with PUT) and its recommended value (from the installed services), plus the firewall backend and the ports in use. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/parameters (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the kernel parameters of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Health​

Health(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a node agent. The node view plus its last 10 certificates and diagnostics (facts, last metrics, last 20 receipts). Permission cluster:read; 404 host_not_found.

Route: /api/v1/agents/nodes/{host_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a node agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.HostComponents​

HostComponents(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

List the components of a host. Component instances placed on the host: service, component, desired_state, state, health and its details, version, config_version, stale_config (the configuration changed since the last restart), maintenance, pid, since, updated_at. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/components (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the components of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.HostMetrics​

HostMetrics(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Read the metrics of a host. Time series of the host over [from, to] (default: the last hour) in buckets of step seconds: cpu_pct, mem_used_mb, load1, disk_pct, net_rx, net_tx, each a list of [time, value]. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/metrics (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Read the metrics of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.ListHosts​

ListHosts(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the hosts of a cluster. Hosts of the cluster sorted by hostname, with their state, operating system, resources, labels, components, open alerts, agent version, certificate expiry, latest metrics and network rates. Permission cluster:read; 404 cluster_not_found.

Route: /api/v1/clusters/{cluster_id}/hosts (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the hosts of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.PatchHost​

PatchHost(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update the rack, labels or maintenance of a host. Changes the fields given and returns the host. Turning maintenance on moves the host to the maintenance state, turning it off brings it back to healthy. Permission hosts:manage; 422 host_environment_unknown. Audited as host.update.

Route: /api/v1/hosts/{host_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesFields of the host to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update the rack, labels or maintenance of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Preflight​

Preflight(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run the preflight of a host before its bootstrap. Reads the host over SSH and from the Manager (DNS forward and reverse, TCP reachability, required ports free, disks, operating system) and returns the checks graded pass, warning or blocking, the blocking and warnings counts, a reproducible digest and the credential verdict. Nothing is installed. Permission hosts:manage. Errors: 422 ssh_policy_refused. Audited as host.preflight.

Route: /api/v1/hosts/preflight (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSSH access, expected identity, ports and disks to check.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run the preflight of a host before its bootstrap". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.PreflightResults​

PreflightResults(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the preflight results of a host. Result of every preflight check of the host (check, status, message_i18n, details, checked_at), evaluated from its last facts. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/preflight (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the preflight results of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.PutParameters​

PutParameters(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Apply kernel parameters to a host. Stores the sysctl settings and resource limits and starts an operation that writes them to /etc/sysctl.d/90-navin-manager.conf and /etc/security/limits.d/90-navin-manager.conf. Answers 202 with operation_id. Permission hosts:manage. Errors: 422 validation_error (invalid key or empty request), 409 host_rootless (agent without root rights). Audited as host.parameters.

Route: /api/v1/hosts/{host_id}/parameters (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesSysctl settings and resource limits.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Apply kernel parameters to a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.RefreshFacts​

RefreshFacts(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Collect the facts of a host again. Starts an operation where the agent collects and reports its facts again (the preflight checks are evaluated on them). Answers 202 with operation_id. Permission hosts:manage. Audited as host.facts_refresh.

Route: /api/v1/hosts/{host_id}/facts/refresh (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Collect the facts of a host again". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.Revoke​

Revoke(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Revoke the agent of a host. Sets the trust state to revoked, revokes the certificates of the agent and expires its pending commands. Only a new enrollment brings it back. Returns the node. Permission hosts:manage. Audited as host.revoke with the number of certificates revoked.

Route: /api/v1/hosts/{host_id}/revoke (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesReason of the change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke the agent of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.RunPreflight​

RunPreflight(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Run the preflight checks of a host. Starts an operation that collects fresh facts; the preflight checks are evaluated when they arrive. Read the results with GET /hosts/{host_id}/preflight. Answers 202 with operation_id. Permission hosts:manage. Audited as host.preflight.

Route: /api/v1/hosts/{host_id}/preflight (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run the preflight checks of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HostsAPI.SSHBootstrap​

SSHBootstrap(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Install agents over SSH. Starts an operation with one task per host: the Manager connects over SSH (the host key must match the fingerprint given), installs the agent and registers it with a bootstrap token created for this operation (valid 2 hours, one use per host). The private key is kept in memory for the tasks only, never stored nor logged. A failed host does not stop the others. Answers 202 with operation_id. Permission hosts:manage. Errors: 422 validation_error (invalid name or missing fingerprint), 404 cluster_not_found. Audited as host.ssh_bootstrap.

Route: /api/v1/clusters/{cluster_id}/hosts/ssh-bootstrap (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesHosts, SSH account, private key and host key fingerprints.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Install agents over SSH". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class HubAPI​

HubAPI wraps the Platform Manager hub operations.

HubAPI.GetStatus​

GetStatus(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the Hub status. Returns configured, the public settings (the token is never returned), the state of the last accepted document and a packages_summary. Permission system:read.

Route: /api/v1/hub (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the Hub status". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HubAPI.ImportOffline​

ImportOffline(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Import a distribution document offline. Verifies and stores a signed document brought on removable media (air-gapped site). Needs the customer and the pinned keys in the settings. Returns metadata_version, targets, images_loaded and changes. Permission settings:manage; 422 hub_document_invalid when a check fails. Audited as hub.import.

Route: /api/v1/hub/import (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe signed distribution document, as JSON.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Import a distribution document offline". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HubAPI.ListPackages​

ListPackages(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the approved packages. Targets of the accepted document (project, name, version, image, revocation), each with whether it is the latest approved version and whether it is installed on a cluster. Returns items. Permission system:read.

Route: /api/v1/hub/packages (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the approved packages". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HubAPI.PutSettings​

PutSettings(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Save the Hub settings. Saves the connection to the Hub and returns the status. The token is sealed; leave it null to keep the stored one. Permission settings:manage; 422 hub_document_invalid when trusted_keys_pem holds no Ed25519 public key. Audited as hub.settings (key identifiers only).

Route: /api/v1/hub/settings (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesHub address, customer, keys and token.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Save the Hub settings". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

HubAPI.Sync​

Sync(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Sync with the Hub. Downloads the document of the customer from the Hub, verifies and stores it. Needs the URL, the customer and the pinned keys in the settings. Returns metadata_version, targets, images_loaded and changes. Permission settings:manage. Audited as hub.sync.

Route: /api/v1/hub/sync (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Sync with the Hub". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class KubernetesAPI​

KubernetesAPI wraps the Platform Manager kubernetes operations.

KubernetesAPI.AgentManifests​

AgentManifests(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the manifests of the cluster agent. ServiceAccount, RBAC and Deployment of the cluster agent for the managed namespace, as objects (manifests) and as YAML (yaml) ready for kubectl apply. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent/manifests (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the manifests of the cluster agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.ComponentAction​

ComponentAction(ctx context.Context, clusterId string, name string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on a Kubernetes component. Changes the desired state: start, stop, restart or rolling_restart (a restart timestamp), scale (fixed replicas or autoscaling, never below the disruption budget) or maintenance (enabled). Answers 202 with component and requested. Permission services:operate. Errors: 409 k8s_maintenance, 409 k8s_component_stopped, 409 k8s_replicas_below_pdb. Audited as k8s.component.<action>.

Route: /api/v1/clusters/{cluster_id}/kubernetes/components/{name}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namestringyesName of the component.
bodyanyyesAction and its arguments.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on a Kubernetes component". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.ConfigureComponent​

ConfigureComponent(ctx context.Context, clusterId string, name string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Configure a Kubernetes component. Changes the version, source, values, secret references or disruption budget of the component (server side apply). Values that look like secrets are refused: use secret_refs. Permission configs:edit. Errors: 422 k8s_values_secret, 409 k8s_maintenance, 404 k8s_component_not_found. Audited as k8s.component.configure (field names only).

Route: /api/v1/clusters/{cluster_id}/kubernetes/components/{name} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namestringyesName of the component.
bodyanyyesFields of the component to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Configure a Kubernetes component". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.GetAgent​

GetAgent(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the cluster agent. State of the identity of the Navin Cluster Agent and its last report. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the cluster agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.GetComponent​

GetComponent(ctx context.Context, clusterId string, name string, opts ...eai.CallOption) (json.RawMessage, error)

Get a Kubernetes component. Reads the resource and returns its observed state. Permission cluster:read; 404 k8s_component_not_found (the record is dropped when the resource is gone).

Route: /api/v1/clusters/{cluster_id}/kubernetes/components/{name} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namestringyesName of the component.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a Kubernetes component". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.GetTarget​

GetTarget(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a Kubernetes target. Returns the API server, the namespace, the server version, the discovered mode, distribution and number of nodes, the discovery time, the last error and the kubeconfig as {"secret": true, "set": true}. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a Kubernetes target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.ImportRBAC​

ImportRBAC(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the RBAC of the import identity. Least privilege RBAC of the identity the Manager uses for the cluster, as objects and YAML, with the resulting user name: read what the discovery needs, write only platform.navin.ai resources in the managed namespace; no Secret, RBAC object, workload, exec nor impersonation. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes/import-rbac (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the RBAC of the import identity". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.InstallComponent​

InstallComponent(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Install a catalog service on Kubernetes. Creates the ManagedComponent resource of a catalog service (chart from a path or an OCI reference pinned by digest) and returns its state (201). Values that look like secrets are refused. Permission services:install. Errors: 409 k8s_component_exists, 422 k8s_values_secret, 409 k8s_replicas_below_pdb. Audited as k8s.component.install.

Route: /api/v1/clusters/{cluster_id}/kubernetes/components (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesService, source, values, replicas and policies of the component.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Install a catalog service on Kubernetes". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.Issue​

Issue(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Issue the cluster agent identity. Issues the client certificate and the configuration of the Navin Cluster Agent: certificate_pem, private_key_pem (returned once, never stored), ca_pem, manager_public_key_pem, config, fingerprint and not_after (201). Permission cluster:manage; 422 k8s_agent_gateway_url_invalid. Audited as k8s.agent.issue.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesGateway URL, tenant and offline delay of the agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Issue the cluster agent identity". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.LastDiscovery​

LastDiscovery(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the last discovery of a Kubernetes cluster. Returns the inventory of the last discovery. Permission cluster:read; 404 k8s_not_discovered.

Route: /api/v1/clusters/{cluster_id}/kubernetes/discovery (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the last discovery of a Kubernetes cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.ListCommands​

ListCommands(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the cluster agent commands. The last 200 commands queued for the cluster agent, each with its receipts. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent/commands (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the cluster agent commands". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.ListComponents​

ListComponents(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the Kubernetes components. Live list: every ManagedComponent of the namespace with its status, which is also written into the model of the Manager. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/kubernetes/components (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the Kubernetes components". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.PatchTarget​

PatchTarget(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a Kubernetes target. Changes the API server, the kubeconfig (send the read back object to keep it) or the namespace (refused while components remain); the kubeconfig guard runs again. Permission cluster:manage. Errors: 422 validation_error, 409 k8s_components_remain. Audited as k8s.cluster.update.

Route: /api/v1/clusters/{cluster_id}/kubernetes (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesFields of the target to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a Kubernetes target". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.QueueCommand​

QueueCommand(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Queue a signed command for the cluster agent. Records the authorization decision, then queues a signed command (managedcomponent.apply, managedcomponent.delete or inventory.report) the agent picks up. Answers 202 with the command. Permission services:operate. Audited as k8s.agent.policy.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent/commands (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesOperation, parameters, idempotency key and validity.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Queue a signed command for the cluster agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.Register​

Register(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Register a Kubernetes cluster. Checks the kubeconfig against the API server given, calls /version, seals the kubeconfig and turns the cluster into a Kubernetes cluster. The cluster must have no host. Returns the target (201). Permission cluster:manage. Errors: 409 k8s_already_registered, 409 k8s_cluster_has_hosts, kubeconfig guard and API errors. Audited as k8s.cluster.register.

Route: /api/v1/clusters/{cluster_id}/kubernetes (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesAPI server, kubeconfig and namespace.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Register a Kubernetes cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.RemoveComponent​

RemoveComponent(ctx context.Context, clusterId string, name string, opts ...eai.CallOption) (json.RawMessage, error)

Remove a Kubernetes component. Deletes the ManagedComponent resource; the operator uninstalls the chart. Answers 202 with {"name", "state": "removed"} once the resource is gone, else the component still being deleted. Permission services:install. Errors: 404 k8s_component_not_found, 409 k8s_maintenance. Audited as k8s.component.remove.

Route: /api/v1/clusters/{cluster_id}/kubernetes/components/{name} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namestringyesName of the component (the ManagedComponent resource).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Remove a Kubernetes component". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.Revoke​

Revoke(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke the cluster agent identity. Revokes the identity of the Navin Cluster Agent. Answers 204. Permission cluster:manage; 404 k8s_agent_not_registered. Audited as k8s.agent.revoke.

Route: /api/v1/clusters/{cluster_id}/kubernetes/agent (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke the cluster agent identity". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.RunDiscovery​

RunDiscovery(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Discover a Kubernetes cluster. Reads, with read only calls, the version, the distribution (bring your own or managed), the nodes with their capacity and GPUs, the storage and ingress classes, CoreDNS and the platform add-ons (cert-manager, Cilium, Kyverno, Argo CD, KEDA...). Stores and returns the inventory. Permission hosts:manage. Audited as k8s.discovery.

Route: /api/v1/clusters/{cluster_id}/kubernetes/discovery (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Discover a Kubernetes cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

KubernetesAPI.Unregister​

Unregister(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Unregister a Kubernetes cluster. Forgets the API server and the kubeconfig; the cluster becomes a host cluster again. Refused while components remain (409 k8s_components_remain). Answers 204. Permission cluster:manage. Audited as k8s.cluster.unregister.

Route: /api/v1/clusters/{cluster_id}/kubernetes (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Unregister a Kubernetes cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class LifecycleAPI​

LifecycleAPI wraps the Platform Manager lifecycle operations.

LifecycleAPI.AcceptanceKey​

AcceptanceKey(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the public key that signs the acceptance reports. Returns algorithm (Ed25519), key_id and public_key_pem, to verify a report offline. Any signed in user.

Route: /api/v1/acceptance/public-key (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the public key that signs the acceptance reports". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ClusterProfile​

ClusterProfile(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Evaluate the profile of a cluster. Every rule of the cluster profile (or of profile, to compare before choosing one) evaluated against the real state, each with status (pass or fail), label and reason; the status is blocked when one rule fails. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/profile (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Evaluate the profile of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ComponentSheet​

ComponentSheet(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the component sheet of a service. Every tab of the uniform component sheet from the observed state: overview, instances, config, dependencies, logs, metrics, security (TLS, endpoints, secrets set or not, ports, certificates, run users, profile), operations, upgrade, backups, audit and support. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/sheet (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the component sheet of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.CreateBackup​

CreateBackup(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Take a coordinated backup. Starts one operation that backs up the services given (every backupable service by default) in dependency order, sharing one set_id; the set succeeds only when every member succeeded. Returns operation_id, set_id and backup_ids. Permission services:operate. Audited as backup.create.

Route: /api/v1/clusters/{cluster_id}/backups (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesServices to back up.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Take a coordinated backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.CreateBundle​

CreateBundle(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Build a support bundle. Starts an operation that collects log tails, the profile, the hosts, the service versions and states, the rendered configuration, the open alerts, the drift findings and the operation history into a tar.gz archive in which every secret and personal datum is masked. Returns operation_id and bundle_id. Permission cluster:manage. Audited as support.bundle.

Route: /api/v1/clusters/{cluster_id}/support-bundles (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Build a support bundle". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.CreateReport​

CreateReport(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Run an acceptance. Starts the acceptance.run operation: cluster preflight, liveness of every running instance, readiness and smoke test of every managed service (each stage tolerates its failures so that every check runs), then the signed report. Returns operation_id and report_id. Permission services:install. Audited as acceptance.run.

Route: /api/v1/clusters/{cluster_id}/acceptance-reports (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an acceptance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.DecideApproval​

DecideApproval(ctx context.Context, clusterId string, approvalId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Approve or reject an approval request. Decides a pending request; the requester cannot decide its own. Returns the approval. Permission cluster:manage. Errors: 404 approval_invalid, 409 approval_not_pending, 403 approval_self. Audited as approval.approve or approval.reject.

Route: /api/v1/clusters/{cluster_id}/approvals/{approval_id}/decision (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
approvalIdstringyesIdentifier of the approval request.
bodyanyyesThe decision.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve or reject an approval request". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.DownloadBundle​

DownloadBundle(ctx context.Context, clusterId string, bundleId string, opts ...eai.CallOption) (json.RawMessage, error)

Download a support bundle. Returns the navin-support-<time>.tar.gz archive of a succeeded bundle. Permission cluster:manage; 404 bundle_not_found. Audited as support.bundle_download.

Route: /api/v1/clusters/{cluster_id}/support-bundles/{bundle_id}/download (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bundleIdstringyesIdentifier of the support bundle.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Download a support bundle". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.DriftReconcile​

DriftReconcile(ctx context.Context, clusterId string, findingId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Reconcile a drift finding. Rewrites the files and units of the drifted instance from the Manager configuration (and restarts it when asked). Returns operation_id. Permission configs:edit. Errors: 404 drift_not_found, 409 drift_not_reconcilable (a file that belongs to no service). Audited as drift.reconcile.

Route: /api/v1/clusters/{cluster_id}/drift/{finding_id}/reconcile (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
findingIdstringyesIdentifier of the drift finding.
bodyanyyesRestart option and optional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Reconcile a drift finding". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.DriftReport​

DriftReport(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the drift report of a cluster. Findings of the last scans: managed files and units changed, removed or replaced outside the Manager, with host, service, component and path. Open findings raise the config_drift alert. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/drift (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the drift report of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.DriftScan​

DriftScan(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Scan the cluster for drift. Starts an operation with one digest task per host over the files and units the Manager wrote; differences open findings. Returns operation_id. Permission services:operate. Audited as drift.scan.

Route: /api/v1/clusters/{cluster_id}/drift/scan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesHosts to scan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Scan the cluster for drift". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.GetReport​

GetReport(ctx context.Context, clusterId string, reportId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a signed acceptance report. Returns the signed document: one item per check with PASS, FAIL or BLOCKED and its evidence, the verdict (FAIL when one item failed, BLOCKED when none failed and one is blocked, else PASS) and the signature. Permission cluster:read; 404 acceptance_not_found until the run succeeded.

Route: /api/v1/clusters/{cluster_id}/acceptance-reports/{report_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
reportIdstringyesIdentifier of the acceptance report.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a signed acceptance report". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListApprovals​

ListApprovals(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the approvals of a cluster. The last 200 approvals, newest first: action, service, reason, status (pending, approved, rejected, expired or used), requester, decider, the operation that used it and the times. Approvals past their expiry are marked expired first. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/approvals (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the approvals of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListBackups​

ListBackups(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the service backups of a cluster. Returns backupable (the installed services whose catalog declares a backup) and the last 300 backups with their service, host, set, status, files and digests. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/backups (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the service backups of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListBundles​

ListBundles(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the support bundles of a cluster. The last 50 bundles with their status, size, SHA-256, contents, redactions and operation. Permission cluster:manage.

Route: /api/v1/clusters/{cluster_id}/support-bundles (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the support bundles of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListProfiles​

ListProfiles(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the installation profiles. Every profile with its label and description in both languages, its rules, whether it requires approvals and the severity of the network rules. Any signed in user.

Route: /api/v1/profiles (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the installation profiles". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListReports​

ListReports(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the acceptance reports of a cluster. The last 100 acceptance runs of the cluster, newest first, with their status, verdict and operation. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/acceptance-reports (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the acceptance reports of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ListUpgrades​

ListUpgrades(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the upgrades of a cluster. The last 200 upgrades of every service with their versions, status, backup and operations. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/upgrades (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the upgrades of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ReportHTML​

ReportHTML(ctx context.Context, clusterId string, reportId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an acceptance report as HTML. Renders the report as a self contained HTML page in the language asked, for printing or archiving. Permission cluster:read; 404 acceptance_not_found.

Route: /api/v1/clusters/{cluster_id}/acceptance-reports/{report_id}/html (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
reportIdstringyesIdentifier of the acceptance report.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an acceptance report as HTML". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.RequestApproval​

RequestApproval(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request an approval. Records a pending request for a disruptive action on a service; another user decides it. Returns the approval (201). Permission services:operate. Audited as approval.request.

Route: /api/v1/clusters/{cluster_id}/approvals (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesAction, service and reason.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request an approval". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.RestoreBackup​

RestoreBackup(ctx context.Context, clusterId string, backupId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Restore a service backup. Starts the restore operation: stop the instances, check the digests, run the restore steps, start the instances, run the health checks, the verify steps, the service check and the smoke test. Returns operation_id. Permission services:install; an approval under banking-secure. Audited as backup.restore.

Route: /api/v1/clusters/{cluster_id}/backups/{backup_id}/restore (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
backupIdstringyesIdentifier of the service backup.
bodyanyyesOptional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Restore a service backup". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.RestoreUpgrade​

RestoreUpgrade(ctx context.Context, clusterId string, upgradeId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Restore the backup taken before an upgrade. Starts the operation that brings back the previous release and its data from the backup taken before the upgrade, when a rollback is not possible. Returns operation_id. Permission services:install; 404 upgrade_not_found; an approval under banking-secure. Audited as service.restore.

Route: /api/v1/clusters/{cluster_id}/upgrades/{upgrade_id}/restore (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
upgradeIdstringyesIdentifier of the upgrade.
bodyanyyesOptional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Restore the backup taken before an upgrade". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.Rollback​

Rollback(ctx context.Context, clusterId string, upgradeId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Roll an upgrade back. Starts the operation that replays the sealed tasks of the previous release and restores the previous configuration version. Refused when the descriptor declares it impossible or an irreversible migration ran (use the restore instead). Returns operation_id. Permission services:install; 404 upgrade_not_found. Audited as service.rollback.

Route: /api/v1/clusters/{cluster_id}/upgrades/{upgrade_id}/rollback (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
upgradeIdstringyesIdentifier of the upgrade.
bodyanyyesOptional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Roll an upgrade back". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.RunPreflight​

RunPreflight(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run the installation preflight of a cluster. Every check that must pass before a service is installed or upgraded, with its severity, evidence and a blocking verdict: host facts, DNS, catalog preflight entries, firewall, capacity, versions, TLS and profile rules. A check in fail blocks. Nothing is changed. Permission services:install.

Route: /api/v1/clusters/{cluster_id}/preflight (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesServices and hosts to check.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run the installation preflight of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.ServiceChecks​

ServiceChecks(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the checks of a service. Liveness of every instance (health checks of the agent), readiness (service check) and functional smoke test, each with its status, results, error and time. Only a passed smoke test proves that the service works. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/checks (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the checks of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.SetProfile​

SetProfile(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Change the profile of a cluster. Sets the installation profile and returns its evaluation. Permission cluster:manage. Audited as cluster.profile with the previous and the new profile.

Route: /api/v1/clusters/{cluster_id}/profile (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesThe new profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Change the profile of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.StartUpgrade​

StartUpgrade(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Upgrade a service. Upgrades the service to the catalog release in one operation:

Route: /api/v1/clusters/{cluster_id}/services/{service}/upgrade (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesCanary host and optional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Upgrade a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.UpgradeInfo​

UpgradeInfo(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Check whether a service can be upgraded. Returns from (installed release), to (catalog release), allowed with the problems, stateful, backup_before, the migrations, whether a rollback is possible, the upgrade matrix and the history of the last 50 upgrades. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/upgrade (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Check whether a service can be upgraded". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LifecycleAPI.VerifyReport​

VerifyReport(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Verify the signature of an acceptance report. Checks the Ed25519 signature of a report document against the key of this Manager and returns valid, trusted, key_id and the reason of a refusal. Any signed in user.

Route: /api/v1/acceptance/verify (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe signed report document.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Verify the signature of an acceptance report". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class McpAPI​

McpAPI wraps the Platform Manager mcp operations.

McpAPI.CreateServer​

CreateServer(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create an MCP server. Creates a server from a preset (its required fields are mandatory) or a custom one, and returns it (201). A preset whose URL is not internal needs url set to the internal address of its server. Permission mcp:manage. Errors: 422 mcp_fields_missing, 422 mcp_fields_unknown, 422 mcp_target_required, 422 mcp_online_forbidden, 404 mcp_preset_not_found, 409 mcp_server_name_taken. Audited as mcp.create.

Route: /api/v1/mcp/servers (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTenant, project and definition of the server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.DeleteServer​

DeleteServer(ctx context.Context, serverId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete an MCP server. Deletes the server; a hosted server is withdrawn from its hosting first. Answers 204. Permission mcp:manage; 404 mcp_server_not_found. Audited as mcp.delete.

Route: /api/v1/mcp/servers/{server_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.GetServer​

GetServer(ctx context.Context, serverId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an MCP server. Returns the server with its transport, URL or command, allowed tools, configured and secret field names, last test and hosting (state, cluster, URL; never the token). Permission mcp:read; 404 mcp_server_not_found.

Route: /api/v1/mcp/servers/{server_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.HostServer​

HostServer(ctx context.Context, serverId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Host a stdio MCP server on a cluster. Hosts a stdio server on the mcp-host service of a cluster: a new bearer token (sealed; the runtime only receives its SHA-256), status deploying, then the mcp.hosting.apply operation that writes servers.json on every instance; the status becomes hosted or failed. Answers 202 with the server and operation_id. Permission mcp:manage. Errors: 422 mcp_hosting_stdio_only, 409 mcp_hosting_disabled, 409 mcp_host_not_installed. Audited as mcp.host.

Route: /api/v1/mcp/servers/{server_id}/hosting (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
bodyanyyesCluster and limits of the hosting.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Host a stdio MCP server on a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.HostedServers​

HostedServers(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the hosted MCP servers with their tokens. Hosted servers of a tenant (one project or all) with url, bearer token, allowed_tools, status and hosted_at, for the Navin Enterprise platform. Permission mcp:publish (admin role only). Audited as mcp.hosted_list (identifiers only, never a token).

Route: /api/v1/mcp/hosted (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the hosted MCP servers with their tokens". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.HostingInfrastructure​

HostingInfrastructure(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the MCP hosting infrastructure. Per cluster: whether mcp-host is installed, its instances (FQDN, base URL, state) and the number of servers each one hosts. A server is placed on one instance by a hash of its identifier. Permission mcp:read.

Route: /api/v1/mcp/hosting (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the MCP hosting infrastructure". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.ListPresets​

ListPresets(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the MCP presets. Presets of the Navin library (name, category, transport, hosting, fields to fill), sorted by category and name. Permission mcp:read; 503 mcp_presets_unavailable.

Route: /api/v1/mcp/presets (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the MCP presets". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.ListServers​

ListServers(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the MCP servers of a project. Servers of one project of one tenant (both required), without any secret value. Permission mcp:read.

Route: /api/v1/mcp/servers (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the MCP servers of a project". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.RenewToken​

RenewToken(ctx context.Context, serverId string, opts ...eai.CallOption) (json.RawMessage, error)

Renew the token of a hosted MCP server. Issues a new bearer token and applies it; the previous token stops working once applied. Answers 202. Permission mcp:manage. Errors: 409 mcp_not_hosted, 409 mcp_hosting_disabled. Audited as mcp.hosting_token.

Route: /api/v1/mcp/servers/{server_id}/hosting/token (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Renew the token of a hosted MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.TestServer​

TestServer(ctx context.Context, serverId string, opts ...eai.CallOption) (json.RawMessage, error)

Test an MCP server. Speaks MCP to the server (initialize, notifications/initialized, tools/list) over streamable HTTP, SSE, or stdin and stdout of the command when it is on the PATH (no shell, with a timeout); a hosted server is tested at its hosted URL with its token. Returns and keeps in last_test the result {ok, tools, server_info, error, tested_at}; an error never repeats a secret value. Permission mcp:manage; 422 mcp_online_forbidden. Audited as mcp.test.

Route: /api/v1/mcp/servers/{server_id}/test (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Test an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.UnhostServer​

UnhostServer(ctx context.Context, serverId string, opts ...eai.CallOption) (json.RawMessage, error)

Stop hosting an MCP server. Takes the server out of its hosting: status removing, then the mcp.hosting.apply operation without it (none at the end). Answers 202 with the server and operation_id. Permission mcp:manage; 409 mcp_not_hosted. Audited as mcp.unhost.

Route: /api/v1/mcp/servers/{server_id}/hosting (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Stop hosting an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpAPI.UpdateServer​

UpdateServer(ctx context.Context, serverId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update an MCP server. Changes the fields given and returns the server. values is merged with the stored ones; url, command, args, headers and env apply to custom servers only (422 mcp_custom_only). Disabling a hosted server withdraws it from its hosting. Permission mcp:manage. Errors: 422 mcp_fields_unknown, 422 mcp_online_forbidden. Audited as mcp.update.

Route: /api/v1/mcp/servers/{server_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
serverIdstringyesIdentifier of the MCP server.
bodyanyyesFields of the server to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update an MCP server". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class McpRuntimeAPI​

McpRuntimeAPI wraps the Platform Manager mcp_runtime operations.

McpRuntimeAPI.DestroyInstance​

DestroyInstance(ctx context.Context, clusterId string, namespace string, name string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a managed MCP instance. Deletes one managed MCPServer (uid precondition); the Control Plane controller then revokes its credentials and closes it. Returns namespace, name, instance_id and state (deleting). Permission services:operate. Errors: 404 mcp_runtime_instance_not_found, 502 mcp_runtime_forbidden (the identity of the Manager lacks the right). Audited as mcp_runtime.instance.destroy.

Route: /api/v1/clusters/{cluster_id}/mcp-runtime/instances/{namespace}/{name} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namespacestringyesProject namespace of the instance, mcp-<12 hex>.
namestringyesName of the MCPServer object.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a managed MCP instance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpRuntimeAPI.InstallToolhive​

InstallToolhive(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Install the ToolHive operator. Writes the two ManagedComponent resources of ToolHive (CRDs, then operator) in toolhive-system, pinned by digest. Returns namespace, version and the components written (201). Permission services:install; 409 mcp_runtime_installed. Audited as mcp_runtime.install.

Route: /api/v1/clusters/{cluster_id}/mcp-runtime/install (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Install the ToolHive operator". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpRuntimeAPI.RestartInstance​

RestartInstance(ctx context.Context, clusterId string, namespace string, name string, opts ...eai.CallOption) (json.RawMessage, error)

Restart a managed MCP instance. Restarts one managed MCPServer without changing its spec: a merge patch of the annotation mcpserver.toolhive.stacklok.dev/restarted-at to a new RFC 3339 time (rolling restart by the operator), with the uid as precondition. Returns namespace, name, instance_id, state (restarting) and restarted_at. Permission services:operate; 404 mcp_runtime_instance_not_found. Audited as mcp_runtime.instance.restart.

Route: /api/v1/clusters/{cluster_id}/mcp-runtime/instances/{namespace}/{name}/restart (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
namespacestringyesProject namespace of the instance, mcp-<12 hex>.
namestringyesName of the MCPServer object.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Restart a managed MCP instance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

McpRuntimeAPI.RuntimeState​

RuntimeState(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the MCP runtime state. Returns the operator state (with crd_installed), the ToolHive components, the preset, the managed instances items (filtered by tenant and project), the ignored objects, the aggregates by tenant and project (always over every managed instance) and observed_at. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/mcp-runtime (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the MCP runtime state". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class MeAPI​

MeAPI wraps the Platform Manager me operations.

MeAPI.ListTokens​

ListTokens(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List my API tokens. Lists every token of the caller, newest first, revoked ones included: id, name, prefix, permissions (null: every permission of the user), expires_at, last_used_at, revoked_at, created_at. The secret is never returned.

Route: /api/v1/me/tokens (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List my API tokens". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

MeAPI.Me​

Me(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Read my profile. Returns the account of the caller: identifier, username, display name, email, source (local, ldap, oidc), role bindings, MFA state, language, lock and last sign in.

Route: /api/v1/me (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Read my profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

MeAPI.RevokeToken​

RevokeToken(ctx context.Context, tokenId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke one of my API tokens. Revokes the token at once (revoking it again is harmless). Browser session only. Answers 204; 404 token_not_found when the token is not one of yours. Audited as token.revoke.

Route: /api/v1/me/tokens/{token_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
tokenIdstringyesIdentifier of the API token, from GET /me/tokens.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke one of my API tokens". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class MetaAPI​

MetaAPI wraps the Platform Manager meta operations.

MetaAPI.Version​

Version(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the version of the Manager. Returns name (navin-manager), version, environment and the stack of the catalog (name, version, number of services). Public.

Route: /api/v1/version (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the version of the Manager". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class MirrorAPI​

MirrorAPI wraps the Platform Manager mirror operations.

MirrorAPI.Reload​

Reload(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Reload the mirror manifest. Reads the manifest of the mirror again and replaces the recorded artifacts with its content; every file must exist. Returns what was loaded. Permission settings:manage. Errors: 409 mirror_manifest_missing, 422 mirror_manifest_invalid. Audited as mirror.reload (outcome failure with the error code when the manifest is refused).

Route: /api/v1/mirror/reload (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Reload the mirror manifest". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

MirrorAPI.Status​

Status(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the mirror status. Returns the mirror url and registry, manifest_loaded, loaded_at, the number of artifacts, images and python packages loaded, and missing, what the catalog needs that the mirror lacks. Permission system:read.

Route: /api/v1/mirror (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the mirror status". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class NavinSmAPI​

NavinSmAPI wraps the Platform Manager navin_sm operations.

AssignableUsers(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the users a key can be assigned to. Enabled users of the Manager (50 at most, sorted by name) whose user name, display name or email contains q, with id, username, display_name, email and source. Permission navin_sm:keys.

Route: /api/v1/navin-sm/users (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the users a key can be assigned to". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

BlockKey(ctx context.Context, profileId string, keyId string, opts ...eai.CallOption) (json.RawMessage, error)

Block a key. Blocks the key at the proxy (POST /key/block): it is refused at once and can be unblocked. Returns the key with status blocked. Permission navin_sm:keys. Errors: 404 navin_sm_key_not_found, 409 navin_sm_key_revoked, 409 navin_sm_key_gone, 409 navin_sm_profile_not_linked, 409 navin_sm_master_key_missing, 502 navin_sm_proxy_refused or navin_sm_proxy_failed. Audited as navin_sm.key.block.

Route: /api/v1/navin-sm/profiles/{profile_id}/keys/{key_id}/block (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
keyIdstringyesIdentifier of the key in the Manager.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Block a key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

CreateKey(ctx context.Context, profileId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Issue a virtual key. Issues a key at the LiteLLM service the profile is linked to (POST /key/generate with the master key kept in the server) for a user of the Manager or a group of the identity provider, and answers 201 {key, item}: key is returned here and never again, the Manager keeps only the alias and the sha256 LiteLLM uses as identifier. The LiteLLM user is navin-sm:<org_id>:<kind>:<assignee>, the alias navin-sm.<org_id>.<assignee>.<random>. Permission navin_sm:keys. Errors: 404 navin_sm_profile_not_found, 404 navin_sm_user_not_found, 422 navin_sm_assignee_required, 422 navin_sm_key_models_unknown (a model outside the profile), 409 navin_sm_profile_not_linked, 409 navin_sm_master_key_missing, 409 navin_sm_key_alias_taken, 502 navin_sm_proxy_refused or navin_sm_proxy_failed. Audited as navin_sm.key.create (id and alias, never the key).

Route: /api/v1/navin-sm/profiles/{profile_id}/keys (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
bodyanyyesAssignee, models and limits of the new key.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Issue a virtual key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

CreateProfile(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a Navin SM profile. Creates the profile and returns it (201). Permission settings:manage, plus vault:manage with a shared_key_ref. Errors (422 unless noted): navin_sm_org_id_invalid, navin_sm_value_empty, navin_sm_value_duplicate, navin_sm_base_url_invalid, navin_sm_base_url_chat, navin_sm_shared_key_ref_required, navin_sm_shared_key_ref_forbidden, navin_sm_vault_entry_not_found, navin_sm_header_invalid, navin_sm_header_secret, navin_sm_models_count, navin_sm_model_duplicate, navin_sm_default_model_unknown, navin_sm_route_invalid, navin_sm_route_unknown, navin_sm_env_invalid, navin_sm_env_secret, 409 navin_sm_org_taken. Audited as navin_sm.create.

Route: /api/v1/navin-sm/profiles (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a Navin SM profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DeletePackage(ctx context.Context, filename string, opts ...eai.CallOption) (json.RawMessage, error)

Remove a stored package. Removes the stored file; its published SHA256 stays recorded. Answers 204. Permission settings:manage. Errors: 404 navin_sm_package_unknown, 404 navin_sm_package_missing. Audited as navin_sm.package.delete.

Route: /api/v1/navin-sm/distribution/packages/{filename} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
filenamestringyesFile name of the package.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Remove a stored package". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DeleteProfile(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a Navin SM profile. Deletes the profile (the vault entry of its key is kept). Answers 204. Permission settings:manage; 404 navin_sm_profile_not_found. Audited as navin_sm.delete.

Route: /api/v1/navin-sm/profiles/{profile_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a Navin SM profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DiscoverModels(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Discover the models of a LiteLLM proxy. Calls GET <base>/v1/models then GET <base>/model/info of the proxy (5 second timeout, TLS 1.2 or later, public roots plus the ca_pem given, no redirect) and returns {models: [{id, context_window?, max_output_tokens?, vision?, reasoning?}], info_available, info_error}. With litellm_cluster_id and litellm_service, the LiteLLM service installed by the Manager is read with its master key and the CA of the Manager, both kept in the server (an empty base_url then means its address); otherwise the key of the vault entry or the key typed for this call only. /model/info is optional (an admin route a virtual key may not reach). Permission settings:manage, plus vault:manage with a shared_key_ref. Errors: 422 navin_sm_base_url_invalid, 422 navin_sm_header_invalid, 422 navin_sm_litellm_link_incomplete (one of the two link fields only), 422 navin_sm_litellm_source_not_found, 409 navin_sm_master_key_missing, 409 navin_sm_shared_key_missing, 502 navin_sm_discover_failed (details reason: timeout, tls_failed, refused, unreachable, auth_failed, not_found, http_status, protocol_error). Audited as navin_sm.discover.

Route: /api/v1/navin-sm/discover (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe proxy to read.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Discover the models of a LiteLLM proxy". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Distribution(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

State of the Navin SM distribution. The release of Navin SM the catalog names (service: name, version, GitHub repository and tag, settings and CA paths per system), its packages with their published SHA256, stored state, size and download link, the number stored, the last ten fetches and whether one is running. Permission settings:manage; 409 navin_sm_service_missing without the navin-sm service in the catalog.

Route: /api/v1/navin-sm/distribution (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "State of the Navin SM distribution". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

DownloadPackage(ctx context.Context, filename string, opts ...eai.CallOption) (json.RawMessage, error)

Download a stored package. The package as stored (application/octet-stream, Cache-Control: no-store), its SHA256 in the X-Checksum-Sha256 header. Permission settings:manage. Errors: 404 navin_sm_package_unknown, 404 navin_sm_package_missing (not stored).

Route: /api/v1/navin-sm/distribution/packages/{filename}/download (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
filenamestringyesFile name of the package.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Download a stored package". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ExportProfile(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Export the managed-settings.json of a profile. Returns the file as an attachment (managed-settings.json, Cache-Control: no-store), valid against the contract. gateway.apiKey is present only for shared_key, unsealed from the vault for this answer. Permission settings:manage, plus vault:manage for shared_key. Errors: 404 navin_sm_profile_not_found, 409 navin_sm_shared_key_missing (vault entry gone or without key), 422 navin_sm_os_required (profile with use_manager_ca exported without os), 500 navin_sm_export_invalid. Audited as navin_sm.export (never the key).

Route: /api/v1/navin-sm/profiles/{profile_id}/export (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Export the managed-settings.json of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

FetchRelease(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Fetch the release from GitHub. Starts a background fetch of the release (202, the import): the checksum files first, then every package not stored yet, each verified against its published SHA256. The GitHub token is the API key of the vault entry, read in the server and never returned, logged or audited. Permissions settings:manage and vault:manage. Errors: 409 navin_sm_service_missing, 422 navin_sm_vault_entry_not_found, 422 navin_sm_github_token_missing, 409 navin_sm_import_running. Audited as navin_sm.package.fetch (name of the vault entry only). Follow it with GET /navin-sm/distribution/imports/{import_id}.

Route: /api/v1/navin-sm/distribution/fetch (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe vault entry holding the GitHub token.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Fetch the release from GitHub". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

GetImport(ctx context.Context, importId string, opts ...eai.CallOption) (json.RawMessage, error)

State of a fetch. {id, version, state, files, error, created_at, finished_at}: state is running, done or failed; each file is pending, downloading, stored, skipped (already stored) or failed with its error (never the token). Permission settings:manage; 404 navin_sm_import_not_found.

Route: /api/v1/navin-sm/distribution/imports/{import_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
importIdstringyesIdentifier of the fetch, returned by POST /navin-sm/distribution/fetch.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "State of a fetch". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

GetProfile(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a Navin SM profile. Returns one profile without any key. Permission settings:manage; 404 navin_sm_profile_not_found.

Route: /api/v1/navin-sm/profiles/{profile_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a Navin SM profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ListKeys(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

List the virtual keys of a profile. LiteLLM virtual keys issued for the profile, active and blocked first, then revoked: assignee, alias, status, models and limits, never a key value nor its hash. Permission navin_sm:keys; 404 navin_sm_profile_not_found.

Route: /api/v1/navin-sm/profiles/{profile_id}/keys (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the virtual keys of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ListProfiles(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the Navin SM profiles. Profiles sorted by organization name, with the name of the vault entry of their shared key but never the key (shared_key_set). Permission settings:manage.

Route: /api/v1/navin-sm/profiles (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the Navin SM profiles". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LitellmSources(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the installed LiteLLM gateways. LiteLLM services installed by the Manager with their address and the vault entry of their key, to prefill the gateway of a profile or link it (litellm_cluster_id, litellm_service). The vault entry is listed only to a holder of vault:manage; an installed service without an entry yet has vault_entry_id null (POST /vault/import creates it). Permission settings:manage.

Route: /api/v1/navin-sm/litellm-sources (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the installed LiteLLM gateways". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

LoadChecksums(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Load the published checksums of the release. Records the published SHA256 of the packages from the lines <sha256> <filename> of the SHA256SUMS and .sha256 files of the release, pasted together (offline sites). Returns {updated, unchanged, conflicts, ignored}: the files recorded or already identical, the stored packages whose SHA256 would change (reported and left as they are) and the names outside the release. Permission settings:manage. Errors: 409 navin_sm_service_missing, 422 navin_sm_checksums_invalid (no usable line). Audited as navin_sm.package.checksums.

Route: /api/v1/navin-sm/distribution/checksums (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe checksum lines.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Load the published checksums of the release". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

PreviewProfile(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Preview the managed-settings.json of a profile. The file the export would produce, checked against the contract, without its key: a shared_key is replaced by <vault: entry name>. Returns {os, settings_path, ca_path, document, problems, valid}; problems lists the rules the document breaks (a vault entry without key, a profile with use_manager_ca previewed without os). Permission settings:manage; 404 navin_sm_profile_not_found. Not audited (nothing leaves the server).

Route: /api/v1/navin-sm/profiles/{profile_id}/preview (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Preview the managed-settings.json of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ProfileBundle(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Download the deployment bundle of a profile. Zip for one system (navin-sm-<org_id>-<os>.zip, Cache-Control: no-store): managed-settings.json (the shared key included, audited as navin_sm.export with purpose bundle), the CA of the Manager when the profile ships it (use_manager_ca), and the deployment files of the system: shell script and Ansible playbook on Linux, shell script and MDM notes on macOS, PowerShell script with GPO and Intune notes on Windows. The packages are downloaded apart (GET /navin-sm/distribution/packages/{filename}/download). Permission settings:manage, plus vault:manage for shared_key. Errors: 404 navin_sm_profile_not_found, 409 navin_sm_service_missing (no navin-sm service in the catalog), 409 navin_sm_shared_key_missing.

Route: /api/v1/navin-sm/profiles/{profile_id}/bundle (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Download the deployment bundle of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RevokeAllKeys(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke every key of a profile. Deletes every active or blocked key of the profile at the proxy in one call (POST /key/delete) and records them as revoked. Returns {revoked, items}. Permission navin_sm:keys. Errors: 404 navin_sm_profile_not_found, 409 navin_sm_profile_not_linked, 409 navin_sm_master_key_missing, 502 navin_sm_proxy_refused or navin_sm_proxy_failed. Audited as navin_sm.key.revoke_all (count and ids of the keys).

Route: /api/v1/navin-sm/profiles/{profile_id}/keys/revoke-all (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke every key of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RevokeKey(ctx context.Context, profileId string, keyId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke a key. Deletes the key at the proxy (POST /key/delete, immediate) and keeps it in the Manager with status revoked and revoked_at; a key the proxy no longer knows is revoked all the same. Returns the key. Permission navin_sm:keys. Errors: 404 navin_sm_key_not_found, 409 navin_sm_key_revoked, 409 navin_sm_profile_not_linked, 409 navin_sm_master_key_missing, 502 navin_sm_proxy_refused or navin_sm_proxy_failed. Audited as navin_sm.key.revoke.

Route: /api/v1/navin-sm/profiles/{profile_id}/keys/{key_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
keyIdstringyesIdentifier of the key in the Manager.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke a key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UnblockKey(ctx context.Context, profileId string, keyId string, opts ...eai.CallOption) (json.RawMessage, error)

Unblock a key. Unblocks a blocked key at the proxy (POST /key/unblock) and returns it with status active. Permission navin_sm:keys. Same errors as the block. Audited as navin_sm.key.unblock.

Route: /api/v1/navin-sm/profiles/{profile_id}/keys/{key_id}/unblock (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
keyIdstringyesIdentifier of the key in the Manager.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Unblock a key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UpdateKey(ctx context.Context, profileId string, keyId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Change the models and limits of a key. Applies the models and limits at the proxy (POST /key/update), then in the Manager, and returns the key. Permission navin_sm:keys. Errors: 404 navin_sm_profile_not_found, 404 navin_sm_key_not_found, 409 navin_sm_key_revoked, 409 navin_sm_key_gone (the proxy no longer knows the key, which is then recorded as revoked), 422 navin_sm_key_models_unknown, 409 navin_sm_profile_not_linked, 409 navin_sm_master_key_missing, 502 navin_sm_proxy_refused or navin_sm_proxy_failed. Audited as navin_sm.key.update.

Route: /api/v1/navin-sm/profiles/{profile_id}/keys/{key_id} (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
keyIdstringyesIdentifier of the key in the Manager (never its value).
bodyanyyesNew models and limits.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Change the models and limits of a key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UpdateProfile(ctx context.Context, profileId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Replace a Navin SM profile. Replaces the whole profile and returns it. Same rules and errors as the creation, plus 404 navin_sm_profile_not_found. Audited as navin_sm.update (names of the fields changed).

Route: /api/v1/navin-sm/profiles/{profile_id} (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
bodyanyyesThe whole profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Replace a Navin SM profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UploadPackage(ctx context.Context, filename string, opts ...eai.CallOption) (json.RawMessage, error)

Upload a package of the release. Raw body of one package of the release, streamed to <mirror_dir>/navin-sm/<version>/ and hashed while it is written; kept (201, the package as the distribution lists it) only when its SHA256 is the one published (loaded beforehand) or the one of the X-Checksum-Sha256 header. Permission settings:manage. Errors: 404 navin_sm_package_unknown (not a package of the release), 422 navin_sm_package_checksum_unknown (no published SHA256 and no header), 422 navin_sm_package_checksum_mismatch (the file is removed), 422 navin_sm_package_too_large (2 GiB), 409 navin_sm_disk_full. Audited as navin_sm.package.store, refusals included.

Route: /api/v1/navin-sm/distribution/packages/{filename} (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
filenamestringyesFile name of the package, as the catalog lists it for this version.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Upload a package of the release". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Usage(ctx context.Context, profileId string, opts ...eai.CallOption) (json.RawMessage, error)

Tracking of the keys of a profile. Reads the proxy through the server (GET /key/info per live key, GET /spend/logs over the period) and returns {available, reason, period, keys, models, totals, truncated, last_use}: for each key its live state, spend, budget and reset date, and over the period its calls, tokens, errors, models and last use; the same figures per model and in total. truncated is true when the proxy capped the logs at 10000 rows (the figures of the period are then partial). When the profile is not linked, the master key is missing or the proxy is out of reach, available is false with reason and no figure: zeros are never invented. Permission navin_sm:keys; 404 navin_sm_profile_not_found.

Route: /api/v1/navin-sm/profiles/{profile_id}/usage (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
profileIdstringyesIdentifier of the profile.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Tracking of the keys of a profile". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class NetworkAPI​

NetworkAPI wraps the Platform Manager network operations.

NetworkAPI.NetworkFlows​

NetworkFlows(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the network flow matrix of a cluster. Flows to open between the hosts, the Manager, the clients and the external endpoints of the cluster. JSON: cluster_id, items, summary and generated_at; with format=csv, a network-flows-<cluster>.csv attachment. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/network/flows (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the network flow matrix of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NetworkAPI.NetworkRules​

NetworkRules(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the firewall rules that open the flows. Commands opening the flows in the security groups of a cloud provider or in a host firewall. With auto, the provider of each host is used (the environment chosen for the host, else the detected platform). Nothing is applied. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/network/rules (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the firewall rules that open the flows". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class NodeSecurityAPI​

NodeSecurityAPI wraps the Platform Manager node_security operations.

NodeSecurityAPI.AgentUpdate​

AgentUpdate(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update the agent of a host. Verifies the signed agent binary of the mirror, then issues a signed agent.update command with its digest and signature (idempotency key derived from the digest). Returns the command envelope (201). Permission hosts:manage. Errors: 422 agent_package_untrusted, 409 host_not_trusted, 409 host_client_managed.

Route: /api/v1/hosts/{host_id}/agent-update (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesValidity of the command and health timeout of the new agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update the agent of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BootstrapPlan​

BootstrapPlan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Preview the bootstrap of a node agent. Checks the credential against the SSH policy and returns the plan without connecting: SSH user, target, jumps, credential verdict, the sudoers file and its validation, the allowlist, the systemd unit and the staging directory. Permission hosts:manage; 422 ssh_policy_refused.

Route: /api/v1/hosts/bootstrap/plan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSame body as a bootstrap.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Preview the bootstrap of a node agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BreakglassApprove​

BreakglassApprove(ctx context.Context, requestId string, opts ...eai.CallOption) (json.RawMessage, error)

Approve a break glass request. Adds an approval. Two distinct approvers, both different from the requester, are needed; the second approval signs an OpenSSH user certificate valid for the TTL. Permission hosts:manage. Errors: 403 breakglass_self_approval, 409 breakglass_not_pending, 409 breakglass_already_approved, 404 breakglass_not_found. Audited as host.breakglass.approve.

Route: /api/v1/breakglass/{request_id}/approve (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
requestIdstringyesIdentifier of the break glass request.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve a break glass request". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BreakglassEvidence​

BreakglassEvidence(ctx context.Context, requestId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Add evidence to a break glass session. Appends a redacted evidence record (session start, command digest, session end or recording) to the request. Permission hosts:manage; 404 breakglass_not_found.

Route: /api/v1/breakglass/{request_id}/evidence (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
requestIdstringyesIdentifier of the break glass request.
bodyanyyesKind, digest and summary of the evidence.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Add evidence to a break glass session". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BreakglassList​

BreakglassList(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

List the break glass requests of a host. The last 50 break glass requests of the host with their status, approvers, validity and evidence. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/breakglass (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the break glass requests of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BreakglassRequest​

BreakglassRequest(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Request an emergency SSH access. Records a break glass request for the host with the reason, the public key of the requester and the TTL; two other users must approve it. Returns the request (201). Permission hosts:manage. Errors: 422 breakglass_key_refused, 409 host_not_trusted, 409 host_client_managed. Audited as host.breakglass.request.

Route: /api/v1/hosts/{host_id}/breakglass (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesReason, public key, account and validity.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Request an emergency SSH access". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.BreakglassRevoke​

BreakglassRevoke(ctx context.Context, requestId string, opts ...eai.CallOption) (json.RawMessage, error)

Revoke a break glass access early. Ends the access before its TTL: the certificate is added to the key revocation list the hosts load. Permission hosts:manage. Errors: 404 breakglass_not_found, 409 breakglass_not_active.

Route: /api/v1/breakglass/{request_id}/revoke (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
requestIdstringyesIdentifier of the break glass request.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke a break glass access early". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.GetSSHPolicy​

GetSSHPolicy(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the SSH policy of a cluster. Returns allow_rsa, rsa_min_bits, approved_user_cas, bootstrap_user, spiffe_trust_domain and rotate_before_days. Permission cluster:read; 404 cluster_not_found.

Route: /api/v1/clusters/{cluster_id}/ssh-policy (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the SSH policy of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.HostBootstrap​

HostBootstrap(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Bootstrap a node agent over SSH. Starts an operation that installs and registers the agent on one host:

Route: /api/v1/hosts/bootstrap (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesTarget host, jump hosts, SSH account, private key or certificate.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Bootstrap a node agent over SSH". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.HostEnroll​

HostEnroll(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Issue an enrollment token for one agent key. Issues a single use token for one host and one key: host_fingerprint is the SHA-256 (hex) of the public key of the agent (nm-agent prints it before enrolling). The token expires after at most 15 minutes and is consumed by the first enrollment that presents a CSR of that exact key. Returns id, token, expires_at, ttl_s, host_fingerprint and agent_url (201). Permission hosts:manage. Audited as host.enroll_token.

Route: /api/v1/hosts/enroll (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesCluster, FQDN and key fingerprint of the host.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Issue an enrollment token for one agent key". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.HostInventory​

HostInventory(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get the inventory of a host. Returns host_id, the inventory reconciled from the agent facts (hardware, GPUs, platform) and updated_at. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/inventory (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the inventory of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.HostPreflight​

HostPreflight(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run the preflight of a host before its bootstrap. Reads the host over SSH and from the Manager (DNS forward and reverse, TCP reachability, required ports free, disks, operating system) and returns the checks graded pass, warning or blocking, the blocking and warnings counts, a reproducible digest and the credential verdict. Nothing is installed. Permission hosts:manage. Errors: 422 ssh_policy_refused. Audited as host.preflight.

Route: /api/v1/hosts/preflight (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSSH access, expected identity, ports and disks to check.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run the preflight of a host before its bootstrap". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.HostReceipts​

HostReceipts(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

List the command receipts of a host. Receipts of the signed commands run by the agent, last completed first: operation, start and end, exit code, observed state, error code and evidence, redacted. Permission cluster:read.

Route: /api/v1/hosts/{host_id}/receipts (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the command receipts of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.IssueCommand​

IssueCommand(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Send a signed command to an agent. Issues a command envelope signed with the Ed25519 key of the Manager for the agent of the host (the same idempotency key returns the stored envelope). Allowed operations: facts.collect, health.check, logs.tail, files.digest, service.control, command.run, agent.update; the last three are refused on client managed hosts. Returns the envelope (201). Permission hosts:manage. Errors: 422 command_operation_unknown, 409 host_not_trusted, 409 host_client_managed. Audited as host.command.issue.

Route: /api/v1/hosts/{host_id}/commands (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesOperation, parameters, validity and idempotency key.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Send a signed command to an agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.ListAllHosts​

ListAllHosts(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the hosts of every cluster. Hosts of every cluster the caller may read (or of one cluster), sorted by FQDN, with their trust state, management mode, identity, metrics, inventory and platform.

Route: /api/v1/hosts (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the hosts of every cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.ListNodes​

ListNodes(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the node agents. Hosts not decommissioned of every cluster the caller may read, with their trust state, management mode, agent version, last heartbeat, identity (certificate serial and expiry, SPIFFE ID, rotation_due), metrics and platform.

Route: /api/v1/agents/nodes (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the node agents". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.NodeDetail​

NodeDetail(ctx context.Context, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a node agent. The node view plus its last 10 certificates and diagnostics (facts, last metrics, last 20 receipts). Permission cluster:read; 404 host_not_found.

Route: /api/v1/agents/nodes/{host_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a node agent". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.PutSSHPolicy​

PutSSHPolicy(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Set the SSH policy of a cluster. Replaces the SSH policy and returns it. The bootstrap user and every approved CA key are checked first. Permission hosts:manage. Errors: 422 ssh_policy_refused (weak or invalid key, refused user), 404 cluster_not_found. Audited as cluster.ssh_policy.

Route: /api/v1/clusters/{cluster_id}/ssh-policy (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesThe SSH policy.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Set the SSH policy of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.QuarantineHost​

QuarantineHost(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Quarantine a host. Sets the trust state to quarantined: the Manager stops trusting the agent for new commands until it is recovered. Returns the node. Permission hosts:manage. Audited as host.quarantine.

Route: /api/v1/hosts/{host_id}/quarantine (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesReason of the change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Quarantine a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.RecoverHost​

RecoverHost(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Trust a quarantined host again. Sets the trust state back to trusted. A revoked host cannot be recovered: it must enroll again (409 agent_revoked). Returns the node. Permission hosts:manage. Audited as host.recover.

Route: /api/v1/hosts/{host_id}/recover (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesReason of the change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Trust a quarantined host again". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.RevokeHost​

RevokeHost(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Revoke the agent of a host. Sets the trust state to revoked, revokes the certificates of the agent and expires its pending commands. Only a new enrollment brings it back. Returns the node. Permission hosts:manage. Audited as host.revoke with the number of certificates revoked.

Route: /api/v1/hosts/{host_id}/revoke (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesReason of the change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Revoke the agent of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

NodeSecurityAPI.SetManagement​

SetManagement(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Set who manages a host. Sets the management mode: platform (the Manager acts on the host) or client (the dangerous commands and break glass are refused). Returns the node. Permission hosts:manage. Audited as host.management.

Route: /api/v1/hosts/{host_id}/management (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesThe management mode.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Set who manages a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class OperationsAPI​

OperationsAPI wraps the Platform Manager operations operations.

OperationsAPI.Abort​

Abort(ctx context.Context, operationId string, opts ...eai.CallOption) (json.RawMessage, error)

Abort an operation. Asks a pending or running operation to stop: tasks not started are cancelled, the running ones are stopped by their agents. Returns id, status and abort_requested. Permission operations:abort; 409 operation_not_running when it is already finished. Audited as operation.abort.

Route: /api/v1/operations/{operation_id}/abort (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
operationIdstringyesIdentifier of the operation (an install, a restart, a backup...) whose tasks run on the hosts.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Abort an operation". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.GetOperation​

GetOperation(ctx context.Context, operationId string, opts ...eai.CallOption) (json.RawMessage, error)

Get an operation with its stages and tasks. Returns the operation and its stages in order; each stage gives seq, name_i18n, status, tolerate_failures and its tasks (host, type, service, component, status, attempts, exit code, summary, error, times). Permission operations:read on its cluster; 404 operation_not_found.

Route: /api/v1/operations/{operation_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
operationIdstringyesIdentifier of the operation (an install, a restart, a backup...) whose tasks run on the hosts.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get an operation with its stages and tasks". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.GetTask​

GetTask(ctx context.Context, operationId string, taskId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a task of an operation. Returns one task with its full output, attempts and max_attempts, timeout_s, exit_code, duration_ms and times. Permission operations:read; 404 operation_not_found or 404 task_not_found.

Route: /api/v1/operations/{operation_id}/tasks/{task_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
operationIdstringyesIdentifier of the operation (an install, a restart, a backup...) whose tasks run on the hosts.
taskIdstringyesIdentifier of the task, from the stages of the operation.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a task of an operation". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.ListOperations​

ListOperations(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the operations of a cluster. Operations of the cluster, newest first, without their stages: id, type, title_i18n, target, status, progress, error, created_by, created_at, started_at, finished_at, abort_requested. Paginated with limit and cursor. Permission operations:read.

Route: /api/v1/clusters/{cluster_id}/operations (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the operations of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.Retry​

Retry(ctx context.Context, operationId string, opts ...eai.CallOption) (json.RawMessage, error)

Retry a failed operation. Creates a new operation from a failed or aborted one and returns its operation_id. The retry goes through the checks of a new operation: one change at a time per service, administrative state of the service, profile of the cluster and, under banking-secure, a new approval for a disruptive operation. Permission operations:abort; 409 operation_not_retryable in any other status. Audited as operation.retry.

Route: /api/v1/operations/{operation_id}/retry (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
operationIdstringyesIdentifier of the operation (an install, a restart, a backup...) whose tasks run on the hosts.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Retry a failed operation". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.Running​

Running(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the running operations. Pending and running operations of every cluster where the caller holds operations:read (at most 200, newest first), with their count. Used by the activity indicator of the console.

Route: /api/v1/operations/running (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the running operations". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

OperationsAPI.TaskLogs​

TaskLogs(ctx context.Context, operationId string, taskId string, opts ...eai.CallOption) (json.RawMessage, error)

Read the log lines of a task. Returns the lines written after after_seq (each with seq, ts, stream and data), next_seq to pass as after_seq on the next call, and done: true once the task is finished and every line was read. To follow a task, call it again with after_seq=next_seq until done. Permission operations:read.

Route: /api/v1/operations/{operation_id}/tasks/{task_id}/logs (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
operationIdstringyesIdentifier of the operation (an install, a restart, a backup...) whose tasks run on the hosts.
taskIdstringyesIdentifier of the task.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Read the log lines of a task". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class PKIAPI​

PKIAPI wraps the Platform Manager pki operations.

PKIAPI.GetCa​

GetCa(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the certificate authority. Returns the CA certificate of the Manager (ca_pem), its expiry not_after and its sha256 fingerprint. Any signed in user.

Route: /api/v1/pki/ca (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the certificate authority". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

PKIAPI.ListCertificates​

ListCertificates(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the certificates of a cluster. Certificates issued for the cluster, the first to expire first: kind (agent or service), host, service, component, serial, subject, sans, not_before, not_after, revoked_at. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/certificates (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the certificates of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

PKIAPI.Rotate​

Rotate(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Rotate the service certificates of a cluster. Issues a new certificate for every component instance (of one service, or of all), then starts an operation that installs them on the hosts and restarts the components. Answers 202 with operation_id. Permission pki:manage. Errors: 404 cluster_not_found, 409 no_certificates_to_rotate. Audited as pki.rotate.

Route: /api/v1/clusters/{cluster_id}/certificates/rotate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesOptional service to limit the rotation to.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Rotate the service certificates of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class RestoresAPI​

RestoresAPI wraps the Platform Manager restores operations.

RestoresAPI.Approve​

Approve(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Approve a restore plan. Adds the approval of the caller; two approvals by people other than the requester are needed. Permission restore:execute. Errors: 403 restore_self_approval, 409 restore_not_approvable. Audited as restore.approve.

Route: /api/v1/restores/{plan_id}/approve (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Approve a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RestoresAPI.DryRun​

DryRun(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Dry run a restore plan. Checks the digest, decryption and compatibility without writing to the destination, and returns the recorded approvers. For a named destination it also checks its identity, emptiness and restricted role (checks.destination, checks.executor). A successful dry run does not authorize execution: two approvals are still required. Permission restore:execute. Audited as restore.dry_run.

Route: /api/v1/restores/{plan_id}/dry-run (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Dry run a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RestoresAPI.Execute​

Execute(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Execute an approved restore. Runs an approved plan with a destination: status executing and a durable execution_token are committed before any write. The artefact is checked again (size, digest, decryption), restored with pg_restore --single-transaction by the restricted role, then its rows are read back and compared with the backup inventory (result.inventory, rows, tables). Success: executed. Recorded failure: failed, rollback_performed: false, HTTP 502 restore_execution_failed; its nested result.error identifies the cause, including backup_corrupted, restore_target_busy or restore_execution_timeout. A process interruption can leave executing for manual inspection. Nothing is automatically rolled back or replayed. Pre-execution refusals include 409 restore_not_approved, 501 restore_executor_unavailable and 409 restore_target_changed. Permission restore:execute. Audited as restore.execute.started and restore.execute.

Route: /api/v1/restores/{plan_id}/execute (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Execute an approved restore". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RestoresAPI.List​

List(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the restore plans. The last 200 restore plans with their status and number of approvals. Permission backup:read.

Route: /api/v1/restores (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the restore plans". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RestoresAPI.Plan​

Plan(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Plan a restore. Creates a restore plan for a backup artefact: checks the compatibility of the backed up versions with the target versions (same major version) and lists the steps (verify artefact, verify destination, restore, verify restored). With target_name, the artefact must be an available pg_dump with a verification_inventory and the destination an empty PostgreSQL database owned by a restricted role; its identity is frozen in target_snapshot. Returns the plan (201). Permission restore:execute. Errors: 404 backup_artifact_not_found, 501 restore_executor_unavailable (unknown destination), 409 restore_target_invalid, 409 restore_target_not_empty, 422 restore_inventory_required. Audited as restore.plan.

Route: /api/v1/restores/plan (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesArtefact, environment, destination and target versions.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Plan a restore". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

RestoresAPI.Verify​

Verify(ctx context.Context, planId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a restore plan. Returns the plan with its compatibility, steps, approvers and required_approvals (2). Permission backup:read; 404 restore_plan_not_found.

Route: /api/v1/restores/{plan_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
planIdstringyesIdentifier of the restore plan.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a restore plan". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class ServicesAPI​

ServicesAPI wraps the Platform Manager services operations.

ServicesAPI.Action​

Action(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on a service. Starts an operation that runs the action on the components and hosts chosen (all by default) and returns operation_id. A rolling restart handles batch_size hosts at a time. reinstall also needs services:install. Permission services:operate. Errors: 409 service_unmanaged, 409 service_check_missing, 409 smoke_test_missing, 404 host_component_not_found, 409 approval_required. Audited as service.<action>.

Route: /api/v1/clusters/{cluster_id}/services/{service}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesAction, scope and batching.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.AddComponent​

AddComponent(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Add component instances to hosts. Starts an operation that installs the component on the hosts given (started unless the service is stopped) and returns operation_id with the ha checks. Permission services:install. Errors: 409 service_unmanaged, 404 component_unknown, 422 topology_invalid, 409 ha_requirements_not_met or ha_acknowledgement_required. Audited as service.component_add.

Route: /api/v1/clusters/{cluster_id}/services/{service}/components (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesComponent and target hosts.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Add component instances to hosts". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.CheckConnection​

CheckConnection(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Check a connected service now. Runs the health check and the authenticated check of a connected service and records the result in its monitoring history. Returns service, health and health_details. Permission services:operate; 409 service_not_connected.

Route: /api/v1/clusters/{cluster_id}/services/{service}/connection/check (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Check a connected service now". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ClientConfig​

ClientConfig(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the client configuration of a service. Files a client needs to reach the service (path, content, mode), rendered from the catalog with the secrets redacted. Empty files when the service has none. Permission configs:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/client-config (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the client configuration of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ClusterAction​

ClusterAction(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on every service of a cluster. Starts one operation that runs the action on every managed service in scope (every service by default, or those of services, on every host or on hosts), in dependency order: a provider starts before its consumers and stops after them. restart stops every service in reverse order, then starts every service in order with the health checks; rolling_restart restarts each service by batches of batch_size hosts; restart_stale writes again the files and units of the instances whose configuration changed, then restarts them by batches; service_check runs the check of every service. Connected services, services being installed or uninstalled, an administrative state that forbids the action and instances in maintenance, being removed or on a decommissioned host are left out and listed in skipped with the reason. Returns services in dependency order, skipped, steps and operation_id; with dry_run nothing is created and operation_id is null. Permission services:operate. Errors: 409 bulk_nothing_to_do, 404 cluster_service_not_found, 409 profile_blocked, 409 approval_required (under banking-secure, stop and restarts need an approval for the service *). Audited as cluster.<action>.

Route: /api/v1/clusters/{cluster_id}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesAction, scope, batching and dry run.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on every service of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.Configure​

Configure(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Save a new configuration version. Merges the properties sent over the current values, validates them against the parameter definitions and saves a new version. Returns version and stale_hosts. Permission configs:edit. Errors: 422 config_invalid (with the fields), 409 service_unmanaged. Audited as config.update (parameter names only).

Route: /api/v1/clusters/{cluster_id}/services/{service}/config (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesChanged properties and a note.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Save a new configuration version". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ConnectService​

ConnectService(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Connect an existing service. Registers an existing service of yours against the connect section of its catalog descriptor: no host, never installed, started or stopped by the Manager. The health check and the authenticated check of the method run first; refused credentials give 422 connect_invalid. In a production or pre-production cluster HTTPS, a verified certificate and an allowed method are required. Secret fields are sealed. Returns the service summary (201). Permission services:install. Audited as service.connect.

Route: /api/v1/clusters/{cluster_id}/services/connect (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesAddress, authentication and TLS settings of the existing service.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Connect an existing service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.DisconnectService​

DisconnectService(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Disconnect a connected service. Forgets a connected service and its sealed credentials; the service itself is left untouched. Permission services:install. Errors: 409 service_not_connected, 409 service_in_use while a consumer is bound to it. Audited as service.disconnect.

Route: /api/v1/clusters/{cluster_id}/services/{service}/connection (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Disconnect a connected service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.GetMode​

GetMode(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the administrative state of a service. Returns the administrative state (enabled, disabled, maintenance, quarantined, suspended), its reason, whether the service may run (run_authorized) the security lock of the cluster and modes, the documented effect of every mode. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/mode (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the administrative state of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.GetService​

GetService(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get a service. The summary of the service plus its host_components (every instance with its state, health and version), its bindings to other services and its quick_links (web consoles rendered from the catalog). Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.Health​

Health(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the checks of a service. Liveness of every instance (health checks of the agent), readiness (service check) and functional smoke test, each with its status, results, error and time. Only a passed smoke test proves that the service works. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/checks (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the checks of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.HostAction​

HostAction(ctx context.Context, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on every component of a host. Starts one operation that starts, stops or restarts every component placed on the host, or only the components whose configuration changed (restart_stale), service after service in dependency order. Instances in maintenance and services whose administrative state forbids the action are left out and listed in skipped; with dry_run nothing is created and operation_id is null. Permission services:operate on the cluster of the host. Errors: 404 host_not_found, 409 bulk_nothing_to_do, 409 approval_required (under banking-secure, stop and restarts need an approval for the service host:<host id>). Audited as host.<action>.

Route: /api/v1/hosts/{host_id}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesAction and dry run.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on every component of a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.HostComponentAction​

HostComponentAction(ctx context.Context, clusterId string, service string, component string, hostId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on one component instance. Like the service actions, limited to the component on one host. Returns operation_id. Permission services:operate (services:install for reinstall). Audited as service.<action>.

Route: /api/v1/clusters/{cluster_id}/services/{service}/components/{component}/hosts/{host_id}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
componentstringyesName of the component.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
bodyanyyesAction to run.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on one component instance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.Install​

Install(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Install services. Validates, gates and plans the install of one or more services, then creates the operation. Returns operation_id and the ha checks.

Route: /api/v1/clusters/{cluster_id}/services (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesServices to install with their placements and configuration.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Install services". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.InstallServices​

InstallServices(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Install services. Validates, gates and plans the install of one or more services, then creates the operation. Returns operation_id and the ha checks.

Route: /api/v1/clusters/{cluster_id}/services (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesServices to install with their placements and configuration.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Install services". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ListServices​

ListServices(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

List the services of a cluster. Every service of the cluster with its display_name, mode, method, managed, state, health, version, components and their hosts, hosts with a stale configuration, config_version, open alerts, administrative state, delivery (install or connect) and connection. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the services of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.LockCluster​

LockCluster(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Set the security lock of a cluster. Locks the cluster after a security incident: every new operation is refused with 423 cluster_security_locked, except a security suspension or an emergency stop, until a security administrator lifts it. Returns cluster_id and security_lock. Permission pki:manage. Audited as cluster.security_lock.

Route: /api/v1/clusters/{cluster_id}/security-lock (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesReason of the lock.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Set the security lock of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.RemoveComponent​

RemoveComponent(ctx context.Context, clusterId string, service string, component string, hostId string, opts ...eai.CallOption) (json.RawMessage, error)

Remove a component instance from a host. Starts an operation that stops and removes the component on that host and returns operation_id with the ha checks. Permission services:install. Errors: 404 host_component_not_found, 422 topology_invalid (the topology would break the rules of the service), 409 ha_requirements_not_met or ha_acknowledgement_required. Audited as service.component_remove.

Route: /api/v1/clusters/{cluster_id}/services/{service}/components/{component}/hosts/{host_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
componentstringyesName of the component, as declared by the catalog service, for example server.
hostIdstringyesIdentifier of the host, a machine registered by its Navin agent.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Remove a component instance from a host". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.Rollback​

Rollback(ctx context.Context, clusterId string, upgradeId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Roll an upgrade back. Starts the operation that replays the sealed tasks of the previous release and restores the previous configuration version. Refused when the descriptor declares it impossible or an irreversible migration ran (use the restore instead). Returns operation_id. Permission services:install; 404 upgrade_not_found. Audited as service.rollback.

Route: /api/v1/clusters/{cluster_id}/upgrades/{upgrade_id}/rollback (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
upgradeIdstringyesIdentifier of the upgrade.
bodyanyyesOptional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Roll an upgrade back". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ServiceAction​

ServiceAction(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run an action on a service. Starts an operation that runs the action on the components and hosts chosen (all by default) and returns operation_id. A rolling restart handles batch_size hosts at a time. reinstall also needs services:install. Permission services:operate. Errors: 409 service_unmanaged, 409 service_check_missing, 409 smoke_test_missing, 404 host_component_not_found, 409 approval_required. Audited as service.<action>.

Route: /api/v1/clusters/{cluster_id}/services/{service}/actions (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesAction, scope and batching.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run an action on a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ServiceCommand​

ServiceCommand(ctx context.Context, clusterId string, service string, command string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Run a custom command of a service. Starts an operation running a command declared by the catalog service (for example a vacuum or a rebalance) with its parameters and returns operation_id. Permission services:operate. Errors: 409 service_unmanaged, 404 command_unknown, 422 command_params_invalid, 404 host_component_not_found. Audited as service.command (parameter names only).

Route: /api/v1/clusters/{cluster_id}/services/{service}/commands/{command} (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
commandstringyesName of the command, as declared by the catalog service.
bodyanyyesParameters of the command and optional target host.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Run a custom command of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ServiceDashboardView​

ServiceDashboardView(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Get the monitoring dashboard of a service. Monitoring dashboard of a service over [from, to] (default: the last hour): instances, health and latest checks, availability over the period, metrics of its hosts, alerts, operations, configuration and, for a connected service, its connection. Permission cluster:read.

Route: /api/v1/clusters/{cluster_id}/services/{service}/dashboard (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the monitoring dashboard of a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ServiceLogs​

ServiceLogs(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Fetch the logs of a component instance. Starts an operation where the agent of the host reads the last lines of the component logs. Returns operation_id and task_id: read the lines with GET /operations/{operation_id}/tasks/{task_id}/logs. Permission services:operate. Audited as service.logs.

Route: /api/v1/clusters/{cluster_id}/services/{service}/logs (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesHost, component and number of lines.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Fetch the logs of a component instance". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.SetMode​

SetMode(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Apply an operating mode to a service. Applies one mode and returns the administrative state left behind, its documented effect on new requests and transactions in flight, the operation_id when the mode stops processes, and the informative ha impact:

Route: /api/v1/clusters/{cluster_id}/services/{service}/mode (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesMode, reason and drain timeout.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Apply an operating mode to a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.UninstallService​

UninstallService(ctx context.Context, clusterId string, service string, opts ...eai.CallOption) (json.RawMessage, error)

Uninstall a service. Starts the uninstall operation (stop, remove packages and, with purge_data, the data) and returns operation_id. Permission services:install. Errors: 409 service_in_use (consumers listed in details.consumers), 409 service_connected (use DELETE .../connection), 409 approval_required under banking-secure. Audited as service.uninstall.

Route: /api/v1/clusters/{cluster_id}/services/{service} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Uninstall a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.UnlockCluster​

UnlockCluster(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Lift the security lock of a cluster. Lifts the lock: new operations are accepted again. Returns cluster_id and security_lock (null). Permission pki:manage (security role). Audited as cluster.security_unlock.

Route: /api/v1/clusters/{cluster_id}/security-lock (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Lift the security lock of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.UpdateConnection​

UpdateConnection(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a connected service. Changes the address, the credentials (rotation) or the TLS settings of a connected service; a value left out keeps the stored one. With dry_run the change is checked like a connect validation and not saved. Credentials the service refuses are never saved (422 connect_invalid). Permission services:install; 409 service_not_connected. Audited as service.connection.update (field names only, never values).

Route: /api/v1/clusters/{cluster_id}/services/{service}/connection (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesFields of the connection to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a connected service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.Upgrade​

Upgrade(ctx context.Context, clusterId string, service string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Upgrade a service. Upgrades the service to the catalog release in one operation:

Route: /api/v1/clusters/{cluster_id}/services/{service}/upgrade (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
servicestringyesName of the catalog service, for example postgresql or keycloak.
bodyanyyesCanary host and optional approval.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Upgrade a service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ValidateConnect​

ValidateConnect(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Check a connection before saving it. Dry run of a connect: checks the request against the descriptor, then runs the health check and the authenticated check of the method. Returns the verdict with the errors; nothing is saved. Permission services:install.

Route: /api/v1/clusters/{cluster_id}/services/connect/validate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesSame body as a connect.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Check a connection before saving it". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

ServicesAPI.ValidateServices​

ValidateServices(ctx context.Context, clusterId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Validate an install without running it. Checks an install request and previews it without changing anything. Returns ok, errors (each with service, field, code, message_i18n), plan (order, number of stages, steps), ha (high availability checks) and dependencies (items and added). Permission services:install.

Route: /api/v1/clusters/{cluster_id}/services/validate (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
bodyanyyesSame body as an install.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Validate an install without running it". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class SettingsAPI​

SettingsAPI wraps the Platform Manager settings operations.

SettingsAPI.GetSettingsView​

GetSettingsView(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the settings. Returns site_name, default_language, install, smtp, syslog, retention and proxy, secrets masked. Any signed in user.

Route: /api/v1/settings (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the settings". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

SettingsAPI.PutSettings​

PutSettings(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update the settings. Changes the sections and fields given; a section or field left out is kept. Returns the settings. Permission settings:manage. Errors: 422 proxy_invalid (proxy URL with credentials or not http(s)), 422 validation_error. Audited as settings.update.

Route: /api/v1/settings (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesSections of the settings to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update the settings". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class StackAPI​

StackAPI wraps the Platform Manager stack operations.

StackAPI.HighAvailability​

HighAvailability(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the high availability matrix of the catalog. High availability matrix of every catalog service, sorted by category then name: its modes (topologies) with the cardinality of each component, and its high availability block with the liveness and readiness checks. Returns items and count. Any signed in user.

Route: /api/v1/catalog/high-availability (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the high availability matrix of the catalog". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

StackAPI.Service​

Service(ctx context.Context, name string, opts ...eai.CallOption) (json.RawMessage, error)

Get a catalog service. Public description of one catalog service: components, modes, methods, delivery, layer and high availability. Any signed in user; 404 for an unknown service.

Route: /api/v1/stack/services/{name} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
namestringyesName of the catalog service, for example postgresql.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a catalog service". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

StackAPI.Stack​

Stack(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the catalog summary. Name, version and categories of the stack and a summary of every service it offers (components, modes, dependencies, licence). Any signed in user.

Route: /api/v1/stack (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the catalog summary". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class SystemAPI​

SystemAPI wraps the Platform Manager system operations.

SystemAPI.Health​

Health(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the health of the Manager. Returns version, database (ok, latency_ms), engine (leader, last_tick_at, lag_s, queued_tasks), agents (online: heartbeat in the last 60 seconds, lost, total) and scheduler.jobs (last run and last error of each job). Permission system:read.

Route: /api/v1/system/health (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the health of the Manager". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

SystemAPI.PrometheusSD​

PrometheusSD(ctx context.Context, clusterId string, opts ...eai.CallOption) (json.RawMessage, error)

Prometheus service discovery of a cluster. Targets in the Prometheus HTTP service discovery format: one group per component instance exposing metrics, with targets (fqdn:port) and the labels __metrics_path__, __scheme__, nm_cluster, nm_service, nm_component, nm_host. Permission cluster:read; 404 cluster_not_found.

Route: /api/v1/clusters/{cluster_id}/sd/prometheus (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
clusterIdstringyesIdentifier of the cluster (an environment of hosts or a Kubernetes cluster managed by the Navin Manager).
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Prometheus service discovery of a cluster". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

SystemAPI.SupportedOs​

SupportedOs(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the supported operating systems. Published list of the operating systems and versions the agents and the services support. Any signed in user.

Route: /api/v1/system/supported-os (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the supported operating systems". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class TelemetryAPI​

TelemetryAPI wraps the Platform Manager telemetry operations.

TelemetryAPI.Telemetry​

Telemetry(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Get the telemetry export state. Returns enabled, database, flush_seconds, retention_days, stats (buffered, written, dropped, failures, last_error) and the exported tables. Permission cluster:read on at least one cluster.

Route: /api/v1/telemetry (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get the telemetry export state". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class UsersAPI​

UsersAPI wraps the Platform Manager users operations.

UsersAPI.CreateUser​

CreateUser(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Create a local user. Creates a local account with its password and role bindings and returns it (201). Permission users:manage. Errors: 409 username_taken, 422 password_policy, 422 role_invalid, 422 role_global_only, 422 binding_cluster_not_found, 403 user_manage_denied (granting admin without being a full administrator). Audited as user.create.

Route: /api/v1/users (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe new account.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Create a local user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.DeleteUser​

DeleteUser(ctx context.Context, userId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a user. Deletes the account. Answers 204. Permission users:manage. Errors: 404 user_not_found, 409 cannot_delete_self, 409 last_admin, 403 user_manage_denied. Audited as user.delete.

Route: /api/v1/users/{user_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.GetUser​

GetUser(ctx context.Context, userId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a user. Returns the account with its role bindings (role, cluster_id, source). Permission users:read; 404 user_not_found.

Route: /api/v1/users/{user_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.ListUsers​

ListUsers(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the users. Users sorted by username, each with its role bindings, MFA state, lock and last sign in. Paginated with limit and cursor. Permission users:read.

Route: /api/v1/users (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the users". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.PatchUser​

PatchUser(ctx context.Context, userId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update or disable a user. Changes the fields given, keeps the others, and returns the user. Disabling an account revokes its sessions at once. Permission users:manage. Errors: 404 user_not_found, 409 cannot_disable_self, 409 last_admin, 403 user_manage_denied. Audited as user.update.

Route: /api/v1/users/{user_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
bodyanyyesFields of the user to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update or disable a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.PutRoles​

PutRoles(ctx context.Context, userId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Replace the role bindings of a user. Replaces the manual bindings by the list given; bindings synchronized from LDAP or OIDC are kept. When a new role requires MFA and the user has none, its sessions are revoked. Returns the user. Permission users:manage. Errors: 409 last_admin, 422 role_invalid, 422 role_global_only, 422 binding_cluster_not_found, 403 user_manage_denied. Audited as user.roles with the bindings before and after.

Route: /api/v1/users/{user_id}/roles (PUT).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
bodyanyyesThe complete list of manual bindings.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Replace the role bindings of a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.ResetMfa​

ResetMfa(ctx context.Context, userId string, opts ...eai.CallOption) (json.RawMessage, error)

Reset the second factor of a user. Turns MFA off for the user, deletes its secret and recovery codes and revokes its sessions; the user enrolls again at the next sign in when its role requires MFA. Returns the user. Permission users:manage. Audited as user.mfa_reset.

Route: /api/v1/users/{user_id}/mfa/reset (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Reset the second factor of a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.ResetPassword​

ResetPassword(ctx context.Context, userId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Set the password of a local user. Sets a new password following the policy, unlocks the account and revokes its sessions. Answers 204. Permission users:manage. Errors: 409 not_local_user, 422 password_policy, 404 user_not_found, 403 user_manage_denied. Audited as user.password_reset.

Route: /api/v1/users/{user_id}/password (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
bodyanyyesThe new password and whether it must be changed at the next sign in.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Set the password of a local user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.Roles​

Roles(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the roles and their permissions. Every role with its name, its label in both languages, its sorted permissions and its scopes (global, and cluster when it can be bound to one cluster). Permission users:read.

Route: /api/v1/roles (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the roles and their permissions". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

UsersAPI.UnlockUser​

UnlockUser(ctx context.Context, userId string, opts ...eai.CallOption) (json.RawMessage, error)

Unlock a user. Clears the lock set after repeated failed sign ins and resets the failure counter. Returns the user. Permission users:manage. Audited as user.unlock.

Route: /api/v1/users/{user_id}/unlock (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
userIdstringyesIdentifier of the user account of the console.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Unlock a user". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

Class VaultAPI​

VaultAPI wraps the Platform Manager vault operations.

VaultAPI.CreateEntry​

CreateEntry(ctx context.Context, body any, opts ...eai.CallOption) (json.RawMessage, error)

Add a vault entry. Creates a manual entry and returns it (201). Permission vault:manage. Errors: 409 vault_name_taken, 422 vault_name_required. Audited as vault.create.

Route: /api/v1/vault/entries (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
bodyanyyesThe service and its credentials.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Add a vault entry". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.DeleteEntry​

DeleteEntry(ctx context.Context, entryId string, opts ...eai.CallOption) (json.RawMessage, error)

Delete a vault entry. Deletes the entry. Answers 204. Permission vault:manage; 404 vault_entry_not_found. Audited as vault.delete.

Route: /api/v1/vault/entries/{entry_id} (DELETE).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
entryIdstringyesIdentifier of the vault entry.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Delete a vault entry". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.GetEntry​

GetEntry(ctx context.Context, entryId string, opts ...eai.CallOption) (json.RawMessage, error)

Get a vault entry. Returns the sheet of one entry without its password nor key. Permission vault:manage; 404 vault_entry_not_found.

Route: /api/v1/vault/entries/{entry_id} (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
entryIdstringyesIdentifier of the vault entry.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Get a vault entry". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.ImportEntries​

ImportEntries(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

Import the credentials of the installed services. Creates or refreshes the entries of the installed services of every cluster; fields changed by hand are kept. Returns the names of the entries by outcome. Permission vault:manage. Audited as vault.import.

Route: /api/v1/vault/import (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Import the credentials of the installed services". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.ListEntries​

ListEntries(ctx context.Context, opts ...eai.CallOption) (json.RawMessage, error)

List the vault entries. Services of the vault sorted by name, with their URL and login but without their password nor key. Permission vault:manage.

Route: /api/v1/vault/entries (GET).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "List the vault entries". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.RevealEntry​

RevealEntry(ctx context.Context, entryId string, opts ...eai.CallOption) (json.RawMessage, error)

Reveal the password and key of an entry. Returns the password and the key of one service in clear, to show and copy them in the console. Permission vault:manage; 404 vault_entry_not_found. Audited as vault.reveal (service name only).

Route: /api/v1/vault/entries/{entry_id}/reveal (POST).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
entryIdstringyesIdentifier of the vault entry.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Reveal the password and key of an entry". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).

VaultAPI.UpdateEntry​

UpdateEntry(ctx context.Context, entryId string, body any, opts ...eai.CallOption) (json.RawMessage, error)

Update a vault entry. Changes the fields given and returns the entry. Permission vault:manage. Errors: 404 vault_entry_not_found, 409 vault_name_taken, 422 vault_name_required, 409 vault_entry_managed (credentials of a console the Manager rotates). Audited as vault.update (field names only).

Route: /api/v1/vault/entries/{entry_id} (PATCH).

NameTypeDefaultRequiredDescription
ctxcontext.ContextyesContext of the call: cancellation and deadline.
entryIdstringyesIdentifier of the vault entry.
bodyanyyesFields of the entry to change.
opts...eai.CallOptionnoPer call options (query, idempotency key, traceparent, headers).

Returns: (json.RawMessage, error). Decoded JSON answer of the operation "Update a vault entry". The error is a typed error of the SDK, nil on success.

Raises: error, the typed errors of the transport (Errors).