查询Configmap列表 | 大装置帮助中心
跳到主要内容

查询Configmap列表

查询Configmap列表

Path Parameters
    subscription_name string required

    Possible values: non-empty and <= 63 characters

    订阅

    resource_group_name string required

    Possible values: non-empty and <= 63 characters

    资源组

    zone string required

    Possible values: non-empty and <= 63 characters

    可用区

    workspace_name string required

    Possible values: non-empty and <= 63 characters

    工作空间资源名称

Query Parameters
    filter string

    可选,过滤条件,仅支持name, user_name, user_id字段的过滤条件,格式请参考:https://google.aip.dev/160

    page_size int32

    可选,单页结果数,默认10,最大500,需为非负整数,如果不填或填0,则使用默认值。超过最大值则使用最大值,负值将返回错误

    page_token string

    可选,指定要使用的页码,默认1.如果未指定则使用默认值,非正值返回错误

Responses

OK


Schema
    configmaps object[]

    Configmap列表

  • Array [
  • name string

    Configmap名称,此字段创建时用于指定,用于更新接口时时仅用作显示,不支持修改

    ownership object

    所有权关系

    data object required

    Configmap数据

    property name* string
  • ]
  • total_size int32

    符合当前查询条件的后台数据总数(不是当前返回数据总数)

    next_page_token string

    此token允许您获取列表请求的下一页结果。如果结果数量大于page_size,请在下一个list请求中使用nextPageToken作为查询参数page_token的值,后续的列表请求将有各自的next_page_token,以继续分页浏览结果

GET /compute/cm/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/configmaps

Authorization

name: bearerAuthtype: httpscheme: bearer

Request

Base URL
https://cci.cn-sh-01.sensecore.cn
Bearer Token
subscription_name — path required
resource_group_name — path required
zone — path required
workspace_name — path required
filter — query
page_size — query
page_token — query
curl / cURL
curl -L -X GET 'https://cci.cn-sh-01.sensecore.cn/compute/cm/data/v2/subscriptions/:subscription_name/resourceGroups/:resource_group_name/zones/:zone/workspaces/:workspace_name/configmaps' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'