Workload
Get a list of workload
get/workload
Request
- Base URL/v1 (relative, and the document was published on a file host, not at the API’s origin)
- Authnone declared. Required headers: X-Auth-Token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Auth-Tokenstring required
Response
Success
Example response
{
"workloads": [
{
"id": "7304e72fd093155c4cbcd65d07375329b2db82cc679",
"name": "k8s_POD.d86c_calico-node-mzhtk_kube-system_0050565a_365c13d",
"display_name": "calico-node-mzhtk",
"pod_name": "istio-policy-5cdbc47674-t67p4",
"image": "istio/mixer:1.4.3",
"image_id": "5b7b52f8e75898efe2b7b258322e623c280d856b9f5a527fbbdc25689adf6e95",
"platform_role": "core",
"domain": "istio-system",
"state": "exit",
"service": "kafka.zookeeper",
"service_group": "nv.calico",
"share_ns_with": "cc0709d522749203042e89dba28bf6924a4b0d360648",
"cap_sniff": true,
"cap_change_mode": true,
"policy_mode": "Discover",
"scan_summary": {
"status": "scheduled",
"result": "success",
"scanned_timestamp": 1516561253,
"scanned_at": "2018-01-21T19:00:53Z",
"base_os": "ubuntu:16.04",
"scanner_version": "1.011",
"cvedb_create_time": "2018-06-20T19:00:53Z"
},
"children": [
{
"id": "7304e72fd093155c4cbcd65d07375329b2db82cc679",
"name": "k8s_POD.d86c_calico-node-mzhtk_kube-system_0050565a_365c13d",
"display_name": "calico-node-mzhtk",
"pod_name": "istio-policy-5cdbc47674-t67p4",
"image": "calico",
"image_id": "d572b7ee3511b21a2b78b8915bc03c5786ad01949704c1418624224c4cae2c5f",
"platform_role": "core",
"state": "exit",
"service": "kafkazookeeper",
"service_group": "nv.calico",
"share_ns_with": "cc0709d522749203042e89dba28bf6924a4b0d360648",
"cap_sniff": true,
"cap_quarantine": true,
"cap_change_mode": true,
"policy_mode": "Discover",
"profile_mode": "Discover",
"scan_summary": {
"status": "scheduled",
"result": "success",
"scanned_timestamp": 1516561253,
"scanned_at": "2018-01-21T19:00:53Z",
"base_os": "ubuntu:16.04",
"scanner_version": "1.011",
"cvedb_create_time": "2018-06-20T19:00:53Z"
},
"quarantine_reason": "violation",
"service_mesh": true,
"service_mesh_sidecar": true,
"privileged": true,
"run_as_root": true
}
],
"host_name": "ubuntu1604-k8worker1-calico",
"host_id": "GRSW:3RCY:YL6O:TIGT:666B:OW22:XYQF:YHGI:JB3L",
"enforcer_id": "002a4f71d9dbdb40db81c31484ac25564fe80574dfbe",
"network_mode": "host",
"created_at": "2018-01-18T00:44:02Z",
"started_at": "2018-01-18T00:44:02Z",
"finished_at": "2018-01-18T01:20:02Z",
"secured_at": "2018-01-18T01:20:02Z",
"interfaces": {
"key": "eth0",
"value": [
{
"ip": "192.168.209.197",
"ip_prefix": 32
}
]
},
"ports": [
{
"ip_proto": 6,
"port": 51764,
"host_ip": "10.1.5.1",
"host_port": 5000
}
],
"labels": {
"key": "io.kubernetes.pod.name",
"value": "calico-node-mzhtk"
},
"applications": [
"TCP/9999"
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.