{"base_path":null,"components":null,"consumes":"[\"application/json\",\"application/json;charset=utf-8\"]","definitions":{"ApplyInternetReq":{"properties":{"bandwidth_size":{"description":"带宽大小。","format":"int32","maximum":2000,"minimum":1,"type":"integer"},"eip_charge_mode":{"description":"traffic(按流量计费),bandwidth(按带宽计费)。","maxLength":10,"minLength":1,"type":"string"},"eip_name":{"default":"eip-workspace","description":"eip名称,默认值:eip-workspace。","maxLength":64,"minLength":0,"type":"string"},"eip_type":{"default":"5_bgp","description":"EIP的类型,5_bgp(全动态BGP),5_sbgp(静态BGP),默认值:5_bgp。","maxLength":255,"minLength":0,"type":"string"},"enterprise_project_id":{"default":"0","description":"企业项目ID,默认\"0。\"","maxLength":36,"minLength":0,"type":"string"},"nat_id":{"description":"nat的id,有传则使用该NAT,否则新建。","maxLength":255,"minLength":0,"type":"string"},"nat_name":{"default":"nat-workspace","description":"nat名称,默认值:nat-workspace。","maxLength":64,"minLength":0,"type":"string"},"nat_spec":{"description":"公网NAT网关的规格,1:小型,2:中型,3:大型,4:超大型。","pattern":"^[1-4]{1}$","type":"string"},"subnet_id":{"description":"子网的id。","maxLength":255,"minLength":1,"type":"string"},"vpc_id":{"description":"vpc的id。","maxLength":255,"minLength":1,"type":"string"}},"required":["bandwidth_size","eip_charge_mode","nat_spec","subnet_id","vpc_id"]},"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_msg":{"description":"错误描述。","maxLength":1000,"minLength":0,"type":"string"}}}},"description":null,"group_id":"7383c32d5d5e4d0481c071faeb994404","host":"workspace.cn-north-4.myhuaweicloud.com","id":"07bb72dfac8247609e521d9add2c0b6e","info_version":"v2","method":"post","name":"ApplyInternet","parameters":{},"paths":{"/v2/{project_id}/internet":{"post":{"description":"开通上网功能。","operationId":"ApplyInternet","parameters":[{"description":"用户Token。\n通过调用IAM服务获取用户Token接口获取(响应消息头中X-Subject-Token的值)。","in":"header","maxLength":40000,"minLength":1,"name":"X-Auth-Token","required":false,"type":"string","x-annotations":"@Size(max = 40000, min = 1)"},{"description":"项目ID。","in":"path","maxLength":255,"minLength":1,"name":"project_id","required":true,"type":"string","x-annotations":"@Size(max = 255, min = 1)"},{"description":"请求参数。","in":"body","name":"ApplyInternetRequestBody","required":true,"schema":{"$ref":"#/definitions/ApplyInternetReq"}}],"responses":{"200":{"description":"开通上网功能响应。"},"default":{"description":"默认响应。","schema":{"$ref":"#/definitions/BaseResponse"}}},"summary":"开通上网功能","tags":["Network"],"x-api-type":"open-api","x-apiexplorer-hide":"N","x-apig-group":"internal_token,public","x-is-registered":"Y","x-methodAnnotations":["@EnableAuth","@IamAuthMeta(authLevel = IamAuthLevel.PROJECT, authContextInitializerName = \"workspaceCommonAuthContextInitializer\", abacAction = \"workspace:networks:createNat\", needApigwJwtAuthCheck = false, needRbacCheck = false)","@CtsMeta(serviceType = \"Workspace\", resourceType = \"workspace\", traceName = \"applyInternet\")"],"x-request-examples-1":{"bandwidth_size":1,"eip_charge_mode":"string","eip_name":"string","eip_type":"string","enterprise_project_id":"string","nat_name":"string","nat_spec":"string","subnet_id":"string","vpc_id":"string"},"x-request-examples-text-1":{"bandwidth_size":1,"eip_charge_mode":"string","eip_name":"string","eip_type":"string","enterprise_project_id":"string","nat_name":"string","nat_spec":"string","subnet_id":"string","vpc_id":"string"},"x-request-examples-url-1":"/v2/0e69423d4400f4a82f67c0059a1e4cc8/internet","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"}