Retrieves specified workspace clusters workload pods
POST/v1/dashboard/workspaces/:uid/spectroclusters/workloads/pod
Retrieves specified workspace clusters workload pods
Request
Path Parameters
Header Parameters
Scope the request to the specified project uid
- application/json
Body
filter
object
Workspace workloads filter
Responses
- 200
An array of clusters workload pods
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
Array [
]
Array [
]
Array [
]
]
]
clusters
object[]
metadata
object
Object for which the resource is related
Possible values: [spectrocluster
, machine
, cloudconfig
, clusterprofile
, pack
, appprofile
, appdeployment
, edgehost
]
pods
object[]
metadata
object
Cluster workload pod metadata
associatedRefs
object[]
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
entity
object
Cluster workload ref
labels
object
spec
object
Cluster workload pod spec
containers
object[]
resources
object
Cluster workload pod container resources
limits
object
Cluster workload pod container resource
requests
object
Cluster workload pod container resource
volumes
object[]
status
object
Cluster workload pod status
containers
object[]
state
object
Cluster workload pod container state
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
metadata
object
ObjectMeta input entity for object creation
annotations
object
Annotations are system generated key value metadata for the resource. As an input certain annotations like description can be set.
labels
object
Labels are key value data to organize and categorize resources. Providing spectro__tag as value for a label is considered as a kubernetes compliant tag
Name of the resource.
{
"clusters": [
{
"metadata": {
"kind": "spectrocluster",
"name": "string",
"uid": "string"
},
"pods": [
{
"metadata": {
"associatedRefs": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"creationTimestamp": "2024-04-16T17:49:01.022Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"machineUid": "string",
"namespace": "string",
"nodename": "string"
},
"spec": {
"containers": [
{
"image": "string",
"name": "string",
"resources": {
"limits": {
"cpu": 0,
"cpuUnit": "string",
"memory": 0,
"memoryUnit": "string"
},
"requests": {
"cpu": 0,
"cpuUnit": "string",
"memory": 0,
"memoryUnit": "string"
}
}
}
],
"volumes": [
{
"name": "string"
}
]
},
"status": {
"containers": [
{
"image": "string",
"name": "string",
"ready": true,
"restartCount": 0,
"started": true,
"state": {
"exitCode": 0,
"finishedAt": "2024-04-16T17:49:01.022Z",
"reason": "string",
"startedAt": "2024-04-16T17:49:01.022Z",
"state": "string"
}
}
],
"phase": "string",
"podIp": "string",
"qosClass": "string"
}
}
]
}
],
"metadata": {
"annotations": {},
"labels": {},
"name": "string"
}
}