Port label
Helper methods for Port Label subscriptions that make database interactions easier.
get_active_port_label_subscriptions(port_label_name, includes=None)
Retrieve active Port Label subscriptions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
port_label_name
|
ProductName
|
The Label Name of the Port Label. |
required |
includes
|
list[str] | None
|
The fields to be included in the returned Subscription objects. |
None
|
Returns:
| Type | Description |
|---|---|
list[SubscriptionType]
|
A list of Subscription objects for a given Port Label. |
Source code in gso/services/subscriptions/port_label.py
get_edge_ports_by_label(port_label_name)
Given a Port Label, return a list of Edge Port subscription IDs that have the given label.