修改Service的基本信息
修改Service的基本信息
Path Parameters
订阅
资源组
可用区
工作空间资源名称
Service名称
Request Body required
- Array [
- ]
Possible values: non-empty
and <= 63 characters
Service名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改,符合k8s命名规范,长度不超过63
ownership object
所有权关系
selector object required
Service选择器,需要 app=app_name
ports object[]
Service端口
Possible values: non-empty
and <= 63 characters
名称,默认为空会随机填充
Possible values: >= 1
and <= 65535
端口,在 1 到 65535 的范围内,不能是 8002 到 8010 之间 (系统服务占用)
Possible values: >= 1
and <= 65535
端口,在 1 到 65535 的范围内
内网访问IP,通常是随机分配,"None" 代表无头服务
- 200
- default
OK
Schema
- Array [
- ]
Possible values: non-empty
and <= 63 characters
Service名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改,符合k8s命名规范,长度不超过63
ownership object
所有权关系
selector object required
Service选择器,需要 app=app_name
ports object[]
Service端口
Possible values: non-empty
and <= 63 characters
名称,默认为空会随机填充
Possible values: >= 1
and <= 65535
端口,在 1 到 65535 的范围内,不能是 8002 到 8010 之间 (系统服务占用)
Possible values: >= 1
and <= 65535
端口,在 1 到 65535 的范围内
内网访问IP,通常是随机分配,"None" 代表无头服务
{
"name": "string",
"uid": "string",
"id": "string",
"ownership": {
"creator_id": "string",
"owner_id": "string",
"tenant_id": "string",
"creator_name": "string"
},
"intranet_domain_name": "string",
"selector": {},
"ports": [
{
"name": "string",
"port": 0,
"target_port": 0
}
],
"cluster_ip": "string",
"create_time": "2024-11-04T06:28:49.116Z",
"update_time": "2024-11-04T06:28:49.116Z"
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}