Retrieves specified cluster workloads
POST/v1/dashboard/spectroclusters/:uid/workloads
Retrieves specified cluster workloads
Request
Path Parameters
Header Parameters
Scope the request to the specified project uid
- application/json
Body
filter
object
Cluster workloads filter
Responses
- 200
An array of cluster workloads
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Array [
]
Array [
]
Array [
]
Array [
Array [
]
]
Array [
Array [
]
Array [
]
Array [
]
Array [
]
]
Array [
Array [
]
]
Array [
]
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.
spec
object
Cluster workload spec
clusterroleBindings
object[]
metadata
object
Cluster workload metadata
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 RBAC binding
role
object
Cluster role ref
Possible values: [Role
, ClusterRole
]
subjects
object[]
Possible values: [User
, Group
, ServiceAccount
]
Possible values: [RoleBinding
, ClusterRoleBinding
]
cronJobs
object[]
metadata
object
Cluster workload metadata
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 cronjob spec
status
object
Cluster workload cronjob status
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.
daemonSets
object[]
metadata
object
Cluster workload metadata
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
status
object
Cluster workload daemonset status
deployments
object[]
metadata
object
Cluster workload metadata
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
status
object
Cluster workload deployment status
replicas
object
Cluster workload replica status
jobs
object[]
metadata
object
Cluster workload metadata
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
status
object
Cluster workload job status
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.
conditions
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.
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.
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.
roleBindings
object[]
metadata
object
Cluster workload metadata
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 RBAC binding
role
object
Cluster role ref
Possible values: [Role
, ClusterRole
]
subjects
object[]
Possible values: [User
, Group
, ServiceAccount
]
Possible values: [RoleBinding
, ClusterRoleBinding
]
statefulSets
object[]
metadata
object
Cluster workload metadata
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
status
object
Cluster workload statefulset status
replicas
object
Cluster workload replica status
{
"metadata": {
"annotations": {},
"labels": {},
"name": "string"
},
"spec": {
"clusterroleBindings": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.967Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"namespace": "string",
"role": {
"kind": "Role",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "User"
}
],
"type": "RoleBinding"
}
}
],
"cronJobs": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.967Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"schedule": "string"
},
"status": {
"lastScheduleTime": "2024-04-16T17:49:00.967Z"
}
}
],
"daemonSets": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.967Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"available": 0,
"currentScheduled": 0,
"desiredScheduled": 0,
"misScheduled": 0,
"ready": 0,
"updatedScheduled": 0
}
}
],
"deployments": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.967Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"replicas": {
"available": 0,
"ready": 0,
"total": 0,
"updated": 0
}
}
}
],
"jobs": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.967Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"completionTime": "2024-04-16T17:49:00.967Z",
"conditions": [
{
"lastTransitionTime": "2024-04-16T17:49:00.968Z",
"lastUpdateTime": "2024-04-16T17:49:00.968Z",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"startTime": "2024-04-16T17:49:00.968Z",
"succeeded": 0
}
}
],
"pods": [
{
"metadata": {
"associatedRefs": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"creationTimestamp": "2024-04-16T17:49:00.968Z",
"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:00.968Z",
"reason": "string",
"startedAt": "2024-04-16T17:49:00.968Z",
"state": "string"
}
}
],
"phase": "string",
"podIp": "string",
"qosClass": "string"
}
}
],
"roleBindings": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.968Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"namespace": "string",
"role": {
"kind": "Role",
"name": "string"
},
"subjects": [
{
"name": "string",
"namespace": "string",
"type": "User"
}
],
"type": "RoleBinding"
}
}
],
"statefulSets": [
{
"metadata": {
"creationTimestamp": "2024-04-16T17:49:00.968Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"replicas": {
"available": 0,
"ready": 0,
"total": 0,
"updated": 0
}
}
}
]
}
}