{ "opencollection": "1.0.0", "info": { "name": "Kubernetes Autoscaling Workloads API", "version": "v1.32.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Workloads", "type": "folder" }, "items": [ { "info": { "name": "Kubernetes List pods in a namespace", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "labelSelector", "value": "", "type": "query", "description": "Selector expression to filter resources by label. Supports equality (=, ==, !=), set-based (in, notin, exists) operations. Example: app=nginx,tier=frontend" }, { "name": "fieldSelector", "value": "", "type": "query", "description": "Selector expression to filter resources by field values. Supports equality (=, ==, !=) on specific fields. Example: status.phase=Running,spec.nodeName=node1" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of resources to return in a single response. Use with the continue parameter to paginate through large result sets." }, { "name": "continue", "value": "", "type": "query", "description": "Pagination token returned in a previous response's metadata.continue field. Use to retrieve the next page of results." }, { "name": "resourceVersion", "value": "", "type": "query", "description": "When specified with a watch call, shows changes that occur after the specified resourceVersion. When specified in a list request, returns results at least as new as the specified resourceVersion." }, { "name": "watch", "value": "", "type": "query", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion to watch from a specific version." } ] }, "docs": "Returns a list of all pods in the specified namespace. Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. Each pod runs one or more containers." }, { "info": { "name": "Kubernetes Create a pod", "type": "http" }, "http": { "method": "POST", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new pod in the specified namespace. The API server schedules the pod to a node based on resource requirements, node selectors, affinity rules, and available capacity." }, { "info": { "name": "Kubernetes Get a pod", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ] }, "docs": "Returns the specified pod object including its current phase, container statuses, resource allocations, and scheduling information." }, { "info": { "name": "Kubernetes Replace a pod", "type": "http" }, "http": { "method": "PUT", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Replaces the specified pod with the provided definition. Note that many pod fields are immutable after creation; use Deployments for managing pod lifecycle and updates." }, { "info": { "name": "Kubernetes Delete a pod", "type": "http" }, "http": { "method": "DELETE", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." }, { "name": "gracePeriodSeconds", "value": "", "type": "query", "description": "Duration in seconds to wait before forcefully terminating the resource. Defaults to the resource's terminationGracePeriodSeconds setting." } ] }, "docs": "Deletes the specified pod. By default, Kubernetes sends SIGTERM to the container and waits for the grace period before forcefully terminating it. Running pods will be restarted by their controller (e.g. Deployment)." }, { "info": { "name": "Kubernetes Read pod logs", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/api/v1/namespaces/:namespace/pods/:name/log", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." }, { "name": "container", "value": "", "type": "query", "description": "Name of the container to read logs from. Defaults to only container if there is only one, otherwise required." }, { "name": "follow", "value": "", "type": "query", "description": "Whether to stream log output. If false, returns current log snapshot." }, { "name": "tailLines", "value": "", "type": "query", "description": "Number of lines from the end of the log to retrieve." }, { "name": "sinceSeconds", "value": "", "type": "query", "description": "Only return logs newer than a relative duration in seconds." } ] }, "docs": "Returns the log output from a container in the specified pod. Supports streaming with the follow parameter, filtering by timestamps, and reading from specific containers in multi-container pods." }, { "info": { "name": "Kubernetes List deployments in a namespace", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "labelSelector", "value": "", "type": "query", "description": "Selector expression to filter resources by label. Supports equality (=, ==, !=), set-based (in, notin, exists) operations. Example: app=nginx,tier=frontend" }, { "name": "fieldSelector", "value": "", "type": "query", "description": "Selector expression to filter resources by field values. Supports equality (=, ==, !=) on specific fields. Example: status.phase=Running,spec.nodeName=node1" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of resources to return in a single response. Use with the continue parameter to paginate through large result sets." }, { "name": "watch", "value": "", "type": "query", "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion to watch from a specific version." } ] }, "docs": "Returns a list of all deployments in the specified namespace. Deployments provide declarative updates for Pods and ReplicaSets, enabling rolling updates, rollbacks, and scaling of stateless applications." }, { "info": { "name": "Kubernetes Create a deployment", "type": "http" }, "http": { "method": "POST", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new deployment in the specified namespace. Deployments manage a set of identical pods based on a pod template and ensure the desired number of replicas are running at all times." }, { "info": { "name": "Kubernetes Get a deployment", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ] }, "docs": "Returns the specified deployment including its current rollout status, desired replica count, available replicas, and update strategy." }, { "info": { "name": "Kubernetes Replace a deployment", "type": "http" }, "http": { "method": "PUT", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Replaces the specified deployment configuration. Updating the pod template spec triggers a rolling update of the managed pods according to the deployment's update strategy." }, { "info": { "name": "Kubernetes Delete a deployment", "type": "http" }, "http": { "method": "DELETE", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments/:name", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ] }, "docs": "Deletes the specified deployment and its managed ReplicaSet and pods. The pods are terminated gracefully according to the configured termination grace period." }, { "info": { "name": "Kubernetes Get deployment scale", "type": "http" }, "http": { "method": "GET", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments/:name/scale", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ] }, "docs": "Returns the current scale subresource for the specified deployment, including desired and actual replica counts." }, { "info": { "name": "Kubernetes Scale a deployment", "type": "http" }, "http": { "method": "PUT", "url": "https://kubernetes.default.svc/apis/apps/v1/namespaces/:namespace/deployments/:name/scale", "params": [ { "name": "namespace", "value": "", "type": "path", "description": "The namespace name to scope the request to." }, { "name": "name", "value": "", "type": "path", "description": "The name of the resource to operate on." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates the replica count of the specified deployment by replacing the scale subresource. The deployment controller adjusts the number of running pods to match the new desired replica count." } ] } ], "bundled": true }