huawei-cloud-api-definitions-APIExplorer 0.1.20240210

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":null,"consumes":"[\"application/json;charset=UTF-8\"]","definitions":{"ErrorResponse":{"properties":{"error_code":{"description":"错误码","maxLength":50,"minLength":1,"type":"string"},"error_msg":{"description":"错误信息","maxLength":50,"minLength":1,"type":"string"}}},"ListRegions":{"properties":{"count":{"description":"总数","maximum":10000,"minimum":0,"type":"integer"},"regions":{"description":"是List<RegionV2>类型的对象","items":{"$ref":"#/definitions/RegionV2"},"maxItems":1000,"minItems":0,"type":"array"}}},"Projects":{"properties":{"name":{"description":"项目名称","maxLength":256,"minLength":1,"type":"string"},"project_id":{"description":"项目id","maxLength":32,"minLength":32,"type":"string"},"sub_projects":{"description":"子项目列表","items":{"$ref":"#/definitions/SubProject"},"maxItems":1000,"minItems":0,"type":"array"}}},"RegionV2":{"properties":{"has_permission":{"default":false,"description":"用户是否有权限调用当前region下的API","type":"boolean"},"name":{"description":"region名字","example":"cn-north-7","maxLength":256,"minLength":1,"type":"string"},"name_cn":{"description":"region中文名","example":"华北-乌兰察布二零三","maxLength":256,"minLength":1,"type":"string"},"projects":{"$ref":"#/definitions/Projects"},"region_id":{"description":"区域id","example":"cn-north-7","maxLength":256,"minLength":1,"type":"string"}}},"SubProject":{"properties":{"name":{"description":"子项目名称","maxLength":256,"minLength":1,"type":"string"},"project_id":{"description":"子项目id","maxLength":32,"minLength":32,"type":"string"}}}},"description":null,"group_id":"eed1c825dbe54d0facd4d95f9de3e9d7","host":"apiexplorer.cn-north-4.myhuaweicloud.com","id":"43b999d4ccc4498fa3c5b728b4184311","info_version":"v1","method":"get","name":"ListRegionsV4","parameters":{},"paths":{"/v4/regions":{"get":{"description":"- 获取用户在该API有调试权限的region列表\n- 如果有身份认证信息,会返回租户在各region下的项目列表\n","operationId":"ListRegionsV4","parameters":[{"default":"zh-cn","description":"语言类型 中文:zh-cn 英文:en-us","enum":["zh-cn","en-us"],"in":"header","maxLength":16,"minLength":5,"name":"X-Language","required":false,"type":"string","x-example":"zh-cn","x-notgenerate":true},{"description":"产品短名","in":"query","maxLength":64,"minLength":1,"name":"product_short","required":true,"type":"string"},{"description":"api的英文名","in":"query","maxLength":63,"minLength":1,"name":"api_name","required":false,"type":"string"},{"description":"yaml的版本信息,用来标记当前api对应的版本","in":"query","maxLength":100,"minLength":0,"name":"info_version","required":false,"type":"string"}],"responses":{"200":{"description":"region列表","examples":{"application/json":{"count":5,"regions":[{"has_permission":false,"name":"br-iaas-odin1","name_cn":"苏州-奥丁","projects":{"name":"br-iaas-odin1","project_id":"06057683af00d5762f2fc002c6fb95c9","sub_projects":[{"name":"br-iaas-odin1_sdk","project_id":"069a4de03780d2452fd2c00273504cf0"},{"name":"br-iaas-odin1_tempest_1","project_id":"069a4d980600d5a22fc1c002ed308277"}]},"region_id":"br-iaas-odin1"}]}},"schema":{"$ref":"#/definitions/ListRegions"}},"400":{"description":"Bad Request","examples":{"application/json":{"error_code":"APIEXPLORER.1000","error_msg":"The system is busy. Please try again later"}},"schema":{"$ref":"#/definitions/ErrorResponse"}},"401":{"description":"Unauthorized","examples":{"application/json":{"error_code":"DEV.00000003","error_msg":"Token expired."}},"schema":{"$ref":"#/definitions/ErrorResponse"}}},"summary":"获取region列表","tags":["RegionServerV4"],"x-is-registered":"Y","x-request-examples-1":"GET https://{endpoint}/v4/regions?product_short=ECS&api_name=NovaShowVersion","x-request-examples-description-1":"","x-support-sdk":"N"}}},"product_short":"APIExplorer","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取region列表","tags":"API","uri":null,"version":"2.0"}