Skip to content
Proud to collaborate with Microsoft for Startups

kubernetes.networkpolicy.list ​

Enumerate NetworkPolicies in a namespace (networking.k8s.io/v1)

List NetworkPolicies in a namespace.

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • namespace: Target namespace (required)
  • label_selector: Optional kubectl-style label selector

Outputs:

  • items: list of {name, namespace, pod_selector, selects_all_pods, policy_types, isolates_ingress, isolates_egress, ingress_rule_count, egress_rule_count, labels, created_at}
  • count: int

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namespacestringYes——
label_selectorstringNo——
organization_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
organization_uuiduuidNo——
namespacestringNo——
label_selectorstringNo——
itemsjsonNo——
countintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "kubernetes.networkpolicy.list",
  "initial_data": {
    "connection_uuid": "value",
    "namespace": "value"
  }
}