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 is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations
labels
object
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels
Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names
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-07-02T18:20:58.006Z",
"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-07-02T18:20:58.007Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"spec": {
"schedule": "string"
},
"status": {
"lastScheduleTime": "2024-07-02T18:20:58.007Z"
}
}
],
"daemonSets": [
{
"metadata": {
"creationTimestamp": "2024-07-02T18:20:58.007Z",
"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-07-02T18:20:58.007Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"replicas": {
"available": 0,
"ready": 0,
"total": 0,
"updated": 0
}
}
}
],
"jobs": [
{
"metadata": {
"creationTimestamp": "2024-07-02T18:20:58.007Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"completionTime": "2024-07-02T18:20:58.007Z",
"conditions": [
{
"lastTransitionTime": "2024-07-02T18:20:58.007Z",
"lastUpdateTime": "2024-07-02T18:20:58.007Z",
"message": "string",
"reason": "string",
"status": "string",
"type": "string"
}
],
"startTime": "2024-07-02T18:20:58.007Z",
"succeeded": 0
}
}
],
"pods": [
{
"metadata": {
"associatedRefs": [
{
"kind": "string",
"name": "string",
"uid": "string"
}
],
"creationTimestamp": "2024-07-02T18:20:58.007Z",
"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-07-02T18:20:58.007Z",
"reason": "string",
"startedAt": "2024-07-02T18:20:58.007Z",
"state": "string"
}
}
],
"phase": "string",
"podIp": "string",
"qosClass": "string"
}
}
],
"roleBindings": [
{
"metadata": {
"creationTimestamp": "2024-07-02T18:20:58.007Z",
"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-07-02T18:20:58.007Z",
"entity": {
"kind": "string",
"name": "string",
"uid": "string"
},
"labels": {},
"namespace": "string"
},
"status": {
"replicas": {
"available": 0,
"ready": 0,
"total": 0,
"updated": 0
}
}
}
]
}
}