K8s Service管理

创建Service

在指定命名空间中创建新的Service

post/k8s/cluster/{id}/namespaces/{namespaceName}/services

Request

  • The document declares no server URL.
  • Auth
    none declared. Required headers: Authorization

Path parameters

idinteger required

集群ID

namespaceNamestring required

命名空间名称

Headers

Authorizationstring required

Bearer 用户Token

Request body

externalIPsstring[]

外部IP列表

labelsobject

标签

namestring required

服务名称

selectorobject required

选择器

typestring required

服务类型

Response

OK

codeinteger

状态码

messagestring

提示信息

Changes

No recorded changes to this operation across all 1 revision of this API.