获取命名空间列表
GET
/naming/v1/namespaces
最后修改时间:2024-08-21 04:21:04
责任人:未设置
请求参数
Query 参数
name
string
命名空间名称
offset
integer
可选
示例值:
0
limit
integer
可选
示例值:
100
Header 参数
X-Polaris-Token
string
必需
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://119.91.66.223:8090/naming/v1/namespaces?name=&offset=0&limit=100' \
--header 'X-Polaris-Token;'
返回响应
🟢200成功
application/json
Body
amount
integer
总数
code
integer
响应码
info
string
提示信息
namespaces
array[object (命名空间) {9}]
命名空间列表
name
string
命名空间名称
comment
string
命名空间描述
metadata
object
标签
map<string, string>
group_ids
array[string]
追加可编辑该命名空间的用户组ID列表
user_ids
array[string]
追加可编辑该命名空间的用户ID列表
remove_group_ids
array[string]
移除可编辑该命名空间的用户ID列表
remove_user_ids
array[string]
移除可编辑该命名空间的用户ID列表
service_export_to
array[string]
命名空间下所有服务对别的命名空间可见性, 从 1.18.0 开始可用
sync_to_global_registry
boolean
同步全局注册中心
size
integer
当前返回数据总数
示例
{
"amount": 0,
"code": 0,
"info": "string",
"namespaces": [
{
"name": "string",
"comment": "string",
"metadata": {},
"group_ids": [
"string"
],
"user_ids": [
"string"
],
"remove_group_ids": [
"string"
],
"remove_user_ids": [
"string"
],
"service_export_to": [
"string"
],
"sync_to_global_registry": true
}
],
"size": 0
}
修改于 2024-08-21 04:21:04