{"base_path":null,"components":null,"consumes":"[\"application/json\"]","definitions":{"AvailabilityZoneInfo":{"properties":{"availability_zone":{"description":"可用分区编码。","maxLength":255,"minLength":1,"type":"string"},"default_availability_zone":{"default":true,"description":"是否默认可用分区。","type":"boolean"},"display_name":{"description":"可用分区名称。","maxLength":255,"minLength":1,"type":"string"},"i18n":{"additionalProperties":{"$ref":"#/definitions/I18n"},"description":"可用分区国际化信息。","type":"object"},"product_ids":{"description":"指定当前分区下自定义支持的产品ID列表,如果为空则支持所有套餐。","items":{"maxLength":55,"minLength":1,"type":"string"},"maxItems":100,"minItems":0,"type":"array"},"sold_out":{"$ref":"#/definitions/SoldOutInfo","description":"指定当前分区下售罄的信息。"},"visible":{"default":true,"description":"是否可见。","type":"boolean"}}},"BadRequestErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211102","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The parameter is invalid.","readOnly":true,"type":"string"}}},"ForbiddenErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00081102","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"User does not have permission to access this resource.","readOnly":true,"type":"string"}}},"I18n":{"properties":{"en_us":{"description":"可用分区英语名称。","maxLength":255,"minLength":0,"type":"string"},"zh_cn":{"description":"可用分区中文名称。","maxLength":255,"minLength":0,"type":"string"}},"type":"string"},"InternalServerErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211401","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The requested operation failed. Please try again later.","readOnly":true,"type":"string"}}},"MethodNotAllowedErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00000405","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The method specified in the request is not allowed for this resource.","readOnly":true,"type":"string"}}},"NotFoundErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211902","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The application does not exist","readOnly":true,"type":"string"}}},"QueryAvailabilityZonesResp":{"properties":{"availability_zones":{"description":"云应用支持的可用分区列表。","items":{"$ref":"#/definitions/AvailabilityZoneInfo"},"readOnly":true,"type":"array"},"total_count":{"description":"总数。","format":"int32","readOnly":true,"type":"integer"}}},"ServiceUnavailableErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00050902","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"The service is now unavailable to process the request.","readOnly":true,"type":"string"}}},"SoldOutInfo":{"description":"售罄信息。","properties":{"products":{"description":"售罄产品ID列表。","example":["workspace.appstream.general.xlarge.2"],"items":{"maxLength":55,"minLength":1,"type":"string"},"maxItems":100,"minItems":0,"type":"array"}}},"UnauthorizedErrorResp":{"description":"API错误响应。","properties":{"error_code":{"description":"错误码,失败时返回。","example":"WKS.00211302","readOnly":true,"type":"string"},"error_msg":{"description":"错误描述。","example":"User authorization error.","readOnly":true,"type":"string"}}}},"description":null,"group_id":"fe7dbee2e20f4aa589be7dce935a38ad","host":"appstream.cn-north-4.myhuaweicloud.com","id":"b017dfd65a6a46bc9487ef24a23fc757","info_version":"v1","method":"get","name":"ListAvailabilityZone","parameters":{},"paths":{"/v1/{project_id}/availability-zone":{"get":{"consumes":["application/json"],"description":"该接口用于查询支持的可用分区列表。","operationId":"ListAvailabilityZone","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":2147483647,"minLength":0,"name":"X-Auth-Token","required":false,"type":"string","x-example":"MIIDkgYJKoZIhvcNAQcCoIIDgzCCXXXXXX..."},{"description":"项目唯一标识。","in":"path","maxLength":128,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"}],"produces":["application/json"],"responses":{"200":{"description":"成功响应。","examples":{"application/json":{"availability_zones":[{"availability_zone":"cn-north-7a","default_availability_zone":false,"display_name":"cn-north-7a","i18n":{"en_us":"AZ1","zh_cn":"可用区1"},"product_ids":[],"sold_out":{"products":[]},"visible":true},{"availability_zone":"cn-north-7b","default_availability_zone":false,"display_name":"cn-north-7b","i18n":{"en_us":"AZ2","zh_cn":"可用区2"},"product_ids":[],"sold_out":{"products":[]},"visible":true},{"availability_zone":"cn-north-7c","default_availability_zone":false,"display_name":"cn-north-7c","i18n":{"en_us":"AZ3","zh_cn":"可用区3"},"product_ids":[],"sold_out":{"products":[]},"visible":true}],"total_count":3}},"schema":{"$ref":"#/definitions/QueryAvailabilityZonesResp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BadRequestErrorResp"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/UnauthorizedErrorResp"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/ForbiddenErrorResp"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/NotFoundErrorResp"}},"405":{"description":"请求中指定的方法不被允许。","schema":{"$ref":"#/definitions/MethodNotAllowedErrorResp"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/InternalServerErrorResp"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/ServiceUnavailableErrorResp"}}},"security":[{"apig-auth-iam-used-authn5":[]}],"summary":"查询可用分区列表","tags":["AvailabilityZone"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal,public","x-apigateway-backend":{"httpVpcEndpoints":{"description":"","method":"GET","name":"wks-bundlemanager-lb","path":"/v1/{project_id}/availability-zone","scheme":"https","timeout":30000},"parameters":[{"description":"","in":"header","name":"X-Auth-Token","origin":"request","value":"X-Auth-Token"},{"description":"","in":"path","name":"project_id","origin":"request","value":"project_id"}],"type":"HTTP-VPC"},"x-apigateway-cors":false,"x-apigateway-match-mode":"NORMAL","x-apigateway-ratelimit":"workspace_default_get","x-apigateway-request-type":"public","x-is-registered":"Y","x-request-examples-url-1":"GET /v1/29dfe82ada564ac2b927e1ff036d9a9b/availability-zone","x-support-sdk":"Y"}}},"product_short":"WorkspaceApp","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":{"apig-auth-app":{"in":"header","name":"Authorization","type":"apiKey","x-apigateway-auth-type":"AppSigv1"},"apig-auth-iam":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-type":"IAM"},"apig-auth-iam-used-authn5":{"in":"header","name":"unused","type":"apiKey","x-apigateway-auth-opt":{"inner-auth-type":"iam_auth_n5"},"x-apigateway-auth-type":"IAM"}},"summary":"查询可用分区列表","tags":"可用区管理","uri":null,"version":"2.0"}