{"base_path":null,"components":null,"consumes":"[\"application/json\",\"application/json;charset=utf-8\",\"application/json;charset=UTF-8\"]","definitions":{"AccessConfigReq":{"description":"接入配置。","properties":{"access_mode":{"description":"接入方式。\n- INTERNET:表示Internet接入。\n- DEDICATED:表示专线接入。\n- BOTH:表示两种接入方式都支持。","enum":["INTERNET","DEDICATED","BOTH"],"maxLength":55,"minLength":1,"type":"string"},"dedicated_cidrs":{"description":"专线接入网段列表,多个网段信息用分号隔开,列表长度不超过5。","example":"192.168.0.0/24;10.0.0.0/16","maxLength":100,"minLength":0,"type":"string"}},"required":["access_mode"]},"AddSiteReq":{"description":"初始化站点请求。","properties":{"site_configs":{"description":"站点配置信息。","items":{"$ref":"#/definitions/SiteConfigsRequest"},"maxItems":9,"minItems":1,"type":"array","x-maxLength":9,"x-minLength":1}},"required":["site_configs"]},"AddSiteRsp":{"description":"初始化站点响应。","properties":{"job_id":{"description":"初始化站点的任务ID。","maxLength":255,"minLength":1,"type":"string"}}},"BaseResponse":{"description":"API响应基类。","properties":{"encoded_authorization_message":{"description":"加密后的详细拒绝原因,用户可以自行调用STS服务的decode-authorization-message接口进行解密。","readOnly":true,"type":"string"},"error_code":{"description":"错误码。","maxLength":12,"minLength":0,"type":"string"},"error_detail":{"description":"错误详情。","maxLength":1000,"minLength":0,"type":"string"},"error_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}},"NetworkConfigReq":{"description":"网络配置。","properties":{"subnet_ids":{"description":"指定业务子网的网络id。","items":{"maxLength":255,"minLength":0,"type":"string"},"maxItems":100,"minItems":0,"type":"array","x-type":"List<@Size(min=0, max=255) String>"},"vpc_id":{"description":"VPC ID。","maxLength":255,"minLength":0,"type":"string"}}},"SiteConfigsRequest":{"properties":{"access_config":{"$ref":"#/definitions/AccessConfigReq","description":"接入配置。"},"availability_zone":{"description":"开通服务资源使用的可用分区。","maxLength":55,"minLength":0,"type":"string"},"network_config":{"$ref":"#/definitions/NetworkConfigReq","description":"网络配置。"}},"required":["access_config","network_config"]}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"3e4eba063c4b4b21b89b891328bc1bb8","info_version":"v2","method":"post","name":"AddSite","parameters":{},"paths":{"/v2/{project_id}/sites":{"post":{"description":"用于查询站点信息的接口。","operationId":"AddSite","parameters":[{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-example":"2b31ed520xxxxxxebedb6e57xxxxxxxx"},{"description":"开通云办公服务请求。","in":"body","name":"AddSiteRequestBody","required":true,"schema":{"$ref":"#/definitions/AddSiteReq"}}],"responses":{"200":{"description":"查询站点信息的接口。","examples":{"application/json":{"job_id":"string"}},"schema":{"$ref":"#/definitions/AddSiteRsp"}},"400":{"description":"由于包含语法错误,当前请求无法被服务器理解。","schema":{"$ref":"#/definitions/BaseResponse"}},"401":{"description":"鉴权失败。","schema":{"$ref":"#/definitions/BaseResponse"}},"403":{"description":"没有操作权限。","schema":{"$ref":"#/definitions/BaseResponse"}},"404":{"description":"找不到资源。","schema":{"$ref":"#/definitions/BaseResponse"}},"500":{"description":"服务内部错误,具体返回错误码请参见错误码说明。","schema":{"$ref":"#/definitions/BaseResponse"}},"503":{"description":"服务不可用。","schema":{"$ref":"#/definitions/BaseResponse"}}},"schemes":["https"],"summary":"新增站点","tags":["Site"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-apigateway-request-type":"public","x-is-registered":"Y","x-methodAnnotations":["@EnableAuth","@IamAuthMeta(authLevel = IamAuthLevel.PROJECT, abacAction = \"workspace:sites:add\", needApigwJwtAuthCheck = false, needRbacCheck = false, authContextInitializerName = \"addSitesAuthContextInitializer\")","@CtsMeta(serviceType = \"Workspace\", resourceType = \"workspace\", traceName = \"addSite\")"],"x-request-examples-1":{"site_configs":[{"access_config":{"access_mode":"string","dedicated_cidrs":"192.168.0.0/24;10.0.0.0/16"},"availability_zone":"string","network_config":{"subnet_ids":["string"],"vpc_id":"string"}}]},"x-request-examples-text-1":{"site_configs":[{"access_config":{"access_mode":"string","dedicated_cidrs":"192.168.0.0/24;10.0.0.0/16"},"availability_zone":"string","network_config":{"subnet_ids":["string"],"vpc_id":"string"}}]},"x-request-examples-url-1":"POST /v2/fb2e5ec048384c8f9469d22db0037908/sites","x-support-sdk":"Y"}}},"product_short":"Workspace","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"}