Files
kubesphere/api/ks-openapi-spec/swagger.json
2022-05-16 16:16:36 +08:00

22289 lines
737 KiB
JSON

{
"swagger": "2.0",
"info": {
"description": "KubeSphere OpenAPI",
"title": "KubeSphere",
"contact": {
"name": "KubeSphere",
"url": "https://kubesphere.io/",
"email": "kubesphere@yunify.com"
},
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "v0.0.0",
"x-taggroups": [
{
"name": "Authentication",
"tags": [
"Authentication"
]
},
{
"name": "Identity Management",
"tags": [
"User"
]
},
{
"name": "Access Management",
"tags": [
"Cluster Member",
"Workspace Member",
"DevOps Project Member",
"Namespace Member",
"Global Role",
"Cluster Role",
"Workspace Role",
"DevOps Project Role",
"Namespace Role"
]
},
{
"name": "Multi-tenancy",
"tags": [
"Workspace",
"Namespace",
"User's Resources"
]
},
{
"name": "Multi-cluster",
"tags": [
"Multi-cluster"
]
},
{
"name": "Resources",
"tags": [
"Cluster Resources",
"Namespace Resources"
]
},
{
"name": "App Store",
"tags": [
"App Instance",
"App Template",
"Category",
"Attachment",
"Repository",
"App Management"
]
},
{
"name": "Other",
"tags": [
"Docker Registry",
"Git",
"Toolbox",
"Terminal"
]
},
{
"name": "DevOps",
"tags": [
"DevOps Project",
"DevOps Credential",
"DevOps Pipeline",
"DevOps Project Member",
"DevOps Webhook",
"DevOps Jenkinsfile",
"DevOps Scm",
"Jenkins"
]
},
{
"name": "Monitoring",
"tags": [
"Cluster Metrics",
"Node Metrics",
"Namespace Metrics",
"Workload Metrics",
"Pod Metrics",
"Container Metrics",
"Workspace Metrics",
"Component Metrics",
"Component Status"
]
},
{
"name": "Logging",
"tags": [
"Log Query"
]
},
{
"name": "Events",
"tags": [
"Events Query"
]
},
{
"name": "Auditing",
"tags": [
"Auditing Query"
]
},
{
"name": "Network",
"tags": [
"Network Topology"
]
}
]
},
"paths": {
"/kapis/alerting.kubesphere.io/v2alpha1/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the alerts of the cluster-level custom alerting rules",
"operationId": "handleListCustomRulesAlerts",
"parameters": [
{
"type": "string",
"description": "state, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/builtin/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the alerts of the builtin(non-custom) rules",
"operationId": "handleListBuiltinRulesAlerts",
"parameters": [
{
"type": "string",
"description": "state, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/builtin/rules": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the builtin(non-custom) alerting rules",
"operationId": "handleListBuiltinAlertingRules",
"parameters": [
{
"type": "string",
"description": "rule name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "state of a rule based on its alerts, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"description": "health state of a rule based on the last execution, one of `ok`, `err`, `unknown`",
"name": "health",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "string",
"description": "sort field, one of `name`, `lastEvaluation`, `evaluationTime`",
"name": "sort_field",
"in": "query"
},
{
"type": "string",
"description": "sort type, one of `asc`, `desc`",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRuleList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/builtin/rules/{rule_id}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "get the builtin(non-custom) alerting rule with specified id",
"operationId": "handleGetBuiltinAlertingRule",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRule"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/builtin/rules/{rule_id}/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the alerts of the builtin(non-custom) alerting rule with the specified id",
"operationId": "handleListBuiltinRuleAlerts",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/bulkrules": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "create or update cluster-level custom alerting rules in bulk",
"operationId": "handleCreateOrUpdateCustomAlertingRules",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.BulkResponse"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/namespaces/{namespace}/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the alerts of the custom alerting rules in the specified namespace.",
"operationId": "handleListCustomRulesAlerts",
"parameters": [
{
"type": "string",
"description": "state, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/namespaces/{namespace}/bulkrules": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "create or update custom alerting rules in bulk in the specified namespace",
"operationId": "handleCreateOrUpdateCustomAlertingRules",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.BulkResponse"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/namespaces/{namespace}/rules": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the custom alerting rules in the specified namespace",
"operationId": "handleListCustomAlertingRules",
"parameters": [
{
"type": "string",
"description": "rule name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "state of a rule based on its alerts, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"description": "health state of a rule based on the last execution, one of `ok`, `err`, `unknown`",
"name": "health",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "string",
"description": "sort field, one of `name`, `lastEvaluation`, `evaluationTime`",
"name": "sort_field",
"in": "query"
},
{
"type": "string",
"description": "sort type, one of `asc`, `desc`",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRuleList"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "create a custom alerting rule in the specified namespace",
"operationId": "handleCreateCustomAlertingRule",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "delete multiple custom alerting rules in the specified namespace",
"operationId": "handleDeleteCustomAlertingRules",
"parameters": [
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "rule name",
"name": "name",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.BulkResponse"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/namespaces/{namespace}/rules/{rule_name}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "get the custom alerting rule with the specified name in the specified namespace",
"operationId": "handleGetCustomAlertingRule",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRule"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "update the custom alerting rule with the specified name in the specified namespace",
"operationId": "handleUpdateCustomAlertingRule",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "string"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "delete the custom alerting rule with the specified rule name in the specified namespace",
"operationId": "handleDeleteCustomAlertingRule",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/namespaces/{namespace}/rules/{rule_name}/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "get the alerts of the custom alerting rule with the specified name in the specified namespace",
"operationId": "handleListCustomRuleAlerts",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/rules": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the cluster-level custom alerting rules",
"operationId": "handleListCustomAlertingRules",
"parameters": [
{
"type": "string",
"description": "rule name",
"name": "name",
"in": "query"
},
{
"type": "string",
"description": "state of a rule based on its alerts, one of `firing`, `pending`, `inactive`",
"name": "state",
"in": "query"
},
{
"type": "string",
"description": "health state of a rule based on the last execution, one of `ok`, `err`, `unknown`",
"name": "health",
"in": "query"
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "label filters, concatenating multiple filters with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "label_filters",
"in": "query"
},
{
"type": "string",
"description": "sort field, one of `name`, `lastEvaluation`, `evaluationTime`",
"name": "sort_field",
"in": "query"
},
{
"type": "string",
"description": "sort type, one of `asc`, `desc`",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"default": 1,
"description": "page of the result set",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "limit size of the result set",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRuleList"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "create a cluster-level custom alerting rule",
"operationId": "handleCreateCustomAlertingRule",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
],
"responses": {
"200": {
"description": "ok"
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "delete multiple cluster-level custom alerting rules",
"operationId": "handleDeleteCustomAlertingRules",
"parameters": [
{
"type": "array",
"items": {
"type": "string"
},
"collectionFormat": "multi",
"description": "rule name",
"name": "name",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.BulkResponse"
}
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/rules/{rule_name}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "get the cluster-level custom alerting rule with the specified name",
"operationId": "handleGetCustomAlertingRule",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRule"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "update the cluster-level custom alerting rule with the specified name",
"operationId": "handleUpdateCustomAlertingRule",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v2alpha1.PostableAlertingRule"
}
}
],
"responses": {
"200": {
"description": "ok"
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "delete the cluster-level custom alerting rule with the specified name",
"operationId": "handleDeleteCustomAlertingRule",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/alerting.kubesphere.io/v2alpha1/rules/{rule_name}/alerts": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Alerting"
],
"summary": "list the alerts of the cluster-level custom alerting rule with the specified name",
"operationId": "handleListCustomRuleAlerts",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v2alpha1.AlertList"
}
}
}
}
},
"/kapis/cluster.kubesphere.io/v1alpha1/clusters/validation": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Multi-cluster"
],
"operationId": "validateCluster",
"parameters": [
{
"description": "cluster specification",
"name": "cluster",
"in": "body",
"required": true
}
],
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/cluster.kubesphere.io/v1alpha1/clusters/{cluster}/agent/deployment": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Multi-cluster"
],
"summary": "Return deployment yaml for cluster agent.",
"operationId": "generateAgentDeployment",
"parameters": [
{
"type": "string",
"description": "Name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/cluster.kubesphere.io/v1alpha1/clusters/{cluster}/kubeconfig": {
"put": {
"produces": [
"application/json"
],
"tags": [
"Multi-cluster"
],
"summary": "Update cluster kubeconfig.",
"operationId": "updateKubeConfig",
"parameters": [
{
"type": "string",
"description": "Name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/devops.kubesphere.io/v1alpha2/{path}": {
"get": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"put": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"post": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"delete": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"patch": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/devops.kubesphere.io/v1alpha3/{path}": {
"get": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"put": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"post": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"delete": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"patch": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/gitops.kubesphere.io/v1alpha1/{path}": {
"get": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"put": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"post": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"delete": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
},
"patch": {
"produces": [
"application/json"
],
"operationId": "handler",
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/clustermembers": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Member"
],
"summary": "List all members in cluster.",
"operationId": "ListClusterMembers",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Cluster Member"
],
"summary": "Add members to current cluster in bulk.",
"operationId": "CreateClusterMembers",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/clustermembers/{clustermember}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Member"
],
"summary": "Retrieve the cluster role of the specified member.",
"operationId": "DescribeClusterMember",
"parameters": [
{
"type": "string",
"description": "cluster member's username",
"name": "clustermember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Cluster Member"
],
"summary": "Update the cluster role bind of the member.",
"operationId": "UpdateClusterMember",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
},
{
"type": "string",
"description": "cluster member's username",
"name": "clustermember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Cluster Member"
],
"summary": "Delete a member from current cluster.",
"operationId": "RemoveClusterMember",
"parameters": [
{
"type": "string",
"description": "cluster member's username",
"name": "clustermember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/clustermembers/{clustermember}/clusterroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Retrieve user's role templates in cluster.",
"operationId": "RetrieveMemberRoleTemplates",
"parameters": [
{
"type": "string",
"description": "cluster member's username",
"name": "clustermember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/clusterroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "List all cluster roles.",
"operationId": "ListClusterRoles",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Create cluster role.",
"operationId": "CreateClusterRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/clusterroles/{clusterrole}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Retrieve cluster role details.",
"operationId": "DescribeClusterRole",
"parameters": [
{
"type": "string",
"description": "cluster role name",
"name": "clusterrole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Update cluster role.",
"operationId": "UpdateClusterRole",
"parameters": [
{
"type": "string",
"description": "cluster role name",
"name": "clusterrole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Delete cluster role.",
"operationId": "DeleteClusterRole",
"parameters": [
{
"type": "string",
"description": "cluster role name",
"name": "clusterrole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"Cluster Role"
],
"summary": "Patch cluster role.",
"operationId": "PatchClusterRole",
"parameters": [
{
"type": "string",
"description": "cluster role name",
"name": "clusterrole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.ClusterRole"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/devops/{devops}/members": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Member"
],
"summary": "List all members in the specified devops project.",
"operationId": "ListNamespaceMembers",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Member"
],
"summary": "Add members to the DevOps project in bulk.",
"operationId": "CreateNamespaceMembers",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
},
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/devops/{devops}/members/{member}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Member"
],
"summary": "Retrieve devops project member details.",
"operationId": "DescribeNamespaceMember",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "devops project member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Member"
],
"summary": "Update the role bind of the member.",
"operationId": "UpdateNamespaceMember",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
},
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "devops project member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Member"
],
"summary": "Delete a member from the DevOps project.",
"operationId": "RemoveNamespaceMember",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "devops project member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/devops/{devops}/members/{member}/roles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Retrieve member's role templates in devops project.",
"operationId": "RetrieveMemberRoleTemplates",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "devops project member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/devops/{devops}/roles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "List all roles in the specified devops project.",
"operationId": "ListRoles",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Create role in the specified devops project.",
"operationId": "CreateNamespaceRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
},
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/devops/{devops}/roles/{role}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Retrieve devops project role details.",
"operationId": "DescribeNamespaceRole",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Update devops project role.",
"operationId": "UpdateNamespaceRole",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Delete role in the specified devops project.",
"operationId": "DeleteNamespaceRole",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project Role"
],
"summary": "Patch devops project role.",
"operationId": "PatchNamespaceRole",
"parameters": [
{
"type": "string",
"description": "devops project name",
"name": "devops",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/globalroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "List all global roles.",
"operationId": "ListGlobalRoles",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Create global role.",
"operationId": "CreateGlobalRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/globalroles/{globalrole}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Retrieve global role details.",
"operationId": "DescribeGlobalRole",
"parameters": [
{
"type": "string",
"description": "global role name",
"name": "globalrole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Update global role.",
"operationId": "UpdateGlobalRole",
"parameters": [
{
"type": "string",
"description": "global role name",
"name": "globalrole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Delete global role.",
"operationId": "DeleteGlobalRole",
"parameters": [
{
"type": "string",
"description": "global role name",
"name": "globalrole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Patch global role.",
"operationId": "PatchGlobalRole",
"parameters": [
{
"type": "string",
"description": "global role name",
"name": "globalrole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.GlobalRole"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/login": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "KubeSphere APIs support token-based authentication via the Authtoken request header. The POST Login API is used to retrieve the authentication token. After the authentication token is obtained, it must be inserted into the Authtoken header for all requests.",
"operationId": "login",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/oauth.LoginRequest"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/oauth.Token"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/members": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Member"
],
"summary": "List all members in the specified namespace.",
"operationId": "ListNamespaceMembers",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespace Member"
],
"summary": "Add members to the namespace in bulk.",
"operationId": "CreateNamespaceMembers",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/members/{member}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Member"
],
"summary": "Retrieve the role of the specified member.",
"operationId": "DescribeNamespaceMember",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Namespace Member"
],
"summary": "Update the role bind of the member.",
"operationId": "UpdateNamespaceMember",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Member"
],
"summary": "Delete a member from the namespace.",
"operationId": "RemoveNamespaceMember",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/members/{member}/roles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Retrieve member's role templates in namespace.",
"operationId": "RetrieveMemberRoleTemplates",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace member's username",
"name": "member",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/rolebindings": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Create rolebinding in the specified namespace.",
"operationId": "CreateRoleBinding",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.RoleBinding"
}
}
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.RoleBinding"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/rolebindings/{rolebinding}": {
"delete": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Delete rolebinding under namespace.",
"operationId": "DeleteRoleBinding",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "groupbinding name",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "groupbinding name",
"name": "rolebinding",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/roles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "List all roles in the specified namespace.",
"operationId": "ListRoles",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Create role in the specified namespace.",
"operationId": "CreateNamespaceRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
},
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/namespaces/{namespace}/roles/{role}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Retrieve role details.",
"operationId": "DescribeNamespaceRole",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Update namespace role.",
"operationId": "UpdateNamespaceRole",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Delete role in the specified namespace.",
"operationId": "DeleteNamespaceRole",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"Namespace Role"
],
"summary": "Patch namespace role.",
"operationId": "PatchNamespaceRole",
"parameters": [
{
"type": "string",
"description": "namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "role name",
"name": "role",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Role"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/users": {
"get": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "List all users.",
"operationId": "ListUsers",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Create a global user account.",
"operationId": "CreateUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/users/{user}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Retrieve user details.",
"operationId": "DescribeUser",
"parameters": [
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Update user profile.",
"operationId": "UpdateUser",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
},
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Delete the specified user.",
"operationId": "DeleteUser",
"parameters": [
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/users/{user}/globalroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Global Role"
],
"summary": "Retrieve user's global role templates.",
"operationId": "RetrieveMemberRoleTemplates",
"parameters": [
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/users/{user}/loginrecords": {
"get": {
"produces": [
"application/json"
],
"tags": [
"User's Resources"
],
"summary": "List login records of the specified user.",
"operationId": "ListUserLoginRecords",
"parameters": [
{
"type": "string",
"description": "username of the user",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/users/{user}/password": {
"put": {
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "Reset password of the specified user.",
"operationId": "ModifyPassword",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.PasswordReset"
}
},
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/groupbindings": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Retrieve group's members in the workspace.",
"operationId": "ListGroupBindings",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Create GroupBinding to add a user to the group",
"operationId": "CreateGroupBinding",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.GroupMember"
}
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.GroupBinding"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/groupbindings/{groupbinding}": {
"delete": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Delete GroupBinding to remove user from the group.",
"operationId": "DeleteGroupBinding",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "groupbinding name",
"name": "groupbinding",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/groups": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "List groups of the specified workspace.",
"operationId": "ListWorkspaceGroups",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Create Group",
"operationId": "CreateGroup",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/groups/{group}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Retrieve group details.",
"operationId": "DescribeGroup",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Update Group",
"operationId": "UpdateGroup",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Delete group.",
"operationId": "DeleteGroup",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Patch Group",
"operationId": "PatchGroup",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Group"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/rolebindings": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Retrieve group's rolebindings of all projects in the workspace.",
"operationId": "ListGroupRoleBindings",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacemembers": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Member"
],
"summary": "List all members in the specified workspace.",
"operationId": "ListWorkspaceMembers",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Workspace Member"
],
"summary": "Add members to current cluster in bulk.",
"operationId": "CreateWorkspaceMembers",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
},
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacemembers/{workspacemember}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Member"
],
"summary": "Retrieve the workspace role of the specified member.",
"operationId": "DescribeWorkspaceMember",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace member's username",
"name": "workspacemember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.User"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Workspace Member"
],
"summary": "Update the workspace role bind of the member.",
"operationId": "UpdateWorkspaceMember",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
},
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace member's username",
"name": "workspacemember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Member"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Workspace Member"
],
"summary": "Delete a member from the workspace.",
"operationId": "RemoveWorkspaceMember",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace member's username",
"name": "workspacemember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacemembers/{workspacemember}/workspaceroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Retrieve member's role templates in workspace.",
"operationId": "RetrieveMemberRoleTemplates",
"parameters": [
{
"type": "string",
"description": "workspace",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace member's username",
"name": "workspacemember",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacerolebindings": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Retrieve group's workspacerolebindings of the workspace.",
"operationId": "ListGroupWorkspaceRoleBindings",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "group name",
"name": "group",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Create group's workspacerolebindings of the workspace.",
"operationId": "CreateWorkspaceRoleBinding",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.WorkspaceRoleBinding"
}
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.WorkspaceRoleBinding"
}
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacerolebindings/{rolebinding}": {
"delete": {
"produces": [
"application/json"
],
"tags": [
"Group"
],
"summary": "Delete workspacerolebinding.",
"operationId": "DeleteWorkspaceRoleBinding",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "groupbinding name",
"name": "rolebinding",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspaceroles": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "List all workspace roles.",
"operationId": "ListWorkspaceRoles",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Create workspace role.",
"operationId": "CreateWorkspaceRole",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
},
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
}
}
}
},
"/kapis/iam.kubesphere.io/v1alpha2/workspaces/{workspace}/workspaceroles/{workspacerole}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Retrieve workspace role details.",
"operationId": "DescribeWorkspaceRole",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace role name",
"name": "workspacerole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Update workspace role.",
"operationId": "UpdateWorkspaceRole",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace role name",
"name": "workspacerole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Delete workspace role.",
"operationId": "DeleteWorkspaceRole",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace role name",
"name": "workspacerole",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"produces": [
"application/json"
],
"tags": [
"Workspace Role"
],
"summary": "Patch workspace role.",
"operationId": "PatchWorkspaceRole",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspace role name",
"name": "workspacerole",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceRole"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/cluster": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Metrics"
],
"summary": "Get cluster-level metric data.",
"operationId": "handleClusterMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both cluster CPU usage and disk usage: `cluster_cpu_usage|cluster_disk_size_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/clusterdashboards/{grafanaDashboardName}/template": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Dashboard"
],
"summary": "Convert Grafana templates to KubeSphere clusterdashboards.",
"operationId": "handleGrafanaDashboardImport",
"parameters": [
{
"type": "string",
"description": "The name of the Grafana template to be converted",
"name": "grafanaDashboardName",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.ClusterDashboard"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/components/{component}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Metrics"
],
"summary": "Get component-level metric data of the specific system component.",
"operationId": "handleComponentMetricsQuery",
"parameters": [
{
"type": "string",
"description": "system component to monitor. One of etcd, apiserver, scheduler.",
"name": "component",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both etcd server list and total size of the underlying database: `etcd_server_list|etcd_mvcc_db_size`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/kubesphere": {
"get": {
"produces": [
"application/json"
],
"tags": [
"KubeSphere Metrics"
],
"summary": "Get platform-level metric data.",
"operationId": "handleKubeSphereMetricsQuery",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Metrics"
],
"summary": "Get namespace-level metric data of all namespaces.",
"operationId": "handleNamespaceMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both namespace CPU usage and memory usage: `namespace_cpu_usage|namespace_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The namespace filter consists of a regexp pattern. It specifies which namespace data to return. For example, the following filter matches both namespace test and kube-system: `test|kube-system`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort namespaces by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Metrics"
],
"summary": "Get namespace-level metric data of the specific namespace.",
"operationId": "handleNamespaceMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both namespace CPU usage and memory usage: `namespace_cpu_usage|namespace_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/dashboards/{grafanaDashboardName}/template": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Dashboard"
],
"summary": "Convert Grafana templates to KubeSphere dashboards.",
"operationId": "handleGrafanaDashboardImport",
"parameters": [
{
"type": "string",
"description": "The name of the Grafana template to be converted",
"name": "grafanaDashboardName",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.Dashboard"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/ingresses": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Ingress Metrics"
],
"summary": "Get Ingress-level metric data of the specific namespace's Ingresses.",
"operationId": "handleIngressMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The job name filter. Ingress could be served by multi Ingress controllers, The job filters metric from a specific controller.",
"name": "job",
"in": "query",
"required": true
},
{
"type": "string",
"description": "The pod name filter.",
"name": "pod",
"in": "query"
},
{
"type": "string",
"description": "The duration is the time window of Range Vector. The format is [0-9]+[smhdwy]. Defaults to 5m (i.e. 5 min).",
"name": "duration",
"in": "query"
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both PVC available and used inodes: `pvc_inodes_available|pvc_inodes_used`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The PVC filter consists of a regexp pattern. It specifies which PVC data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort PVCs by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/ingresses/{ingress}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Ingress Metrics"
],
"summary": "Get Ingress-level metric data of a specific Ingress. Navigate to the Ingress by the Ingress's namespace.",
"operationId": "handleIngressMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "ingress name.",
"name": "ingress",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The job name filter. Ingress could be served by multi Ingress controllers, The job filters metric from a specific controller.",
"name": "job",
"in": "query",
"required": true
},
{
"type": "string",
"description": "The pod filter.",
"name": "pod",
"in": "query"
},
{
"type": "string",
"description": "The duration is the time window of Range Vector. The format is [0-9]+[smhdwy]. Defaults to 5m (i.e. 5 min).",
"name": "duration",
"in": "query"
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both PVC available and used inodes: `pvc_inodes_available|pvc_inodes_used`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/persistentvolumeclaims": {
"get": {
"produces": [
"application/json"
],
"tags": [
"PVC Metrics"
],
"summary": "Get PVC-level metric data of the specific namespace's PVCs.",
"operationId": "handlePVCMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both PVC available and used inodes: `pvc_inodes_available|pvc_inodes_used`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The PVC filter consists of a regexp pattern. It specifies which PVC data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort PVCs by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/persistentvolumeclaims/{pvc}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"PVC Metrics"
],
"summary": "Get PVC-level metric data of a specific PVC. Navigate to the PVC by the PVC's namespace.",
"operationId": "handlePVCMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "PVC name.",
"name": "pvc",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both PVC available and used inodes: `pvc_inodes_available|pvc_inodes_used`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/pods": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of the specific namespace's pods.",
"operationId": "handlePodMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The pod filter consists of a regexp pattern. It specifies which pod data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort pods by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/pods/{pod}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of a specific pod. Navigate to the pod by the pod's namespace.",
"operationId": "handlePodMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Pod name.",
"name": "pod",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/pods/{pod}/containers": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Container Metrics"
],
"summary": "Get container-level metric data of a specific pod's containers. Navigate to the pod by the pod's namespace.",
"operationId": "handleContainerMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Pod name.",
"name": "pod",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both container CPU usage and memory usage: `container_cpu_usage|container_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The container filter consists of a regexp pattern. It specifies which container data to return. For example, the following filter matches container prometheus and prometheus-config-reloader: `prometheus|prometheus-config-reloader`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort containers by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/pods/{pod}/containers/{container}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Container Metrics"
],
"summary": "Get container-level metric data of a specific container. Navigate to the container by the pod name and the namespace.",
"operationId": "handleContainerMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Pod name.",
"name": "pod",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Container name.",
"name": "container",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both container CPU usage and memory usage: `container_cpu_usage|container_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/targets/labelsets": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "List all available labels and values of a metric within a specific time span.",
"operationId": "handleMetricLabelSetQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The name of the metric",
"name": "metric",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Start time of query. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query",
"required": true
},
{
"type": "string",
"description": "End time of query. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.MetricLabelSet"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/targets/metadata": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "Get metadata of metrics for the specific namespace.",
"operationId": "handleMetadataQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metadata"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/targets/query": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "Make an ad-hoc query in the specific namespace.",
"operationId": "handleAdhocQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The expression to be evaluated.",
"name": "expr",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metric"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/workloads": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workload Metrics"
],
"summary": "Get workload-level metric data of a specific namespace's workloads.",
"operationId": "handleWorkloadMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workload CPU usage and memory usage: `workload_cpu_usage|workload_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The workload filter consists of a regexp pattern. It specifies which workload data to return. For example, the following filter matches any workload whose name begins with prometheus: `prometheus.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort workloads by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/workloads/{kind}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workload Metrics"
],
"summary": "Get workload-level metric data of all workloads which belongs to a specific kind.",
"operationId": "handleWorkloadMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Workload kind. One of deployment, daemonset, statefulset.",
"name": "kind",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workload CPU usage and memory usage: `workload_cpu_usage|workload_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The workload filter consists of a regexp pattern. It specifies which workload data to return. For example, the following filter matches any workload whose name begins with prometheus: `prometheus.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort workloads by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/namespaces/{namespace}/workloads/{kind}/{workload}/pods": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of a specific workload's pods. Navigate to the workload by the namespace.",
"operationId": "handlePodMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Workload kind. One of deployment, daemonset, statefulset.",
"name": "kind",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Workload name.",
"name": "workload",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The pod filter consists of a regexp pattern. It specifies which pod data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort pods by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/nodes": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Node Metrics"
],
"summary": "Get node-level metric data of all nodes.",
"operationId": "handleNodeMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both node CPU usage and disk usage: `node_cpu_usage|node_disk_size_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The node filter consists of a regexp pattern. It specifies which node data to return. For example, the following filter matches both node i-caojnter and i-cmu82ogj: `i-caojnter|i-cmu82ogj`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort nodes by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "The query type. This field can be set to 'rank' for node ranking query or '' for others. Defaults to ''.",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/nodes/{node}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Node Metrics"
],
"summary": "Get node-level metric data of the specific node.",
"operationId": "handleNodeMetricsQuery",
"parameters": [
{
"type": "string",
"description": "Node name.",
"name": "node",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both node CPU usage and disk usage: `node_cpu_usage|node_disk_size_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/nodes/{node}/pods": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of all pods on a specific node.",
"operationId": "handlePodMetricsQuery",
"parameters": [
{
"type": "string",
"description": "Node name.",
"name": "node",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The pod filter consists of a regexp pattern. It specifies which pod data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Specifies a namespaced resources filter in `\u003cnamespace\u003e/\u003cpod_name\u003e|\u003cnamespace\u003e/\u003cpod_name\u003e` format. For example, a namespaced resources filter like `ns1/pod1|ns2/pod2` will request the data of pod1 in ns1 together with pod2 in ns2.",
"name": "namespaced_resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort pods by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/nodes/{node}/pods/{pod}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of a specific pod. Navigate to the pod by the node where it is scheduled. Deprecated: please use `/namespaces/{namespace}/pods/{pod}` or `/pods` instead.",
"operationId": "handlePodMetricsQuery",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "Node name.",
"name": "node",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Pod name.",
"name": "pod",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/pods": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Pod Metrics"
],
"summary": "Get pod-level metric data of the whole cluster's pods.",
"operationId": "handlePodMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both pod CPU usage and memory usage: `pod_cpu_usage|pod_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Specifies a namespaced resources filter in `\u003cnamespace\u003e/\u003cpod_name\u003e|\u003cnamespace\u003e/\u003cpod_name\u003e` format. For example, a namespaced resources filter like `ns1/pod1|ns2/pod2` will request the data of pod1 in ns1 together with pod2 in ns2.",
"name": "namespaced_resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort pods by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/storageclasses/{storageclass}/persistentvolumeclaims": {
"get": {
"produces": [
"application/json"
],
"tags": [
"PVC Metrics"
],
"summary": "Get PVC-level metric data of the specific storageclass's PVCs.",
"operationId": "handlePVCMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The name of the storageclass.",
"name": "storageclass",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both PVC available and used inodes: `pvc_inodes_available|pvc_inodes_used`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The PVC filter consists of a regexp pattern. It specifies which PVC data to return. For example, the following filter matches any pod whose name begins with redis: `redis.*`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort PVCs by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/targets/labelsets": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "List all available labels and values of a metric within a specific time span in the whole cluster.",
"operationId": "handleMetricLabelSetQuery",
"parameters": [
{
"type": "string",
"description": "The name of the metric",
"name": "metric",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Start time of query. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query",
"required": true
},
{
"type": "string",
"description": "End time of query. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.MetricLabelSet"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/targets/metadata": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "Get metadata of metrics in the whole cluster.",
"operationId": "handleMetadataQuery",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metadata"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/targets/query": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Custom Metrics"
],
"summary": "Make an ad-hoc query in the whole cluster.",
"operationId": "handleAdhocQuery",
"parameters": [
{
"type": "string",
"description": "The expression to be evaluated.",
"name": "expr",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metric"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/workspaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Metrics"
],
"summary": "Get workspace-level metric data of all workspaces.",
"operationId": "handleWorkspaceMetricsQuery",
"parameters": [
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workspace CPU usage and memory usage: `workspace_cpu_usage|workspace_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The workspace filter consists of a regexp pattern. It specifies which workspace data to return.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort workspaces by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/workspaces/{workspace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace Metrics"
],
"summary": "Get workspace-level metric data of a specific workspace.",
"operationId": "handleWorkspaceMetricsQuery",
"parameters": [
{
"type": "string",
"description": "Workspace name.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workspace CPU usage and memory usage: `workspace_cpu_usage|workspace_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Additional operations. Currently available types is statistics. It retrieves the total number of namespaces, devops projects, members and roles in this workspace at the moment.",
"name": "type",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/monitoring.kubesphere.io/v1alpha3/workspaces/{workspace}/namespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Metrics"
],
"summary": "Get namespace-level metric data of a specific workspace.",
"operationId": "handleNamespaceMetricsQuery",
"parameters": [
{
"type": "string",
"description": "Workspace name.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both namespace CPU usage and memory usage: `namespace_cpu_usage|namespace_memory_usage`. View available metrics at [kubesphere.io](https://docs.kubesphere.io/advanced-v2.0/zh-CN/api-reference/monitoring-metrics/).",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The namespace filter consists of a regexp pattern. It specifies which namespace data to return. For example, the following filter matches both namespace test and kube-system: `test|kube-system`.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort namespaces by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/network.kubesphere.io/v1alpha2/namespaces/{namespace}/topology": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Network Topology"
],
"summary": "Get the topology with specifying a namespace",
"operationId": "getNamespaceTopology",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.TopologyResponse"
}
}
}
}
},
"/kapis/network.kubesphere.io/v1alpha2/namespaces/{namespace}/topology/{node_id}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Network Topology"
],
"summary": "Get the topology with specifying a node id in the whole topology and specifying a namespace",
"operationId": "getNamespaceNodeTopology",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "id of the node in the whole topology",
"name": "node_id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.NodeResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all applications",
"operationId": "ListApplications",
"deprecated": true,
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List app templates",
"operationId": "ListApps",
"deprecated": true,
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create a new app template",
"operationId": "CreateApp",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppRequest"
}
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template",
"operationId": "DescribeApp",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersion"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified app template",
"operationId": "DeleteApp",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified app template",
"operationId": "ModifyApp",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyAppVersionRequest"
}
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/action": {
"post": {
"produces": [
"application/json"
],
"summary": "Perform recover or suspend operation on app",
"operationId": "DoAppAction",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/audits": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List audits information of the specific app template",
"operationId": "ListAppVersionAudits",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersionAudit"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Get active versions of app, can filter with these fields(version_id, app_id, name, owner, description, package_name, status, type), default return all active app versions",
"operationId": "ListAppVersions",
"deprecated": true,
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create a new app template version",
"operationId": "CreateAppVersion",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppVersionRequest"
}
},
{
"type": "string",
"description": "Validate format of package(pack by op tool)",
"name": "validate",
"in": "query"
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppVersionResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions/{version}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template version",
"operationId": "DescribeAppVersion",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersion"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified app template version",
"operationId": "DeleteAppVersion",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified app template version",
"operationId": "ModifyAppVersion",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyAppVersionRequest"
}
},
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions/{version}/action": {
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Perform submit or other operations on app",
"operationId": "DoAppVersionAction",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions/{version}/audits": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List audits information of version-specific app template",
"operationId": "ListAppVersionAudits",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersionAudit"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions/{version}/files": {
"get": {
"produces": [
"application/json"
],
"summary": "Get app template package files",
"operationId": "GetAppVersionFiles",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.GetAppVersionPackageFilesResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/apps/{app}/versions/{version}/package": {
"get": {
"produces": [
"application/json"
],
"tags": [
"App Template"
],
"summary": "Get packages of version-specific app",
"operationId": "GetAppVersionPackage",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.GetAppVersionPackageResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/attachments": {
"post": {
"consumes": [
"multipart/form-data"
],
"produces": [
"application/json"
],
"summary": "Create an attachment",
"operationId": "CreateAttachment",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Attachment"
}
}
}
}
},
"/kapis/openpitrix.io/v1/attachments/{attachment}": {
"get": {
"produces": [
"application/json"
],
"summary": "Get attachment by attachment id",
"operationId": "DescribeAttachment",
"parameters": [
{
"type": "string",
"description": "attachment id",
"name": "attachment",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Attachment"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"summary": "Delete one or multiple attachments, whose ids are separated by comma",
"operationId": "DeleteAttachments",
"parameters": [
{
"type": "string",
"description": "attachment id",
"name": "attachment",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/categories": {
"get": {
"produces": [
"application/json"
],
"summary": "List categories",
"operationId": "ListCategories",
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create app template category",
"operationId": "CreateCategory",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateCategoryRequest"
}
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateCategoryResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/categories/{category}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified category",
"operationId": "DescribeCategory",
"parameters": [
{
"type": "string",
"description": "category id",
"name": "category",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Category"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified category",
"operationId": "DeleteCategory",
"parameters": [
{
"type": "string",
"description": "category id",
"name": "category",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified category",
"operationId": "ModifyCategory",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyCategoryRequest"
}
},
{
"type": "string",
"description": "category id",
"name": "category",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/clusters/{cluster}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List all applications within the specified cluster",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"description": "the cluster of the project.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/repos": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List global repositories",
"operationId": "ListRepos",
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create a global repository, which is used to store package of app",
"operationId": "CreateRepo",
"parameters": [
{
"type": "string",
"description": "Validate repository",
"name": "validate",
"in": "query"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateRepoRequest"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateRepoResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/repos/{repo}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified global repository",
"operationId": "DescribeRepo",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Repo"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified global repository",
"operationId": "DeleteRepo",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified global repository",
"operationId": "ModifyRepo",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyRepoRequest"
}
},
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/repos/{repo}/action": {
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Start index repository event",
"operationId": "DoRepoAction",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.RepoActionRequest"
}
},
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/repos/{repo}/events": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Get global repository events",
"operationId": "ListRepoEvents",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/reviews": {
"get": {
"produces": [
"application/json"
],
"summary": "Get reviews of version-specific app",
"operationId": "ListReviews",
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersionReview"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List all applications within the specified workspace",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"description": "the workspace of the project.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List app templates in the specified workspace.",
"operationId": "ListApps",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create a new app template",
"operationId": "CreateApp",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppRequest"
}
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template",
"operationId": "DescribeApp",
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersion"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified app template",
"operationId": "DeleteApp",
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified app template",
"operationId": "ModifyApp",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyAppVersionRequest"
}
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}/action": {
"post": {
"produces": [
"application/json"
],
"summary": "Perform recover or suspend operation on app",
"operationId": "DoAppAction",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}/versions": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Get active versions of app, can filter with these fields(version_id, app_id, name, owner, description, package_name, status, type), default return all active app versions",
"operationId": "ListAppVersions",
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create a new app template version",
"operationId": "CreateAppVersion",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppVersionRequest"
}
},
{
"type": "string",
"description": "Validate format of package(pack by op tool)",
"name": "validate",
"in": "query"
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateAppVersionResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}/versions/{version}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template version",
"operationId": "DescribeAppVersion",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersion"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified app template version",
"operationId": "DeleteAppVersion",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified app template version",
"operationId": "ModifyAppVersion",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyAppVersionRequest"
}
},
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}/versions/{version}/action": {
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Perform submit or other operations on app",
"operationId": "DoAppVersionAction",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/apps/{app}/versions/{version}/audits": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List audits information of version-specific app template",
"operationId": "ListAppVersionAudits",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.AppVersionAudit"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/clusters/{cluster}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List all applications within the specified cluster",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"description": "the workspace of the project.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the cluster of the project.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/clusters/{cluster}/applications/{application}": {
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Delete the specified application",
"operationId": "DeleteApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the workspaces of the project",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/clusters/{cluster}/namespaces/{namespace}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List all applications within the specified namespace",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"description": "the workspace of the project.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Deploy a new application",
"operationId": "CreateApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateClusterRequest"
}
},
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/clusters/{cluster}/namespaces/{namespace}/applications/{application}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Describe the specified application of the namespace",
"operationId": "DescribeApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Application"
}
}
}
},
"post": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Upgrade application",
"operationId": "UpgradeApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.UpgradeClusterRequest"
}
},
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Delete the specified application",
"operationId": "DeleteApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Modify application",
"operationId": "ModifyApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyClusterAttributesRequest"
}
},
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/namespaces/{namespace}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List all applications within the specified namespace",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"description": "the name of the project.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Deploy a new application",
"operationId": "CreateApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateClusterRequest"
}
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/namespaces/{namespace}/applications/{application}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Describe the specified application of the namespace",
"operationId": "DescribeApplication",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Application"
}
}
}
},
"post": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Upgrade application",
"operationId": "UpgradeApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.UpgradeClusterRequest"
}
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Delete the specified application",
"operationId": "DeleteApplication",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the workspace of the project",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Modify application",
"operationId": "ModifyApplication",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyClusterAttributesRequest"
}
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/repos": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List repositories in the specified workspace",
"operationId": "ListRepos",
"parameters": [
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Create repository in the specified workspace, which is used to store package of app",
"operationId": "CreateRepo",
"parameters": [
{
"type": "string",
"description": "Validate repository",
"name": "validate",
"in": "query"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.CreateRepoRequest"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.CreateRepoResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/repos/{repo}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified repository in the specified workspace",
"operationId": "DescribeRepo",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Repo"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Delete the specified repository in the specified workspace",
"operationId": "DeleteRepo",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/json-patch+json",
"application/merge-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Patch the specified repository in the specified workspace",
"operationId": "ModifyRepo",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.ModifyRepoRequest"
}
},
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/repos/{repo}/action": {
"post": {
"produces": [
"application/json"
],
"summary": "Start index repository event",
"operationId": "DoRepoAction",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/openpitrix.RepoActionRequest"
}
},
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/openpitrix.io/v1/workspaces/{workspace}/repos/{repo}/events": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Get repository events",
"operationId": "ListRepoEvents",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all applications",
"operationId": "ListApplications",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/applications/{application}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Describe the specified application of the namespace",
"operationId": "DescribeApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmRelease"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/apps": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all apps",
"operationId": "ListApps",
"parameters": [
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/apps/{app}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template",
"operationId": "DescribeApp",
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmApplication"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/apps/{app}/versions": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all apps",
"operationId": "ListAppVersion",
"parameters": [
{
"type": "string",
"description": "the id of the app.",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/apps/{app}/versions/{version}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template version",
"operationId": "DescribeAppVersion",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmApplication"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/categories": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List categories",
"operationId": "ListCategories",
"parameters": [
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/categories/{category}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified category",
"operationId": "DescribeCategory",
"parameters": [
{
"type": "string",
"description": "category id",
"name": "category",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/openpitrix.Category"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/applications": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all applications within the specified workspace",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"description": "the name of the workspace.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/applications/{application} ": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Describe the specified application of the namespace",
"operationId": "DescribeApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmRelease"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/apps": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all apps within the specified workspace",
"operationId": "ListApps",
"parameters": [
{
"type": "string",
"description": "the name of the workspace.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/apps/{app}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template",
"operationId": "DescribeApp",
"parameters": [
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmApplication"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/apps/{app}/versions": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List all apps within the specified workspace",
"operationId": "ListAppVersion",
"parameters": [
{
"type": "string",
"description": "the name of the workspace.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the app.",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/apps/{app}/versions/{version}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified app template version",
"operationId": "DescribeAppVersion",
"parameters": [
{
"type": "string",
"description": "app template version id",
"name": "version",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app template id",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the workspace",
"name": "workspaces",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmApplication"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/clusters/{cluster}/namespaces/{namespace}/applications": {
"get": {
"produces": [
"application/json"
],
"summary": "List all applications within the specified namespace",
"operationId": "ListApplications",
"parameters": [
{
"type": "string",
"description": "the name of the namespace.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/clusters/{cluster}/namespaces/{namespace}/applications/{application}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Describe the specified application of the namespace",
"operationId": "DescribeApplication",
"parameters": [
{
"type": "string",
"description": "the name of the cluster.",
"name": "cluster",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the id of the application",
"name": "application",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmRelease"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/repos": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "List repositories in the specified workspace",
"operationId": "ListRepos",
"parameters": [
{
"type": "string",
"description": "the name of the workspace.",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/openpitrix.io/v2alpha1/workspaces/{workspace}/repos/{repo}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"OpenPitrix Resources"
],
"summary": "Describe the specified repository in the specified workspace",
"operationId": "DescribeRepo",
"parameters": [
{
"type": "string",
"description": "repo id",
"name": "repo",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.HelmRepo"
}
}
}
}
},
"/kapis/operations.kubesphere.io/v1alpha2/namespaces/{namespace}/jobs/{job}": {
"post": {
"produces": [
"application/json"
],
"summary": "Rerun job whether the job is complete or not",
"operationId": "handleJobReRun",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "job name",
"name": "job",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the namespace where the job runs in",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "action must be \"rerun\"",
"name": "action",
"in": "query"
},
{
"type": "string",
"description": "version of job, rerun when the version matches",
"name": "resourceVersion",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/abnormalworkloads": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Resources"
],
"summary": "get abnormal workloads' count of whole cluster",
"operationId": "handleGetNamespacedAbnormalWorkloads",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.Workloads"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/componenthealth": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "Get the health status of system components.",
"operationId": "handleGetSystemHealthStatus",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.HealthStatus"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/components": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "List the system components.",
"operationId": "handleGetComponents",
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ComponentStatus"
}
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/components/{component}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "Describe the specified system component.",
"operationId": "handleGetComponentStatus",
"parameters": [
{
"type": "string",
"description": "component name",
"name": "component",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.ComponentStatus"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/git/verify": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Git"
],
"summary": "Verify if the kubernetes secret has read access to the git repository",
"operationId": "handleVerifyGitCredential",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/git.AuthInfo"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/abnormalworkloads": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "get abnormal workloads' count of specified namespace",
"operationId": "handleGetNamespacedAbnormalWorkloads",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.Workloads"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/daemonsets/{daemonset}/revisions/{revision}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Get the specified daemonset revision",
"operationId": "handleGetDaemonSetRevision",
"parameters": [
{
"type": "string",
"description": "the name of the daemonset",
"name": "daemonset",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the namespace of the daemonset",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the revision of the daemonset",
"name": "revision",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.DaemonSet"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/deployments/{deployment}/revisions/{revision}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Get the specified deployment revision",
"operationId": "handleGetDeploymentRevision",
"parameters": [
{
"type": "string",
"description": "the name of deployment",
"name": "deployment",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the namespace of the deployment",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the revision of the deployment",
"name": "revision",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.ReplicaSet"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/quotas": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "get specified namespace's resource quota and usage",
"operationId": "handleGetNamespaceQuotas",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ResourceQuota"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/router": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List router of a specified project",
"operationId": "handleGetRouter",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Service"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Update a router for a specified project",
"operationId": "handleUpdateRouter",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Service"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Create a router for a specified project",
"operationId": "handleCreateRouter",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Service"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "List router of a specified project",
"operationId": "handleDeleteRouter",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Service"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/statefulsets/{statefulset}/revisions/{revision}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Get the specified statefulset revision",
"operationId": "handleGetStatefulSetRevision",
"parameters": [
{
"type": "string",
"description": "the name of the statefulset",
"name": "statefulset",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the namespace of the statefulset",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the revision of the statefulset",
"name": "revision",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.StatefulSet"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/namespaces/{namespace}/{resources}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace Resources"
],
"summary": "Namespace level resource query",
"operationId": "handleListNamespaceResources",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace level resource type, e.g. pods,jobs,configmaps,services.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"format": "key=%s,key~%s",
"description": "query conditions,connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/quotas": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Resources"
],
"summary": "get whole cluster's resource usage",
"operationId": "handleGetClusterQuotas",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ResourceQuota"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/registry/blob": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Docker Registry"
],
"summary": "Retrieve the blob from the registry identified",
"operationId": "handleGetRegistryEntry",
"deprecated": true,
"parameters": [
{
"type": "string",
"format": "image=%s",
"description": "query image, condition for filtering.",
"name": "image",
"in": "query",
"required": true
},
{
"type": "string",
"format": "namespace=%s",
"description": "namespace which secret in.",
"name": "namespace",
"in": "query"
},
{
"type": "string",
"format": "secret=%s",
"description": "secret name",
"name": "secret",
"in": "query"
},
{
"type": "string",
"format": "insecure=%s",
"description": "whether verify cert if using https repo",
"name": "insecure",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/registries.ImageDetails"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/registry/verify": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Docker Registry"
],
"summary": "verify if a user has access to the docker registry",
"operationId": "handleVerifyRegistryCredential",
"deprecated": true,
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/api.RegistryCredential"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/users/{user}/kubeconfig": {
"get": {
"produces": [
"text/plain",
"application/json"
],
"tags": [
"Toolbox"
],
"summary": "get users' kubeconfig",
"operationId": "GetKubeconfig",
"parameters": [
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"type": "string"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/users/{user}/kubectl": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Toolbox"
],
"summary": "get user's kubectl pod",
"operationId": "GetKubectlPod",
"parameters": [
{
"type": "string",
"description": "username",
"name": "user",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PodInfo"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha2/{resources}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Cluster Resources"
],
"summary": "Cluster level resources",
"operationId": "handleListNamespaceResources",
"deprecated": true,
"parameters": [
{
"type": "string",
"description": "cluster level resource type, e.g. nodes,workspaces,storageclasses,clusterrole.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"format": "key=value,key~value",
"description": "query conditions, connect multiple conditions with commas, equal symbol for exact query, wave symbol for fuzzy query e.g. name~a",
"name": "conditions",
"in": "query"
},
{
"type": "string",
"format": "limit=%d,page=%d",
"default": "limit=10,page=1",
"description": "paging query, e.g. limit=100,page=1",
"name": "paging",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. reverse=true",
"name": "reverse",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "orderBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/componenthealth": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "Get the health status of system components.",
"operationId": "handleGetSystemHealthStatus",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1alpha2.HealthStatus"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/components": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "List the system components.",
"operationId": "handleGetComponents",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ComponentStatus"
}
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/components/{component}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Component Status"
],
"summary": "Describe the specified system component.",
"operationId": "handleGetComponentStatus",
"parameters": [
{
"type": "string",
"description": "component name",
"name": "component",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1alpha2.ComponentStatus"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/namespaces/{namespace}/imageconfig": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespaced Resource"
],
"summary": "Get image config.",
"operationId": "handleGetImageConfig",
"parameters": [
{
"type": "string",
"description": "Namespace of the image repository secret.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Secret name of the image repository credential, left empty means anonymous fetch.",
"name": "secret",
"in": "query"
},
{
"type": "string",
"description": "Image name to query, e.g. kubesphere/ks-apiserver:v3.1.1",
"name": "image",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v2.ImageConfig"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/namespaces/{namespace}/registrysecrets/{secret}/verify": {
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespaced Resource"
],
"summary": "Verify image repostiry secret.",
"operationId": "handleVerifyImageRepositorySecret",
"parameters": [
{
"type": "string",
"description": "Namespace of the image repository secret to create.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Name of the secret name",
"name": "secret",
"in": "path",
"required": true
},
{
"description": "Secret specification, definition in k8s.io/api/core/v1/types.Secret",
"name": "secretSpec",
"in": "body",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Secret"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.Secret"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/namespaces/{namespace}/repositorytags": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespaced Resource"
],
"summary": "List repository tags, this is an experimental API, use it by your own caution.",
"operationId": "handleGetRepositoryTags",
"parameters": [
{
"type": "string",
"description": "Namespace of the image repository secret.",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Repository to query, e.g. calico/cni.",
"name": "repository",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Secret name of the image repository credential, left empty means anonymous fetch.",
"name": "secret",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v2.RepositoryTags"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/namespaces/{namespace}/{resources}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespaced Resource"
],
"summary": "Namespace level resource query",
"operationId": "handleListResources",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace level resource type, e.g. pods,jobs,configmaps,services.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/namespaces/{namespace}/{resources}/{name}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespaced Resource"
],
"summary": "Namespace level get resource query",
"operationId": "handleGetResources",
"parameters": [
{
"type": "string",
"description": "the name of the project",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "namespace level resource type, e.g. pods,jobs,configmaps,services.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of resource",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/{resources}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Clustered Resource"
],
"summary": "Cluster level resources",
"operationId": "handleListResources",
"parameters": [
{
"type": "string",
"description": "cluster level resource type, e.g. pods,jobs,configmaps,services.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name used to do filtering",
"name": "name",
"in": "query"
},
{
"type": "string",
"format": "page=%d",
"default": "page=1",
"description": "page",
"name": "page",
"in": "query"
},
{
"type": "string",
"description": "limit",
"name": "limit",
"in": "query"
},
{
"type": "string",
"default": "ascending=false",
"description": "sort parameters, e.g. reverse=true",
"name": "ascending",
"in": "query"
},
{
"type": "string",
"description": "sort parameters, e.g. orderBy=createTime",
"name": "sortBy",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/resources.kubesphere.io/v1alpha3/{resources}/{name}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Clustered Resource"
],
"summary": "Cluster level resource",
"operationId": "handleGetResources",
"parameters": [
{
"type": "string",
"description": "cluster level resource type, e.g. pods,jobs,configmaps,services.",
"name": "resources",
"in": "path",
"required": true
},
{
"type": "string",
"description": "the name of the clustered resources",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/apps/{app}/health": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get app health",
"operationId": "GetAppHealth",
"parameters": [
{
"type": "string",
"description": "name of a namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "app name",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"default": "10m",
"description": "the rate interval used for fetching error rate",
"name": "rateInterval",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the time to use for query",
"name": "queryTime",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/apps/{app}/metrics": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get app metrics from a specific namespace",
"operationId": "GetAppMetrics",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of the app",
"name": "app",
"in": "path",
"required": true
},
{
"type": "string",
"default": "[]",
"description": "type of metrics type, fetch all metrics when empty, e.g. request_count, request_duration, request_error_count",
"name": "filters[]",
"in": "query"
},
{
"type": "string",
"description": "from which UNIX time to extract metrics",
"name": "queryTime",
"in": "query"
},
{
"type": "string",
"default": 1800,
"description": "duration of the query period, in seconds",
"name": "duration",
"in": "query"
},
{
"type": "string",
"default": 15,
"description": "step between graph data points, in seconds.",
"name": "step",
"in": "query"
},
{
"type": "string",
"default": "1m",
"description": "metrics rate intervals, e.g. 20s",
"name": "rateInterval",
"in": "query"
},
{
"type": "string",
"default": "outbound",
"description": "traffic direction: 'inbound' or 'outbound'",
"name": "direction",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of quantiles to fetch, fetch no quantiles when empty. eg. 0.5, 0.9, 0.99",
"name": "quantiles[]",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of labels to use for grouping metrics(via Prometheus 'by' clause), e.g. source_workload, destination_service_name",
"name": "byLabels[]",
"in": "query"
},
{
"type": "string",
"default": "all protocols",
"description": "request protocol for the telemetry, e.g. http/tcp/grpc",
"name": "requestProtocol",
"in": "query"
},
{
"type": "string",
"default": "source",
"description": "istio telemetry reporter, 'source' or 'destination'",
"name": "reporter",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/graph": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get service graph for a specific namespace",
"operationId": "GetNamespaceGraph",
"parameters": [
{
"type": "string",
"description": "name of a namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"default": "10m",
"description": "duration of the query period, in seconds",
"name": "duration",
"in": "query"
},
{
"type": "string",
"default": "workload",
"description": "type of the generated service graph. Available graph types: [app, service, versionedApp, workload].",
"name": "graphType",
"in": "query"
},
{
"type": "string",
"default": "none",
"description": "app box grouping characteristic. Available groupings: [app, none, version].",
"name": "groupBy",
"in": "query"
},
{
"type": "string",
"description": "from which time point in UNIX timestamp, default now",
"name": "queryTime",
"in": "query"
},
{
"type": "string",
"default": false,
"description": "flag for injecting the requested service node between source and destination nodes.",
"name": "injectServiceNodes",
"in": "query"
}
],
"responses": {
"400": {
"description": "bad request",
"schema": {
"$ref": "#/definitions/v1alpha2.BadRequestError"
}
},
"404": {
"description": "not found",
"schema": {
"$ref": "#/definitions/v1alpha2.NotFoundError"
}
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/health": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get app/service/workload health of a namespace",
"operationId": "GetNamespaceHealth",
"parameters": [
{
"type": "string",
"description": "name of a namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"default": "10m",
"description": "the rate interval used for fetching error rate",
"name": "rateInterval",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the time to use for query",
"name": "queryTime",
"in": "query"
}
],
"responses": {
"400": {
"description": "bad request",
"schema": {
"$ref": "#/definitions/v1alpha2.BadRequestError"
}
},
"404": {
"description": "not found",
"schema": {
"$ref": "#/definitions/v1alpha2.NotFoundError"
}
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/metrics": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get metrics from a specific namespace",
"operationId": "GetNamespaceMetrics",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"default": "[]",
"description": "type of metrics type, fetch all metrics when empty, e.g. request_count, request_duration, request_error_count",
"name": "filters[]",
"in": "query"
},
{
"type": "string",
"description": "from which UNIX time to extract metrics",
"name": "queryTime",
"in": "query"
},
{
"type": "string",
"default": 1800,
"description": "duration of the query period, in seconds",
"name": "duration",
"in": "query"
},
{
"type": "string",
"default": 15,
"description": "step between graph data points, in seconds.",
"name": "step",
"in": "query"
},
{
"type": "string",
"default": "1m",
"description": "metrics rate intervals, e.g. 20s",
"name": "rateInterval",
"in": "query"
},
{
"type": "string",
"default": "outbound",
"description": "traffic direction: 'inbound' or 'outbound'",
"name": "direction",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of quantiles to fetch, fetch no quantiles when empty. eg. 0.5, 0.9, 0.99",
"name": "quantiles[]",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of labels to use for grouping metrics(via Prometheus 'by' clause), e.g. source_workload, destination_service_name",
"name": "byLabels[]",
"in": "query"
},
{
"type": "string",
"default": "all protocols",
"description": "request protocol for the telemetry, e.g. http/tcp/grpc",
"name": "requestProtocol",
"in": "query"
},
{
"type": "string",
"default": "source",
"description": "istio telemetry reporter, 'source' or 'destination'",
"name": "reporter",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/services/{service}/health": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get service health",
"operationId": "GetServiceHealth",
"parameters": [
{
"type": "string",
"description": "name of a namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "service name",
"name": "service",
"in": "path",
"required": true
},
{
"type": "string",
"default": "10m",
"description": "the rate interval used for fetching error rate",
"name": "rateInterval",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the time to use for query",
"name": "queryTime",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/services/{service}/metrics": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get service metrics from a specific namespace",
"operationId": "GetServiceMetrics",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of the service",
"name": "service",
"in": "path",
"required": true
},
{
"type": "string",
"default": "[]",
"description": "type of metrics type, fetch all metrics when empty, e.g. request_count, request_duration, request_error_count",
"name": "filters[]",
"in": "query"
},
{
"type": "string",
"description": "from which UNIX time to extract metrics",
"name": "queryTime",
"in": "query"
},
{
"type": "string",
"default": 1800,
"description": "duration of the query period, in seconds",
"name": "duration",
"in": "query"
},
{
"type": "string",
"default": 15,
"description": "step between graph data points, in seconds.",
"name": "step",
"in": "query"
},
{
"type": "string",
"default": "1m",
"description": "metrics rate intervals, e.g. 20s",
"name": "rateInterval",
"in": "query"
},
{
"type": "string",
"default": "outbound",
"description": "traffic direction: 'inbound' or 'outbound'",
"name": "direction",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of quantiles to fetch, fetch no quantiles when empty. eg. 0.5, 0.9, 0.99",
"name": "quantiles[]",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of labels to use for grouping metrics(via Prometheus 'by' clause), e.g. source_workload, destination_service_name",
"name": "byLabels[]",
"in": "query"
},
{
"type": "string",
"default": "all protocols",
"description": "request protocol for the telemetry, e.g. http/tcp/grpc",
"name": "requestProtocol",
"in": "query"
},
{
"type": "string",
"default": "source",
"description": "istio telemetry reporter, 'source' or 'destination'",
"name": "reporter",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/services/{service}/traces": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get tracing of a service, should have servicemesh enabled first",
"operationId": "GetServiceTracing",
"parameters": [
{
"type": "string",
"description": "namespace of service",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of service queried",
"name": "service",
"in": "path",
"required": true
},
{
"type": "string",
"description": "start of time range want to query, in unix timestamp",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "end of time range want to query, in unix timestamp",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": 10,
"description": "maximum tracing entries returned at one query, default 10",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "loopback of duration want to query, e.g. 30m/1h/2d",
"name": "loopback",
"in": "query"
},
{
"type": "string",
"description": "maximum duration of a request",
"name": "maxDuration",
"in": "query"
},
{
"type": "string",
"description": "minimum duration of a request",
"name": "minDuration",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/workloads/{workload}/health": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get workload health",
"operationId": "GetWorkloadHealth",
"parameters": [
{
"type": "string",
"description": "name of a namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workload name",
"name": "workload",
"in": "path",
"required": true
},
{
"type": "string",
"default": "10m",
"description": "the rate interval used for fetching error rate",
"name": "rateInterval",
"in": "query",
"required": true
},
{
"type": "string",
"description": "the time to use for query",
"name": "queryTime",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/servicemesh.kubesphere.io/v1alpha2/namespaces/{namespace}/workloads/{workload}/metrics": {
"get": {
"produces": [
"application/json"
],
"tags": [
"ServiceMesh"
],
"summary": "Get workload metrics from a specific namespace",
"operationId": "GetWorkloadMetrics",
"parameters": [
{
"type": "string",
"description": "name of the namespace",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of the workload",
"name": "workload",
"in": "path",
"required": true
},
{
"type": "string",
"default": "[]",
"description": "type of metrics type, fetch all metrics when empty, e.g. request_count, request_duration, request_error_count",
"name": "filters[]",
"in": "query"
},
{
"type": "string",
"description": "from which UNIX time to extract metrics",
"name": "queryTime",
"in": "query"
},
{
"type": "string",
"default": 1800,
"description": "duration of the query period, in seconds",
"name": "duration",
"in": "query"
},
{
"type": "string",
"default": 15,
"description": "step between graph data points, in seconds.",
"name": "step",
"in": "query"
},
{
"type": "string",
"default": "1m",
"description": "metrics rate intervals, e.g. 20s",
"name": "rateInterval",
"in": "query"
},
{
"type": "string",
"default": "outbound",
"description": "traffic direction: 'inbound' or 'outbound'",
"name": "direction",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of quantiles to fetch, fetch no quantiles when empty. eg. 0.5, 0.9, 0.99",
"name": "quantiles[]",
"in": "query"
},
{
"type": "string",
"default": "[]",
"description": "list of labels to use for grouping metrics(via Prometheus 'by' clause), e.g. source_workload, destination_service_name",
"name": "byLabels[]",
"in": "query"
},
{
"type": "string",
"default": "all protocols",
"description": "request protocol for the telemetry, e.g. http/tcp/grpc",
"name": "requestProtocol",
"in": "query"
},
{
"type": "string",
"default": "source",
"description": "istio telemetry reporter, 'source' or 'destination'",
"name": "reporter",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/auditing/events": {
"get": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Auditing Query"
],
"summary": "Query auditing events against the cluster",
"operationId": "Auditing",
"parameters": [
{
"type": "string",
"default": "query",
"description": "Operation type. This can be one of three types: `query` (for querying events), `statistics` (for retrieving statistical data), `histogram` (for displaying events count by time interval). Defaults to query.",
"name": "operation",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of workspaces. This field restricts the query to specified workspaces. For example, the following filter matches the workspace my-ws and demo-ws: `my-ws,demo-ws`.",
"name": "workspace_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **workspace_filter**, this field performs fuzzy matching on workspaces. For example, the following value limits the query to workspaces whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "workspace_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of namespaces. This field restricts the query to specified `ObjectRef.Namespace`.",
"name": "objectref_namespace_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **objectref_namespace_filter**, this field performs fuzzy matching on `ObjectRef.Namespace`.",
"name": "objectref_namespace_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of names. This field restricts the query to specified `ObjectRef.Name`.",
"name": "objectref_name_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **objectref_name_filter**, this field performs fuzzy matching on `ObjectRef.Name`.",
"name": "objectref_name_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of levels. This know values are Metadata, Request, RequestResponse.",
"name": "level_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of verbs. This field restricts the query to specified verb. This field restricts the query to specified `Verb`.",
"name": "verb_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of user. This field restricts the query to specified user. For example, the following filter matches the user user1 and user2: `user1,user2`.",
"name": "user_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **user_filter**, this field performs fuzzy matching on 'User.username'. For example, the following value limits the query to user whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "user_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. This field performs fuzzy matching on 'User.Groups'. For example, the following value limits the query to group which contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "group_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. This field performs fuzzy matching on 'SourceIPs'. For example, the following value limits the query to SourceIPs which contains 127.0 *OR* 192.168.: `127.0,192.168.`.",
"name": "source_ip_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of resource. This field restricts the query to specified ip. This field restricts the query to specified `ObjectRef.Resource`.",
"name": "objectref_resource_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of subresource. This field restricts the query to specified subresource. This field restricts the query to specified `ObjectRef.Subresource`.",
"name": "objectref_subresource_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of response status code. This field restricts the query to specified response status code. This field restricts the query to specified `ResponseStatus.code`.",
"name": "response_code_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of response status. This field restricts the query to specified response status. This field restricts the query to specified `ResponseStatus.status`.",
"name": "response_status_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query (limits `RequestReceivedTimestamp`). The format is a string representing seconds since the epoch, eg. 1136214245.",
"name": "start_time",
"in": "query"
},
{
"type": "string",
"description": "End time of query (limits `RequestReceivedTimestamp`). The format is a string representing seconds since the epoch, eg. 1136214245.",
"name": "end_time",
"in": "query"
},
{
"type": "string",
"default": "15m",
"description": "Time interval. It requires **operation** is set to `histogram`. The format is [0-9]+[smhdwMqy]. Defaults to 15m (i.e. 15 min).",
"name": "interval",
"in": "query"
},
{
"type": "string",
"default": "desc",
"description": "Sort order. One of asc, desc. This field sorts events by `RequestReceivedTimestamp`.",
"name": "sort",
"in": "query"
},
{
"type": "integer",
"default": 0,
"description": "The offset from the result set. This field returns query results from the specified offset. It requires **operation** is set to `query`. Defaults to 0 (i.e. from the beginning of the result set).",
"name": "from",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "Size of result set to return. It requires **operation** is set to `query`. Defaults to 10 (i.e. 10 event records).",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.APIResponse"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/clusters": {
"get": {
"produces": [
"application/json"
],
"tags": [
"User's Resources"
],
"summary": "List clusters available to users",
"operationId": "ListClusters",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/events": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Events Query"
],
"summary": "Query events against the cluster",
"operationId": "Events",
"parameters": [
{
"type": "string",
"default": "query",
"description": "Operation type. This can be one of three types: `query` (for querying events), `statistics` (for retrieving statistical data), `histogram` (for displaying events count by time interval). Defaults to query.",
"name": "operation",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of workspaces. This field restricts the query to specified workspaces. For example, the following filter matches the workspace my-ws and demo-ws: `my-ws,demo-ws`.",
"name": "workspace_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **workspace_filter**, this field performs fuzzy matching on workspaces. For example, the following value limits the query to workspaces whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "workspace_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of namespaces. This field restricts the query to specified `involvedObject.namespace`.",
"name": "involved_object_namespace_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **involved_object_namespace_filter**, this field performs fuzzy matching on `involvedObject.namespace`",
"name": "involved_object_namespace_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of names. This field restricts the query to specified `involvedObject.name`.",
"name": "involved_object_name_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **involved_object_name_filter**, this field performs fuzzy matching on `involvedObject.name`.",
"name": "involved_object_name_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of kinds. This field restricts the query to specified `involvedObject.kind`.",
"name": "involved_object_kind_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of reasons. This field restricts the query to specified `reason`.",
"name": "reason_filter",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **reason_filter**, this field performs fuzzy matching on `reason`.",
"name": "reason_search",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. This field performs fuzzy matching on `message`.",
"name": "message_search",
"in": "query"
},
{
"type": "string",
"description": "Type of event matching on `type`. This can be one of two types: `Warning`, `Normal`",
"name": "type_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query (limits `lastTimestamp`). The format is a string representing seconds since the epoch, eg. 1136214245.",
"name": "start_time",
"in": "query"
},
{
"type": "string",
"description": "End time of query (limits `lastTimestamp`). The format is a string representing seconds since the epoch, eg. 1136214245.",
"name": "end_time",
"in": "query"
},
{
"type": "string",
"default": "15m",
"description": "Time interval. It requires **operation** is set to `histogram`. The format is [0-9]+[smhdwMqy]. Defaults to 15m (i.e. 15 min).",
"name": "interval",
"in": "query"
},
{
"type": "string",
"default": "desc",
"description": "Sort order. One of asc, desc. This field sorts events by `lastTimestamp`.",
"name": "sort",
"in": "query"
},
{
"type": "integer",
"default": 0,
"description": "The offset from the result set. This field returns query results from the specified offset. It requires **operation** is set to `query`. Defaults to 0 (i.e. from the beginning of the result set).",
"name": "from",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "Size of result set to return. It requires **operation** is set to `query`. Defaults to 10 (i.e. 10 event records).",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.APIResponse"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/federatednamespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the federated namespaces for the current user",
"operationId": "ListFederatedNamespaces",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/logs": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Log Query"
],
"summary": "Query logs against the cluster.",
"operationId": "QueryLogs",
"parameters": [
{
"type": "string",
"default": "query",
"description": "Operation type. This can be one of four types: query (for querying logs), statistics (for retrieving statistical data), histogram (for displaying log count by time interval) and export (for exporting logs). Defaults to query.",
"name": "operation",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of namespaces. This field restricts the query to specified namespaces. For example, the following filter matches the namespace my-ns and demo-ns: `my-ns,demo-ns`",
"name": "namespaces",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **namespaces**, this field performs fuzzy matching on namespaces. For example, the following value limits the query to namespaces whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "namespace_query",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of workloads. This field restricts the query to specified workloads. For example, the following filter matches the workload my-wl and demo-wl: `my-wl,demo-wl`",
"name": "workloads",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **workloads**, this field performs fuzzy matching on workloads. For example, the following value limits the query to workloads whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "workload_query",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of pods. This field restricts the query to specified pods. For example, the following filter matches the pod my-po and demo-po: `my-po,demo-po`",
"name": "pods",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **pods**, this field performs fuzzy matching on pods. For example, the following value limits the query to pods whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "pod_query",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of containers. This field restricts the query to specified containers. For example, the following filter matches the container my-cont and demo-cont: `my-cont,demo-cont`",
"name": "containers",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. Differing from **containers**, this field performs fuzzy matching on containers. For example, the following value limits the query to containers whose name contains the word my(My,MY,...) *OR* demo(Demo,DemO,...): `my,demo`.",
"name": "container_query",
"in": "query"
},
{
"type": "string",
"description": "A comma-separated list of keywords. The query returns logs which contain at least one keyword. Case-insensitive matching. For example, if the field is set to `err,INFO`, the query returns any log containing err(ERR,Err,...) *OR* INFO(info,InFo,...).",
"name": "log_query",
"in": "query"
},
{
"type": "string",
"default": "15m",
"description": "Time interval. It requires **operation** is set to histogram. The format is [0-9]+[smhdwMqy]. Defaults to 15m (i.e. 15 min).",
"name": "interval",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Default to 0. The format is a string representing seconds since the epoch, eg. 1559664000.",
"name": "start_time",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Default to now. The format is a string representing seconds since the epoch, eg. 1559664000.",
"name": "end_time",
"in": "query"
},
{
"type": "string",
"default": "desc",
"description": "Sort order. One of asc, desc. This field sorts logs by timestamp.",
"name": "sort",
"in": "query"
},
{
"type": "integer",
"default": 0,
"description": "The offset from the result set. This field returns query results from the specified offset. It requires **operation** is set to query. Defaults to 0 (i.e. from the beginning of the result set).",
"name": "from",
"in": "query"
},
{
"type": "integer",
"default": 10,
"description": "Size of result to return. It requires **operation** is set to query. Defaults to 10 (i.e. 10 log records).",
"name": "size",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.APIResponse"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/metering": {
"get": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Workspace Meters"
],
"summary": "Get meterings against the cluster.",
"operationId": "QueryMetering",
"parameters": [
{
"type": "string",
"description": "Metering level.",
"name": "level",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Node name.",
"name": "node",
"in": "query"
},
{
"type": "string",
"description": "Workspace name.",
"name": "workspace",
"in": "query"
},
{
"type": "string",
"description": "Namespace name.",
"name": "namespace",
"in": "query"
},
{
"type": "string",
"description": "Workload kind. One of deployment, daemonset, statefulset.",
"name": "kind",
"in": "query"
},
{
"type": "string",
"description": "Workload name.",
"name": "workload",
"in": "query"
},
{
"type": "string",
"description": "Pod name.",
"name": "pod",
"in": "query"
},
{
"type": "string",
"description": "Appliction names, format app_name[:app_version](such as nginx:v1, nignx) which are joined by \"|\" ",
"name": "applications",
"in": "query"
},
{
"type": "string",
"description": "Services which are joined by \"|\".",
"name": "services",
"in": "query"
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workspace CPU usage and memory usage: `meter_workspace_cpu_usage|meter_workspace_memory_usage`.",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "The workspace filter consists of a regexp pattern. It specifies which workspace data to return.",
"name": "resources_filter",
"in": "query"
},
{
"type": "string",
"description": "Start time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1559347200. ",
"name": "start",
"in": "query"
},
{
"type": "string",
"description": "End time of query. Use **start** and **end** to retrieve metric data over a time span. It is a string with Unix time format, eg. 1561939200. ",
"name": "end",
"in": "query"
},
{
"type": "string",
"default": "10m",
"description": "Time interval. Retrieve metric data at a fixed interval within the time range of start and end. It requires both **start** and **end** are provided. The format is [0-9]+[smhdwy]. Defaults to 10m (i.e. 10 min).",
"name": "step",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Sort workspaces by the specified metric. Not applicable if **start** and **end** are provided.",
"name": "sort_metric",
"in": "query"
},
{
"type": "string",
"default": "desc.",
"description": "Sort order. One of asc, desc.",
"name": "sort_type",
"in": "query"
},
{
"type": "integer",
"description": "The page number. This field paginates result data of each metric, then returns a specific page. For example, setting **page** to 2 returns the second page. It only applies to sorted metric data.",
"name": "page",
"in": "query"
},
{
"type": "integer",
"default": 5,
"description": "Page size, the maximum number of results in a single page. Defaults to 5.",
"name": "limit",
"in": "query"
},
{
"type": "string",
"description": "The name of the storageclass.",
"name": "storageclass",
"in": "query"
},
{
"type": "string",
"description": "The PVC filter consists of a regexp pattern. It specifies which PVC data to return.",
"name": "pvc_filter",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/monitoring.Metrics"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/metering/price": {
"get": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"summary": "Get resoure price.",
"operationId": "HandlePriceInfoQuery",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/metering.PriceInfo"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/namespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the namespaces for the current user",
"operationId": "ListNamespaces",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/namespaces/{namespace}/metering/hierarchy": {
"get": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"summary": "get current metering hierarchies info in last one hour",
"operationId": "QueryMeteringHierarchy",
"parameters": [
{
"type": "string",
"description": "Namespace name.",
"name": "namespace",
"in": "path"
},
{
"type": "string",
"description": "The metric name filter consists of a regexp pattern. It specifies which metric data to return. For example, the following filter matches both workspace CPU usage and memory usage: `meter_pod_cpu_usage|meter_pod_memory_usage_wo_cache`.",
"name": "metrics_filter",
"in": "query"
},
{
"type": "string",
"description": "A timestamp in Unix time format. Retrieve metric data at a single point in time. Defaults to now. Time and the combination of start, end, step are mutually exclusive.",
"name": "time",
"in": "query"
},
{
"type": "string",
"description": "Cluster name",
"name": "cluster",
"in": "query"
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/metering.ResourceStatistic"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "List all workspaces that belongs to the current user",
"operationId": "ListWorkspaceTemplates",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Create workspace.",
"operationId": "CreateWorkspaceTemplate",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Describe workspace.",
"operationId": "DescribeWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Update workspace.",
"operationId": "UpdateWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Delete workspace.",
"operationId": "DeleteWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/merge-patch+json",
"application/json-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Update workspace.",
"operationId": "PatchWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/clusters": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "List clusters authorized to the specified workspace.",
"operationId": "ListWorkspaceClusters",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/devops": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project"
],
"summary": "List the devops projects of the specified workspace for the current user",
"operationId": "ListDevOpsProjects",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/federatednamespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the federated namespaces of the specified workspace for the current user",
"operationId": "ListFederatedNamespaces",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/namespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the namespaces of the specified workspace for the current user",
"operationId": "ListNamespaces",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/api.ListResult"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the namespaces of the specified workspace for the current user",
"operationId": "CreateNamespace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/namespaces/{namespace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "Retrieve namespace details.",
"operationId": "DescribeNamespace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "project name",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"operationId": "UpdateNamespace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "project name",
"name": "namespace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "Delete namespace.",
"operationId": "DeleteNamespace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "project name",
"name": "namespace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/merge-patch+json",
"application/json-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"operationId": "PatchNamespace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "project name",
"name": "namespace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/resourcequotas": {
"post": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Workspace"
],
"summary": "Create resource quota.",
"operationId": "CreateWorkspaceResourceQuota",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.ResourceQuota"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.ResourceQuota"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/resourcequotas/{resourcequota}": {
"get": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Workspace"
],
"summary": "Describe resource quota.",
"operationId": "DescribeWorkspaceResourceQuota",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "resource quota name",
"name": "resourcequota",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.ResourceQuota"
}
}
}
},
"put": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Workspace"
],
"summary": "Update resource quota.",
"operationId": "UpdateWorkspaceResourceQuota",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "resource quota name",
"name": "resourcequota",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.ResourceQuota"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.ResourceQuota"
}
}
}
},
"delete": {
"consumes": [
"application/json",
"application/xml"
],
"produces": [
"application/json",
"text/plain"
],
"tags": [
"Workspace"
],
"summary": "Delete resource quota.",
"operationId": "DeleteWorkspaceResourceQuota",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "resource quota name",
"name": "resourcequota",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacemembers/{workspacemember}/devops": {
"get": {
"produces": [
"application/json"
],
"tags": [
"DevOps Project"
],
"summary": "List the devops projects of specified workspace for the workspace member",
"operationId": "ListDevOpsProjects",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspacemember username",
"name": "workspacemember",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha2/workspaces/{workspace}/workspacemembers/{workspacemember}/namespaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Namespace"
],
"summary": "List the namespaces of the specified workspace for the workspace member",
"operationId": "ListNamespaces",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "workspacemember username",
"name": "workspacemember",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1.Namespace"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha3/workspaces": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "List all workspaces that belongs to the current user",
"operationId": "ListWorkspaces",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha3/workspaces/{workspace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Get workspace.",
"operationId": "GetWorkspace",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha1.Workspace"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha3/workspacetemplates": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "List all workspaces that belongs to the current user",
"operationId": "ListWorkspaceTemplates",
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/models.PageableResponse"
}
}
}
},
"post": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Create workspace.",
"operationId": "CreateWorkspaceTemplate",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
}
},
"/kapis/tenant.kubesphere.io/v1alpha3/workspacetemplates/{workspace}": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Describe workspace.",
"operationId": "DescribeWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
},
"put": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Update workspace.",
"operationId": "UpdateWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
},
"delete": {
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Delete workspace.",
"operationId": "DeleteWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/errors.Error"
}
}
}
},
"patch": {
"consumes": [
"application/json",
"application/merge-patch+json",
"application/json-patch+json"
],
"produces": [
"application/json"
],
"tags": [
"Workspace"
],
"summary": "Update workspace.",
"operationId": "PatchWorkspaceTemplate",
"parameters": [
{
"type": "string",
"description": "workspace name",
"name": "workspace",
"in": "path",
"required": true
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/v1alpha2.WorkspaceTemplate"
}
}
}
}
},
"/kapis/terminal.kubesphere.io/v1alpha2/namespaces/{namespace}/pods/{pod}/exec": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Terminal"
],
"summary": "create terminal session",
"operationId": "handleTerminalSession",
"parameters": [
{
"type": "string",
"description": "namespace of which the pod located in",
"name": "namespace",
"in": "path",
"required": true
},
{
"type": "string",
"description": "name of the pod",
"name": "pod",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/kapis/terminal.kubesphere.io/v1alpha2/nodes/{nodename}/exec": {
"get": {
"produces": [
"application/json"
],
"tags": [
"Terminal"
],
"summary": "create shell access to node session",
"operationId": "handleShellAccessToNode",
"parameters": [
{
"type": "string",
"description": "name of cluster node",
"name": "nodename",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/oauth/.well-known/openid-configuration": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "The OpenID Provider's configuration information can be retrieved.",
"operationId": "discovery",
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/oauth/authenticate": {
"post": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.",
"operationId": "tokenReview",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/oauth.TokenReview"
}
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/oauth.TokenReview"
}
}
}
}
},
"/oauth/authorize": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "The authorization endpoint is used to interact with the resource owner and obtain an authorization grant.",
"operationId": "authorize",
"parameters": [
{
"type": "string",
"description": "The value MUST be one of \"code\" for requesting an authorization code as described by [RFC6749] Section 4.1.1, \"token\" for requesting an access token (implicit grant) as described by [RFC6749] Section 4.2.2.",
"name": "response_type",
"in": "query",
"required": true
},
{
"type": "string",
"description": "OAuth 2.0 Client Identifier valid at the Authorization Server.",
"name": "client_id",
"in": "query",
"required": true
},
{
"type": "string",
"description": "Redirection URI to which the response will be sent. This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider.",
"name": "redirect_uri",
"in": "query",
"required": true
},
{
"type": "string",
"description": "OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified.",
"name": "scope",
"in": "query"
},
{
"type": "string",
"description": "Opaque value used to maintain state between the request and the callback.",
"name": "state",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK"
}
}
},
"post": {
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "The authorization endpoint is used to interact with the resource owner and obtain an authorization grant.",
"operationId": "authorize",
"parameters": [
{
"description": "The value MUST be one of \"code\" for requesting an authorization code as described by [RFC6749] Section 4.1.1, \"token\" for requesting an access token (implicit grant) as described by [RFC6749] Section 4.2.2.",
"name": "response_type",
"in": "body",
"required": true
},
{
"description": "OAuth 2.0 Client Identifier valid at the Authorization Server.",
"name": "client_id",
"in": "body",
"required": true
},
{
"description": "Redirection URI to which the response will be sent. This URI MUST exactly match one of the Redirection URI values for the Client pre-registered at the OpenID Provider.",
"name": "redirect_uri",
"in": "body",
"required": true
},
{
"description": "OpenID Connect requests MUST contain the openid scope value. If the openid scope value is not present, the behavior is entirely unspecified.",
"name": "scope",
"in": "body"
},
{
"description": "Opaque value used to maintain state between the request and the callback.",
"name": "state",
"in": "body"
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/oauth/callback/{callback}": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "OAuth callback API, the path param callback is config by identity provider",
"operationId": "oauthCallback",
"parameters": [
{
"type": "string",
"description": "The access token issued by the authorization server.",
"name": "access_token",
"in": "query",
"required": true
},
{
"type": "string",
"description": "The type of the token issued as described in [RFC6479] Section 7.1. Value is case insensitive.",
"name": "token_type",
"in": "query",
"required": true
},
{
"type": "string",
"description": "The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.If omitted, the authorization server SHOULD provide the expiration time via other means or document the default value.",
"name": "expires_in",
"in": "query"
},
{
"type": "string",
"description": "if identical to the scope requested by the client;otherwise, REQUIRED. The scope of the access token as described by [RFC6479] Section 3.3.",
"name": "scope",
"in": "query"
},
{
"type": "string",
"description": "if the \"state\" parameter was present in the client authorization request.The exact value received from the client.",
"name": "state",
"in": "query",
"required": true
}
],
"responses": {
"200": {
"description": "ok",
"schema": {
"$ref": "#/definitions/oauth.Token"
}
}
}
}
},
"/oauth/keys": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "OP's JSON Web Key Set [JWK] document.",
"operationId": "keys",
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/oauth/logout": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "This endpoint takes an ID token and logs the user out of KubeSphere if the subject matches the current session.",
"operationId": "logout",
"parameters": [
{
"type": "string",
"description": "ID Token previously issued by the OP to the RP passed to the Logout Endpoint as a hint about the End-User's current authenticated session with the Client. This is used as an indication of the identity of the End-User that the RP is requesting be logged out by the OP.",
"name": "id_token_hint",
"in": "query"
},
{
"type": "string",
"description": "URL to which the RP is requesting that the End-User's User Agent be redirected after a logout has been performed. ",
"name": "post_logout_redirect_uri",
"in": "query"
},
{
"type": "string",
"description": "Opaque value used by the RP to maintain state between the logout request and the callback to the endpoint specified by the post_logout_redirect_uri parameter.",
"name": "state",
"in": "query"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "string"
}
}
}
}
},
"/oauth/token": {
"post": {
"consumes": [
"application/x-www-form-urlencoded"
],
"produces": [
"application/json"
],
"tags": [
"Authentication"
],
"summary": "The resource owner password credentials grant type is suitable in\ncases where the resource owner has a trust relationship with the\nclient, such as the device operating system or a highly privileged application.",
"operationId": "token",
"parameters": [
{
"type": "string",
"description": "OAuth defines four grant types: authorization code, implicit, resource owner password credentials, and client credentials.",
"name": "grant_type",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "Valid client credential.",
"name": "client_id",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "Valid client credential.",
"name": "client_secret",
"in": "formData",
"required": true
},
{
"type": "string",
"description": "The resource owner username.",
"name": "username",
"in": "formData"
},
{
"type": "string",
"description": "The resource owner password.",
"name": "password",
"in": "formData"
},
{
"type": "string",
"description": "Valid authorization code.",
"name": "code",
"in": "formData"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/oauth.Token"
}
}
}
}
},
"/oauth/userinfo": {
"get": {
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"summary": "UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the authenticated End-User.",
"operationId": "userinfo",
"responses": {
"200": {
"description": "OK"
}
}
}
}
},
"definitions": {
"anotations.Annotation": {
"properties": {
"datasource": {
"type": "string"
},
"enable": {
"type": "boolean"
},
"expr": {
"type": "string"
},
"iconColor": {
"type": "string"
},
"iconSize": {
"type": "integer",
"format": "integer"
},
"lineColor": {
"type": "string"
},
"name": {
"type": "string"
},
"query": {
"type": "string"
},
"showLine": {
"type": "boolean"
},
"step": {
"type": "string"
},
"tagKeys": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"tagsField": {
"type": "string"
},
"textField": {
"type": "string"
},
"textFormat": {
"type": "string"
},
"titleFormat": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"api.ListResult": {
"required": [
"items",
"totalItems"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/api.ListResult.items"
}
},
"totalItems": {
"type": "integer",
"format": "int32"
}
}
},
"api.ListResult.items": {},
"api.RegistryCredential": {
"required": [
"username",
"password",
"serverhost"
],
"properties": {
"password": {
"description": "password",
"type": "string"
},
"serverhost": {
"description": "registry server host",
"type": "string"
},
"username": {
"description": "username",
"type": "string"
}
}
},
"api.ResourceQuota": {
"required": [
"namespace",
"data"
],
"properties": {
"data": {
"description": "resource quota status",
"$ref": "#/definitions/v1.ResourceQuotaStatus"
},
"namespace": {
"description": "namespace",
"type": "string"
}
}
},
"api.Workloads": {
"required": [
"namespace",
"data"
],
"properties": {
"data": {
"description": "the number of unhealthy workloads",
"type": "object",
"additionalProperties": {
"type": "integer"
}
},
"items": {
"description": "unhealthy workloads",
"type": "object"
},
"namespace": {
"description": "the name of the namespace",
"type": "string"
}
}
},
"big.Int": {
"required": [
"neg",
"abs"
],
"properties": {
"abs": {
"type": "array",
"items": {
"type": "integer"
}
},
"neg": {
"type": "boolean"
}
}
},
"errors.Error": {
"required": [
"message"
],
"properties": {
"message": {
"description": "error message",
"type": "string"
}
}
},
"events.Bucket": {
"required": [
"time",
"count"
],
"properties": {
"count": {
"description": "total number of events at intervals",
"type": "integer",
"format": "int64"
},
"time": {
"description": "timestamp",
"type": "integer",
"format": "int64"
}
}
},
"events.Events": {
"required": [
"total",
"records"
],
"properties": {
"records": {
"description": "actual array of results",
"type": "array",
"items": {
"$ref": "#/definitions/events.Events.records"
}
},
"total": {
"description": "total number of matched results",
"type": "integer",
"format": "int64"
}
}
},
"events.Events.records": {},
"events.Histogram": {
"required": [
"total",
"buckets"
],
"properties": {
"buckets": {
"description": "actual array of histogram results",
"type": "array",
"items": {
"$ref": "#/definitions/events.Bucket"
}
},
"total": {
"description": "total number of events",
"type": "integer",
"format": "int64"
}
}
},
"events.Statistics": {
"required": [
"resources",
"events"
],
"properties": {
"events": {
"description": "total number of events",
"type": "integer",
"format": "int64"
},
"resources": {
"description": "total number of resources",
"type": "integer",
"format": "int64"
}
}
},
"git.AuthInfo": {
"required": [
"remoteUrl"
],
"properties": {
"remoteUrl": {
"description": "git server url",
"type": "string"
},
"secretRef": {
"description": "auth secret reference",
"$ref": "#/definitions/v1.SecretReference"
}
}
},
"inf.Dec": {
"required": [
"unscaled",
"scale"
],
"properties": {
"scale": {
"type": "integer",
"format": "int32"
},
"unscaled": {
"$ref": "#/definitions/big.Int"
}
}
},
"logging.Bucket": {
"required": [
"time",
"count"
],
"properties": {
"count": {
"description": "total number of logs at intervals",
"type": "integer",
"format": "int64"
},
"time": {
"description": "timestamp",
"type": "integer",
"format": "int64"
}
}
},
"logging.Histogram": {
"required": [
"total",
"histograms"
],
"properties": {
"histograms": {
"description": "actual array of histogram results",
"type": "array",
"items": {
"$ref": "#/definitions/logging.Bucket"
}
},
"total": {
"description": "total number of logs",
"type": "integer",
"format": "int64"
}
}
},
"logging.Logs": {
"required": [
"total"
],
"properties": {
"records": {
"description": "actual array of results",
"type": "array",
"items": {
"$ref": "#/definitions/logging.Record"
}
},
"total": {
"description": "total number of matched results",
"type": "integer",
"format": "int64"
}
}
},
"logging.Record": {
"properties": {
"container": {
"description": "container name",
"type": "string"
},
"log": {
"description": "log message",
"type": "string"
},
"namespace": {
"description": "namespace",
"type": "string"
},
"pod": {
"description": "pod name",
"type": "string"
},
"time": {
"description": "log timestamp",
"type": "string"
}
}
},
"logging.Statistics": {
"required": [
"containers",
"logs"
],
"properties": {
"containers": {
"description": "total number of containers",
"type": "integer",
"format": "int64"
},
"logs": {
"description": "total number of logs",
"type": "integer",
"format": "int64"
}
}
},
"metering.AppStatistic": {
"required": [
"cpu_usage",
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total",
"deployments",
"statefulsets",
"daemonsets"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"daemonsets": {
"description": "daemonsets statistics",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DaemonsetStatistic"
}
},
"deployments": {
"description": "deployment statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DeploymentStatistic"
}
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"description": "net_bytes_transmitted",
"type": "number",
"format": "double"
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
},
"statefulsets": {
"description": "statefulset statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.StatefulsetStatistic"
}
}
}
},
"metering.DaemonsetStatistic": {
"required": [
"cpu_usage",
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total",
"pods"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"description": "net_bytes_transmitted",
"type": "number",
"format": "double"
},
"pods": {
"description": "pod statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.PodStatistic"
}
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
}
}
},
"metering.DeploymentStatistic": {
"required": [
"cpu_usage",
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total",
"pods"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"type": "number",
"format": "double"
},
"pods": {
"description": "pod statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.PodStatistic"
}
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
}
}
},
"metering.OpenPitrixStatistic": {
"required": [
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total",
"deployments",
"statefulsets",
"daemonsets",
"cpu_usage"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"daemonsets": {
"description": "daemonsets statistics",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DaemonsetStatistic"
}
},
"deployments": {
"description": "deployment statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DeploymentStatistic"
}
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"description": "net_bytes_transmitted",
"type": "number",
"format": "double"
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
},
"statefulsets": {
"description": "statefulset statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.StatefulsetStatistic"
}
}
}
},
"metering.PodStatistic": {
"required": [
"cpu_usage",
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"type": "number",
"format": "double"
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
}
}
},
"metering.PriceInfo": {
"required": [
"currency"
],
"properties": {
"cpu_per_core_per_hour": {
"description": "cpu price",
"type": "number",
"format": "double"
},
"currency": {
"description": "currency",
"type": "string"
},
"egress_network_traffic_per_megabytes_per_hour": {
"description": "egress price",
"type": "number",
"format": "double"
},
"ingress_network_traffic_per_megabytes_per_hour": {
"description": "ingress price",
"type": "number",
"format": "double"
},
"mem_per_gigabytes_per_hour": {
"description": "mem price",
"type": "number",
"format": "double"
},
"pvc_per_gigabytes_per_hour": {
"description": "pvc price",
"type": "number",
"format": "double"
}
}
},
"metering.ResourceStatistic": {
"required": [
"openpitrixs",
"apps",
"deployments",
"statefulsets",
"daemonsets"
],
"properties": {
"apps": {
"description": "app statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.AppStatistic"
}
},
"daemonsets": {
"description": "daemonsets statistics",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DaemonsetStatistic"
}
},
"deployments": {
"description": "deployment statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.DeploymentStatistic"
}
},
"openpitrixs": {
"description": "openpitrix statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.OpenPitrixStatistic"
}
},
"statefulsets": {
"description": "statefulset statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.StatefulsetStatistic"
}
}
}
},
"metering.StatefulsetStatistic": {
"required": [
"cpu_usage",
"memory_usage_wo_cache",
"net_bytes_transmitted",
"net_bytes_received",
"pvc_bytes_total",
"pods"
],
"properties": {
"cpu_usage": {
"description": "cpu_usage",
"type": "number",
"format": "double"
},
"memory_usage_wo_cache": {
"description": "memory_usage_wo_cache",
"type": "number",
"format": "double"
},
"net_bytes_received": {
"description": "net_bytes_received",
"type": "number",
"format": "double"
},
"net_bytes_transmitted": {
"description": "net_bytes_transmitted",
"type": "number",
"format": "double"
},
"pods": {
"description": "pod statistic",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/metering.PodStatistic"
}
},
"pvc_bytes_total": {
"description": "pvc_bytes_total",
"type": "number",
"format": "double"
}
}
},
"models.PageableResponse": {
"required": [
"items",
"total_count"
],
"properties": {
"items": {
"description": "paging data",
"type": "array",
"items": {
"$ref": "#/definitions/models.PageableResponse.items"
}
},
"total_count": {
"description": "total count",
"type": "integer",
"format": "int32"
}
}
},
"models.PageableResponse.items": {},
"models.PodInfo": {
"required": [
"namespace",
"pod",
"container"
],
"properties": {
"container": {
"description": "container name",
"type": "string"
},
"namespace": {
"description": "namespace",
"type": "string"
},
"pod": {
"description": "pod name",
"type": "string"
}
}
},
"monitoring.Metadata": {
"required": [
"data"
],
"properties": {
"data": {
"description": "actual array of results",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.Metadata"
}
}
}
},
"monitoring.Metric": {
"properties": {
"data": {
"description": "actual metric result",
"$ref": "#/definitions/monitoring.MetricData"
},
"error": {
"type": "string"
},
"metric_name": {
"description": "metric name, eg. scheduler_up_sum",
"type": "string"
}
}
},
"monitoring.MetricData": {
"properties": {
"result": {
"description": "metric data including labels, time series and values",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.MetricValue"
}
},
"resultType": {
"description": "result type, one of matrix, vector",
"type": "string"
}
}
},
"monitoring.MetricLabelSet": {
"required": [
"data"
],
"properties": {
"data": {
"description": "actual array of results",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.MetricLabelSet.data"
}
}
}
},
"monitoring.MetricLabelSet.data": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"monitoring.MetricValue": {
"required": [
"min_value",
"max_value",
"avg_value",
"sum_value",
"fee",
"resource_unit",
"currency_unit"
],
"properties": {
"avg_value": {
"description": "average value from monitor points",
"type": "string"
},
"currency_unit": {
"type": "string"
},
"exported_value": {
"description": "exported time series, values of vector type",
"type": "array",
"items": {
"type": "number"
}
},
"exported_values": {
"description": "exported time series, values of matrix type",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.ExportPoint"
}
},
"fee": {
"description": "resource fee",
"type": "string"
},
"max_value": {
"description": "maximum value from monitor points",
"type": "string"
},
"metric": {
"description": "time series labels",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"min_value": {
"description": "minimum value from monitor points",
"type": "string"
},
"resource_unit": {
"type": "string"
},
"sum_value": {
"description": "sum value from monitor points",
"type": "string"
},
"value": {
"description": "time series, values of vector type",
"type": "string"
},
"values": {
"description": "time series, values of matrix type",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.Point"
}
}
}
},
"monitoring.Metrics": {
"required": [
"results"
],
"properties": {
"page": {
"description": "current page returned",
"type": "integer",
"format": "int32"
},
"results": {
"description": "actual array of results",
"type": "array",
"items": {
"$ref": "#/definitions/monitoring.Metric"
}
},
"total_item": {
"description": "page size",
"type": "integer",
"format": "int32"
},
"total_page": {
"description": "total number of pages",
"type": "integer",
"format": "int32"
}
}
},
"oauth.LoginRequest": {
"required": [
"username",
"password"
],
"properties": {
"password": {
"description": "password",
"type": "string"
},
"username": {
"description": "username",
"type": "string"
}
}
},
"oauth.Spec": {
"required": [
"token"
],
"properties": {
"token": {
"description": "access token",
"type": "string"
}
}
},
"oauth.Status": {
"required": [
"authenticated"
],
"properties": {
"authenticated": {
"description": "is authenticated",
"type": "boolean"
},
"user": {
"description": "user info",
"type": "object"
}
}
},
"oauth.Token": {
"required": [
"access_token"
],
"properties": {
"access_token": {
"type": "string"
},
"expires_in": {
"type": "integer",
"format": "int32"
},
"id_token": {
"type": "string"
},
"refresh_token": {
"type": "string"
},
"token_type": {
"type": "string"
}
}
},
"oauth.TokenReview": {
"required": [
"apiVersion",
"kind"
],
"properties": {
"apiVersion": {
"description": "Kubernetes API version",
"type": "string"
},
"kind": {
"description": "kind of the API object",
"type": "string"
},
"spec": {
"$ref": "#/definitions/oauth.Spec"
},
"status": {
"description": "token review status",
"$ref": "#/definitions/oauth.Status"
}
}
},
"openpitrix.App": {
"required": [
"category_set"
],
"properties": {
"abstraction": {
"type": "string"
},
"active": {
"type": "boolean"
},
"app_id": {
"type": "string"
},
"app_version_types": {
"type": "string"
},
"category_set": {
"type": "array",
"items": {
"$ref": "#/definitions/openpitrix.ResourceCategory"
}
},
"chart_name": {
"type": "string"
},
"cluster_total": {
"type": "integer",
"format": "int32"
},
"company_join_time": {
"type": "string"
},
"company_name": {
"type": "string"
},
"company_profile": {
"type": "string"
},
"company_website": {
"type": "string"
},
"create_time": {
"type": "string"
},
"description": {
"type": "string"
},
"home": {
"type": "string"
},
"icon": {
"type": "string"
},
"isv": {
"type": "string"
},
"keywords": {
"type": "string"
},
"latest_app_version": {
"$ref": "#/definitions/openpitrix.AppVersion"
},
"maintainers": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"readme": {
"type": "string"
},
"repo_id": {
"type": "string"
},
"screenshots": {
"type": "string"
},
"sources": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"tos": {
"type": "string"
},
"update_time": {
"type": "string"
}
}
},
"openpitrix.AppVersion": {
"properties": {
"active": {
"type": "boolean"
},
"app_id": {
"type": "string"
},
"cluster_total": {
"type": "integer",
"format": "int32"
},
"create_time": {
"type": "string"
},
"description": {
"type": "string"
},
"home": {
"type": "string"
},
"icon": {
"type": "string"
},
"keywords": {
"type": "string"
},
"maintainers": {
"type": "string"
},
"message": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"package_name": {
"type": "string"
},
"readme": {
"type": "string"
},
"review_id": {
"type": "string"
},
"screenshots": {
"type": "string"
},
"sequence": {
"type": "integer",
"format": "int64"
},
"sources": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"type": {
"type": "string"
},
"update_time": {
"type": "string"
},
"version_id": {
"type": "string"
}
}
},
"openpitrix.AppVersionAudit": {
"properties": {
"app_id": {
"type": "string"
},
"app_name": {
"type": "string"
},
"message": {
"type": "string"
},
"operator": {
"type": "string"
},
"operator_type": {
"type": "string"
},
"review_id": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"version_id": {
"type": "string"
},
"version_name": {
"type": "string"
},
"version_type": {
"type": "string"
}
}
},
"openpitrix.AppVersionReview": {
"properties": {
"app_id": {
"type": "string"
},
"app_name": {
"type": "string"
},
"phase": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/openpitrix.AppVersionReviewPhase"
}
},
"review_id": {
"type": "string"
},
"reviewer": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"version_id": {
"type": "string"
},
"version_name": {
"type": "string"
},
"version_type": {
"type": "string"
}
}
},
"openpitrix.AppVersionReviewPhase": {
"properties": {
"message": {
"type": "string"
},
"operator": {
"type": "string"
},
"operator_type": {
"type": "string"
},
"review_time": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
}
}
},
"openpitrix.Application": {
"required": [
"name"
],
"properties": {
"app": {
"description": "application template info",
"$ref": "#/definitions/openpitrix.App"
},
"cluster": {
"description": "application cluster info",
"$ref": "#/definitions/openpitrix.Cluster"
},
"name": {
"description": "application name",
"type": "string"
},
"releaseInfo": {
"description": "release info",
"type": "array",
"items": {
"$ref": "#/definitions/runtime.Object"
}
},
"version": {
"description": "application template version info",
"$ref": "#/definitions/openpitrix.AppVersion"
}
}
},
"openpitrix.Attachment": {
"properties": {
"attachment_content": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"attachment_id": {
"type": "string"
},
"create_time": {
"type": "string"
}
}
},
"openpitrix.Category": {
"properties": {
"app_total": {
"type": "integer",
"format": "int32"
},
"category_id": {
"type": "string"
},
"create_time": {
"type": "string"
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"update_time": {
"type": "string"
}
}
},
"openpitrix.Cluster": {
"properties": {
"additional_info": {
"type": "string"
},
"app_id": {
"type": "string"
},
"cluster_id": {
"type": "string"
},
"cluster_type": {
"type": "integer",
"format": "int64"
},
"create_time": {
"type": "string"
},
"debug": {
"type": "boolean"
},
"description": {
"type": "string"
},
"endpoints": {
"type": "string"
},
"env": {
"type": "string"
},
"frontgate_id": {
"type": "string"
},
"global_uuid": {
"type": "string"
},
"metadata_root_access": {
"type": "boolean"
},
"name": {
"type": "string"
},
"owner": {
"type": "string"
},
"runtime_id": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"subnet_id": {
"type": "string"
},
"transition_status": {
"type": "string"
},
"upgrade_status": {
"type": "string"
},
"upgrade_time": {
"type": "string"
},
"version_id": {
"type": "string"
},
"vpc_id": {
"type": "string"
},
"zone": {
"type": "string"
}
}
},
"openpitrix.CreateAppRequest": {
"properties": {
"icon": {
"type": "string"
},
"isv": {
"type": "string"
},
"name": {
"type": "string"
},
"version_name": {
"type": "string"
},
"version_package": {
"type": "string"
},
"version_type": {
"type": "string"
}
}
},
"openpitrix.CreateAppResponse": {
"properties": {
"app_id": {
"type": "string"
},
"version_id": {
"type": "string"
}
}
},
"openpitrix.CreateAppVersionRequest": {
"properties": {
"app_id": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"package": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"openpitrix.CreateAppVersionResponse": {
"properties": {
"version_id": {
"type": "string"
}
}
},
"openpitrix.CreateCategoryRequest": {
"properties": {
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"openpitrix.CreateCategoryResponse": {
"properties": {
"category_id": {
"type": "string"
}
}
},
"openpitrix.CreateClusterRequest": {
"required": [
"name",
"description",
"advanced_param"
],
"properties": {
"advanced_param": {
"type": "array",
"items": {
"type": "string"
}
},
"app_id": {
"type": "string"
},
"conf": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"runtime_id": {
"type": "string"
},
"version_id": {
"type": "string"
},
"workspace": {
"type": "string"
}
}
},
"openpitrix.CreateRepoRequest": {
"required": [
"providers",
"sync_period"
],
"properties": {
"app_default_status": {
"type": "string"
},
"category_id": {
"type": "string"
},
"credential": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"providers": {
"type": "array",
"items": {
"type": "string"
}
},
"sync_period": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"visibility": {
"type": "string"
},
"workspace": {
"type": "string"
}
}
},
"openpitrix.CreateRepoResponse": {
"properties": {
"repo_id": {
"type": "string"
}
}
},
"openpitrix.GetAppVersionPackageFilesResponse": {
"properties": {
"files": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"version_id": {
"type": "string"
}
}
},
"openpitrix.GetAppVersionPackageResponse": {
"properties": {
"app_id": {
"type": "string"
},
"package": {
"type": "string"
},
"version_id": {
"type": "string"
}
}
},
"openpitrix.ModifyAppVersionRequest": {
"properties": {
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"package": {
"type": "string"
},
"package_files": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"version_id": {
"type": "string"
}
}
},
"openpitrix.ModifyCategoryRequest": {
"properties": {
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"openpitrix.ModifyClusterAttributesRequest": {
"required": [
"cluster_id"
],
"properties": {
"clusterName": {
"type": "string"
},
"cluster_id": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"namespace": {
"type": "string"
}
}
},
"openpitrix.ModifyRepoRequest": {
"required": [
"sync_period",
"providers"
],
"properties": {
"app_default_status": {
"type": "string"
},
"category_id": {
"type": "string"
},
"credential": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"providers": {
"type": "array",
"items": {
"type": "string"
}
},
"sync_period": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"visibility": {
"type": "string"
},
"workspace": {
"type": "string"
}
}
},
"openpitrix.Repo": {
"required": [
"category_set",
"labels",
"providers",
"selectors"
],
"properties": {
"app_default_status": {
"type": "string"
},
"category_set": {
"type": "array",
"items": {
"$ref": "#/definitions/openpitrix.ResourceCategory"
}
},
"chart_count": {
"type": "integer",
"format": "int32"
},
"controller": {
"type": "integer",
"format": "int32"
},
"create_time": {
"type": "string"
},
"creator": {
"type": "string"
},
"credential": {
"type": "string"
},
"description": {
"type": "string"
},
"labels": {
"type": "array",
"items": {
"$ref": "#/definitions/openpitrix.RepoLabel"
}
},
"name": {
"type": "string"
},
"providers": {
"type": "array",
"items": {
"type": "string"
}
},
"repo_id": {
"type": "string"
},
"selectors": {
"type": "array",
"items": {
"$ref": "#/definitions/openpitrix.RepoSelector"
}
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
},
"sync_period": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"visibility": {
"type": "string"
}
}
},
"openpitrix.RepoActionRequest": {
"required": [
"action",
"workspace"
],
"properties": {
"action": {
"type": "string"
},
"workspace": {
"type": "string"
}
}
},
"openpitrix.RepoLabel": {
"properties": {
"create_time": {
"type": "string"
},
"label_key": {
"type": "string"
},
"label_value": {
"type": "string"
}
}
},
"openpitrix.RepoSelector": {
"properties": {
"create_time": {
"type": "string"
},
"selector_key": {
"type": "string"
},
"selector_value": {
"type": "string"
}
}
},
"openpitrix.ResourceCategory": {
"properties": {
"category_id": {
"type": "string"
},
"create_time": {
"type": "string"
},
"locale": {
"type": "string"
},
"name": {
"type": "string"
},
"status": {
"type": "string"
},
"status_time": {
"type": "string"
}
}
},
"openpitrix.UpgradeClusterRequest": {
"required": [
"cluster_id",
"app_id",
"advanced_param"
],
"properties": {
"advanced_param": {
"type": "array",
"items": {
"type": "string"
}
},
"app_id": {
"type": "string"
},
"cluster_id": {
"type": "string"
},
"conf": {
"type": "string"
},
"namespace": {
"type": "string"
},
"runtime_id": {
"type": "string"
},
"version_id": {
"type": "string"
}
}
},
"panels.Axis": {
"properties": {
"decimals": {
"type": "integer",
"format": "int64"
},
"format": {
"type": "string"
}
}
},
"panels.BarGaugeOptions": {
"properties": {
"colorMode": {
"type": "string"
},
"content": {
"type": "string"
},
"displayMode": {
"type": "string"
},
"graphMode": {
"type": "string"
},
"justifyMode": {
"type": "string"
},
"mode": {
"type": "string"
},
"orientation": {
"type": "string"
},
"textMode": {
"type": "string"
}
}
},
"panels.BarGaugePanel": {
"properties": {
"options": {
"$ref": "#/definitions/panels.BarGaugeOptions"
}
}
},
"panels.Gauge": {
"properties": {
"maxValue": {
"type": "integer",
"format": "int64"
},
"minValue": {
"type": "integer",
"format": "int64"
},
"show": {
"type": "boolean"
},
"thresholdLabels": {
"type": "boolean"
},
"thresholdMarkers": {
"type": "boolean"
}
}
},
"panels.GraphPanel": {
"properties": {
"bars": {
"type": "boolean"
},
"lines": {
"type": "boolean"
},
"stack": {
"type": "boolean"
},
"xaxis": {
"$ref": "#/definitions/panels.Axis"
},
"yaxes": {
"type": "array",
"items": {
"$ref": "#/definitions/panels.Axis"
}
}
}
},
"panels.Panel": {
"required": [
"GraphPanel",
"SinglestatPanel",
"TablePanel",
"TextPanel",
"BarGaugePanel"
],
"properties": {
"BarGaugePanel": {
"$ref": "#/definitions/panels.BarGaugePanel"
},
"GraphPanel": {
"$ref": "#/definitions/panels.GraphPanel"
},
"SinglestatPanel": {
"$ref": "#/definitions/panels.SinglestatPanel"
},
"TablePanel": {
"$ref": "#/definitions/panels.TablePanel"
},
"TextPanel": {
"$ref": "#/definitions/panels.TextPanel"
},
"colors": {
"type": "array",
"items": {
"type": "string"
}
},
"datasource": {
"type": "string"
},
"decimals": {
"type": "integer",
"format": "int64"
},
"description": {
"type": "string"
},
"format": {
"type": "string"
},
"height": {
"type": "string"
},
"id": {
"type": "integer",
"format": "int64"
},
"legend": {
"type": "array",
"items": {
"type": "string"
}
},
"targets": {
"type": "array",
"items": {
"$ref": "#/definitions/panels.Target"
}
},
"title": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"panels.SinglestatPanel": {
"properties": {
"gauge": {
"$ref": "#/definitions/panels.Gauge"
},
"sparkline": {
"type": "string"
},
"valueName": {
"type": "string"
}
}
},
"panels.Sort": {
"properties": {
"col": {
"type": "integer",
"format": "int32"
},
"desc": {
"type": "boolean"
}
}
},
"panels.TablePanel": {
"properties": {
"scroll": {
"type": "boolean"
},
"sort": {
"$ref": "#/definitions/panels.Sort"
}
}
},
"panels.Target": {
"properties": {
"expr": {
"type": "string"
},
"legendFormat": {
"type": "string"
},
"refId": {
"type": "integer",
"format": "int64"
},
"step": {
"type": "string"
}
}
},
"panels.TextPanel": {
"properties": {
"content": {
"type": "string"
},
"mode": {
"type": "string"
}
}
},
"registries.Config": {
"properties": {
"ArgsEscaped": {
"description": "Command is already escaped (Windows only)",
"type": "boolean"
},
"AttachStderr": {
"description": "Boolean value, attaches to stderr.",
"type": "boolean"
},
"AttachStdin": {
"description": "Boolean value, attaches to stdin.",
"type": "boolean"
},
"AttachStdout": {
"description": "Boolean value, attaches to stdout.",
"type": "boolean"
},
"Cmd": {
"description": "Command to run specified as a string or an array of strings.",
"type": "array",
"items": {
"type": "string"
}
},
"Domainname": {
"description": "A string value containing the domain name to use for the container.",
"type": "string"
},
"Entrypoint": {
"description": "The entry point set for the container as a string or an array of strings.",
"$ref": "#/definitions/registries.Config.Entrypoint"
},
"Env": {
"description": "A list of environment variables in the form of [\"VAR=value\", ...]",
"type": "array",
"items": {
"type": "string"
}
},
"ExposedPorts": {
"description": "An object mapping ports to an empty object in the form of: \"ExposedPorts\": { \"\u003cport\u003e/\u003ctcp|udp\u003e: {}\" }",
"type": "object"
},
"Hostname": {
"description": "A string value containing the hostname to use for the container.",
"type": "string"
},
"Image": {
"description": "A string specifying the image name to use for the container.",
"type": "string"
},
"Labels": {
"description": "The map of labels to a container.",
"$ref": "#/definitions/registries.Labels"
},
"OnBuild": {
"description": "ONBUILD metadata that were defined in the image's Dockerfile.",
"$ref": "#/definitions/registries.Config.OnBuild"
},
"OpenStdin": {
"description": "Boolean value, opens stdin",
"type": "boolean"
},
"StdinOnce": {
"description": "Boolean value, close stdin after the 1 attached client disconnects.",
"type": "boolean"
},
"StopSignal": {
"description": "Signal to stop a container as a string or unsigned integer.",
"type": "string"
},
"Tty": {
"description": "Boolean value, Attach standard streams to a tty, including stdin if it is not closed.",
"type": "boolean"
},
"User": {
"description": "A string value specifying the user inside the container.",
"type": "string"
},
"Volumes": {
"description": "An object mapping mount point paths (strings) inside the container to empty objects.",
"$ref": "#/definitions/registries.Config.Volumes"
},
"WorkingDir": {
"description": "A string specifying the working directory for commands to run in.",
"type": "string"
}
}
},
"registries.Config.Entrypoint": {},
"registries.Config.OnBuild": {},
"registries.Config.Volumes": {},
"registries.ContainerConfig": {
"properties": {
"ArgsEscaped": {
"description": "Command is already escaped (Windows only)",
"type": "boolean"
},
"AttachStderr": {
"description": "Boolean value, attaches to stderr.",
"type": "boolean"
},
"AttachStdin": {
"description": "Boolean value, attaches to stdin.",
"type": "boolean"
},
"AttachStdout": {
"description": "Boolean value, attaches to stdout.",
"type": "boolean"
},
"Cmd": {
"description": "Command to run specified as a string or an array of strings.",
"type": "array",
"items": {
"type": "string"
}
},
"Domainname": {
"description": "A string value containing the domain name to use for the container.",
"type": "string"
},
"Entrypoint": {
"description": "The entry point set for the container as a string or an array of strings.",
"$ref": "#/definitions/registries.ContainerConfig.Entrypoint"
},
"Env": {
"description": "A list of environment variables in the form of [\"VAR=value\", ...]",
"type": "array",
"items": {
"type": "string"
}
},
"ExposedPorts": {
"description": "An object mapping ports to an empty object in the form of: \"ExposedPorts\": { \"\u003cport\u003e/\u003ctcp|udp\u003e: {}\" }",
"type": "object"
},
"Hostname": {
"description": "A string value containing the hostname to use for the container.",
"type": "string"
},
"Image": {
"description": "A string specifying the image name to use for the container.",
"type": "string"
},
"Labels": {
"description": "The map of labels to a container.",
"$ref": "#/definitions/registries.Labels"
},
"OnBuild": {
"description": "ONBUILD metadata that were defined in the image's Dockerfile.",
"$ref": "#/definitions/registries.ContainerConfig.OnBuild"
},
"OpenStdin": {
"description": "Boolean value, opens stdin",
"type": "boolean"
},
"StdinOnce": {
"description": "Boolean value, close stdin after the 1 attached client disconnects.",
"type": "boolean"
},
"StopSignal": {
"description": "Signal to stop a container as a string or unsigned integer.",
"type": "string"
},
"Tty": {
"description": "Boolean value, Attach standard streams to a tty, including stdin if it is not closed.",
"type": "boolean"
},
"User": {
"description": "A string value specifying the user inside the container.",
"type": "string"
},
"Volumes": {
"description": "An object mapping mount point paths (strings) inside the container to empty objects.",
"$ref": "#/definitions/registries.ContainerConfig.Volumes"
},
"WorkingDir": {
"description": "A string specifying the working directory for commands to run in.",
"type": "string"
}
}
},
"registries.ContainerConfig.Entrypoint": {},
"registries.ContainerConfig.OnBuild": {},
"registries.ContainerConfig.Volumes": {},
"registries.History": {
"properties": {
"created": {
"description": "Created time.",
"type": "string",
"format": "date-time"
},
"created_by": {
"description": "Created command.",
"type": "string"
},
"empty_layer": {
"description": "Layer empty or not.",
"type": "boolean"
}
}
},
"registries.ImageBlob": {
"required": [
"rootfs omitempty"
],
"properties": {
"architecture": {
"description": "The architecture field specifies the CPU architecture, for example amd64 or ppc64le.",
"type": "string"
},
"config": {
"description": "The config field references a configuration object for a container.",
"$ref": "#/definitions/registries.Config"
},
"container": {
"description": "Container id.",
"type": "string"
},
"container_config": {
"description": "The config data of container.",
"$ref": "#/definitions/registries.ContainerConfig"
},
"created": {
"description": "Create time.",
"type": "string",
"format": "date-time"
},
"docker_version": {
"description": "docker version.",
"type": "string"
},
"history": {
"description": "The data of history update.",
"type": "array",
"items": {
"$ref": "#/definitions/registries.History"
}
},
"os": {
"description": "Operating system.",
"type": "string"
},
"rootfs omitempty": {
"description": "Root filesystem.",
"$ref": "#/definitions/registries.Rootfs"
}
}
},
"registries.ImageDetails": {
"properties": {
"imageBlob": {
"description": "Retrieve the blob from the registry identified. Reference: https://docs.docker.com/registry/spec/api/#blob",
"$ref": "#/definitions/registries.ImageBlob"
},
"imageManifest": {
"description": "Retrieve the manifest from the registry identified. Reference: https://docs.docker.com/registry/spec/api/#manifest",
"$ref": "#/definitions/registries.ImageManifest"
},
"imageTag": {
"description": "image tag.",
"type": "string"
},
"message": {
"description": "Status message.",
"type": "string"
},
"registry": {
"description": "registry domain.",
"type": "string"
},
"status": {
"description": "Status is the status of the image search, such as \"succeeded\".",
"type": "string"
}
}
},
"registries.ImageManifest": {
"properties": {
"config": {
"description": "The config field references a configuration object for a container.",
"$ref": "#/definitions/registries.ManifestConfig"
},
"layers": {
"description": "Fields of an item in the layers list.",
"type": "array",
"items": {
"$ref": "#/definitions/registries.Layers"
}
},
"mediaType": {
"description": "The MIME type of the manifest.",
"type": "string"
},
"schemaVersion": {
"description": "This field specifies the image manifest schema version as an integer.",
"type": "integer",
"format": "int32"
}
}
},
"registries.Labels": {
"required": [
"maintainer"
],
"properties": {
"maintainer": {
"type": "string"
}
}
},
"registries.Layers": {
"properties": {
"digest": {
"description": "The digest of the content, as defined by the Registry V2 HTTP API Specificiation. Reference https://docs.docker.com/registry/spec/api/#digest-parameter",
"type": "string"
},
"mediaType": {
"description": "The MIME type of the layer.",
"type": "string"
},
"size": {
"description": "The size in bytes of the layer.",
"type": "integer",
"format": "int32"
}
}
},
"registries.ManifestConfig": {
"properties": {
"digest": {
"description": "The digest of the content, as defined by the Registry V2 HTTP API Specificiation. Reference https://docs.docker.com/registry/spec/api/#digest-parameter",
"type": "string"
},
"mediaType": {
"description": "The MIME type of the image.",
"type": "string"
},
"size": {
"description": "The size in bytes of the image.",
"type": "integer",
"format": "int32"
}
}
},
"registries.Rootfs": {
"properties": {
"diff_ids": {
"description": "Contain ids of layer list",
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"description": "Root filesystem type, always \"layers\" ",
"type": "string"
}
}
},
"resource.Quantity": {
"required": [
"i",
"d",
"s",
"Format"
],
"properties": {
"Format": {
"type": "string"
},
"d": {
"$ref": "#/definitions/resource.infDecAmount"
},
"i": {
"$ref": "#/definitions/resource.int64Amount"
},
"s": {
"type": "string"
}
}
},
"resource.infDecAmount": {
"required": [
"Dec"
],
"properties": {
"Dec": {
"$ref": "#/definitions/inf.Dec"
}
}
},
"resource.int64Amount": {
"required": [
"value",
"scale"
],
"properties": {
"scale": {
"type": "integer",
"format": "int32"
},
"value": {
"type": "integer",
"format": "int64"
}
}
},
"runtime.Object": {},
"templatings.Option": {
"properties": {
"selected": {
"type": "boolean"
},
"text": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"templatings.TemplateVar": {
"properties": {
"allFormat": {
"type": "string"
},
"allValue": {
"type": "string"
},
"auto": {
"type": "boolean"
},
"auto_count": {
"type": "integer",
"format": "int32"
},
"datasource": {
"type": "string"
},
"hide": {
"type": "integer",
"format": "byte"
},
"includeAll": {
"type": "boolean"
},
"label": {
"type": "string"
},
"multi": {
"type": "boolean"
},
"multiFormat": {
"type": "string"
},
"name": {
"type": "string"
},
"options": {
"type": "array",
"items": {
"$ref": "#/definitions/templatings.Option"
}
},
"query": {
"type": "string"
},
"regex": {
"type": "string"
},
"sort": {
"type": "integer",
"format": "int32"
},
"type": {
"type": "string"
}
}
},
"v1.AWSElasticBlockStoreVolumeSource": {
"description": "Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.",
"required": [
"volumeID"
],
"properties": {
"fsType": {
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore",
"type": "string"
},
"partition": {
"description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).",
"type": "integer",
"format": "int32"
},
"readOnly": {
"description": "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore",
"type": "boolean"
},
"volumeID": {
"description": "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore",
"type": "string"
}
}
},
"v1.Affinity": {
"description": "Affinity is a group of affinity scheduling rules.",
"properties": {
"nodeAffinity": {
"description": "Describes node affinity scheduling rules for the pod.",
"$ref": "#/definitions/v1.NodeAffinity"
},
"podAffinity": {
"description": "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).",
"$ref": "#/definitions/v1.PodAffinity"
},
"podAntiAffinity": {
"description": "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).",
"$ref": "#/definitions/v1.PodAntiAffinity"
}
}
},
"v1.AggregationRule": {
"description": "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole",
"properties": {
"clusterRoleSelectors": {
"description": "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added",
"type": "array",
"items": {
"$ref": "#/definitions/v1.LabelSelector"
}
}
}
},
"v1.AzureDiskVolumeSource": {
"description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
"required": [
"diskName",
"diskURI"
],
"properties": {
"cachingMode": {
"description": "Host Caching mode: None, Read Only, Read Write.",
"type": "string"
},
"diskName": {
"description": "The Name of the data disk in the blob storage",
"type": "string"
},
"diskURI": {
"description": "The URI the data disk in the blob storage",
"type": "string"
},
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"kind": {
"description": "Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared",
"type": "string"
},
"readOnly": {
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
}
}
},
"v1.AzureFileVolumeSource": {
"description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.",
"required": [
"secretName",
"shareName"
],
"properties": {
"readOnly": {
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"secretName": {
"description": "the name of secret that contains Azure Storage Account Name and Key",
"type": "string"
},
"shareName": {
"description": "Share Name",
"type": "string"
}
}
},
"v1.CSIVolumeSource": {
"description": "Represents a source location of a volume to mount, managed by an external CSI driver",
"required": [
"driver"
],
"properties": {
"driver": {
"description": "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.",
"type": "string"
},
"fsType": {
"description": "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.",
"type": "string"
},
"nodePublishSecretRef": {
"description": "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"readOnly": {
"description": "Specifies a read-only configuration for the volume. Defaults to false (read/write).",
"type": "boolean"
},
"volumeAttributes": {
"description": "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1.Capabilities": {
"description": "Adds and removes POSIX capabilities from running containers.",
"properties": {
"add": {
"description": "Added capabilities",
"type": "array",
"items": {
"type": "string"
}
},
"drop": {
"description": "Removed capabilities",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.CephFSVolumeSource": {
"description": "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.",
"required": [
"monitors"
],
"properties": {
"monitors": {
"description": "Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it",
"type": "array",
"items": {
"type": "string"
}
},
"path": {
"description": "Optional: Used as the mounted root, rather than the full Ceph tree, default is /",
"type": "string"
},
"readOnly": {
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it",
"type": "boolean"
},
"secretFile": {
"description": "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it",
"type": "string"
},
"secretRef": {
"description": "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"user": {
"description": "Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it",
"type": "string"
}
}
},
"v1.CinderVolumeSource": {
"description": "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.",
"required": [
"volumeID"
],
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md",
"type": "string"
},
"readOnly": {
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md",
"type": "boolean"
},
"secretRef": {
"description": "Optional: points to a secret object containing parameters used to connect to OpenStack.",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"volumeID": {
"description": "volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md",
"type": "string"
}
}
},
"v1.ClientIPConfig": {
"description": "ClientIPConfig represents the configurations of Client IP based session affinity.",
"properties": {
"timeoutSeconds": {
"description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be \u003e0 \u0026\u0026 \u003c=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).",
"type": "integer",
"format": "int32"
}
}
},
"v1.ClusterRole": {
"description": "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.",
"required": [
"rules"
],
"properties": {
"aggregationRule": {
"description": "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.",
"$ref": "#/definitions/v1.AggregationRule"
},
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata.",
"$ref": "#/definitions/v1.ObjectMeta"
},
"rules": {
"description": "Rules holds all the PolicyRules for this ClusterRole",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PolicyRule"
}
}
}
},
"v1.Condition": {
"description": "Condition contains details for one aspect of the current state of this API Resource.",
"required": [
"type",
"status",
"lastTransitionTime",
"reason",
"message"
],
"properties": {
"lastTransitionTime": {
"description": "lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
"type": "string"
},
"message": {
"description": "message is a human readable message indicating details about the transition. This may be an empty string.",
"type": "string"
},
"observedGeneration": {
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.",
"type": "integer",
"format": "int64"
},
"reason": {
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.",
"type": "string"
},
"status": {
"description": "status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
"type": "string"
}
}
},
"v1.Config": {
"properties": {
"ArgsEscaped": {
"type": "boolean"
},
"AttachStderr": {
"type": "boolean"
},
"AttachStdin": {
"type": "boolean"
},
"AttachStdout": {
"type": "boolean"
},
"Cmd": {
"type": "array",
"items": {
"type": "string"
}
},
"Domainname": {
"type": "string"
},
"Entrypoint": {
"type": "array",
"items": {
"type": "string"
}
},
"Env": {
"type": "array",
"items": {
"type": "string"
}
},
"ExposedPorts": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1.Config.ExposedPorts"
}
},
"Healthcheck": {
"$ref": "#/definitions/v1.HealthConfig"
},
"Hostname": {
"type": "string"
},
"Image": {
"type": "string"
},
"Labels": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"MacAddress": {
"type": "string"
},
"NetworkDisabled": {
"type": "boolean"
},
"OnBuild": {
"type": "array",
"items": {
"type": "string"
}
},
"OpenStdin": {
"type": "boolean"
},
"Shell": {
"type": "array",
"items": {
"type": "string"
}
},
"StdinOnce": {
"type": "boolean"
},
"StopSignal": {
"type": "string"
},
"Tty": {
"type": "boolean"
},
"User": {
"type": "string"
},
"Volumes": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1.Config.Volumes"
}
},
"WorkingDir": {
"type": "string"
}
}
},
"v1.Config.ExposedPorts": {},
"v1.Config.Volumes": {},
"v1.ConfigFile": {
"required": [
"architecture",
"os",
"rootfs",
"config"
],
"properties": {
"architecture": {
"type": "string"
},
"author": {
"type": "string"
},
"config": {
"$ref": "#/definitions/v1.Config"
},
"container": {
"type": "string"
},
"created": {
"type": "string"
},
"docker_version": {
"type": "string"
},
"history": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.History"
}
},
"os": {
"type": "string"
},
"os.version": {
"type": "string"
},
"rootfs": {
"$ref": "#/definitions/v1.RootFS"
}
}
},
"v1.ConfigMapEnvSource": {
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the ConfigMap must be defined",
"type": "boolean"
}
}
},
"v1.ConfigMapKeySelector": {
"description": "Selects a key from a ConfigMap.",
"required": [
"key"
],
"properties": {
"key": {
"description": "The key to select.",
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the ConfigMap or its key must be defined",
"type": "boolean"
}
}
},
"v1.ConfigMapProjection": {
"description": "Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.",
"properties": {
"items": {
"description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.KeyToPath"
}
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the ConfigMap or its keys must be defined",
"type": "boolean"
}
}
},
"v1.ConfigMapVolumeSource": {
"description": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.",
"properties": {
"defaultMode": {
"description": "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"items": {
"description": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.KeyToPath"
}
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the ConfigMap or its keys must be defined",
"type": "boolean"
}
}
},
"v1.Container": {
"description": "A single application container that you want to run within a pod.",
"required": [
"name"
],
"properties": {
"args": {
"description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"description": "List of environment variables to set in the container. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvVar"
}
},
"envFrom": {
"description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvFromSource"
}
},
"image": {
"description": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.",
"type": "string"
},
"imagePullPolicy": {
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images",
"type": "string"
},
"lifecycle": {
"description": "Actions that the management system should take in response to container lifecycle events. Cannot be updated.",
"$ref": "#/definitions/v1.Lifecycle"
},
"livenessProbe": {
"description": "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
"$ref": "#/definitions/v1.Probe"
},
"name": {
"description": "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.",
"type": "string"
},
"ports": {
"description": "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ContainerPort"
}
},
"readinessProbe": {
"description": "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
"$ref": "#/definitions/v1.Probe"
},
"resources": {
"description": "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"$ref": "#/definitions/v1.ResourceRequirements"
},
"securityContext": {
"description": "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/",
"$ref": "#/definitions/v1.SecurityContext"
},
"startupProbe": {
"description": "StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
"$ref": "#/definitions/v1.Probe"
},
"stdin": {
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.",
"type": "boolean"
},
"stdinOnce": {
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false",
"type": "boolean"
},
"terminationMessagePath": {
"description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.",
"type": "string"
},
"terminationMessagePolicy": {
"description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.",
"type": "string"
},
"tty": {
"description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.",
"type": "boolean"
},
"volumeDevices": {
"description": "volumeDevices is the list of block devices to be used by the container.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.VolumeDevice"
}
},
"volumeMounts": {
"description": "Pod volumes to mount into the container's filesystem. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.VolumeMount"
}
},
"workingDir": {
"description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.",
"type": "string"
}
}
},
"v1.ContainerPort": {
"description": "ContainerPort represents a network port in a single container.",
"required": [
"containerPort"
],
"properties": {
"containerPort": {
"description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.",
"type": "integer",
"format": "int32"
},
"hostIP": {
"description": "What host IP to bind the external port to.",
"type": "string"
},
"hostPort": {
"description": "Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.",
"type": "integer",
"format": "int32"
},
"name": {
"description": "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.",
"type": "string"
},
"protocol": {
"description": "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".",
"type": "string"
}
}
},
"v1.DaemonSet": {
"description": "DaemonSet represents the configuration of a daemon set.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.DaemonSetSpec"
},
"status": {
"description": "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.DaemonSetStatus"
}
}
},
"v1.DaemonSetCondition": {
"description": "DaemonSetCondition describes the state of a DaemonSet at a certain point.",
"required": [
"type",
"status"
],
"properties": {
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "A human readable message indicating details about the transition.",
"type": "string"
},
"reason": {
"description": "The reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type of DaemonSet condition.",
"type": "string"
}
}
},
"v1.DaemonSetSpec": {
"description": "DaemonSetSpec is the specification of a daemon set.",
"required": [
"selector",
"template"
],
"properties": {
"minReadySeconds": {
"description": "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).",
"type": "integer",
"format": "int32"
},
"revisionHistoryLimit": {
"description": "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.",
"type": "integer",
"format": "int32"
},
"selector": {
"description": "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"$ref": "#/definitions/v1.LabelSelector"
},
"template": {
"description": "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template",
"$ref": "#/definitions/v1.PodTemplateSpec"
},
"updateStrategy": {
"description": "An update strategy to replace existing DaemonSet pods with new pods.",
"$ref": "#/definitions/v1.DaemonSetUpdateStrategy"
}
}
},
"v1.DaemonSetStatus": {
"description": "DaemonSetStatus represents the current status of a daemon set.",
"required": [
"currentNumberScheduled",
"numberMisscheduled",
"desiredNumberScheduled",
"numberReady"
],
"properties": {
"collisionCount": {
"description": "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.",
"type": "integer",
"format": "int32"
},
"conditions": {
"description": "Represents the latest available observations of a DaemonSet's current state.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.DaemonSetCondition"
}
},
"currentNumberScheduled": {
"description": "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/",
"type": "integer",
"format": "int32"
},
"desiredNumberScheduled": {
"description": "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/",
"type": "integer",
"format": "int32"
},
"numberAvailable": {
"description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)",
"type": "integer",
"format": "int32"
},
"numberMisscheduled": {
"description": "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/",
"type": "integer",
"format": "int32"
},
"numberReady": {
"description": "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.",
"type": "integer",
"format": "int32"
},
"numberUnavailable": {
"description": "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)",
"type": "integer",
"format": "int32"
},
"observedGeneration": {
"description": "The most recent generation observed by the daemon set controller.",
"type": "integer",
"format": "int64"
},
"updatedNumberScheduled": {
"description": "The total number of nodes that are running updated daemon pod",
"type": "integer",
"format": "int32"
}
}
},
"v1.DaemonSetUpdateStrategy": {
"description": "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.",
"properties": {
"rollingUpdate": {
"description": "Rolling update config params. Present only if type = \"RollingUpdate\".",
"$ref": "#/definitions/v1.RollingUpdateDaemonSet"
},
"type": {
"description": "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.",
"type": "string"
}
}
},
"v1.DownwardAPIProjection": {
"description": "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.",
"properties": {
"items": {
"description": "Items is a list of DownwardAPIVolume file",
"type": "array",
"items": {
"$ref": "#/definitions/v1.DownwardAPIVolumeFile"
}
}
}
},
"v1.DownwardAPIVolumeFile": {
"description": "DownwardAPIVolumeFile represents information to create the file containing the pod field",
"required": [
"path"
],
"properties": {
"fieldRef": {
"description": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.",
"$ref": "#/definitions/v1.ObjectFieldSelector"
},
"mode": {
"description": "Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"path": {
"description": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'",
"type": "string"
},
"resourceFieldRef": {
"description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.",
"$ref": "#/definitions/v1.ResourceFieldSelector"
}
}
},
"v1.DownwardAPIVolumeSource": {
"description": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.",
"properties": {
"defaultMode": {
"description": "Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"items": {
"description": "Items is a list of downward API volume file",
"type": "array",
"items": {
"$ref": "#/definitions/v1.DownwardAPIVolumeFile"
}
}
}
},
"v1.EmptyDirVolumeSource": {
"description": "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.",
"properties": {
"medium": {
"description": "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir",
"type": "string"
},
"sizeLimit": {
"description": "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir",
"type": "string"
}
}
},
"v1.EnvFromSource": {
"description": "EnvFromSource represents the source of a set of ConfigMaps",
"properties": {
"configMapRef": {
"description": "The ConfigMap to select from",
"$ref": "#/definitions/v1.ConfigMapEnvSource"
},
"prefix": {
"description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.",
"type": "string"
},
"secretRef": {
"description": "The Secret to select from",
"$ref": "#/definitions/v1.SecretEnvSource"
}
}
},
"v1.EnvVar": {
"description": "EnvVar represents an environment variable present in a Container.",
"required": [
"name"
],
"properties": {
"name": {
"description": "Name of the environment variable. Must be a C_IDENTIFIER.",
"type": "string"
},
"value": {
"description": "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".",
"type": "string"
},
"valueFrom": {
"description": "Source for the environment variable's value. Cannot be used if value is not empty.",
"$ref": "#/definitions/v1.EnvVarSource"
}
}
},
"v1.EnvVarSource": {
"description": "EnvVarSource represents a source for the value of an EnvVar.",
"properties": {
"configMapKeyRef": {
"description": "Selects a key of a ConfigMap.",
"$ref": "#/definitions/v1.ConfigMapKeySelector"
},
"fieldRef": {
"description": "Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['\u003cKEY\u003e']`, `metadata.annotations['\u003cKEY\u003e']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.",
"$ref": "#/definitions/v1.ObjectFieldSelector"
},
"resourceFieldRef": {
"description": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.",
"$ref": "#/definitions/v1.ResourceFieldSelector"
},
"secretKeyRef": {
"description": "Selects a key of a secret in the pod's namespace",
"$ref": "#/definitions/v1.SecretKeySelector"
}
}
},
"v1.EphemeralContainer": {
"description": "An EphemeralContainer is a container that may be added temporarily to an existing pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a pod is removed or restarted. If an ephemeral container causes a pod to exceed its resource allocation, the pod may be evicted. Ephemeral containers may not be added by directly updating the pod spec. They must be added via the pod's ephemeralcontainers subresource, and they will appear in the pod spec once added. This is an alpha feature enabled by the EphemeralContainers feature flag.",
"required": [
"name"
],
"properties": {
"args": {
"description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell",
"type": "array",
"items": {
"type": "string"
}
},
"env": {
"description": "List of environment variables to set in the container. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvVar"
}
},
"envFrom": {
"description": "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.EnvFromSource"
}
},
"image": {
"description": "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images",
"type": "string"
},
"imagePullPolicy": {
"description": "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images",
"type": "string"
},
"lifecycle": {
"description": "Lifecycle is not allowed for ephemeral containers.",
"$ref": "#/definitions/v1.Lifecycle"
},
"livenessProbe": {
"description": "Probes are not allowed for ephemeral containers.",
"$ref": "#/definitions/v1.Probe"
},
"name": {
"description": "Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.",
"type": "string"
},
"ports": {
"description": "Ports are not allowed for ephemeral containers.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ContainerPort"
}
},
"readinessProbe": {
"description": "Probes are not allowed for ephemeral containers.",
"$ref": "#/definitions/v1.Probe"
},
"resources": {
"description": "Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.",
"$ref": "#/definitions/v1.ResourceRequirements"
},
"securityContext": {
"description": "SecurityContext is not allowed for ephemeral containers.",
"$ref": "#/definitions/v1.SecurityContext"
},
"startupProbe": {
"description": "Probes are not allowed for ephemeral containers.",
"$ref": "#/definitions/v1.Probe"
},
"stdin": {
"description": "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.",
"type": "boolean"
},
"stdinOnce": {
"description": "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false",
"type": "boolean"
},
"targetContainerName": {
"description": "If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature.",
"type": "string"
},
"terminationMessagePath": {
"description": "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.",
"type": "string"
},
"terminationMessagePolicy": {
"description": "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.",
"type": "string"
},
"tty": {
"description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.",
"type": "boolean"
},
"volumeDevices": {
"description": "volumeDevices is the list of block devices to be used by the container.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.VolumeDevice"
}
},
"volumeMounts": {
"description": "Pod volumes to mount into the container's filesystem. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.VolumeMount"
}
},
"workingDir": {
"description": "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.",
"type": "string"
}
}
},
"v1.EphemeralVolumeSource": {
"description": "Represents an ephemeral volume that is handled by a normal storage driver.",
"properties": {
"volumeClaimTemplate": {
"description": "Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `\u003cpod name\u003e-\u003cvolume name\u003e` where `\u003cvolume name\u003e` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil.",
"$ref": "#/definitions/v1.PersistentVolumeClaimTemplate"
}
}
},
"v1.ExecAction": {
"description": "ExecAction describes a \"run in container\" action.",
"properties": {
"command": {
"description": "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.FCVolumeSource": {
"description": "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.",
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"lun": {
"description": "Optional: FC target lun number",
"type": "integer",
"format": "int32"
},
"readOnly": {
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"targetWWNs": {
"description": "Optional: FC target worldwide names (WWNs)",
"type": "array",
"items": {
"type": "string"
}
},
"wwids": {
"description": "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.FlexVolumeSource": {
"description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.",
"required": [
"driver"
],
"properties": {
"driver": {
"description": "Driver is the name of the driver to use for this volume.",
"type": "string"
},
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.",
"type": "string"
},
"options": {
"description": "Optional: Extra command options if any.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"readOnly": {
"description": "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"secretRef": {
"description": "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.",
"$ref": "#/definitions/v1.LocalObjectReference"
}
}
},
"v1.FlockerVolumeSource": {
"description": "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.",
"properties": {
"datasetName": {
"description": "Name of the dataset stored as metadata -\u003e name on the dataset for Flocker should be considered as deprecated",
"type": "string"
},
"datasetUUID": {
"description": "UUID of the dataset. This is unique identifier of a Flocker dataset",
"type": "string"
}
}
},
"v1.GCEPersistentDiskVolumeSource": {
"description": "Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.",
"required": [
"pdName"
],
"properties": {
"fsType": {
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk",
"type": "string"
},
"partition": {
"description": "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk",
"type": "integer",
"format": "int32"
},
"pdName": {
"description": "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk",
"type": "string"
},
"readOnly": {
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk",
"type": "boolean"
}
}
},
"v1.GitRepoVolumeSource": {
"description": "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.",
"required": [
"repository"
],
"properties": {
"directory": {
"description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.",
"type": "string"
},
"repository": {
"description": "Repository URL",
"type": "string"
},
"revision": {
"description": "Commit hash for the specified revision.",
"type": "string"
}
}
},
"v1.GlusterfsVolumeSource": {
"description": "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.",
"required": [
"endpoints",
"path"
],
"properties": {
"endpoints": {
"description": "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod",
"type": "string"
},
"path": {
"description": "Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod",
"type": "string"
},
"readOnly": {
"description": "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod",
"type": "boolean"
}
}
},
"v1.HTTPGetAction": {
"description": "HTTPGetAction describes an action based on HTTP Get requests.",
"required": [
"port"
],
"properties": {
"host": {
"description": "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.",
"type": "string"
},
"httpHeaders": {
"description": "Custom headers to set in the request. HTTP allows repeated headers.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.HTTPHeader"
}
},
"path": {
"description": "Path to access on the HTTP server.",
"type": "string"
},
"port": {
"description": "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
"type": "string"
},
"scheme": {
"description": "Scheme to use for connecting to the host. Defaults to HTTP.",
"type": "string"
}
}
},
"v1.HTTPHeader": {
"description": "HTTPHeader describes a custom header to be used in HTTP probes",
"required": [
"name",
"value"
],
"properties": {
"name": {
"description": "The header field name",
"type": "string"
},
"value": {
"description": "The header field value",
"type": "string"
}
}
},
"v1.Handler": {
"description": "Handler defines a specific action that should be taken",
"properties": {
"exec": {
"description": "One and only one of the following should be specified. Exec specifies the action to take.",
"$ref": "#/definitions/v1.ExecAction"
},
"httpGet": {
"description": "HTTPGet specifies the http request to perform.",
"$ref": "#/definitions/v1.HTTPGetAction"
},
"tcpSocket": {
"description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported",
"$ref": "#/definitions/v1.TCPSocketAction"
}
}
},
"v1.Hash": {
"required": [
"Algorithm",
"Hex"
],
"properties": {
"Algorithm": {
"type": "string"
},
"Hex": {
"type": "string"
}
}
},
"v1.HealthConfig": {
"properties": {
"Interval": {
"type": "integer",
"format": "integer"
},
"Retries": {
"type": "integer",
"format": "int32"
},
"StartPeriod": {
"type": "integer",
"format": "integer"
},
"Test": {
"type": "array",
"items": {
"type": "string"
}
},
"Timeout": {
"type": "integer",
"format": "integer"
}
}
},
"v1.History": {
"properties": {
"author": {
"type": "string"
},
"comment": {
"type": "string"
},
"created": {
"type": "string"
},
"created_by": {
"type": "string"
},
"empty_layer": {
"type": "boolean"
}
}
},
"v1.HostAlias": {
"description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.",
"properties": {
"hostnames": {
"description": "Hostnames for the above IP address.",
"type": "array",
"items": {
"type": "string"
}
},
"ip": {
"description": "IP address of the host file entry.",
"type": "string"
}
}
},
"v1.HostPathVolumeSource": {
"description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.",
"required": [
"path"
],
"properties": {
"path": {
"description": "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath",
"type": "string"
},
"type": {
"description": "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath",
"type": "string"
}
}
},
"v1.ISCSIVolumeSource": {
"description": "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.",
"required": [
"targetPortal",
"iqn",
"lun"
],
"properties": {
"chapAuthDiscovery": {
"description": "whether support iSCSI Discovery CHAP authentication",
"type": "boolean"
},
"chapAuthSession": {
"description": "whether support iSCSI Session CHAP authentication",
"type": "boolean"
},
"fsType": {
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi",
"type": "string"
},
"initiatorName": {
"description": "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.",
"type": "string"
},
"iqn": {
"description": "Target iSCSI Qualified Name.",
"type": "string"
},
"iscsiInterface": {
"description": "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).",
"type": "string"
},
"lun": {
"description": "iSCSI Target Lun number.",
"type": "integer",
"format": "int32"
},
"portals": {
"description": "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).",
"type": "array",
"items": {
"type": "string"
}
},
"readOnly": {
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.",
"type": "boolean"
},
"secretRef": {
"description": "CHAP Secret for iSCSI target and initiator authentication",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"targetPortal": {
"description": "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).",
"type": "string"
}
}
},
"v1.KeyToPath": {
"description": "Maps a string key to a path within a volume.",
"required": [
"key",
"path"
],
"properties": {
"key": {
"description": "The key to project.",
"type": "string"
},
"mode": {
"description": "Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"path": {
"description": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.",
"type": "string"
}
}
},
"v1.LabelSelector": {
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
"properties": {
"matchExpressions": {
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.LabelSelectorRequirement"
}
},
"matchLabels": {
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1.LabelSelectorRequirement": {
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"required": [
"key",
"operator"
],
"properties": {
"key": {
"description": "key is the label key that the selector applies to.",
"type": "string"
},
"operator": {
"description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.",
"type": "string"
},
"values": {
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.Lifecycle": {
"description": "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.",
"properties": {
"postStart": {
"description": "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks",
"$ref": "#/definitions/v1.Handler"
},
"preStop": {
"description": "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks",
"$ref": "#/definitions/v1.Handler"
}
}
},
"v1.LoadBalancerIngress": {
"description": "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.",
"properties": {
"hostname": {
"description": "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)",
"type": "string"
},
"ip": {
"description": "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)",
"type": "string"
},
"ports": {
"description": "Ports is a list of records of service ports If used, every port defined in the service should have an entry in it",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PortStatus"
}
}
}
},
"v1.LoadBalancerStatus": {
"description": "LoadBalancerStatus represents the status of a load-balancer.",
"properties": {
"ingress": {
"description": "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.LoadBalancerIngress"
}
}
}
},
"v1.LocalObjectReference": {
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
}
}
},
"v1.ManagedFieldsEntry": {
"description": "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.",
"type": "string"
},
"fieldsType": {
"description": "FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"",
"type": "string"
},
"fieldsV1": {
"description": "FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.",
"type": "string"
},
"manager": {
"description": "Manager is an identifier of the workflow managing these fields.",
"type": "string"
},
"operation": {
"description": "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.",
"type": "string"
},
"time": {
"description": "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'",
"type": "string"
}
}
},
"v1.NFSVolumeSource": {
"description": "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.",
"required": [
"server",
"path"
],
"properties": {
"path": {
"description": "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs",
"type": "string"
},
"readOnly": {
"description": "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs",
"type": "boolean"
},
"server": {
"description": "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs",
"type": "string"
}
}
},
"v1.Namespace": {
"description": "Namespace provides a scope for Names. Use of multiple namespaces is optional.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.NamespaceSpec"
},
"status": {
"description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.NamespaceStatus"
}
}
},
"v1.NamespaceCondition": {
"description": "NamespaceCondition contains details about state of namespace.",
"required": [
"type",
"status"
],
"properties": {
"lastTransitionTime": {
"type": "string"
},
"message": {
"type": "string"
},
"reason": {
"type": "string"
},
"status": {
"description": "Status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type of namespace controller condition.",
"type": "string"
}
}
},
"v1.NamespaceSpec": {
"description": "NamespaceSpec describes the attributes on a Namespace.",
"properties": {
"finalizers": {
"description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.NamespaceStatus": {
"description": "NamespaceStatus is information about the current status of a Namespace.",
"properties": {
"conditions": {
"description": "Represents the latest available observations of a namespace's current state.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.NamespaceCondition"
}
},
"phase": {
"description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/",
"type": "string"
}
}
},
"v1.NodeAffinity": {
"description": "Node affinity is a group of node affinity scheduling rules.",
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PreferredSchedulingTerm"
}
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.",
"$ref": "#/definitions/v1.NodeSelector"
}
}
},
"v1.NodeSelector": {
"description": "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.",
"required": [
"nodeSelectorTerms"
],
"properties": {
"nodeSelectorTerms": {
"description": "Required. A list of node selector terms. The terms are ORed.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.NodeSelectorTerm"
}
}
}
},
"v1.NodeSelectorRequirement": {
"description": "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
"required": [
"key",
"operator"
],
"properties": {
"key": {
"description": "The label key that the selector applies to.",
"type": "string"
},
"operator": {
"description": "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.",
"type": "string"
},
"values": {
"description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.NodeSelectorTerm": {
"description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
"properties": {
"matchExpressions": {
"description": "A list of node selector requirements by node's labels.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.NodeSelectorRequirement"
}
},
"matchFields": {
"description": "A list of node selector requirements by node's fields.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.NodeSelectorRequirement"
}
}
}
},
"v1.ObjectFieldSelector": {
"description": "ObjectFieldSelector selects an APIVersioned field of an object.",
"required": [
"fieldPath"
],
"properties": {
"apiVersion": {
"description": "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".",
"type": "string"
},
"fieldPath": {
"description": "Path of the field to select in the specified API version.",
"type": "string"
}
}
},
"v1.ObjectMeta": {
"description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
"properties": {
"annotations": {
"description": "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",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"clusterName": {
"description": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.",
"type": "string"
},
"creationTimestamp": {
"description": "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"type": "string"
},
"deletionGracePeriodSeconds": {
"description": "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.",
"type": "integer",
"format": "int64"
},
"deletionTimestamp": {
"description": "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"type": "string"
},
"finalizers": {
"description": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.",
"type": "array",
"items": {
"type": "string"
}
},
"generateName": {
"description": "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency",
"type": "string"
},
"generation": {
"description": "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.",
"type": "integer",
"format": "int64"
},
"labels": {
"description": "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",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"managedFields": {
"description": "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ManagedFieldsEntry"
}
},
"name": {
"description": "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",
"type": "string"
},
"namespace": {
"description": "Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces",
"type": "string"
},
"ownerReferences": {
"description": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.OwnerReference"
}
},
"resourceVersion": {
"description": "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
"type": "string"
},
"selfLink": {
"description": "SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release.",
"type": "string"
},
"uid": {
"description": "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
"type": "string"
}
}
},
"v1.OwnerReference": {
"description": "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.",
"required": [
"apiVersion",
"kind",
"name",
"uid"
],
"properties": {
"apiVersion": {
"description": "API version of the referent.",
"type": "string"
},
"blockOwnerDeletion": {
"description": "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.",
"type": "boolean"
},
"controller": {
"description": "If true, this reference points to the managing controller.",
"type": "boolean"
},
"kind": {
"description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"name": {
"description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names",
"type": "string"
},
"uid": {
"description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids",
"type": "string"
}
}
},
"v1.PersistentVolumeClaim": {
"description": "PersistentVolumeClaim is a user's request for and claim to a persistent volume",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
"$ref": "#/definitions/v1.PersistentVolumeClaimSpec"
},
"status": {
"description": "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
"$ref": "#/definitions/v1.PersistentVolumeClaimStatus"
}
}
},
"v1.PersistentVolumeClaimCondition": {
"description": "PersistentVolumeClaimCondition contails details about state of pvc",
"required": [
"type",
"status"
],
"properties": {
"lastProbeTime": {
"description": "Last time we probed the condition.",
"type": "string"
},
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "Human-readable message indicating details about last transition.",
"type": "string"
},
"reason": {
"description": "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.",
"type": "string"
},
"status": {
"type": "string"
},
"type": {
"type": "string"
}
}
},
"v1.PersistentVolumeClaimSpec": {
"description": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes",
"properties": {
"accessModes": {
"description": "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
"type": "array",
"items": {
"type": "string"
}
},
"dataSource": {
"description": "This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.",
"$ref": "#/definitions/v1.TypedLocalObjectReference"
},
"resources": {
"description": "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources",
"$ref": "#/definitions/v1.ResourceRequirements"
},
"selector": {
"description": "A label query over volumes to consider for binding.",
"$ref": "#/definitions/v1.LabelSelector"
},
"storageClassName": {
"description": "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1",
"type": "string"
},
"volumeMode": {
"description": "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.",
"type": "string"
},
"volumeName": {
"description": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
"type": "string"
}
}
},
"v1.PersistentVolumeClaimStatus": {
"description": "PersistentVolumeClaimStatus is the current status of a persistent volume claim.",
"properties": {
"accessModes": {
"description": "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1",
"type": "array",
"items": {
"type": "string"
}
},
"capacity": {
"description": "Represents the actual resources of the underlying volume.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"conditions": {
"description": "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PersistentVolumeClaimCondition"
}
},
"phase": {
"description": "Phase represents the current phase of PersistentVolumeClaim.",
"type": "string"
}
}
},
"v1.PersistentVolumeClaimTemplate": {
"description": "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.",
"required": [
"spec"
],
"properties": {
"metadata": {
"description": "May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.",
"$ref": "#/definitions/v1.PersistentVolumeClaimSpec"
}
}
},
"v1.PersistentVolumeClaimVolumeSource": {
"description": "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).",
"required": [
"claimName"
],
"properties": {
"claimName": {
"description": "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
"type": "string"
},
"readOnly": {
"description": "Will force the ReadOnly setting in VolumeMounts. Default false.",
"type": "boolean"
}
}
},
"v1.PhotonPersistentDiskVolumeSource": {
"description": "Represents a Photon Controller persistent disk resource.",
"required": [
"pdID"
],
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"pdID": {
"description": "ID that identifies Photon Controller persistent disk",
"type": "string"
}
}
},
"v1.PodAffinity": {
"description": "Pod affinity is a group of inter pod affinity scheduling rules.",
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.WeightedPodAffinityTerm"
}
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"description": "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PodAffinityTerm"
}
}
}
},
"v1.PodAffinityTerm": {
"description": "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running",
"required": [
"topologyKey"
],
"properties": {
"labelSelector": {
"description": "A label query over a set of resources, in this case pods.",
"$ref": "#/definitions/v1.LabelSelector"
},
"namespaceSelector": {
"description": "A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. This field is alpha-level and is only honored when PodAffinityNamespaceSelector feature is enabled.",
"$ref": "#/definitions/v1.LabelSelector"
},
"namespaces": {
"description": "namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\"",
"type": "array",
"items": {
"type": "string"
}
},
"topologyKey": {
"description": "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.",
"type": "string"
}
}
},
"v1.PodAntiAffinity": {
"description": "Pod anti affinity is a group of inter pod anti affinity scheduling rules.",
"properties": {
"preferredDuringSchedulingIgnoredDuringExecution": {
"description": "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.WeightedPodAffinityTerm"
}
},
"requiredDuringSchedulingIgnoredDuringExecution": {
"description": "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PodAffinityTerm"
}
}
}
},
"v1.PodDNSConfig": {
"description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.",
"properties": {
"nameservers": {
"description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.",
"type": "array",
"items": {
"type": "string"
}
},
"options": {
"description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PodDNSConfigOption"
}
},
"searches": {
"description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.PodDNSConfigOption": {
"description": "PodDNSConfigOption defines DNS resolver options of a pod.",
"properties": {
"name": {
"description": "Required.",
"type": "string"
},
"value": {
"type": "string"
}
}
},
"v1.PodReadinessGate": {
"description": "PodReadinessGate contains the reference to a pod condition",
"required": [
"conditionType"
],
"properties": {
"conditionType": {
"description": "ConditionType refers to a condition in the pod's condition list with matching type.",
"type": "string"
}
}
},
"v1.PodSecurityContext": {
"description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.",
"properties": {
"fsGroup": {
"description": "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw ",
"type": "integer",
"format": "int64"
},
"fsGroupChangePolicy": {
"description": "fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used.",
"type": "string"
},
"runAsGroup": {
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
"type": "integer",
"format": "int64"
},
"runAsNonRoot": {
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"type": "boolean"
},
"runAsUser": {
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
"type": "integer",
"format": "int64"
},
"seLinuxOptions": {
"description": "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.",
"$ref": "#/definitions/v1.SELinuxOptions"
},
"seccompProfile": {
"description": "The seccomp options to use by the containers in this pod.",
"$ref": "#/definitions/v1.SeccompProfile"
},
"supplementalGroups": {
"description": "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.",
"type": "array",
"items": {
"type": "integer"
}
},
"sysctls": {
"description": "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Sysctl"
}
},
"windowsOptions": {
"description": "The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"$ref": "#/definitions/v1.WindowsSecurityContextOptions"
}
}
},
"v1.PodSpec": {
"description": "PodSpec is a description of a pod.",
"required": [
"containers"
],
"properties": {
"activeDeadlineSeconds": {
"description": "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.",
"type": "integer",
"format": "int64"
},
"affinity": {
"description": "If specified, the pod's scheduling constraints",
"$ref": "#/definitions/v1.Affinity"
},
"automountServiceAccountToken": {
"description": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.",
"type": "boolean"
},
"containers": {
"description": "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Container"
}
},
"dnsConfig": {
"description": "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.",
"$ref": "#/definitions/v1.PodDNSConfig"
},
"dnsPolicy": {
"description": "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.",
"type": "string"
},
"enableServiceLinks": {
"description": "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.",
"type": "boolean"
},
"ephemeralContainers": {
"description": "List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.EphemeralContainer"
}
},
"hostAliases": {
"description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.HostAlias"
}
},
"hostIPC": {
"description": "Use the host's ipc namespace. Optional: Default to false.",
"type": "boolean"
},
"hostNetwork": {
"description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.",
"type": "boolean"
},
"hostPID": {
"description": "Use the host's pid namespace. Optional: Default to false.",
"type": "boolean"
},
"hostname": {
"description": "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.",
"type": "string"
},
"imagePullSecrets": {
"description": "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod",
"type": "array",
"items": {
"$ref": "#/definitions/v1.LocalObjectReference"
}
},
"initContainers": {
"description": "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Container"
}
},
"nodeName": {
"description": "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.",
"type": "string"
},
"nodeSelector": {
"description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"overhead": {
"description": "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md This field is alpha-level as of Kubernetes v1.16, and is only honored by servers that enable the PodOverhead feature.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"preemptionPolicy": {
"description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.",
"type": "string"
},
"priority": {
"description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.",
"type": "integer",
"format": "int32"
},
"priorityClassName": {
"description": "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.",
"type": "string"
},
"readinessGates": {
"description": "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PodReadinessGate"
}
},
"restartPolicy": {
"description": "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy",
"type": "string"
},
"runtimeClassName": {
"description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.",
"type": "string"
},
"schedulerName": {
"description": "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.",
"type": "string"
},
"securityContext": {
"description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.",
"$ref": "#/definitions/v1.PodSecurityContext"
},
"serviceAccount": {
"description": "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.",
"type": "string"
},
"serviceAccountName": {
"description": "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/",
"type": "string"
},
"setHostnameAsFQDN": {
"description": "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.",
"type": "boolean"
},
"shareProcessNamespace": {
"description": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.",
"type": "boolean"
},
"subdomain": {
"description": "If specified, the fully qualified Pod hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\". If not specified, the pod will not have a domainname at all.",
"type": "string"
},
"terminationGracePeriodSeconds": {
"description": "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.",
"type": "integer",
"format": "int64"
},
"tolerations": {
"description": "If specified, the pod's tolerations.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Toleration"
}
},
"topologySpreadConstraints": {
"description": "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.TopologySpreadConstraint"
}
},
"volumes": {
"description": "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Volume"
}
}
}
},
"v1.PodTemplateSpec": {
"description": "PodTemplateSpec describes the data a pod should have when created from a template",
"properties": {
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.PodSpec"
}
}
},
"v1.PolicyRule": {
"description": "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.",
"required": [
"verbs"
],
"properties": {
"apiGroups": {
"description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.",
"type": "array",
"items": {
"type": "string"
}
},
"nonResourceURLs": {
"description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.",
"type": "array",
"items": {
"type": "string"
}
},
"resourceNames": {
"description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.",
"type": "array",
"items": {
"type": "string"
}
},
"resources": {
"description": "Resources is a list of resources this rule applies to. ResourceAll represents all resources.",
"type": "array",
"items": {
"type": "string"
}
},
"verbs": {
"description": "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.PortStatus": {
"required": [
"port",
"protocol"
],
"properties": {
"error": {
"description": "Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.",
"type": "string"
},
"port": {
"description": "Port is the port number of the service port of which status is recorded here",
"type": "integer",
"format": "int32"
},
"protocol": {
"description": "Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"",
"type": "string"
}
}
},
"v1.PortworxVolumeSource": {
"description": "PortworxVolumeSource represents a Portworx volume resource.",
"required": [
"volumeID"
],
"properties": {
"fsType": {
"description": "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"readOnly": {
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"volumeID": {
"description": "VolumeID uniquely identifies a Portworx volume",
"type": "string"
}
}
},
"v1.PreferredSchedulingTerm": {
"description": "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).",
"required": [
"weight",
"preference"
],
"properties": {
"preference": {
"description": "A node selector term, associated with the corresponding weight.",
"$ref": "#/definitions/v1.NodeSelectorTerm"
},
"weight": {
"description": "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.",
"type": "integer",
"format": "int32"
}
}
},
"v1.Probe": {
"description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.",
"properties": {
"exec": {
"description": "One and only one of the following should be specified. Exec specifies the action to take.",
"$ref": "#/definitions/v1.ExecAction"
},
"failureThreshold": {
"description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.",
"type": "integer",
"format": "int32"
},
"httpGet": {
"description": "HTTPGet specifies the http request to perform.",
"$ref": "#/definitions/v1.HTTPGetAction"
},
"initialDelaySeconds": {
"description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
"type": "integer",
"format": "int32"
},
"periodSeconds": {
"description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.",
"type": "integer",
"format": "int32"
},
"successThreshold": {
"description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.",
"type": "integer",
"format": "int32"
},
"tcpSocket": {
"description": "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported",
"$ref": "#/definitions/v1.TCPSocketAction"
},
"terminationGracePeriodSeconds": {
"description": "Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is an alpha field and requires enabling ProbeTerminationGracePeriod feature gate.",
"type": "integer",
"format": "int64"
},
"timeoutSeconds": {
"description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes",
"type": "integer",
"format": "int32"
}
}
},
"v1.ProjectedVolumeSource": {
"description": "Represents a projected volume source",
"required": [
"sources"
],
"properties": {
"defaultMode": {
"description": "Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"sources": {
"description": "list of volume projections",
"type": "array",
"items": {
"$ref": "#/definitions/v1.VolumeProjection"
}
}
}
},
"v1.QuobyteVolumeSource": {
"description": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.",
"required": [
"registry",
"volume"
],
"properties": {
"group": {
"description": "Group to map volume access to Default is no group",
"type": "string"
},
"readOnly": {
"description": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.",
"type": "boolean"
},
"registry": {
"description": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes",
"type": "string"
},
"tenant": {
"description": "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin",
"type": "string"
},
"user": {
"description": "User to map volume access to Defaults to serivceaccount user",
"type": "string"
},
"volume": {
"description": "Volume is a string that references an already created Quobyte volume by name.",
"type": "string"
}
}
},
"v1.RBDVolumeSource": {
"description": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.",
"required": [
"monitors",
"image"
],
"properties": {
"fsType": {
"description": "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd",
"type": "string"
},
"image": {
"description": "The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "string"
},
"keyring": {
"description": "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "string"
},
"monitors": {
"description": "A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "array",
"items": {
"type": "string"
}
},
"pool": {
"description": "The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "string"
},
"readOnly": {
"description": "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "boolean"
},
"secretRef": {
"description": "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"user": {
"description": "The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
"type": "string"
}
}
},
"v1.ReplicaSet": {
"description": "ReplicaSet ensures that a specified number of pod replicas are running at any given time.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.ReplicaSetSpec"
},
"status": {
"description": "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.ReplicaSetStatus"
}
}
},
"v1.ReplicaSetCondition": {
"description": "ReplicaSetCondition describes the state of a replica set at a certain point.",
"required": [
"type",
"status"
],
"properties": {
"lastTransitionTime": {
"description": "The last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "A human readable message indicating details about the transition.",
"type": "string"
},
"reason": {
"description": "The reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type of replica set condition.",
"type": "string"
}
}
},
"v1.ReplicaSetSpec": {
"description": "ReplicaSetSpec is the specification of a ReplicaSet.",
"required": [
"selector"
],
"properties": {
"minReadySeconds": {
"description": "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)",
"type": "integer",
"format": "int32"
},
"replicas": {
"description": "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller",
"type": "integer",
"format": "int32"
},
"selector": {
"description": "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"$ref": "#/definitions/v1.LabelSelector"
},
"template": {
"description": "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template",
"$ref": "#/definitions/v1.PodTemplateSpec"
}
}
},
"v1.ReplicaSetStatus": {
"description": "ReplicaSetStatus represents the current status of a ReplicaSet.",
"required": [
"replicas"
],
"properties": {
"availableReplicas": {
"description": "The number of available replicas (ready for at least minReadySeconds) for this replica set.",
"type": "integer",
"format": "int32"
},
"conditions": {
"description": "Represents the latest available observations of a replica set's current state.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ReplicaSetCondition"
}
},
"fullyLabeledReplicas": {
"description": "The number of pods that have labels matching the labels of the pod template of the replicaset.",
"type": "integer",
"format": "int32"
},
"observedGeneration": {
"description": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.",
"type": "integer",
"format": "int64"
},
"readyReplicas": {
"description": "The number of ready replicas for this replica set.",
"type": "integer",
"format": "int32"
},
"replicas": {
"description": "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller",
"type": "integer",
"format": "int32"
}
}
},
"v1.ResourceFieldSelector": {
"description": "ResourceFieldSelector represents container resources (cpu, memory) and their output format",
"required": [
"resource"
],
"properties": {
"containerName": {
"description": "Container name: required for volumes, optional for env vars",
"type": "string"
},
"divisor": {
"description": "Specifies the output format of the exposed resources, defaults to \"1\"",
"type": "string"
},
"resource": {
"description": "Required: resource to select",
"type": "string"
}
}
},
"v1.ResourceQuotaSpec": {
"description": "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.",
"properties": {
"hard": {
"description": "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"scopeSelector": {
"description": "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.",
"$ref": "#/definitions/v1.ScopeSelector"
},
"scopes": {
"description": "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.ResourceQuotaStatus": {
"description": "ResourceQuotaStatus defines the enforced hard limits and observed use.",
"properties": {
"hard": {
"description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"used": {
"description": "Used is the current observed total usage of the resource in the namespace.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
}
}
},
"v1.ResourceRequirements": {
"description": "ResourceRequirements describes the compute resource requirements.",
"properties": {
"limits": {
"description": "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"requests": {
"description": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
}
}
},
"v1.Role": {
"description": "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.",
"required": [
"rules"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata.",
"$ref": "#/definitions/v1.ObjectMeta"
},
"rules": {
"description": "Rules holds all the PolicyRules for this Role",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PolicyRule"
}
}
}
},
"v1.RoleBinding": {
"description": "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.",
"required": [
"roleRef"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata.",
"$ref": "#/definitions/v1.ObjectMeta"
},
"roleRef": {
"description": "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.",
"$ref": "#/definitions/v1.RoleRef"
},
"subjects": {
"description": "Subjects holds references to the objects the role applies to.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Subject"
}
}
}
},
"v1.RoleRef": {
"description": "RoleRef contains information that points to the role being used",
"required": [
"apiGroup",
"kind",
"name"
],
"properties": {
"apiGroup": {
"description": "APIGroup is the group for the resource being referenced",
"type": "string"
},
"kind": {
"description": "Kind is the type of resource being referenced",
"type": "string"
},
"name": {
"description": "Name is the name of resource being referenced",
"type": "string"
}
}
},
"v1.RollingUpdateDaemonSet": {
"description": "Spec to control the desired behavior of daemon set rolling update.",
"properties": {
"maxSurge": {
"description": "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.",
"type": "string"
},
"maxUnavailable": {
"description": "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding down to a minimum of one. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.",
"type": "string"
}
}
},
"v1.RollingUpdateStatefulSetStrategy": {
"description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.",
"properties": {
"partition": {
"description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.",
"type": "integer",
"format": "int32"
}
}
},
"v1.RootFS": {
"required": [
"type",
"diff_ids"
],
"properties": {
"diff_ids": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Hash"
}
},
"type": {
"type": "string"
}
}
},
"v1.SELinuxOptions": {
"description": "SELinuxOptions are the labels to be applied to the container",
"properties": {
"level": {
"description": "Level is SELinux level label that applies to the container.",
"type": "string"
},
"role": {
"description": "Role is a SELinux role label that applies to the container.",
"type": "string"
},
"type": {
"description": "Type is a SELinux type label that applies to the container.",
"type": "string"
},
"user": {
"description": "User is a SELinux user label that applies to the container.",
"type": "string"
}
}
},
"v1.ScaleIOVolumeSource": {
"description": "ScaleIOVolumeSource represents a persistent ScaleIO volume",
"required": [
"gateway",
"system",
"secretRef"
],
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".",
"type": "string"
},
"gateway": {
"description": "The host address of the ScaleIO API Gateway.",
"type": "string"
},
"protectionDomain": {
"description": "The name of the ScaleIO Protection Domain for the configured storage.",
"type": "string"
},
"readOnly": {
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"secretRef": {
"description": "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"sslEnabled": {
"description": "Flag to enable/disable SSL communication with Gateway, default false",
"type": "boolean"
},
"storageMode": {
"description": "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.",
"type": "string"
},
"storagePool": {
"description": "The ScaleIO Storage Pool associated with the protection domain.",
"type": "string"
},
"system": {
"description": "The name of the storage system as configured in ScaleIO.",
"type": "string"
},
"volumeName": {
"description": "The name of a volume already created in the ScaleIO system that is associated with this volume source.",
"type": "string"
}
}
},
"v1.ScopeSelector": {
"description": "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.",
"properties": {
"matchExpressions": {
"description": "A list of scope selector requirements by scope of the resources.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ScopedResourceSelectorRequirement"
}
}
}
},
"v1.ScopedResourceSelectorRequirement": {
"description": "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.",
"required": [
"scopeName",
"operator"
],
"properties": {
"operator": {
"description": "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.",
"type": "string"
},
"scopeName": {
"description": "The name of the scope that the selector applies to.",
"type": "string"
},
"values": {
"description": "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1.SeccompProfile": {
"description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
"required": [
"type"
],
"properties": {
"localhostProfile": {
"description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
"type": "string"
},
"type": {
"description": "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.",
"type": "string"
}
}
},
"v1.Secret": {
"description": "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"data": {
"description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"immutable": {
"description": "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.",
"type": "boolean"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"stringData": {
"description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"type": {
"description": "Used to facilitate programmatic handling of secret data.",
"type": "string"
}
}
},
"v1.SecretEnvSource": {
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the Secret must be defined",
"type": "boolean"
}
}
},
"v1.SecretKeySelector": {
"description": "SecretKeySelector selects a key of a Secret.",
"required": [
"key"
],
"properties": {
"key": {
"description": "The key of the secret to select from. Must be a valid secret key.",
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the Secret or its key must be defined",
"type": "boolean"
}
}
},
"v1.SecretProjection": {
"description": "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.",
"properties": {
"items": {
"description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.KeyToPath"
}
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
"description": "Specify whether the Secret or its key must be defined",
"type": "boolean"
}
}
},
"v1.SecretReference": {
"description": "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace",
"properties": {
"name": {
"description": "Name is unique within a namespace to reference a secret resource.",
"type": "string"
},
"namespace": {
"description": "Namespace defines the space within which the secret name must be unique.",
"type": "string"
}
}
},
"v1.SecretVolumeSource": {
"description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.",
"properties": {
"defaultMode": {
"description": "Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.",
"type": "integer",
"format": "int32"
},
"items": {
"description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.KeyToPath"
}
},
"optional": {
"description": "Specify whether the Secret or its keys must be defined",
"type": "boolean"
},
"secretName": {
"description": "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret",
"type": "string"
}
}
},
"v1.SecurityContext": {
"description": "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.",
"properties": {
"allowPrivilegeEscalation": {
"description": "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN",
"type": "boolean"
},
"capabilities": {
"description": "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.",
"$ref": "#/definitions/v1.Capabilities"
},
"privileged": {
"description": "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.",
"type": "boolean"
},
"procMount": {
"description": "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.",
"type": "string"
},
"readOnlyRootFilesystem": {
"description": "Whether this container has a read-only root filesystem. Default is false.",
"type": "boolean"
},
"runAsGroup": {
"description": "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"type": "integer",
"format": "int64"
},
"runAsNonRoot": {
"description": "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"type": "boolean"
},
"runAsUser": {
"description": "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"type": "integer",
"format": "int64"
},
"seLinuxOptions": {
"description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"$ref": "#/definitions/v1.SELinuxOptions"
},
"seccompProfile": {
"description": "The seccomp options to use by this container. If seccomp options are provided at both the pod \u0026 container level, the container options override the pod options.",
"$ref": "#/definitions/v1.SeccompProfile"
},
"windowsOptions": {
"description": "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"$ref": "#/definitions/v1.WindowsSecurityContextOptions"
}
}
},
"v1.Service": {
"description": "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.ServiceSpec"
},
"status": {
"description": "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status",
"$ref": "#/definitions/v1.ServiceStatus"
}
}
},
"v1.ServiceAccountTokenProjection": {
"description": "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).",
"required": [
"path"
],
"properties": {
"audience": {
"description": "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.",
"type": "string"
},
"expirationSeconds": {
"description": "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.",
"type": "integer",
"format": "int64"
},
"path": {
"description": "Path is the path relative to the mount point of the file to project the token into.",
"type": "string"
}
}
},
"v1.ServicePort": {
"description": "ServicePort contains information on service's port.",
"required": [
"port"
],
"properties": {
"appProtocol": {
"description": "The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default.",
"type": "string"
},
"name": {
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
"type": "string"
},
"nodePort": {
"description": "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport",
"type": "integer",
"format": "int32"
},
"port": {
"description": "The port that will be exposed by this service.",
"type": "integer",
"format": "int32"
},
"protocol": {
"description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
"type": "string"
},
"targetPort": {
"description": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
"type": "string"
}
}
},
"v1.ServiceSpec": {
"description": "ServiceSpec describes the attributes that a user creates on a service.",
"properties": {
"allocateLoadBalancerNodePorts": {
"description": "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. allocateLoadBalancerNodePorts may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. This field is alpha-level and is only honored by servers that enable the ServiceLBNodePortControl feature.",
"type": "boolean"
},
"clusterIP": {
"description": "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
"type": "string"
},
"clusterIPs": {
"description": "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nUnless the \"IPv6DualStack\" feature gate is enabled, this field is limited to one value, which must be the same as the clusterIP field. If the feature gate is enabled, this field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
"type": "array",
"items": {
"type": "string"
}
},
"externalIPs": {
"description": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.",
"type": "array",
"items": {
"type": "string"
}
},
"externalName": {
"description": "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".",
"type": "string"
},
"externalTrafficPolicy": {
"description": "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.",
"type": "string"
},
"healthCheckNodePort": {
"description": "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).",
"type": "integer",
"format": "int32"
},
"internalTrafficPolicy": {
"description": "InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".",
"type": "string"
},
"ipFamilies": {
"description": "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service, and is gated by the \"IPv6DualStack\" feature gate. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.",
"type": "array",
"items": {
"type": "string"
}
},
"ipFamilyPolicy": {
"description": "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service, and is gated by the \"IPv6DualStack\" feature gate. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.",
"type": "string"
},
"loadBalancerClass": {
"description": "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.",
"type": "string"
},
"loadBalancerIP": {
"description": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.",
"type": "string"
},
"loadBalancerSourceRanges": {
"description": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/",
"type": "array",
"items": {
"type": "string"
}
},
"ports": {
"description": "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
"type": "array",
"items": {
"$ref": "#/definitions/v1.ServicePort"
}
},
"publishNotReadyAddresses": {
"description": "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.",
"type": "boolean"
},
"selector": {
"description": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"sessionAffinity": {
"description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
"type": "string"
},
"sessionAffinityConfig": {
"description": "sessionAffinityConfig contains the configurations of session affinity.",
"$ref": "#/definitions/v1.SessionAffinityConfig"
},
"topologyKeys": {
"description": "topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value \"*\" may be used to mean \"any topology\". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. This field is alpha-level and is only honored by servers that enable the ServiceTopology feature. This field is deprecated and will be removed in a future version.",
"type": "array",
"items": {
"type": "string"
}
},
"type": {
"description": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types",
"type": "string"
}
}
},
"v1.ServiceStatus": {
"description": "ServiceStatus represents the current status of a service.",
"properties": {
"conditions": {
"description": "Current service state",
"type": "array",
"items": {
"$ref": "#/definitions/v1.Condition"
}
},
"loadBalancer": {
"description": "LoadBalancer contains the current status of the load-balancer, if one is present.",
"$ref": "#/definitions/v1.LoadBalancerStatus"
}
}
},
"v1.SessionAffinityConfig": {
"description": "SessionAffinityConfig represents the configurations of session affinity.",
"properties": {
"clientIP": {
"description": "clientIP contains the configurations of Client IP based session affinity.",
"$ref": "#/definitions/v1.ClientIPConfig"
}
}
},
"v1.StatefulSet": {
"description": "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.",
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"description": "Spec defines the desired identities of pods in this set.",
"$ref": "#/definitions/v1.StatefulSetSpec"
},
"status": {
"description": "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
"$ref": "#/definitions/v1.StatefulSetStatus"
}
}
},
"v1.StatefulSetCondition": {
"description": "StatefulSetCondition describes the state of a statefulset at a certain point.",
"required": [
"type",
"status"
],
"properties": {
"lastTransitionTime": {
"description": "Last time the condition transitioned from one status to another.",
"type": "string"
},
"message": {
"description": "A human readable message indicating details about the transition.",
"type": "string"
},
"reason": {
"description": "The reason for the condition's last transition.",
"type": "string"
},
"status": {
"description": "Status of the condition, one of True, False, Unknown.",
"type": "string"
},
"type": {
"description": "Type of statefulset condition.",
"type": "string"
}
}
},
"v1.StatefulSetSpec": {
"description": "A StatefulSetSpec is the specification of a StatefulSet.",
"required": [
"selector",
"template",
"serviceName"
],
"properties": {
"podManagementPolicy": {
"description": "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.",
"type": "string"
},
"replicas": {
"description": "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.",
"type": "integer",
"format": "int32"
},
"revisionHistoryLimit": {
"description": "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.",
"type": "integer",
"format": "int32"
},
"selector": {
"description": "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors",
"$ref": "#/definitions/v1.LabelSelector"
},
"serviceName": {
"description": "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",
"type": "string"
},
"template": {
"description": "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
"$ref": "#/definitions/v1.PodTemplateSpec"
},
"updateStrategy": {
"description": "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.",
"$ref": "#/definitions/v1.StatefulSetUpdateStrategy"
},
"volumeClaimTemplates": {
"description": "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.PersistentVolumeClaim"
}
}
}
},
"v1.StatefulSetStatus": {
"description": "StatefulSetStatus represents the current state of a StatefulSet.",
"required": [
"replicas"
],
"properties": {
"collisionCount": {
"description": "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.",
"type": "integer",
"format": "int32"
},
"conditions": {
"description": "Represents the latest available observations of a statefulset's current state.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.StatefulSetCondition"
}
},
"currentReplicas": {
"description": "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.",
"type": "integer",
"format": "int32"
},
"currentRevision": {
"description": "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).",
"type": "string"
},
"observedGeneration": {
"description": "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.",
"type": "integer",
"format": "int64"
},
"readyReplicas": {
"description": "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.",
"type": "integer",
"format": "int32"
},
"replicas": {
"description": "replicas is the number of Pods created by the StatefulSet controller.",
"type": "integer",
"format": "int32"
},
"updateRevision": {
"description": "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)",
"type": "string"
},
"updatedReplicas": {
"description": "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.",
"type": "integer",
"format": "int32"
}
}
},
"v1.StatefulSetUpdateStrategy": {
"description": "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.",
"properties": {
"rollingUpdate": {
"description": "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.",
"$ref": "#/definitions/v1.RollingUpdateStatefulSetStrategy"
},
"type": {
"description": "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.",
"type": "string"
}
}
},
"v1.StorageOSVolumeSource": {
"description": "Represents a StorageOS persistent volume resource.",
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"readOnly": {
"description": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.",
"type": "boolean"
},
"secretRef": {
"description": "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.",
"$ref": "#/definitions/v1.LocalObjectReference"
},
"volumeName": {
"description": "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.",
"type": "string"
},
"volumeNamespace": {
"description": "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.",
"type": "string"
}
}
},
"v1.Subject": {
"description": "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.",
"required": [
"kind",
"name"
],
"properties": {
"apiGroup": {
"description": "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.",
"type": "string"
},
"kind": {
"description": "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.",
"type": "string"
},
"name": {
"description": "Name of the object being referenced.",
"type": "string"
},
"namespace": {
"description": "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.",
"type": "string"
}
}
},
"v1.Sysctl": {
"description": "Sysctl defines a kernel parameter to be set",
"required": [
"name",
"value"
],
"properties": {
"name": {
"description": "Name of a property to set",
"type": "string"
},
"value": {
"description": "Value of a property to set",
"type": "string"
}
}
},
"v1.TCPSocketAction": {
"description": "TCPSocketAction describes an action based on opening a socket",
"required": [
"port"
],
"properties": {
"host": {
"description": "Optional: Host name to connect to, defaults to the pod IP.",
"type": "string"
},
"port": {
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
"type": "string"
}
}
},
"v1.Toleration": {
"description": "The pod this Toleration is attached to tolerates any taint that matches the triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.",
"properties": {
"effect": {
"description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.",
"type": "string"
},
"key": {
"description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.",
"type": "string"
},
"operator": {
"description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.",
"type": "string"
},
"tolerationSeconds": {
"description": "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.",
"type": "integer",
"format": "int64"
},
"value": {
"description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.",
"type": "string"
}
}
},
"v1.TopologySpreadConstraint": {
"description": "TopologySpreadConstraint specifies how to spread matching pods among the given topology.",
"required": [
"maxSkew",
"topologyKey",
"whenUnsatisfiable"
],
"properties": {
"labelSelector": {
"description": "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.",
"$ref": "#/definitions/v1.LabelSelector"
},
"maxSkew": {
"description": "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: ",
"type": "integer",
"format": "int32"
},
"topologyKey": {
"description": "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field.",
"type": "string"
},
"whenUnsatisfiable": {
"description": "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assigment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: ",
"type": "string"
}
}
},
"v1.TypedLocalObjectReference": {
"description": "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.",
"required": [
"apiGroup",
"kind",
"name"
],
"properties": {
"apiGroup": {
"description": "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.",
"type": "string"
},
"kind": {
"description": "Kind is the type of resource being referenced",
"type": "string"
},
"name": {
"description": "Name is the name of resource being referenced",
"type": "string"
}
}
},
"v1.Volume": {
"description": "Volume represents a named volume in a pod that may be accessed by any container in the pod.",
"required": [
"name"
],
"properties": {
"awsElasticBlockStore": {
"description": "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore",
"$ref": "#/definitions/v1.AWSElasticBlockStoreVolumeSource"
},
"azureDisk": {
"description": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.",
"$ref": "#/definitions/v1.AzureDiskVolumeSource"
},
"azureFile": {
"description": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.",
"$ref": "#/definitions/v1.AzureFileVolumeSource"
},
"cephfs": {
"description": "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime",
"$ref": "#/definitions/v1.CephFSVolumeSource"
},
"cinder": {
"description": "Cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md",
"$ref": "#/definitions/v1.CinderVolumeSource"
},
"configMap": {
"description": "ConfigMap represents a configMap that should populate this volume",
"$ref": "#/definitions/v1.ConfigMapVolumeSource"
},
"csi": {
"description": "CSI (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).",
"$ref": "#/definitions/v1.CSIVolumeSource"
},
"downwardAPI": {
"description": "DownwardAPI represents downward API about the pod that should populate this volume",
"$ref": "#/definitions/v1.DownwardAPIVolumeSource"
},
"emptyDir": {
"description": "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir",
"$ref": "#/definitions/v1.EmptyDirVolumeSource"
},
"ephemeral": {
"description": "Ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.\n\nThis is a beta feature and only available when the GenericEphemeralVolume feature gate is enabled.",
"$ref": "#/definitions/v1.EphemeralVolumeSource"
},
"fc": {
"description": "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.",
"$ref": "#/definitions/v1.FCVolumeSource"
},
"flexVolume": {
"description": "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.",
"$ref": "#/definitions/v1.FlexVolumeSource"
},
"flocker": {
"description": "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running",
"$ref": "#/definitions/v1.FlockerVolumeSource"
},
"gcePersistentDisk": {
"description": "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk",
"$ref": "#/definitions/v1.GCEPersistentDiskVolumeSource"
},
"gitRepo": {
"description": "GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.",
"$ref": "#/definitions/v1.GitRepoVolumeSource"
},
"glusterfs": {
"description": "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md",
"$ref": "#/definitions/v1.GlusterfsVolumeSource"
},
"hostPath": {
"description": "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath",
"$ref": "#/definitions/v1.HostPathVolumeSource"
},
"iscsi": {
"description": "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md",
"$ref": "#/definitions/v1.ISCSIVolumeSource"
},
"name": {
"description": "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"nfs": {
"description": "NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs",
"$ref": "#/definitions/v1.NFSVolumeSource"
},
"persistentVolumeClaim": {
"description": "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims",
"$ref": "#/definitions/v1.PersistentVolumeClaimVolumeSource"
},
"photonPersistentDisk": {
"description": "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine",
"$ref": "#/definitions/v1.PhotonPersistentDiskVolumeSource"
},
"portworxVolume": {
"description": "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine",
"$ref": "#/definitions/v1.PortworxVolumeSource"
},
"projected": {
"description": "Items for all in one resources secrets, configmaps, and downward API",
"$ref": "#/definitions/v1.ProjectedVolumeSource"
},
"quobyte": {
"description": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime",
"$ref": "#/definitions/v1.QuobyteVolumeSource"
},
"rbd": {
"description": "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md",
"$ref": "#/definitions/v1.RBDVolumeSource"
},
"scaleIO": {
"description": "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.",
"$ref": "#/definitions/v1.ScaleIOVolumeSource"
},
"secret": {
"description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret",
"$ref": "#/definitions/v1.SecretVolumeSource"
},
"storageos": {
"description": "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.",
"$ref": "#/definitions/v1.StorageOSVolumeSource"
},
"vsphereVolume": {
"description": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine",
"$ref": "#/definitions/v1.VsphereVirtualDiskVolumeSource"
}
}
},
"v1.VolumeDevice": {
"description": "volumeDevice describes a mapping of a raw block device within a container.",
"required": [
"name",
"devicePath"
],
"properties": {
"devicePath": {
"description": "devicePath is the path inside of the container that the device will be mapped to.",
"type": "string"
},
"name": {
"description": "name must match the name of a persistentVolumeClaim in the pod",
"type": "string"
}
}
},
"v1.VolumeMount": {
"description": "VolumeMount describes a mounting of a Volume within a container.",
"required": [
"name",
"mountPath"
],
"properties": {
"mountPath": {
"description": "Path within the container at which the volume should be mounted. Must not contain ':'.",
"type": "string"
},
"mountPropagation": {
"description": "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.",
"type": "string"
},
"name": {
"description": "This must match the Name of a Volume.",
"type": "string"
},
"readOnly": {
"description": "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.",
"type": "boolean"
},
"subPath": {
"description": "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).",
"type": "string"
},
"subPathExpr": {
"description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.",
"type": "string"
}
}
},
"v1.VolumeProjection": {
"description": "Projection that may be projected along with other supported volume types",
"properties": {
"configMap": {
"description": "information about the configMap data to project",
"$ref": "#/definitions/v1.ConfigMapProjection"
},
"downwardAPI": {
"description": "information about the downwardAPI data to project",
"$ref": "#/definitions/v1.DownwardAPIProjection"
},
"secret": {
"description": "information about the secret data to project",
"$ref": "#/definitions/v1.SecretProjection"
},
"serviceAccountToken": {
"description": "information about the serviceAccountToken data to project",
"$ref": "#/definitions/v1.ServiceAccountTokenProjection"
}
}
},
"v1.VsphereVirtualDiskVolumeSource": {
"description": "Represents a vSphere volume resource.",
"required": [
"volumePath"
],
"properties": {
"fsType": {
"description": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.",
"type": "string"
},
"storagePolicyID": {
"description": "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.",
"type": "string"
},
"storagePolicyName": {
"description": "Storage Policy Based Management (SPBM) profile name.",
"type": "string"
},
"volumePath": {
"description": "Path that identifies vSphere volume vmdk",
"type": "string"
}
}
},
"v1.WeightedPodAffinityTerm": {
"description": "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)",
"required": [
"weight",
"podAffinityTerm"
],
"properties": {
"podAffinityTerm": {
"description": "Required. A pod affinity term, associated with the corresponding weight.",
"$ref": "#/definitions/v1.PodAffinityTerm"
},
"weight": {
"description": "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.",
"type": "integer",
"format": "int32"
}
}
},
"v1.WindowsSecurityContextOptions": {
"description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.",
"properties": {
"gmsaCredentialSpec": {
"description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.",
"type": "string"
},
"gmsaCredentialSpecName": {
"description": "GMSACredentialSpecName is the name of the GMSA credential spec to use.",
"type": "string"
},
"runAsUserName": {
"description": "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.",
"type": "string"
}
}
},
"v1alpha1.APIResponse": {
"properties": {
"histogram": {
"description": "histogram results",
"$ref": "#/definitions/events.Histogram"
},
"query": {
"description": "query results",
"$ref": "#/definitions/events.Events"
},
"statistics": {
"description": "statistics results",
"$ref": "#/definitions/events.Statistics"
}
}
},
"v1alpha1.HelmApplication": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha1.HelmApplicationSpec"
},
"status": {
"$ref": "#/definitions/v1alpha1.HelmApplicationStatus"
}
}
},
"v1alpha1.HelmApplicationSpec": {
"required": [
"name"
],
"properties": {
"abstraction": {
"type": "string"
},
"appHome": {
"type": "string"
},
"attachments": {
"type": "array",
"items": {
"type": "string"
}
},
"description": {
"type": "string"
},
"icon": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"v1alpha1.HelmApplicationStatus": {
"required": [
"updateTime",
"statusTime"
],
"properties": {
"latestVersion": {
"type": "string"
},
"state": {
"type": "string"
},
"statusTime": {
"type": "string"
},
"updateTime": {
"type": "string"
}
}
},
"v1alpha1.HelmRelease": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha1.HelmReleaseSpec"
},
"status": {
"$ref": "#/definitions/v1alpha1.HelmReleaseStatus"
}
}
},
"v1alpha1.HelmReleaseDeployStatus": {
"required": [
"state",
"deployTime"
],
"properties": {
"deployTime": {
"type": "string"
},
"message": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"v1alpha1.HelmReleaseSpec": {
"required": [
"name",
"chartName",
"chartVersion",
"version"
],
"properties": {
"appId": {
"type": "string"
},
"appVerId": {
"type": "string"
},
"chartAppVer": {
"type": "string"
},
"chartName": {
"type": "string"
},
"chartVersion": {
"type": "string"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"repoId": {
"type": "string"
},
"values": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha1.HelmReleaseStatus": {
"required": [
"state"
],
"properties": {
"deployStatus": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.HelmReleaseDeployStatus"
}
},
"lastDeployed": {
"type": "string"
},
"lastUpdate": {
"type": "string"
},
"message": {
"type": "string"
},
"state": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha1.HelmRepo": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha1.HelmRepoSpec"
},
"status": {
"$ref": "#/definitions/v1alpha1.HelmRepoStatus"
}
}
},
"v1alpha1.HelmRepoCredential": {
"properties": {
"accessKeyID": {
"type": "string"
},
"caFile": {
"type": "string"
},
"certFile": {
"type": "string"
},
"insecureSkipTLSVerify": {
"type": "boolean"
},
"keyFile": {
"type": "string"
},
"password": {
"type": "string"
},
"secretAccessKey": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"v1alpha1.HelmRepoSpec": {
"required": [
"name",
"url"
],
"properties": {
"credential": {
"$ref": "#/definitions/v1alpha1.HelmRepoCredential"
},
"description": {
"type": "string"
},
"name": {
"type": "string"
},
"syncPeriod": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string"
},
"version": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha1.HelmRepoStatus": {
"properties": {
"data": {
"type": "string"
},
"lastUpdateTime": {
"type": "string"
},
"state": {
"type": "string"
},
"syncState": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha1.HelmRepoSyncState"
}
},
"version": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha1.HelmRepoSyncState": {
"required": [
"syncTime"
],
"properties": {
"message": {
"type": "string"
},
"state": {
"type": "string"
},
"syncTime": {
"type": "string"
}
}
},
"v1alpha1.Workspace": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkspaceSpec"
},
"status": {
"$ref": "#/definitions/v1alpha1.WorkspaceStatus"
}
}
},
"v1alpha1.WorkspaceSpec": {
"properties": {
"manager": {
"type": "string"
},
"networkIsolation": {
"type": "boolean"
}
}
},
"v1alpha1.WorkspaceStatus": {},
"v1alpha2.APIResponse": {
"properties": {
"histogram": {
"description": "histogram results",
"$ref": "#/definitions/logging.Histogram"
},
"query": {
"description": "query results",
"$ref": "#/definitions/logging.Logs"
},
"statistics": {
"description": "statistics results",
"$ref": "#/definitions/logging.Statistics"
}
}
},
"v1alpha2.BadRequestError": {
"required": [
"status",
"reason"
],
"properties": {
"reason": {
"$ref": "#/definitions/error"
},
"status": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha2.ClusterDashboard": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha2.DashboardSpec"
}
}
},
"v1alpha2.Column": {
"required": [
"id",
"label",
"dataType"
],
"properties": {
"dataType": {
"type": "string"
},
"id": {
"type": "string"
},
"label": {
"type": "string"
}
}
},
"v1alpha2.ComponentStatus": {
"required": [
"name",
"namespace",
"selfLink",
"label",
"startedAt",
"totalBackends",
"healthyBackends"
],
"properties": {
"healthyBackends": {
"description": "the number of healthy backend components",
"type": "integer",
"format": "int32"
},
"label": {
"description": "labels",
"$ref": "#/definitions/v1alpha2.ComponentStatus.label"
},
"name": {
"description": "component name",
"type": "string"
},
"namespace": {
"description": "the name of the namespace",
"type": "string"
},
"selfLink": {
"description": "self link",
"type": "string"
},
"startedAt": {
"description": "started time",
"type": "string",
"format": "date-time"
},
"totalBackends": {
"description": "the total replicas of each backend system component",
"type": "integer",
"format": "int32"
}
}
},
"v1alpha2.ComponentStatus.label": {},
"v1alpha2.Connection": {
"required": [
"id",
"nodeId",
"label"
],
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"labelMinor": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.MetadataRow"
}
},
"nodeId": {
"type": "string"
}
}
},
"v1alpha2.ConnectionsSummary": {
"required": [
"id",
"topologyId",
"label",
"columns",
"connections"
],
"properties": {
"columns": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Column"
}
},
"connections": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Connection"
}
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"topologyId": {
"type": "string"
}
}
},
"v1alpha2.Control": {
"required": [
"id",
"human",
"icon",
"rank"
],
"properties": {
"confirmation": {
"type": "string"
},
"human": {
"type": "string"
},
"icon": {
"type": "string"
},
"id": {
"type": "string"
},
"rank": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha2.ControlInstance": {
"required": [
"ProbeID",
"NodeID",
"Control"
],
"properties": {
"Control": {
"$ref": "#/definitions/v1alpha2.Control"
},
"NodeID": {
"type": "string"
},
"ProbeID": {
"type": "string"
}
}
},
"v1alpha2.Dashboard": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha2.DashboardSpec"
}
}
},
"v1alpha2.DashboardSpec": {
"properties": {
"annotations": {
"type": "array",
"items": {
"$ref": "#/definitions/anotations.Annotation"
}
},
"auto_refresh": {
"type": "string"
},
"description": {
"type": "string"
},
"editable": {
"type": "boolean"
},
"id": {
"type": "integer",
"format": "integer"
},
"panels": {
"type": "array",
"items": {
"$ref": "#/definitions/panels.Panel"
}
},
"shared_crosshair": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"templatings": {
"type": "array",
"items": {
"$ref": "#/definitions/templatings.TemplateVar"
}
},
"time": {
"$ref": "#/definitions/time.Time"
},
"timezone": {
"type": "string"
},
"title": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"v1alpha2.GlobalRole": {
"required": [
"rules"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PolicyRule"
}
}
}
},
"v1alpha2.Group": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha2.GroupSpec"
},
"status": {
"$ref": "#/definitions/v1alpha2.GroupStatus"
}
}
},
"v1alpha2.GroupBinding": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"groupRef": {
"$ref": "#/definitions/v1alpha2.GroupRef"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"users": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v1alpha2.GroupMember": {
"required": [
"userName",
"groupName"
],
"properties": {
"groupName": {
"type": "string"
},
"userName": {
"type": "string"
}
}
},
"v1alpha2.GroupRef": {
"properties": {
"apiGroup": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"v1alpha2.GroupSpec": {},
"v1alpha2.GroupStatus": {},
"v1alpha2.HealthStatus": {
"required": [
"kubesphereStatus",
"nodeStatus"
],
"properties": {
"kubesphereStatus": {
"description": "kubesphere components status",
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ComponentStatus"
}
},
"nodeStatus": {
"description": "nodes status",
"$ref": "#/definitions/v1alpha2.NodeStatus"
}
}
},
"v1alpha2.Member": {
"required": [
"username",
"roleRef"
],
"properties": {
"roleRef": {
"type": "string"
},
"username": {
"type": "string"
}
}
},
"v1alpha2.MetadataRow": {
"required": [
"id",
"label",
"value"
],
"properties": {
"dataType": {
"type": "string"
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"priority": {
"type": "number",
"format": "double"
},
"truncate": {
"type": "integer",
"format": "int32"
},
"value": {
"type": "string"
}
}
},
"v1alpha2.Metric": {
"required": [
"min",
"max"
],
"properties": {
"max": {
"type": "number",
"format": "double"
},
"min": {
"type": "number",
"format": "double"
},
"samples": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Sample"
}
}
}
},
"v1alpha2.MetricRow": {
"required": [
"ID",
"Label",
"Format",
"Group",
"Value",
"ValueEmpty",
"Priority",
"URL",
"Metric"
],
"properties": {
"Format": {
"type": "string"
},
"Group": {
"type": "string"
},
"ID": {
"type": "string"
},
"Label": {
"type": "string"
},
"Metric": {
"$ref": "#/definitions/v1alpha2.Metric"
},
"Priority": {
"type": "number",
"format": "double"
},
"URL": {
"type": "string"
},
"Value": {
"type": "number",
"format": "double"
},
"ValueEmpty": {
"type": "boolean"
}
}
},
"v1alpha2.Node": {
"required": [
"labelMinor",
"id",
"label",
"rank",
"controls"
],
"properties": {
"adjacency": {
"type": "array",
"items": {
"type": "string"
}
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.NodeSummaryGroup"
}
},
"connections": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ConnectionsSummary"
}
},
"controls": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ControlInstance"
}
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"labelMinor": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.MetadataRow"
}
},
"metrics": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.MetricRow"
}
},
"parents": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Parent"
}
},
"pseudo": {
"type": "boolean"
},
"rank": {
"type": "string"
},
"shape": {
"type": "string"
},
"stack": {
"type": "boolean"
},
"tables": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Table"
}
},
"tag": {
"type": "string"
}
}
},
"v1alpha2.NodeResponse": {
"required": [
"node"
],
"properties": {
"node": {
"$ref": "#/definitions/v1alpha2.Node"
}
}
},
"v1alpha2.NodeStatus": {
"required": [
"totalNodes",
"healthyNodes"
],
"properties": {
"healthyNodes": {
"description": "the number of healthy nodes",
"type": "integer",
"format": "int32"
},
"totalNodes": {
"description": "total number of nodes",
"type": "integer",
"format": "int32"
}
}
},
"v1alpha2.NodeSummary": {
"required": [
"id",
"label",
"labelMinor",
"rank"
],
"properties": {
"adjacency": {
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"labelMinor": {
"type": "string"
},
"metadata": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.MetadataRow"
}
},
"metrics": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.MetricRow"
}
},
"parents": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Parent"
}
},
"pseudo": {
"type": "boolean"
},
"rank": {
"type": "string"
},
"shape": {
"type": "string"
},
"stack": {
"type": "boolean"
},
"tables": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Table"
}
},
"tag": {
"type": "string"
}
}
},
"v1alpha2.NodeSummaryGroup": {
"required": [
"id",
"label",
"nodes",
"topologyId",
"columns"
],
"properties": {
"columns": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Column"
}
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"nodes": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.NodeSummary"
}
},
"topologyId": {
"type": "string"
}
}
},
"v1alpha2.NotFoundError": {
"required": [
"status",
"reason"
],
"properties": {
"reason": {
"$ref": "#/definitions/error"
},
"status": {
"type": "integer",
"format": "int32"
}
}
},
"v1alpha2.Parent": {
"required": [
"id",
"label",
"topologyId"
],
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"topologyId": {
"type": "string"
}
}
},
"v1alpha2.PasswordReset": {
"required": [
"currentPassword",
"password"
],
"properties": {
"currentPassword": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"v1alpha2.ResourceQuota": {
"required": [
"spec"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha2.ResourceQuotaSpec"
},
"status": {
"$ref": "#/definitions/v1alpha2.ResourceQuotaStatus"
}
}
},
"v1alpha2.ResourceQuotaSpec": {
"required": [
"selector",
"quota"
],
"properties": {
"quota": {
"$ref": "#/definitions/v1.ResourceQuotaSpec"
},
"selector": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"v1alpha2.ResourceQuotaStatus": {
"required": [
"total",
"namespaces"
],
"properties": {
"namespaces": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.ResourceQuotaStatusByNamespace"
}
},
"total": {
"$ref": "#/definitions/v1.ResourceQuotaStatus"
}
}
},
"v1alpha2.ResourceQuotaStatusByNamespace": {
"description": "ResourceQuotaStatus defines the enforced hard limits and observed use.",
"required": [
"namespace"
],
"properties": {
"hard": {
"description": "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
},
"namespace": {
"type": "string"
},
"used": {
"description": "Used is the current observed total usage of the resource in the namespace.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/resource.Quantity"
}
}
}
},
"v1alpha2.Row": {
"required": [
"id",
"entries"
],
"properties": {
"entries": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"id": {
"type": "string"
}
}
},
"v1alpha2.Sample": {
"required": [
"date",
"value"
],
"properties": {
"date": {
"type": "string",
"format": "date-time"
},
"value": {
"type": "number",
"format": "double"
}
}
},
"v1alpha2.Table": {
"required": [
"id",
"label",
"type",
"columns",
"rows"
],
"properties": {
"columns": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Column"
}
},
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"rows": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alpha2.Row"
}
},
"truncationCount": {
"type": "integer",
"format": "int32"
},
"type": {
"type": "string"
}
}
},
"v1alpha2.TopologyResponse": {
"required": [
"nodes"
],
"properties": {
"nodes": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/v1alpha2.NodeSummary"
}
}
}
},
"v1alpha2.User": {
"required": [
"spec"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha2.UserSpec"
},
"status": {
"$ref": "#/definitions/v1alpha2.UserStatus"
}
}
},
"v1alpha2.UserSpec": {
"required": [
"email"
],
"properties": {
"description": {
"type": "string"
},
"displayName": {
"type": "string"
},
"email": {
"type": "string"
},
"groups": {
"type": "array",
"items": {
"type": "string"
}
},
"lang": {
"type": "string"
},
"password": {
"type": "string"
}
}
},
"v1alpha2.UserStatus": {
"properties": {
"lastLoginTime": {
"type": "string"
},
"lastTransitionTime": {
"type": "string"
},
"reason": {
"type": "string"
},
"state": {
"type": "string"
}
}
},
"v1alpha2.WorkspaceRole": {
"required": [
"rules"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"rules": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.PolicyRule"
}
}
}
},
"v1alpha2.WorkspaceRoleBinding": {
"required": [
"roleRef"
],
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"roleRef": {
"$ref": "#/definitions/v1.RoleRef"
},
"subjects": {
"type": "array",
"items": {
"$ref": "#/definitions/v1.Subject"
}
}
}
},
"v1alpha2.WorkspaceTemplate": {
"properties": {
"apiVersion": {
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
"type": "string"
},
"kind": {
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
"type": "string"
},
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1beta1.FederatedWorkspaceSpec"
}
}
},
"v1beta1.ClusterOverride": {
"required": [
"path"
],
"properties": {
"op": {
"type": "string"
},
"path": {
"type": "string"
},
"value": {
"type": "string"
}
}
},
"v1beta1.FederatedWorkspaceSpec": {
"required": [
"template",
"placement"
],
"properties": {
"overrides": {
"type": "array",
"items": {
"$ref": "#/definitions/v1beta1.GenericOverrideItem"
}
},
"placement": {
"$ref": "#/definitions/v1beta1.GenericPlacementFields"
},
"template": {
"$ref": "#/definitions/v1beta1.WorkspaceTemplate"
}
}
},
"v1beta1.GenericClusterReference": {
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"v1beta1.GenericOverrideItem": {
"required": [
"clusterName"
],
"properties": {
"clusterName": {
"type": "string"
},
"clusterOverrides": {
"type": "array",
"items": {
"$ref": "#/definitions/v1beta1.ClusterOverride"
}
}
}
},
"v1beta1.GenericPlacementFields": {
"properties": {
"clusterSelector": {
"$ref": "#/definitions/v1.LabelSelector"
},
"clusters": {
"type": "array",
"items": {
"$ref": "#/definitions/v1beta1.GenericClusterReference"
}
}
}
},
"v1beta1.WorkspaceTemplate": {
"description": "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.",
"properties": {
"metadata": {
"$ref": "#/definitions/v1.ObjectMeta"
},
"spec": {
"$ref": "#/definitions/v1alpha1.WorkspaceSpec"
}
}
},
"v2.ImageConfig": {
"required": [
"ConfigFile"
],
"properties": {
"ConfigFile": {
"$ref": "#/definitions/v1.ConfigFile"
}
}
},
"v2.RepositoryTags": {
"required": [
"registry",
"repository",
"tags"
],
"properties": {
"registry": {
"type": "string"
},
"repository": {
"type": "string"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"v2alpha1.Alert": {
"properties": {
"activeAt": {
"description": "time when alert is active",
"type": "string",
"format": "date-time"
},
"annotations": {
"description": "annotations",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"labels": {
"description": "labels",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"ruleId": {
"description": "rule id triggering the alert",
"type": "string"
},
"ruleName": {
"description": "rule name triggering the alert",
"type": "string"
},
"state": {
"description": "state",
"type": "string"
},
"value": {
"description": "the value at the last evaluation of the query expression",
"type": "string"
}
}
},
"v2alpha1.AlertList": {
"required": [
"items",
"total"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.Alert"
}
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v2alpha1.BulkItemResponse": {
"properties": {
"error": {
"description": "It is only returned for failed operations",
"type": "string"
},
"errorType": {
"description": "It may be bad_data, duplicate_name, not_found or server_error, and only for failed operations",
"type": "string"
},
"result": {
"description": "It may be created, updated or deleted, and only for successful operations",
"type": "string"
},
"ruleName": {
"type": "string"
},
"status": {
"description": "It may be success or error",
"type": "string"
}
}
},
"v2alpha1.BulkResponse": {
"required": [
"errors",
"items"
],
"properties": {
"errors": {
"description": "If true, one or more operations in the bulk request don't complete successfully",
"type": "boolean"
},
"items": {
"description": "It contains the result of each operation in the bulk request",
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.BulkItemResponse"
}
}
}
},
"v2alpha1.GettableAlertingRule": {
"properties": {
"alerts": {
"description": "alerts",
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.Alert"
}
},
"annotations": {
"description": "non-identifying key/value pairs. summary, message, description are the commonly used annotation names",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"duration": {
"description": "duration an alert transitions from Pending to Firing state, which must match ^([0-9]+)(y|w|d|h|m|s|ms)$",
"type": "string"
},
"evaluationTime": {
"description": "taken seconds for evaluation of query expression",
"type": "number",
"format": "double"
},
"health": {
"description": "health state of a rule based on the last execution, one of ok, err, unknown",
"type": "string"
},
"id": {
"description": "rule id is only used by built-in alerting rules",
"type": "string"
},
"labels": {
"description": "extra labels to attach to the resulting alert sample vectors (the key string has to match [a-zA-Z_][a-zA-Z0-9_]*). eg: a typical label called severity, whose value may be info, warning, error, critical, is usually used to indicate the severity of an alert",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"lastError": {
"description": "error for the last execution",
"type": "string"
},
"lastEvaluation": {
"description": "time for last evaluation of query expression",
"type": "string",
"format": "date-time"
},
"name": {
"description": "rule name should be unique in one namespace for custom alerting rules",
"type": "string"
},
"query": {
"description": "prometheus query expression, grammars of which may be referred to https://prometheus.io/docs/prometheus/latest/querying/basics/",
"type": "string"
},
"state": {
"description": "state of a rule based on its alerts, one of firing, pending, inactive",
"type": "string"
}
}
},
"v2alpha1.GettableAlertingRuleList": {
"required": [
"items",
"total"
],
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/definitions/v2alpha1.GettableAlertingRule"
}
},
"total": {
"type": "integer",
"format": "int32"
}
}
},
"v2alpha1.PostableAlertingRule": {
"properties": {
"annotations": {
"description": "non-identifying key/value pairs. summary, message, description are the commonly used annotation names",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"duration": {
"description": "duration an alert transitions from Pending to Firing state, which must match ^([0-9]+)(y|w|d|h|m|s|ms)$",
"type": "string"
},
"id": {
"description": "rule id is only used by built-in alerting rules",
"type": "string"
},
"labels": {
"description": "extra labels to attach to the resulting alert sample vectors (the key string has to match [a-zA-Z_][a-zA-Z0-9_]*). eg: a typical label called severity, whose value may be info, warning, error, critical, is usually used to indicate the severity of an alert",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"name": {
"description": "rule name should be unique in one namespace for custom alerting rules",
"type": "string"
},
"query": {
"description": "prometheus query expression, grammars of which may be referred to https://prometheus.io/docs/prometheus/latest/querying/basics/",
"type": "string"
}
}
}
},
"securityDefinitions": {
"jwt": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
},
"security": [
{
"jwt": []
}
]
}