Skip to navigation

noderegistry

View as MarkdownOpen in Claude

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Stores node identities and inventory collected by integrations and workflows.

Prerequisites

  • None.

Setup

This module provides functionality for interacting with the node registry.

Members

dangerously_insert_node

noderegistry.dangerously_insert_node(datacenter_node_id, cluster_id?, hostname, identifiers)

DANGER: Manually insert a node into the node registry, bypassing normal registration flows. Only use this if you ABSOLUTELY know what you are doing, as incorrect usage can lead to data inconsistency. This should only be used in exceptional circumstances like when a node is offline after a cold swap, and we need the new serial to continue a workflow.

Parameters
datacenter_node_idstringThe datacenter node ID of the node.
cluster_id?optionalanyDeprecated and ignored; the deployment cluster ID is resolved internally.
hostnamestringThe hostname of the node.
identifiersdict[string:string]A map of system name to system node ID.

get_node

noderegistry.get_node(datacenter_node_id)

Get a node by its datacenter node ID.

Parameters
datacenter_node_idstringThe datacenter node ID of the node.
Returns
datacenter_nodenoderegistry.DatacenterNodeThe datacenter node object.

get_node_by_hostname

noderegistry.get_node_by_hostname(cluster_id?, hostname)

Get a node by its hostname.

Parameters
cluster_id?optionalanyDeprecated and ignored; the deployment cluster ID is resolved internally.
hostnamestringThe hostname of the node.
Returns
datacenter_nodenoderegistry.DatacenterNodeThe datacenter node object.

get_node_by_system_node_id

noderegistry.get_node_by_system_node_id(cluster_id?, system_name, system_node_id)

Get a node by its system node ID.

Parameters
cluster_id?optionalanyDeprecated and ignored; the deployment cluster ID is resolved internally.
system_namestringThe system name of the node.
system_node_idstringThe system node ID of the node.
Returns
datacenter_nodenoderegistry.DatacenterNodeThe datacenter node object.

get_nodes_with_duplicate_cluster_hostname

noderegistry.get_nodes_with_duplicate_cluster_hostname()

Get all nodes that have multiple datacenter node IDs for the same cluster ID and hostname.

Returns
nodeslist[noderegistry.DatacenterNode]The list of conflicting nodes.

get_nodes_with_duplicate_datacenter_node_id

noderegistry.get_nodes_with_duplicate_datacenter_node_id()

Get all nodes that have multiple cluster IDs or hostnames for the same datacenter node ID.

Returns
nodeslist[noderegistry.DatacenterNode]The list of conflicting nodes.

list_nodes

noderegistry.list_nodes(datacenter_node_id?, cluster_id?, hostname?, sync_status?, exact_datacenter_node_ids?, exact_cluster_ids?, exact_hostnames?, exact_tags?, exact_categories?)

List all nodes in the node registry.

Parameters
datacenter_node_id?optionalstringFilter by datacenter node ID.
cluster_id?optionalstringFilter by cluster ID.
hostname?optionalstringFilter by hostname.
sync_status?optionalstringFilter by sync status (‘current’, ‘stale’, ‘unknown’).
exact_datacenter_node_ids?optionallist[string]Filter by exact list of datacenter node IDs.
exact_cluster_ids?optionallist[string]Filter by exact list of cluster IDs.
exact_hostnames?optionallist[string]Filter by exact list of hostnames.
exact_tags?optionallist[string]Filter by list of tags.
exact_categories?optionallist[string]Filter by list of categories (OR logic — nodes matching any of the specified categories are returned).
Returns
nodesiterator[noderegistry.DatacenterNode]Iterator over the list of datacenter node objects.

wait_for_noderegistry_update

noderegistry.wait_for_noderegistry_update()

Wait for the node registry to complete a full sync cycle (populate_node_registry workflow).