cfxdb.mrealm¶
Submodules¶
- cfxdb.mrealm.application_realm
- cfxdb.mrealm.arealm_role_association
- cfxdb.mrealm.cluster
- cfxdb.mrealm.cluster_node_membership
- cfxdb.mrealm.credential
- cfxdb.mrealm.management_realm
- cfxdb.mrealm.node
- cfxdb.mrealm.permission
- cfxdb.mrealm.principal
- cfxdb.mrealm.role
- cfxdb.mrealm.router_cluster
- cfxdb.mrealm.router_cluster_node_membership
- cfxdb.mrealm.router_workergroup
- cfxdb.mrealm.router_workergroup_cluster_placement
- cfxdb.mrealm.types
- cfxdb.mrealm.web_cluster
- cfxdb.mrealm.web_cluster_node_membership
- cfxdb.mrealm.web_service
Classes¶
Application realm database configuration object. |
|
Association of a role with an application realm. |
|
CFC Cluster database configuration object. |
|
Membership of a node in a cluster. |
|
Credentials created for use with WAMP authentication. |
|
Management realm database configuration object. |
|
Nodes paired with management realms on this master node. |
|
Role permission database object. |
|
Principals created for use with WAMP authentication. A principal represents the identity |
|
Roles created for use with application-level authorization and permissions |
|
A router cluster is able to run (application) realms, and is hosted on a groups of router workers |
|
Membership of a managed node (paired within a management realm) to a router cluster. |
|
Router worker group database configuration object. |
|
Placement of router worker groups onto router clusters, specifically router workers |
|
Web cluster database configuration object. |
|
Information about memberships of nodes in web clusters. |
|
Web service: |
|
Package Contents¶
- class ApplicationRealm(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, status: int | None = None, workergroup_oid: uuid.UUID | None = None, webcluster_oid: uuid.UUID | None = None, datamarket_oid: uuid.UUID | None = None, changed: numpy.datetime64 | None = None, owner_oid: uuid.UUID | None = None, _unknown: Any | None = None)[source]¶
Bases:
cfxdb.common.ConfigurationElementApplication realm database configuration object.
- STATUS_BY_CODE¶
- STATUS_BY_NAME¶
- STATUS_DEGRADED = 7¶
- STATUS_ERROR = 6¶
- STATUS_PAUSED = 4¶
- STATUS_RUNNING = 3¶
- STATUS_STARTING = 2¶
- STATUS_STOPPED = 1¶
- STATUS_STOPPING = 5¶
- _unknown = None¶
- changed = None¶
- copy(other: ApplicationRealm, overwrite: bool = False)[source]¶
Copy over other object.
- Parameters:
other – Other application realm to copy data from.
overwrite – Overwrite members already set.
- datamarket_oid = None¶
- name = None¶
- owner_oid = None¶
- static parse(data: Dict[str, Any]) ApplicationRealm[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data – Generic host language object
- Returns:
New instance of this class.
- status = None¶
- webcluster_oid = None¶
- workergroup_oid = None¶
- class ApplicationRealmRoleAssociation(arealm_oid: uuid.UUID | None = None, role_oid: uuid.UUID | None = None, _unknown=None)[source]¶
Bases:
objectAssociation of a role with an application realm.
- _unknown = None¶
Object ID of the application realm this association applies to.
- Parameters:
role_oid – Object ID of the role this association applies to.
- Type:
param arealm_oid
- arealm_oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- role_oid = None¶
- class ApplicationRealmStatus[source]¶
Bases:
object- DEGRADED = 7¶
- ERROR = 6¶
- NONE = 0¶
- PAUSED = 4¶
- RUNNING = 3¶
- STARTING = 2¶
- STOPPED = 1¶
- STOPPING = 5¶
- class AuthenticationMethod[source]¶
Bases:
object- ANONYMOUS = 1¶
- COOKIE = 5¶
- CRYPTOSIGN = 6¶
- NONE = 0¶
- SCRAM = 7¶
- TICKET = 2¶
- TLS = 4¶
- WAMPCRA = 3¶
- class Cluster(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, status: int | None = None, owner_oid: uuid.UUID | None = None, changed: numpy.datetime64 | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementCFC Cluster database configuration object.
- changed = None¶
- name = None¶
- owner_oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- status = None¶
- class ClusterNodeMembership(cluster_oid: uuid.UUID | None = None, node_oid: uuid.UUID | None = None, _unknown=None)[source]¶
Bases:
objectMembership of a node in a cluster.
- _unknown = None¶
- cluster_oid = None¶
- node_oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- class ClusterStatus[source]¶
Bases:
object- DEGRADED = 7¶
- ERROR = 6¶
- NONE = 0¶
- PAUSED = 4¶
- RUNNING = 3¶
- STARTING = 2¶
- STOPPED = 1¶
- STOPPING = 5¶
- class Credential(oid: uuid.UUID | None = None, created: numpy.datetime64 | None = None, authmethod: str | None = None, authid: str | None = None, realm: str | None = None, authconfig: dict | None = None, principal_oid: uuid.UUID | None = None, _unknown=None)[source]¶
Bases:
objectCredentials created for use with WAMP authentication.
- _unknown = None¶
- authconfig = None¶
- authid = None¶
- authmethod = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
ManagementRealm) – Other credential to copy data from.- Returns:
- created = None¶
- oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- principal_oid = None¶
- realm = None¶
- class ManagementRealm(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, created: datetime.datetime | None = None, owner: uuid.UUID | None = None, cf_router_worker: str | None = None, cf_container_worker: str | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementManagement realm database configuration object.
- _unknown = None¶
- cf_container_worker = None¶
- cf_router_worker = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
ManagementRealm) – Other management realm to copy data from.- Returns:
- created = None¶
- name = None¶
- owner = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- class Node(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, owner_oid: uuid.UUID | None = None, pubkey: str | None = None, cluster_ip: str | None = None, mrealm_oid: uuid.UUID | None = None, authid: str | None = None, authextra: dict | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementNodes paired with management realms on this master node.
- authextra = None¶
- authid = None¶
- cluster_ip = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
ManagementRealm) – Other management realm to copy data from.- Returns:
- mrealm_oid = None¶
- owner_oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- pubkey = None¶
- class Permission(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, role_oid: uuid.UUID | None = None, uri: str | None = None, uri_check_level: int | None = None, match: int | None = None, allow_call: bool | None = None, allow_register: bool | None = None, allow_publish: bool | None = None, allow_subscribe: bool | None = None, disclose_caller: bool | None = None, disclose_publisher: bool | None = None, cache: bool | None = None, created: numpy.datetime64 | None = None, owner: uuid.UUID | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementRole permission database object.
- MATCH_TYPES_FROMSTR¶
- MATCH_TYPES_TOSTR¶
- URI_CHECK_LEVELS_FROMSTR¶
- URI_CHECK_LEVELS_TOSTR¶
- _unknown = None¶
- allow_call = None¶
- allow_publish = None¶
- allow_register = None¶
- allow_subscribe = None¶
- cache = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
ManagementRealm) – Other permission to copy data from.- Returns:
- created = None¶
- disclose_caller = None¶
- disclose_publisher = None¶
- match = None¶
- owner = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- role_oid = None¶
- uri = None¶
- uri_check_level = None¶
- class Principal(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, modified: int | None = None, arealm_oid: uuid.UUID | None = None, authid: str | None = None, role_oid: uuid.UUID | None = None, authextra: dict | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementPrincipals created for use with WAMP authentication. A principal represents the identity an application client is authenticated to the application realm joined.
A principal must have at least one
cfxdb.mrealmschema.Credentialadded. When an application client connects, it will offer anauthmethodand request arealmand (usually)authid. When a matchingcfxdb.mrealmschema.Credentialis found, and authentication succeeds using that, the client will be authenticated under thecfxdb.mrealmschema.Principalassociated with the credential.Note
It is important to note that while the
realmandauthidrequested by the client (and defined in the respectivecfxdb.mrealmschema.Credential) will usually be identical to therealmandauthidactually assigned (as defined in thecfxdb.mrealmschema.Principalassociated with the credential), this is allowed to differ in general.- _unknown = None¶
- arealm_oid = None¶
- authextra = None¶
- authid = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
cfxdb.mrealm.Principal) – Other principal to copy data from.- Returns:
- modified = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- role_oid = None¶
- class Role(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, created: numpy.datetime64 | None = None, owner: uuid.UUID | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementRoles created for use with application-level authorization and permissions in application realms.
- _unknown = None¶
- copy(other, overwrite=False)[source]¶
Copy over other object.
- Parameters:
other (instance of
ManagementRealm) – Other role to copy data from.- Returns:
- created = None¶
- name = None¶
- owner = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- class RouterCluster(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, status: int | None = None, owner_oid: uuid.UUID | None = None, changed: numpy.datetime64 | None = None, _unknown=None)[source]¶
Bases:
cfxdb.mrealm.cluster.ClusterA router cluster is able to run (application) realms, and is hosted on a groups of router workers kept in sync and meshed via router-to-router links.
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- class RouterClusterNodeMembership(cluster_oid: uuid.UUID | None = None, node_oid: uuid.UUID | None = None, softlimit: int | None = None, hardlimit: int | None = None, _unknown=None)[source]¶
Bases:
cfxdb.mrealm.cluster_node_membership.ClusterNodeMembershipMembership of a managed node (paired within a management realm) to a router cluster. A router cluster is able to run “data planes”, which are groups of router workers kept in sync, and meshed via router-to-router links. Finally, “(application) realms” can be started in data planes.
- hardlimit = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- softlimit = None¶
- class RouterWorkerGroup(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, cluster_oid: uuid.UUID | None = None, name: str | None = None, scale: int | None = None, status: int | None = None, changed: numpy.datetime64 | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementRouter worker group database configuration object.
- changed = None¶
- cluster_oid = None¶
- name = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- scale = 1¶
- status = None¶
- class RouterWorkerGroupClusterPlacement(oid: uuid.UUID | None = None, worker_group_oid: uuid.UUID | None = None, cluster_oid: uuid.UUID | None = None, node_oid: uuid.UUID | None = None, worker_name: str | None = None, status: int | None = None, changed: numpy.datetime64 | None = None, tcp_listening_port: int | None = None, _unknown: dict | None = None)[source]¶
Bases:
objectPlacement of router worker groups onto router clusters, specifically router workers and xbrmm workers running as part of router worker groups.
- _unknown = None¶
- changed = None¶
- cluster_oid = None¶
- node_oid = None¶
- oid = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- status = None¶
- tcp_listening_port = None¶
- worker_group_oid = None¶
- worker_name = None¶
- class WebCluster(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, name: str | None = None, status: int | None = None, owner_oid: uuid.UUID | None = None, changed: numpy.datetime64 | None = None, tcp_version: int | None = None, tcp_port: int | None = None, tcp_shared: bool | None = None, tcp_interface: str | None = None, tcp_backlog: int | None = None, tls_key: str | None = None, tls_certificate: str | None = None, tls_chain_certificates: List[str] | None = None, tls_ca_certificates: List[str] | None = None, tls_dhparam: str | None = None, tls_ciphers: str | None = None, http_client_timeout: int | None = None, http_hsts: bool | None = None, http_hsts_max_age: int | None = None, http_access_log: bool | None = None, http_display_tracebacks: bool | None = None, _unknown=None)[source]¶
Bases:
cfxdb.mrealm.cluster.ClusterWeb cluster database configuration object.
- http_access_log = None¶
- http_client_timeout = None¶
- http_display_tracebacks = None¶
- http_hsts = None¶
- http_hsts_max_age = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
ManagementRealm
- tcp_backlog = None¶
- tcp_interface = None¶
- tcp_port = None¶
- tcp_version = None¶
- tls_ca_certificates = None¶
- tls_certificate = None¶
- tls_chain_certificates = None¶
- tls_ciphers = None¶
- tls_dhparam = None¶
- tls_key = None¶
- class WebClusterNodeMembership(cluster_oid: uuid.UUID | None = None, node_oid: uuid.UUID | None = None, parallel: int | None = None, standby: bool | None = None, _unknown=None)[source]¶
Bases:
cfxdb.mrealm.cluster_node_membership.ClusterNodeMembershipInformation about memberships of nodes in web clusters.
- parallel = None¶
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- standby = None¶
- class WebService(oid: uuid.UUID | None = None, label: str | None = None, description: str | None = None, tags: List[str] | None = None, service_type: str | None = None, webcluster_oid: uuid.UUID | None = None, path: str | None = None, _unknown=None)[source]¶
Bases:
cfxdb.common.ConfigurationElementWeb service:
check_web_path_service
- static parse(data)[source]¶
Parse generic host language object into an object of this class.
- Parameters:
data (dict) – Generic host language object
- Returns:
instance of
WebService
- path = None¶
- service_type = None¶
- webcluster_oid = None¶