文档首页> CodeArts IDE Online> API参考> API> 技术栈管理> 按region获取标签所有技术栈
更新时间:2023-06-16 GMT+08:00
分享

按region获取标签所有技术栈

功能介绍

按region获取标签所有技术栈

调试

您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。

URI

GET /v2/stacks/tag

表1 Query参数

参数

是否必选

参数类型

描述

tags

String

技术栈标签。默认为空值,查询全部。 例如:Java,CPP,GO,Python;可查询多个标签

请求参数

表2 请求Header参数

参数

是否必选

参数类型

描述

X-Auth-Token

String

用户Token。

通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。

响应参数

状态码: 200

表3 响应Body参数

参数

参数类型

描述

stack

StacksTags object

技术栈

status

String

状态

表4 StacksTags

参数

参数类型

描述

stack_list

Array of StackInfo objects

技术栈列表

tags

Array of strings

技术栈tag集合

表5 StackInfo

参数

参数类型

描述

arm_config

StacksConfig object

ARM配置

bundle_url

String

bundleUrl

config

StacksConfig object

X86配置

created_time

String

创建时间

delete

Boolean

是否删除

description

String

描述

disable

Boolean

是否可用

display_name

String

显示名称

id

Long

id

label

String

标签

logo

String

图标

region

String

region

show

Boolean

是否显示

stack_name

String

技术栈名称

tags

Array of strings

tags

updated_time

String

修改时间

users

Array of strings

使用者

表6 StacksConfig

参数

参数类型

描述

attributes

StacksAttribute object

属性值

recipe

Recipe object

镜像

表7 StacksAttribute

参数

参数类型

描述

specs

Array of strings

规格列表

suggest

String

提示id

suggest_title

String

提示信息

volumes

Array of strings

卷容量列表

表8 Recipe

参数

参数类型

描述

content

String

镜像内容

type

String

镜像类型

状态码: 403

表9 响应Body参数

参数

参数类型

描述

error_msg

String

错误描述

error_code

String

错误码

请求示例

按region获取标签所有技术栈

GET https://{endpoint}/v2/stacks/tag?tags=Java

响应示例

状态码: 200

OK

{
  "stack" : {
    "tags" : [ "Quantum", "Java", "Maven", "CPP", "JavaScript", "Vue", "ServiceComb", "GO", "Node.js", "Ruby", "Python" ],
    "stack_list" : [ {
      "id" : 6,
      "stack_name" : "python",
      "display_name" : "Python",
      "tags" : [ "Python" ],
      "region" : "cn-north-7",
      "users" : [ "ide" ],
      "description" : "支持Python开发,集成pypi",
      "disable" : false,
      "show" : true,
      "arm_config" : {
        "recipe" : {
          "content" : "hishell-python:x86_64_inner_latest_fuxi",
          "type" : "dockerimage"
        },
        "attributes" : {
          "specs" : [ "4U8G" ],
          "volumes" : [ "5GB", "10GB", "20GB" ]
        }
      },
      "config" : {
        "recipe" : {
          "content" : "hishell-python:x86_64_inner_latest_fuxi",
          "type" : "dockerimage"
        },
        "attributes" : {
          "specs" : [ "1U1G", "2U4G" ],
          "volumes" : [ "5GB", "10GB", "20GB" ]
        }
      },
      "created_time" : "2021-10-15 14:28:40",
      "updated_time" : "2021-12-27 16:01:22",
      "bundle_url" : "https://test-static-resource.obs.cn-north-7.ulanqab.huawei.com/CloudIDEStatic/1.0.33.20211227153454/bundle.js",
      "delete" : false
    } ]
  },
  "status" : "success"
}

状态码: 403

Forbidden

{
  "error_msg" : "not subscribe codeArts ide online",
  "error_code" : "IDE.00000004"
}

状态码

状态码

描述

200

OK

403

Forbidden

错误码

请参见错误码

分享:

    相关文档

    相关产品