
# 查询open api swagger信息
#### 功能介绍
查询open api swagger信息。
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-cci/cci_02_0009.html)。
#### URI
GET /openapi/v2
#### 请求参数
表1请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                        |
|:---|:---|:---|:---|
| X-Auth-Token | 是    | String | 用户Token。 通过调用IAM服务获取用户Token接口获取（响应消息头中X-Subject-Token的值）。 |
   
#### 响应参数
**状态码：200**
表2响应Body参数 
| 参数 | 参数类型   | 描述 |
|:---|:---|:---|
| -  | String |    |
   
#### 请求示例
无
#### 响应示例
**状态码：200**
OK
```
"{
  \"swagger\": \"2.0\",
  \"info\": {
    \"title\": \"Kubernetes\",
    \"version\": \"v1.19.16\"
  },
  \"paths\": {
    \"/api\": {
      \"get\": {
        \"description\": \"get available API versions\",
        \"consumes\": [
          \"application/json\",
          \"application/yaml\",
          \"application/vnd.kubernetes.protobuf\"
        ],
        \"produces\": [
          \"application/json\",
          \"application/yaml\",
          \"application/vnd.kubernetes.protobuf\"
        ],
        \"schemes\": [
          \"https\"
        ],
        \"tags\": [
          \"core\"
        ],
        \"operationId\": \"getCoreAPIVersions\",
        \"responses\": {
          \"200\": {
            \"description\": \"OK\",
            \"schema\": {
              \"$ref\": \"#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.APIVersions\"
            }
          },
          \"401\": {
            \"description\": \"Unauthorized\"
          }
        }
      }
    }
  },
  \"definitions\": {},
  \"securityDefinitions\": {
    \"BearerToken\": {
      \"description\": \"Bearer Token authentication\",
      \"type\": \"apiKey\",
      \"name\": \"authorization\",
      \"in\": \"header\"
    }
  },
  \"security\": [
    {
      \"BearerToken\": []
    }
  ]
}"
```
#### 状态码
| 状态码 | 描述                   |
|:---|:---|
| 200 | OK                   |
| 400 | BadRequest           |
| 401 | Unauthorized         |
| 403 | Forbidden            |
| 404 | NotFound             |
| 405 | MethodNotAllowed     |
| 406 | NotAcceptable        |
| 409 | Conflict             |
| 415 | UnsupportedMediaType |
| 422 | Invalid              |
| 429 | TooManyRequests      |
| 500 | InternalError        |
| 503 | ServiceUnavailable   |
| 504 | ServerTimeout        |
   
