UECClient.php 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752
  1. <?php
  2. /**
  3. * Copyright 2022 UCloud Technology Co., Ltd.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. namespace UCloud\UEC;
  18. use UCloud\Core\Client;
  19. use UCloud\Core\Exception\UCloudException;
  20. use UCloud\UEC\Apis\BindUEcFirewallRequest;
  21. use UCloud\UEC\Apis\BindUEcFirewallResponse;
  22. use UCloud\UEC\Apis\CreateUEcCustomImageRequest;
  23. use UCloud\UEC\Apis\CreateUEcCustomImageResponse;
  24. use UCloud\UEC\Apis\CreateUEcFirewallRequest;
  25. use UCloud\UEC\Apis\CreateUEcFirewallResponse;
  26. use UCloud\UEC\Apis\CreateUEcHolderRequest;
  27. use UCloud\UEC\Apis\CreateUEcHolderResponse;
  28. use UCloud\UEC\Apis\CreateUEcSubnetRequest;
  29. use UCloud\UEC\Apis\CreateUEcSubnetResponse;
  30. use UCloud\UEC\Apis\CreateUEcVHostRequest;
  31. use UCloud\UEC\Apis\CreateUEcVHostResponse;
  32. use UCloud\UEC\Apis\DeleteUEcCustomImageRequest;
  33. use UCloud\UEC\Apis\DeleteUEcCustomImageResponse;
  34. use UCloud\UEC\Apis\DeleteUEcHolderRequest;
  35. use UCloud\UEC\Apis\DeleteUEcHolderResponse;
  36. use UCloud\UEC\Apis\DeleteUEcSubnetRequest;
  37. use UCloud\UEC\Apis\DeleteUEcSubnetResponse;
  38. use UCloud\UEC\Apis\DeleteUEcVHostRequest;
  39. use UCloud\UEC\Apis\DeleteUEcVHostResponse;
  40. use UCloud\UEC\Apis\DescribeUEcFirewallRequest;
  41. use UCloud\UEC\Apis\DescribeUEcFirewallResponse;
  42. use UCloud\UEC\Apis\DescribeUEcFirewallResourceRequest;
  43. use UCloud\UEC\Apis\DescribeUEcFirewallResourceResponse;
  44. use UCloud\UEC\Apis\DescribeUEcHolderRequest;
  45. use UCloud\UEC\Apis\DescribeUEcHolderResponse;
  46. use UCloud\UEC\Apis\DescribeUEcHolderIDCRequest;
  47. use UCloud\UEC\Apis\DescribeUEcHolderIDCResponse;
  48. use UCloud\UEC\Apis\DescribeUEcIDCRequest;
  49. use UCloud\UEC\Apis\DescribeUEcIDCResponse;
  50. use UCloud\UEC\Apis\DescribeUEcSubnetRequest;
  51. use UCloud\UEC\Apis\DescribeUEcSubnetResponse;
  52. use UCloud\UEC\Apis\DescribeUEcVHostRequest;
  53. use UCloud\UEC\Apis\DescribeUEcVHostResponse;
  54. use UCloud\UEC\Apis\DescribeUEcVHostISPRequest;
  55. use UCloud\UEC\Apis\DescribeUEcVHostISPResponse;
  56. use UCloud\UEC\Apis\GetUEcHolderLogRequest;
  57. use UCloud\UEC\Apis\GetUEcHolderLogResponse;
  58. use UCloud\UEC\Apis\GetUEcHolderMetricsRequest;
  59. use UCloud\UEC\Apis\GetUEcHolderMetricsResponse;
  60. use UCloud\UEC\Apis\GetUEcIDCCutInfoRequest;
  61. use UCloud\UEC\Apis\GetUEcIDCCutInfoResponse;
  62. use UCloud\UEC\Apis\GetUEcIDCVHostDataRequest;
  63. use UCloud\UEC\Apis\GetUEcIDCVHostDataResponse;
  64. use UCloud\UEC\Apis\GetUEcImageRequest;
  65. use UCloud\UEC\Apis\GetUEcImageResponse;
  66. use UCloud\UEC\Apis\GetUEcPodPriceRequest;
  67. use UCloud\UEC\Apis\GetUEcPodPriceResponse;
  68. use UCloud\UEC\Apis\GetUEcUpgradePriceRequest;
  69. use UCloud\UEC\Apis\GetUEcUpgradePriceResponse;
  70. use UCloud\UEC\Apis\GetUEcVHostDataRequest;
  71. use UCloud\UEC\Apis\GetUEcVHostDataResponse;
  72. use UCloud\UEC\Apis\GetUEcVHostPriceRequest;
  73. use UCloud\UEC\Apis\GetUEcVHostPriceResponse;
  74. use UCloud\UEC\Apis\ImportUEcCustomImageRequest;
  75. use UCloud\UEC\Apis\ImportUEcCustomImageResponse;
  76. use UCloud\UEC\Apis\LoginUEcDockerRequest;
  77. use UCloud\UEC\Apis\LoginUEcDockerResponse;
  78. use UCloud\UEC\Apis\ModifyUEcBandwidthRequest;
  79. use UCloud\UEC\Apis\ModifyUEcBandwidthResponse;
  80. use UCloud\UEC\Apis\ModifyUEcHolderNameRequest;
  81. use UCloud\UEC\Apis\ModifyUEcHolderNameResponse;
  82. use UCloud\UEC\Apis\ModifyUEcImageNameRequest;
  83. use UCloud\UEC\Apis\ModifyUEcImageNameResponse;
  84. use UCloud\UEC\Apis\PoweroffUEcVHostRequest;
  85. use UCloud\UEC\Apis\PoweroffUEcVHostResponse;
  86. use UCloud\UEC\Apis\ReinstallUEcVHostRequest;
  87. use UCloud\UEC\Apis\ReinstallUEcVHostResponse;
  88. use UCloud\UEC\Apis\RestartUEcHolderRequest;
  89. use UCloud\UEC\Apis\RestartUEcHolderResponse;
  90. use UCloud\UEC\Apis\RestartUEcVHostRequest;
  91. use UCloud\UEC\Apis\RestartUEcVHostResponse;
  92. use UCloud\UEC\Apis\StartUEcVHostRequest;
  93. use UCloud\UEC\Apis\StartUEcVHostResponse;
  94. use UCloud\UEC\Apis\StopUEcVHostRequest;
  95. use UCloud\UEC\Apis\StopUEcVHostResponse;
  96. use UCloud\UEC\Apis\UnBindUEcFirewallRequest;
  97. use UCloud\UEC\Apis\UnBindUEcFirewallResponse;
  98. use UCloud\UEC\Apis\UpdateUEcFirewallRequest;
  99. use UCloud\UEC\Apis\UpdateUEcFirewallResponse;
  100. use UCloud\UEC\Apis\UpdateUEcFirewallAttributeRequest;
  101. use UCloud\UEC\Apis\UpdateUEcFirewallAttributeResponse;
  102. use UCloud\UEC\Apis\UpdateUEcSubnetRequest;
  103. use UCloud\UEC\Apis\UpdateUEcSubnetResponse;
  104. /**
  105. * This client is used to call actions of **UEC** service
  106. */
  107. class UECClient extends Client
  108. {
  109. /**
  110. * BindUEcFirewall - 绑定防火墙,应用防火墙规则
  111. *
  112. * See also: https://docs.ucloud.cn/api/uec-api/bind_u_ec_firewall
  113. *
  114. * Arguments:
  115. *
  116. * $args = [
  117. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  118. * "FirewallId" => (string) 防火墙Id
  119. * "ResourceId" => (string) 虚拟机资源Id或容器组资源id
  120. * ]
  121. *
  122. * Outputs:
  123. *
  124. * $outputs = [
  125. * ]
  126. *
  127. * @return BindUEcFirewallResponse
  128. * @throws UCloudException
  129. */
  130. public function bindUEcFirewall(BindUEcFirewallRequest $request = null)
  131. {
  132. $resp = $this->invoke($request);
  133. return new BindUEcFirewallResponse($resp->toArray(), $resp->getRequestId());
  134. }
  135. /**
  136. * CreateUEcCustomImage - 从指定虚拟机,生成自定义镜像。
  137. *
  138. * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_custom_image
  139. *
  140. * Arguments:
  141. *
  142. * $args = [
  143. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  144. * "NodeId" => (string) 虚拟机实例ID
  145. * "ImageName" => (string) 镜像名称
  146. * "ImageDescription" => (string) 镜像描述
  147. * ]
  148. *
  149. * Outputs:
  150. *
  151. * $outputs = [
  152. * "ImageId" => (string) 镜像ID
  153. * ]
  154. *
  155. * @return CreateUEcCustomImageResponse
  156. * @throws UCloudException
  157. */
  158. public function createUEcCustomImage(CreateUEcCustomImageRequest $request = null)
  159. {
  160. $resp = $this->invoke($request);
  161. return new CreateUEcCustomImageResponse($resp->toArray(), $resp->getRequestId());
  162. }
  163. /**
  164. * CreateUEcFirewall - 创建外网防火墙
  165. *
  166. * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_firewall
  167. *
  168. * Arguments:
  169. *
  170. * $args = [
  171. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  172. * "Name" => (string) 防火墙名称
  173. * "Rule" => (array<object>) [
  174. * [
  175. * "ProtocolType" => (string) 协议,可选值:TCP,UDP,ICMP
  176. * "Port" => (string) 端口,范围用"-"符号分隔,如:1-65535
  177. * "SrcIp" => (string) 源ip
  178. * "Action" => (string) ACCEPT(接受)和DROP(拒绝)
  179. * "Priority" => (string) 优先级:HIGH(高),MEDIUM(中),LOW(低)
  180. * "Remark" => (string) 备注
  181. * ]
  182. * ]
  183. * "Remark" => (string) 描述
  184. * ]
  185. *
  186. * Outputs:
  187. *
  188. * $outputs = [
  189. * "FirewallId" => (string) 防火墙Id
  190. * ]
  191. *
  192. * @return CreateUEcFirewallResponse
  193. * @throws UCloudException
  194. */
  195. public function createUEcFirewall(CreateUEcFirewallRequest $request = null)
  196. {
  197. $resp = $this->invoke($request);
  198. return new CreateUEcFirewallResponse($resp->toArray(), $resp->getRequestId());
  199. }
  200. /**
  201. * CreateUEcHolder - 创建容器组
  202. *
  203. * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_holder
  204. *
  205. * Arguments:
  206. *
  207. * $args = [
  208. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  209. * "IdcId" => (string) 机房id
  210. * "CpuCore" => (number) 容器组Cpu总核数
  211. * "MemSize" => (integer) 容器组总内存,单位MB
  212. * "SubnetId" => (string) 子网ID
  213. * "Name" => (string) 容器组名称(默认default)
  214. * "ProductType" => (string) 机型(normal-经济型,hf-标准型,默认normal)
  215. * "RestartStrategy" => (integer) 重启策略(0总是,1失败是,2永不,默认0)
  216. * "ElasticIp" => (string) 绑定外网ip(yes-绑定,no-不绑定,默认no)
  217. * "Bandwidth" => (integer) 外网绑定的带宽(单位M,默认0,只有当ElasticIp为yes时,默认1)
  218. * "FirewallId" => (string) 防火墙ID
  219. * "ChargeType" => (integer) 付费方式(2按月、3按年。默认2,默认月付)
  220. * "ChargeQuantity" => (integer) 月数或者年数(默认值:1,当为按月计费时,0表示计费到月底,默认值为0)
  221. * "Pack" => (array<object>) [
  222. * [
  223. * "Name" => (string) 容器名称
  224. * "CpuCore" => (number) 容器Cpu核数
  225. * "MemSize" => (integer) 容器内存,单位MB
  226. * "ImageName" => (string) 容器镜像名称
  227. * "WorkDir" => (string) 容器工作目录
  228. * "Cmd" => (string) 开启容器的命令
  229. * "Args" => (string) 容器参数(多个用;隔开)
  230. * "Environment" => (string) 容器环境变量(多个用;隔开,如:key1:value1;key2:value2)
  231. * "ConfigDict" => (string) 容器配置字典(多个用;隔开,如:/data1:resId1;/data2:resId2)
  232. * ]
  233. * ]
  234. * "Image" => (array<object>) [
  235. * [
  236. * "Message" => (string) 镜像用户名和密码(如镜像名:密码)
  237. * "StoreAddress" => (string) 镜像仓库地址
  238. * ]
  239. * ]
  240. * "Storage" => (array<object>) [
  241. * [
  242. * "Path" => (string) 存储卷挂载路径
  243. * "ResourceId" => (string) 存储卷资源id
  244. * ]
  245. * ]
  246. * ]
  247. *
  248. * Outputs:
  249. *
  250. * $outputs = [
  251. * "ResourceId" => (string) 容器组资源id
  252. * ]
  253. *
  254. * @return CreateUEcHolderResponse
  255. * @throws UCloudException
  256. */
  257. public function createUEcHolder(CreateUEcHolderRequest $request = null)
  258. {
  259. $resp = $this->invoke($request);
  260. return new CreateUEcHolderResponse($resp->toArray(), $resp->getRequestId());
  261. }
  262. /**
  263. * CreateUEcSubnet - 创建子网
  264. *
  265. * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_subnet
  266. *
  267. * Arguments:
  268. *
  269. * $args = [
  270. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  271. * "IdcId" => (string) 机房ID
  272. * "CIDR" => (string) 子网cidr
  273. * "SubnetName" => (string) 子网名称
  274. * "Comment" => (string) 备注
  275. * ]
  276. *
  277. * Outputs:
  278. *
  279. * $outputs = [
  280. * "SubnetId" => (string) 子网ID
  281. * ]
  282. *
  283. * @return CreateUEcSubnetResponse
  284. * @throws UCloudException
  285. */
  286. public function createUEcSubnet(CreateUEcSubnetRequest $request = null)
  287. {
  288. $resp = $this->invoke($request);
  289. return new CreateUEcSubnetResponse($resp->toArray(), $resp->getRequestId());
  290. }
  291. /**
  292. * CreateUEcVHost - 创建虚拟机v2.0
  293. *
  294. * See also: https://docs.ucloud.cn/api/uec-api/create_u_ec_v_host
  295. *
  296. * Arguments:
  297. *
  298. * $args = [
  299. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  300. * "IdcId" => (string) 机房id
  301. * "CpuCore" => (integer) cpu核心数
  302. * "MemSize" => (integer) 内存大小,单位GB
  303. * "DiskSize" => (integer) 数据盘大小,单位GB
  304. * "ImageId" => (string) 镜像ID
  305. * "NetLimit" => (integer) 节点带宽限制,单位Mbs
  306. * "NodeName" => (string) 节点名称
  307. * "SysDiskSize" => (integer) 系统盘大小,单位GB, 默认20GB
  308. * "AccountName" => (string) 账户名,默认root
  309. * "PassWord" => (string) 密码
  310. * "NodeCount" => (integer) 创建节点数量,默认1
  311. * "ChargeType" => (integer) 付费方式,1按时,2按月,3按年,默认2
  312. * "ChargeQuantity" => (integer) 月数或者年数,0计费到月底, 默认0
  313. * "SubnetId" => (string) 子网ID
  314. * "ProductType" => (string) 产品类型:normal(经济型),hf(标准型),g(Gpu型)
  315. * "FirewallId" => (string) 外网防护墙规则组,默认
  316. * "Isp" => (array<integer>) 运营商(1-电信,2-联通,4移动)
  317. * "IsNeedOuterIp" => (string) 是否需要外网ip(no-否)
  318. * "Gpu" => (integer) Gpu卡核心数。仅Gpu机型支持此字段
  319. * "GpuType" => (string) Gpu类型,枚举值["T4S"],ProductType为G时必填
  320. * ]
  321. *
  322. * Outputs:
  323. *
  324. * $outputs = [
  325. * "NodeList" => (array<object>) 节点id(详情参考NodeList)[
  326. * [
  327. * "NodeId" => (string) 虚拟机资源id
  328. * ]
  329. * ]
  330. * ]
  331. *
  332. * @return CreateUEcVHostResponse
  333. * @throws UCloudException
  334. */
  335. public function createUEcVHost(CreateUEcVHostRequest $request = null)
  336. {
  337. $resp = $this->invoke($request);
  338. return new CreateUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  339. }
  340. /**
  341. * DeleteUEcCustomImage - 删除UEDN客户自定义镜像
  342. *
  343. * See also: https://docs.ucloud.cn/api/uec-api/delete_u_ec_custom_image
  344. *
  345. * Arguments:
  346. *
  347. * $args = [
  348. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  349. * "ImageId" => (string) 镜像ID
  350. * "IdcId" => (string) 机房ID,带机房ID表示只删除指定机房镜像
  351. * ]
  352. *
  353. * Outputs:
  354. *
  355. * $outputs = [
  356. * "ImageId" => (integer) 镜像ID
  357. * ]
  358. *
  359. * @return DeleteUEcCustomImageResponse
  360. * @throws UCloudException
  361. */
  362. public function deleteUEcCustomImage(DeleteUEcCustomImageRequest $request = null)
  363. {
  364. $resp = $this->invoke($request);
  365. return new DeleteUEcCustomImageResponse($resp->toArray(), $resp->getRequestId());
  366. }
  367. /**
  368. * DeleteUEcHolder - 删除容器组
  369. *
  370. * See also: https://docs.ucloud.cn/api/uec-api/delete_u_ec_holder
  371. *
  372. * Arguments:
  373. *
  374. * $args = [
  375. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  376. * "HolderId" => (array<string>) 容器组资源id,n为0,1,2...
  377. * ]
  378. *
  379. * Outputs:
  380. *
  381. * $outputs = [
  382. * ]
  383. *
  384. * @return DeleteUEcHolderResponse
  385. * @throws UCloudException
  386. */
  387. public function deleteUEcHolder(DeleteUEcHolderRequest $request = null)
  388. {
  389. $resp = $this->invoke($request);
  390. return new DeleteUEcHolderResponse($resp->toArray(), $resp->getRequestId());
  391. }
  392. /**
  393. * DeleteUEcSubnet - 删除子网
  394. *
  395. * See also: https://docs.ucloud.cn/api/uec-api/delete_u_ec_subnet
  396. *
  397. * Arguments:
  398. *
  399. * $args = [
  400. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  401. * "SubnetId" => (string) 子网ID
  402. * ]
  403. *
  404. * Outputs:
  405. *
  406. * $outputs = [
  407. * ]
  408. *
  409. * @return DeleteUEcSubnetResponse
  410. * @throws UCloudException
  411. */
  412. public function deleteUEcSubnet(DeleteUEcSubnetRequest $request = null)
  413. {
  414. $resp = $this->invoke($request);
  415. return new DeleteUEcSubnetResponse($resp->toArray(), $resp->getRequestId());
  416. }
  417. /**
  418. * DeleteUEcVHost - 删除vhost虚拟机 v2.0
  419. *
  420. * See also: https://docs.ucloud.cn/api/uec-api/delete_u_ec_v_host
  421. *
  422. * Arguments:
  423. *
  424. * $args = [
  425. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  426. * "NodeId" => (array<string>) 节点id
  427. * ]
  428. *
  429. * Outputs:
  430. *
  431. * $outputs = [
  432. * ]
  433. *
  434. * @return DeleteUEcVHostResponse
  435. * @throws UCloudException
  436. */
  437. public function deleteUEcVHost(DeleteUEcVHostRequest $request = null)
  438. {
  439. $resp = $this->invoke($request);
  440. return new DeleteUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  441. }
  442. /**
  443. * DescribeUEcFirewall - 获取防火墙信息
  444. *
  445. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_firewall
  446. *
  447. * Arguments:
  448. *
  449. * $args = [
  450. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  451. * "FirewallId" => (string) 防火墙ID,默认为返回所有防火墙
  452. * "ResourceId" => (string) 绑定防火墙组的虚拟机资源ID
  453. * "Limit" => (integer) 返回数据长度,默认为20
  454. * "Offset" => (integer) 列表起始位置偏移量,默认为0
  455. * ]
  456. *
  457. * Outputs:
  458. *
  459. * $outputs = [
  460. * "FirewallSet" => (array<object>) 防火墙组详细信息,参见 FirewallInfo[
  461. * [
  462. * "FirewallId" => (string) 防火墙Id
  463. * "Name" => (string) 防火墙名称
  464. * "CreateTime" => (integer) 创建时间
  465. * "Rule" => (array<object>) 防火墙规则组,详情参见RuleInfo[
  466. * [
  467. * "ProtocolType" => (string) 协议,可选值:TCP,UDP,ICMP
  468. * "Port" => (string) 端口,范围用"-"符号分隔,如:1-65535
  469. * "SrcIp" => (string) 源ip
  470. * "Action" => (string) ACCEPT(接受)和DROP(拒绝)
  471. * "Priority" => (string) 优先级:HIGH(高),MEDIUM(中),LOW(低)
  472. * "Remark" => (string) 备注
  473. * ]
  474. * ]
  475. * "ResourceCount" => (integer) 防火墙绑定资源数量
  476. * "Type" => (string) 防火墙组类型,枚举值为: "user defined", 用户自定义防火墙; "recommend web", 默认Web防火墙; "recommend non web", 默认非Web防火墙
  477. * "Remark" => (string) 描述
  478. * ]
  479. * ]
  480. * "TotalCount" => (integer) 满足条件的节点总数
  481. * ]
  482. *
  483. * @return DescribeUEcFirewallResponse
  484. * @throws UCloudException
  485. */
  486. public function describeUEcFirewall(DescribeUEcFirewallRequest $request = null)
  487. {
  488. $resp = $this->invoke($request);
  489. return new DescribeUEcFirewallResponse($resp->toArray(), $resp->getRequestId());
  490. }
  491. /**
  492. * DescribeUEcFirewallResource - 防火墙绑定的资源列表
  493. *
  494. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_firewall_resource
  495. *
  496. * Arguments:
  497. *
  498. * $args = [
  499. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  500. * "FirewallId" => (string) 防火墙Id
  501. * ]
  502. *
  503. * Outputs:
  504. *
  505. * $outputs = [
  506. * "ResourceSet" => (array<object>) 资源列表,详情参见ResourceInfo[
  507. * [
  508. * "ResourceId" => (string) 资源Id
  509. * "PublicIpList" => (array<string>) 节点公网Ip列表
  510. * "Name" => (string) 节点名称
  511. * "State" => (integer) 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常
  512. * "Remark" => (string) 节点备注
  513. * ]
  514. * ]
  515. * "TotalCount" => (integer) 资源总数
  516. * ]
  517. *
  518. * @return DescribeUEcFirewallResourceResponse
  519. * @throws UCloudException
  520. */
  521. public function describeUEcFirewallResource(DescribeUEcFirewallResourceRequest $request = null)
  522. {
  523. $resp = $this->invoke($request);
  524. return new DescribeUEcFirewallResourceResponse($resp->toArray(), $resp->getRequestId());
  525. }
  526. /**
  527. * DescribeUEcHolder - 获得容器组信息
  528. *
  529. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_holder
  530. *
  531. * Arguments:
  532. *
  533. * $args = [
  534. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  535. * "HolderId" => (array<string>) 容器组资源id
  536. * "Limit" => (integer) 返回数据长度,默认为20,非负整数
  537. * "Offset" => (integer) 列表起始位置偏移量,默认为0。非负整数
  538. * ]
  539. *
  540. * Outputs:
  541. *
  542. * $outputs = [
  543. * "HolderList" => (array<object>) 容器组列表(详情参考HolderList)[
  544. * [
  545. * "ResourceId" => (string) 容器组资源id
  546. * "HolderName" => (string) 容器组名称
  547. * "SubnetId" => (string) 容器组子网id
  548. * "InnerIp" => (string) 容器组内网ip
  549. * "IpList" => (array<object>) 容器组外网ip集合(详情参考IpList)[
  550. * [
  551. * "Ip" => (string) 外网ip
  552. * "Isp" => (string) 运营商
  553. * ]
  554. * ]
  555. * "State" => (integer) 容器组运行状态0:初始化;1:拉取镜像;2:启动中;3:运行中;4:错误;5:正在重启;6:正在删除;7:已经删除;8:容器运行错误;9:启动失败;99:异常
  556. * "CreateTime" => (integer) 创建时间
  557. * "ExpireTime" => (integer) 过期时间
  558. * "Type" => (integer) 线路类型(运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通)
  559. * "IdcId" => (string) 机房id
  560. * "OcName" => (string) 机房名称
  561. * "Province" => (string) 省份名称
  562. * "City" => (string) 城市名称
  563. * "RestartStrategy" => (integer) 0:总是;1:失败是;2:永不
  564. * "DockerCount" => (integer) 容器数量
  565. * "DockerInfo" => (array<object>) 容器信息(详情参考DockerInfo)[
  566. * [
  567. * "CpuCores" => (number) CPU核数(/核)精度0.1核
  568. * "MemSize" => (number) 内存大小(Gi)
  569. * "Name" => (string) 容器名称
  570. * "State" => (integer) 容器状态,0:初始化;1:拉取镜像;2:拉取镜像失败;3:启动中;4:运行中;5:正在停止;6:已停止;7:已删除;8:镜像拉取成功;9:启动失败;99:异常
  571. * "ImageName" => (string) 镜像名称
  572. * "WorkDir" => (string) 工作目录
  573. * "Command" => (string) 命令
  574. * "Args" => (string) 参数
  575. * "EnvList" => (array<object>) 环境变量(详情参考EnvList)[
  576. * [
  577. * "Key" => (string) 环境变量key值
  578. * "Value" => (string) 环境变量Value值
  579. * ]
  580. * ]
  581. * "CfgDictList" => (array<object>) 容器配置字典(详情参考CfgDictList)[
  582. * [
  583. * "Name" => (string) 名称
  584. * "MountPath" => (string) 挂载路径
  585. * "ResourceId" => (string) 资源id
  586. * ]
  587. * ]
  588. * ]
  589. * ]
  590. * "ProductType" => (string) 机器类型(normal经济型,hf标准型)
  591. * "NetLimit" => (integer) 外网绑定的带宽
  592. * "FirewallId" => (string) 外网防火墙id
  593. * "StorVolumeInfo" => (array<object>) 存储卷信息(详情参考StorVolumeInfo)[
  594. * [
  595. * "Name" => (string) 名称
  596. * "ResourceId" => (string) 资源id
  597. * "MountPoint" => (string) 挂载点
  598. * "DiskSize" => (integer) 容量(单位GB)
  599. * ]
  600. * ]
  601. * "StorVolumeCount" => (integer) 存储卷数量
  602. * "ImageList" => (array<object>) 容器组镜像密钥列表(详情参考ImageList)[
  603. * [
  604. * "StoreAddr" => (string) 仓库地址
  605. * "UserName" => (string) 用户名称
  606. * "ImageKey" => (string) 镜像密钥
  607. * ]
  608. * ]
  609. * ]
  610. * ]
  611. * "TotalCount" => (integer) 满足条件的容器组总数
  612. * ]
  613. *
  614. * @return DescribeUEcHolderResponse
  615. * @throws UCloudException
  616. */
  617. public function describeUEcHolder(DescribeUEcHolderRequest $request = null)
  618. {
  619. $resp = $this->invoke($request);
  620. return new DescribeUEcHolderResponse($resp->toArray(), $resp->getRequestId());
  621. }
  622. /**
  623. * DescribeUEcHolderIDC - 获取容器组机房信息
  624. *
  625. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_holder_idc
  626. *
  627. * Arguments:
  628. *
  629. * $args = [
  630. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  631. * "Cpu" => (number) 容器组Cpu核数
  632. * "Memory" => (integer) 容器组内存大小(单位MB)
  633. * "IdcId" => (array<string>) Idc机房id。默认全部机房
  634. * "Type" => (integer) 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通
  635. * "ProductType" => (string) 产品类型,normal标准型,hf高性能型
  636. * ]
  637. *
  638. * Outputs:
  639. *
  640. * $outputs = [
  641. * "IdcList" => (array<object>) 机房列表,具体参考下面IdcInfo[
  642. * [
  643. * "IdcId" => (string) 机房ID
  644. * "Name" => (string) 机房名称
  645. * "Isp" => (string) 运营商
  646. * "Province" => (string) 省份
  647. * "City" => (string) 城市
  648. * "Type" => (integer) 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通
  649. * "MaxNodeCnt" => (integer) 机房可创建节点最大数量
  650. * ]
  651. * ]
  652. * ]
  653. *
  654. * @return DescribeUEcHolderIDCResponse
  655. * @throws UCloudException
  656. */
  657. public function describeUEcHolderIDC(DescribeUEcHolderIDCRequest $request = null)
  658. {
  659. $resp = $this->invoke($request);
  660. return new DescribeUEcHolderIDCResponse($resp->toArray(), $resp->getRequestId());
  661. }
  662. /**
  663. * DescribeUEcIDC - 获取IDC机房列表
  664. *
  665. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_idc
  666. *
  667. * Arguments:
  668. *
  669. * $args = [
  670. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  671. * "Cpu" => (integer) 节点cpu核数
  672. * "Memory" => (integer) 节点内存大小, 单位GB
  673. * "IdcId" => (array<string>) Idc机房id。默认全部机房
  674. * "Type" => (integer) 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通
  675. * "ProductType" => (string) 产品类型:normal(经济型),hf(标准型),g(GPU型)
  676. * "Gpu" => (integer) Gpu卡核心数
  677. * ]
  678. *
  679. * Outputs:
  680. *
  681. * $outputs = [
  682. * "IdcList" => (array<object>) 获取的机房信息,具体参考下面IdcInfo[
  683. * [
  684. * "IdcId" => (string) 机房ID
  685. * "Name" => (string) 机房名称
  686. * "Isp" => (string) 运营商
  687. * "Province" => (string) 省份
  688. * "City" => (string) 城市
  689. * "Type" => (integer) 运营商类型:0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通
  690. * "MaxNodeCnt" => (integer) 机房可创建节点最大数量
  691. * ]
  692. * ]
  693. * ]
  694. *
  695. * @return DescribeUEcIDCResponse
  696. * @throws UCloudException
  697. */
  698. public function describeUEcIDC(DescribeUEcIDCRequest $request = null)
  699. {
  700. $resp = $this->invoke($request);
  701. return new DescribeUEcIDCResponse($resp->toArray(), $resp->getRequestId());
  702. }
  703. /**
  704. * DescribeUEcSubnet - 获取子网列表
  705. *
  706. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_subnet
  707. *
  708. * Arguments:
  709. *
  710. * $args = [
  711. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  712. * "IdcId" => (string) 机房ID
  713. * "SubnetId" => (string) 子网ID
  714. * ]
  715. *
  716. * Outputs:
  717. *
  718. * $outputs = [
  719. * "SubnetList" => (array<object>) 子网信息列表[
  720. * [
  721. * "SubnetId" => (string) 子网ID
  722. * "SubnetName" => (string) 子网名称
  723. * "IdcId" => (string) 机房ID
  724. * "CIDR" => (string) 子网cidr
  725. * "CreateTime" => (integer) 创建时间
  726. * "Comment" => (string) 备注
  727. * "TotalIpCnt" => (integer) 总ip数
  728. * "AvailableIPCnt" => (integer) 可用ip数
  729. * ]
  730. * ]
  731. * ]
  732. *
  733. * @return DescribeUEcSubnetResponse
  734. * @throws UCloudException
  735. */
  736. public function describeUEcSubnet(DescribeUEcSubnetRequest $request = null)
  737. {
  738. $resp = $this->invoke($request);
  739. return new DescribeUEcSubnetResponse($resp->toArray(), $resp->getRequestId());
  740. }
  741. /**
  742. * DescribeUEcVHost - 获取虚拟机列表 2.0
  743. *
  744. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_v_host
  745. *
  746. * Arguments:
  747. *
  748. * $args = [
  749. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  750. * "IdcId" => (array<string>) Idc机房id。默认全部机房
  751. * "NodeId" => (array<string>) 节点id,创建节点时生成的id。默认全部节点
  752. * "Offset" => (integer) 数据偏移量,默认0,非负整数
  753. * "Limit" => (integer) 返回数据长度, 默认20,非负整数
  754. * ]
  755. *
  756. * Outputs:
  757. *
  758. * $outputs = [
  759. * "TotalCount" => (integer) 满足条件的节点总数
  760. * "NodeList" => (array<object>) 节点列表[
  761. * [
  762. * "NodeName" => (string) 节点名称
  763. * "NodeId" => (string) 节点ID
  764. * "CoreNum" => (integer) Cpu核数
  765. * "MemSize" => (integer) 节点内存大小,单位GB
  766. * "SysDiskSize" => (integer) 系统盘大小, 单位GB
  767. * "DiskSize" => (integer) 数据盘大小, 单位GB
  768. * "State" => (integer) 节点状态,1部署中,2待启动,3启动中,4运行中,5正在停止,6已停止,7正在更新,8正在重启,9正在删除, 10已经删除,11异常
  769. * "NetLimit" => (integer) 节点带宽限制, 单位Mbs
  770. * "IdcId" => (string) 机房ID
  771. * "OcName" => (string) 机房名称
  772. * "Province" => (string) 省份
  773. * "City" => (string) 城市
  774. * "Type" => (integer) 运营商类型: 0-其它, 1-一线城市单线,2-二线城市单线, 3-全国教育网, 4-全国三通
  775. * "ChargeType" => (integer) 付费类型:1按时, 2按月,3按年
  776. * "CreateTime" => (integer) 创建时间
  777. * "ExpiredTime" => (integer) 过期时间
  778. * "ImageName" => (string) 镜像名称
  779. * "NodeIpList" => (array<object>) 外网ip集合(详情参考NodeIpList)[
  780. * [
  781. * "Ip" => (string) 外网ip
  782. * "Isp" => (string) 运营商
  783. * "IspName" => (string) 运营商名称
  784. * ]
  785. * ]
  786. * "FirewallId" => (string) 防火墙Id
  787. * "ProductType" => (string) 机器类型(normal-经济型,hf-标准型,g-GPU型)
  788. * "InnerIps" => (array<string>) 内网ip列表
  789. * ]
  790. * ]
  791. * ]
  792. *
  793. * @return DescribeUEcVHostResponse
  794. * @throws UCloudException
  795. */
  796. public function describeUEcVHost(DescribeUEcVHostRequest $request = null)
  797. {
  798. $resp = $this->invoke($request);
  799. return new DescribeUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  800. }
  801. /**
  802. * DescribeUEcVHostISP - 获取虚拟机运营商信息
  803. *
  804. * See also: https://docs.ucloud.cn/api/uec-api/describe_u_ec_v_host_isp
  805. *
  806. * Arguments:
  807. *
  808. * $args = [
  809. * "IspName" => (string) 运营商名称
  810. * "Province" => (string) 省份
  811. * "City" => (string) 城市
  812. * ]
  813. *
  814. * Outputs:
  815. *
  816. * $outputs = [
  817. * "NodeIspList" => (array<object>) 节点运营商列表[
  818. * [
  819. * "Province" => (string) 省份
  820. * "City" => (string) 城市
  821. * "LineType" => (string) 线路类型
  822. * "IspName" => (string) 机房运营商名称
  823. * "IdcName" => (string) 机房名称
  824. * ]
  825. * ]
  826. * ]
  827. *
  828. * @return DescribeUEcVHostISPResponse
  829. * @throws UCloudException
  830. */
  831. public function describeUEcVHostISP(DescribeUEcVHostISPRequest $request = null)
  832. {
  833. $resp = $this->invoke($request);
  834. return new DescribeUEcVHostISPResponse($resp->toArray(), $resp->getRequestId());
  835. }
  836. /**
  837. * GetUEcHolderLog - 获取单个容器日志
  838. *
  839. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_holder_log
  840. *
  841. * Arguments:
  842. *
  843. * $args = [
  844. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  845. * "PackName" => (string) 容器名称
  846. * "ResourceId" => (string) 容器组资源id
  847. * ]
  848. *
  849. * Outputs:
  850. *
  851. * $outputs = [
  852. * "Data" => (string) 返回的日志数据
  853. * ]
  854. *
  855. * @return GetUEcHolderLogResponse
  856. * @throws UCloudException
  857. */
  858. public function getUEcHolderLog(GetUEcHolderLogRequest $request = null)
  859. {
  860. $resp = $this->invoke($request);
  861. return new GetUEcHolderLogResponse($resp->toArray(), $resp->getRequestId());
  862. }
  863. /**
  864. * GetUEcHolderMetrics - 获取容器(CPU利用率,带宽,内存)数据
  865. *
  866. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_holder_metrics
  867. *
  868. * Arguments:
  869. *
  870. * $args = [
  871. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  872. * "PackName" => (string) 容器名称
  873. * "Type" => (array<string>) n为0 CPU利用率, 1内存使用率, 2网卡出带宽, 3网卡入带宽, 4网卡出包数, 5网卡入包数
  874. * "ResourceId" => (string) 容器组资源id
  875. * "StartTime" => (integer) 开始时间
  876. * "EndTime" => (integer) 结束时间
  877. * ]
  878. *
  879. * Outputs:
  880. *
  881. * $outputs = [
  882. * "DataSets" => (object) 获得的监控数据(详情参考MetricisDataSet)[
  883. * "CPUUtilization" => (array<object>) cpu利用率(详情参考MonitorInfo)[
  884. * [
  885. * "TimeStamp" => (integer) 时间戳
  886. * "Value" => (integer) 值
  887. * ]
  888. * ]
  889. * "MemUtilization" => (array<object>) 内存使用率(详情参考MonitorInfo)[
  890. * [
  891. * "TimeStamp" => (integer) 时间戳
  892. * "Value" => (integer) 值
  893. * ]
  894. * ]
  895. * "NetPacketOut" => (array<object>) 网卡出包数(详情参考MonitorInfo)[
  896. * [
  897. * "TimeStamp" => (integer) 时间戳
  898. * "Value" => (integer) 值
  899. * ]
  900. * ]
  901. * "NetPacketIn" => (array<object>) 网卡入包数(详情参考MonitorInfo)[
  902. * [
  903. * "TimeStamp" => (integer) 时间戳
  904. * "Value" => (integer) 值
  905. * ]
  906. * ]
  907. * "NICOut" => (array<object>) 网卡出带宽(详情参考MonitorInfo)[
  908. * [
  909. * "TimeStamp" => (integer) 时间戳
  910. * "Value" => (integer) 值
  911. * ]
  912. * ]
  913. * "NICIn" => (array<object>) 网卡入带宽(详情参考MonitorInfo)[
  914. * [
  915. * "TimeStamp" => (integer) 时间戳
  916. * "Value" => (integer) 值
  917. * ]
  918. * ]
  919. * ]
  920. * ]
  921. *
  922. * @return GetUEcHolderMetricsResponse
  923. * @throws UCloudException
  924. */
  925. public function getUEcHolderMetrics(GetUEcHolderMetricsRequest $request = null)
  926. {
  927. $resp = $this->invoke($request);
  928. return new GetUEcHolderMetricsResponse($resp->toArray(), $resp->getRequestId());
  929. }
  930. /**
  931. * GetUEcIDCCutInfo - 获取机房割接信息
  932. *
  933. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_idc_cut_info
  934. *
  935. * Arguments:
  936. *
  937. * $args = [
  938. * ]
  939. *
  940. * Outputs:
  941. *
  942. * $outputs = [
  943. * "IDCCutInfo" => (array<object>) 机房割接信息[
  944. * [
  945. * "IDCName" => (string) 机房名称
  946. * "Province" => (string) 省份
  947. * "City" => (string) 城市
  948. * "StartTime" => (integer) 割接开始时间
  949. * "EndTime" => (integer) 割接结束时间
  950. * "CutType" => (string) 割接类型(中断、抖动、断电)
  951. * "ResourceSet" => (array<object>) 受影响的资源信息列表[
  952. * [
  953. * "NodeId" => (string) 节点id
  954. * "OuterIps" => (array<string>) 机器外网ip集合
  955. * ]
  956. * ]
  957. * ]
  958. * ]
  959. * "TotalCount" => (integer) 满足条件的机房总数
  960. * ]
  961. *
  962. * @return GetUEcIDCCutInfoResponse
  963. * @throws UCloudException
  964. */
  965. public function getUEcIDCCutInfo(GetUEcIDCCutInfoRequest $request = null)
  966. {
  967. $resp = $this->invoke($request);
  968. return new GetUEcIDCCutInfoResponse($resp->toArray(), $resp->getRequestId());
  969. }
  970. /**
  971. * GetUEcIDCVHostData - 获取机房虚拟机监控数据
  972. *
  973. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_idcv_host_data
  974. *
  975. * Arguments:
  976. *
  977. * $args = [
  978. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  979. * "NodeId" => (array<string>) 节点资源id;n为0,1,2...
  980. * "Type" => (array<string>) 监控数据类型;n为0,1,2,3,4...,9
  981. * "BeginTime" => (integer) 开始时间戳
  982. * "EndTime" => (integer) 结束时间戳
  983. * ]
  984. *
  985. * Outputs:
  986. *
  987. * $outputs = [
  988. * "DataSets" => (object) 监控数据集合[
  989. * "CPUUtilization" => (array<object>) cpu使用率[
  990. * [
  991. * "TimeStamp" => (integer) 时间戳
  992. * "Value" => (integer) 值
  993. * ]
  994. * ]
  995. * "MemUtilization" => (array<object>) 内存使用率[
  996. * [
  997. * "TimeStamp" => (integer) 时间戳
  998. * "Value" => (integer) 值
  999. * ]
  1000. * ]
  1001. * "NICOut" => (array<object>) 网卡出带宽[
  1002. * [
  1003. * "TimeStamp" => (integer) 时间戳
  1004. * "Value" => (integer) 值
  1005. * ]
  1006. * ]
  1007. * "NICIn" => (array<object>) 网卡入带宽[
  1008. * [
  1009. * "TimeStamp" => (integer) 时间戳
  1010. * "Value" => (integer) 值
  1011. * ]
  1012. * ]
  1013. * "NetPacketOut" => (array<object>) 网卡出包量[
  1014. * [
  1015. * "TimeStamp" => (integer) 时间戳
  1016. * "Value" => (integer) 值
  1017. * ]
  1018. * ]
  1019. * "NetPacketIn" => (array<object>) 网卡入包量[
  1020. * [
  1021. * "TimeStamp" => (integer) 时间戳
  1022. * "Value" => (integer) 值
  1023. * ]
  1024. * ]
  1025. * "IORead" => (array<object>) 磁盘读取量[
  1026. * [
  1027. * "TimeStamp" => (integer) 时间戳
  1028. * "Value" => (integer) 值
  1029. * ]
  1030. * ]
  1031. * "IOWrite" => (array<object>) 磁盘写入量[
  1032. * [
  1033. * "TimeStamp" => (integer) 时间戳
  1034. * "Value" => (integer) 值
  1035. * ]
  1036. * ]
  1037. * "DiskReadOps" => (array<object>) 磁盘读取次数[
  1038. * [
  1039. * "TimeStamp" => (integer) 时间戳
  1040. * "Value" => (integer) 值
  1041. * ]
  1042. * ]
  1043. * "DiskWriteOps" => (array<object>) 磁盘写入次数[
  1044. * [
  1045. * "TimeStamp" => (integer) 时间戳
  1046. * "Value" => (integer) 值
  1047. * ]
  1048. * ]
  1049. * ]
  1050. * ]
  1051. *
  1052. * @return GetUEcIDCVHostDataResponse
  1053. * @throws UCloudException
  1054. */
  1055. public function getUEcIDCVHostData(GetUEcIDCVHostDataRequest $request = null)
  1056. {
  1057. $resp = $this->invoke($request);
  1058. return new GetUEcIDCVHostDataResponse($resp->toArray(), $resp->getRequestId());
  1059. }
  1060. /**
  1061. * GetUEcImage - uec2.0
  1062. *
  1063. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_image
  1064. *
  1065. * Arguments:
  1066. *
  1067. * $args = [
  1068. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1069. * "ImageType" => (string) 镜像类型:1标准镜像,2行业镜像,3自定义镜像
  1070. * "Offset" => (integer) 数据偏移量,默认0,非负整数
  1071. * "Limit" => (integer) 返回数据长度, 默认20,非负整数
  1072. * ]
  1073. *
  1074. * Outputs:
  1075. *
  1076. * $outputs = [
  1077. * "ImageList" => (array<object>) 获取的镜像信息,具体参考下面ImageInfo[
  1078. * [
  1079. * "ImageId" => (string) 镜像ID
  1080. * "ImageName" => (string) 镜像名称
  1081. * "ImageType" => (integer) 镜像类型:1标准镜像,2行业镜像,3自定义镜像
  1082. * "OcType" => (string) 系统类型:unix, windows
  1083. * "ImageDesc" => (string) 镜像描述
  1084. * "State" => (integer) 镜像状态:镜像状态 1可用,2不可用,3制作中
  1085. * "ImageSize" => (integer) 镜像大小,单位GB
  1086. * "CreateTime" => (integer) 镜像创建时间戳
  1087. * "DeployInfoList" => (array<object>) 部署详情列表[
  1088. * [
  1089. * "IdcId" => (string) 机房ID
  1090. * "State" => (integer) 镜像状态 1-可用, 2-不可用, 3-获取中, 4-转换中, 5-部署中
  1091. * ]
  1092. * ]
  1093. * "Gpu" => (integer) 是否支持Gpu(1-支持,0-不支持)
  1094. * ]
  1095. * ]
  1096. * "TotalCount" => (integer) 镜像总数
  1097. * ]
  1098. *
  1099. * @return GetUEcImageResponse
  1100. * @throws UCloudException
  1101. */
  1102. public function getUEcImage(GetUEcImageRequest $request = null)
  1103. {
  1104. $resp = $this->invoke($request);
  1105. return new GetUEcImageResponse($resp->toArray(), $resp->getRequestId());
  1106. }
  1107. /**
  1108. * GetUEcPodPrice - 获得容器组价格
  1109. *
  1110. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_pod_price
  1111. *
  1112. * Arguments:
  1113. *
  1114. * $args = [
  1115. * "IdcId" => (string) 机房id
  1116. * "CpuCore" => (number) 容器组总Cpu核心数
  1117. * "MemSize" => (integer) 容器组总内存大小(单位M)
  1118. * "ChargeType" => (integer) 支付类型(2按月,3按年,默认2)
  1119. * "ChargeQuantity" => (integer) 月数或年数(默认值:1,当支付类型为按月时,默认值为0)
  1120. * "ProductType" => (string) 产品类型(normal:标准型,hf:高性能型,默认:normal)
  1121. * "ElasticIp" => (string) 是否绑定外网IP(yes:是,no:否,默认:no)
  1122. * "Bandwidth" => (integer) 绑定的带宽,默认0,当绑定外网IP时默认1(单位M)
  1123. * ]
  1124. *
  1125. * Outputs:
  1126. *
  1127. * $outputs = [
  1128. * "HolderPrice" => (number) 容器组价格
  1129. * "IpPrice" => (number) IP和带宽价格
  1130. * ]
  1131. *
  1132. * @return GetUEcPodPriceResponse
  1133. * @throws UCloudException
  1134. */
  1135. public function getUEcPodPrice(GetUEcPodPriceRequest $request = null)
  1136. {
  1137. $resp = $this->invoke($request);
  1138. return new GetUEcPodPriceResponse($resp->toArray(), $resp->getRequestId());
  1139. }
  1140. /**
  1141. * GetUEcUpgradePrice - 获取虚拟机调整差价
  1142. *
  1143. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_upgrade_price
  1144. *
  1145. * Arguments:
  1146. *
  1147. * $args = [
  1148. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1149. * "NodeId" => (string) 虚拟机资源ID
  1150. * "CpuCore" => (integer) cpu核心数
  1151. * "MemSize" => (integer) 内存大小,单位GB
  1152. * "SysDiskSize" => (integer) 系统盘大小,单位GB
  1153. * "DiskSize" => (integer) 数据盘大小,单位GB
  1154. * "NetLimit" => (integer) 节点带宽限制,单位Mbs
  1155. * ]
  1156. *
  1157. * Outputs:
  1158. *
  1159. * $outputs = [
  1160. * "Price" => (integer) 规格调整差价
  1161. * ]
  1162. *
  1163. * @return GetUEcUpgradePriceResponse
  1164. * @throws UCloudException
  1165. */
  1166. public function getUEcUpgradePrice(GetUEcUpgradePriceRequest $request = null)
  1167. {
  1168. $resp = $this->invoke($request);
  1169. return new GetUEcUpgradePriceResponse($resp->toArray(), $resp->getRequestId());
  1170. }
  1171. /**
  1172. * GetUEcVHostData - 获取虚拟机监控数据
  1173. *
  1174. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_v_host_data
  1175. *
  1176. * Arguments:
  1177. *
  1178. * $args = [
  1179. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1180. * "NodeId" => (string) 节点id
  1181. * "Type" => (array<integer>) 0CPU使用率, 1内存使用率, 2 网卡出流量, 3网卡入流量, 4网卡出包量, 5网卡入包量, 6磁盘读流量, 7磁盘写流量, 8磁盘读次数, 9磁盘写次数
  1182. * "BeginTime" => (integer) 查询起始时间
  1183. * "EndTime" => (integer) 查询结束时间
  1184. * ]
  1185. *
  1186. * Outputs:
  1187. *
  1188. * $outputs = [
  1189. * "DataSets" => (object) 带宽数据实例集合[
  1190. * "CPUUtilization" => (array<object>) cpu使用率[
  1191. * [
  1192. * "TimeStamp" => (integer) 时间戳
  1193. * "Value" => (integer) 值
  1194. * ]
  1195. * ]
  1196. * "MemUtilization" => (array<object>) 内存使用率[
  1197. * [
  1198. * "TimeStamp" => (integer) 时间戳
  1199. * "Value" => (integer) 值
  1200. * ]
  1201. * ]
  1202. * "NICOut" => (array<object>) 网卡出带宽[
  1203. * [
  1204. * "TimeStamp" => (integer) 时间戳
  1205. * "Value" => (integer) 值
  1206. * ]
  1207. * ]
  1208. * "NICIn" => (array<object>) 网卡入带宽[
  1209. * [
  1210. * "TimeStamp" => (integer) 时间戳
  1211. * "Value" => (integer) 值
  1212. * ]
  1213. * ]
  1214. * "NetPacketOut" => (array<object>) 网卡出包量[
  1215. * [
  1216. * "TimeStamp" => (integer) 时间戳
  1217. * "Value" => (integer) 值
  1218. * ]
  1219. * ]
  1220. * "NetPacketIn" => (array<object>) 网卡入包量[
  1221. * [
  1222. * "TimeStamp" => (integer) 时间戳
  1223. * "Value" => (integer) 值
  1224. * ]
  1225. * ]
  1226. * "IORead" => (array<object>) 磁盘读取量[
  1227. * [
  1228. * "TimeStamp" => (integer) 时间戳
  1229. * "Value" => (integer) 值
  1230. * ]
  1231. * ]
  1232. * "IOWrite" => (array<object>) 磁盘写入量[
  1233. * [
  1234. * "TimeStamp" => (integer) 时间戳
  1235. * "Value" => (integer) 值
  1236. * ]
  1237. * ]
  1238. * "DiskReadOps" => (array<object>) 磁盘读取次数[
  1239. * [
  1240. * "TimeStamp" => (integer) 时间戳
  1241. * "Value" => (integer) 值
  1242. * ]
  1243. * ]
  1244. * "DiskWriteOps" => (array<object>) 磁盘写入次数[
  1245. * [
  1246. * "TimeStamp" => (integer) 时间戳
  1247. * "Value" => (integer) 值
  1248. * ]
  1249. * ]
  1250. * ]
  1251. * ]
  1252. *
  1253. * @return GetUEcVHostDataResponse
  1254. * @throws UCloudException
  1255. */
  1256. public function getUEcVHostData(GetUEcVHostDataRequest $request = null)
  1257. {
  1258. $resp = $this->invoke($request);
  1259. return new GetUEcVHostDataResponse($resp->toArray(), $resp->getRequestId());
  1260. }
  1261. /**
  1262. * GetUEcVHostPrice - 获取虚拟机价格
  1263. *
  1264. * See also: https://docs.ucloud.cn/api/uec-api/get_u_ec_v_host_price
  1265. *
  1266. * Arguments:
  1267. *
  1268. * $args = [
  1269. * "IdcId" => (string) 机房Id
  1270. * "NodeCount" => (integer) 节点数量,默认1
  1271. * "CpuCore" => (integer) CPU核数
  1272. * "MemSize" => (integer) 内存大小,单位GB
  1273. * "SysDiskSize" => (integer) 系统盘大小,单位GB
  1274. * "DiskSize" => (integer) 数据盘大小,单位GB
  1275. * "NetLimit" => (integer) 网络带宽限速,单位Mbs
  1276. * "ChargeType" => (integer) 付费方式,1按时,2按月,3按年,默认2
  1277. * "ChargeQuantity" => (integer) 月数或者年数,0计费到月底, 默认0
  1278. * "ProductType" => (string) 产品类型:normal(经济型),hf(标准型),g(Gpu型),默认normal
  1279. * "IpCount" => (integer) 外网IP的数量,默认1
  1280. * "Gpu" => (integer) Gpu卡核心数。仅Gpu机型支持此字段
  1281. * "GpuType" => (string) Gpu类型,枚举值["T4"],ProductType为g时必填
  1282. * ]
  1283. *
  1284. * Outputs:
  1285. *
  1286. * $outputs = [
  1287. * "NodePrice" => (number) 节点价格
  1288. * "IpPrice" => (number) Ip和带宽价格
  1289. * ]
  1290. *
  1291. * @return GetUEcVHostPriceResponse
  1292. * @throws UCloudException
  1293. */
  1294. public function getUEcVHostPrice(GetUEcVHostPriceRequest $request = null)
  1295. {
  1296. $resp = $this->invoke($request);
  1297. return new GetUEcVHostPriceResponse($resp->toArray(), $resp->getRequestId());
  1298. }
  1299. /**
  1300. * ImportUEcCustomImage - 导入自定义镜像
  1301. *
  1302. * See also: https://docs.ucloud.cn/api/uec-api/import_u_ec_custom_image
  1303. *
  1304. * Arguments:
  1305. *
  1306. * $args = [
  1307. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1308. * "IdcId" => (array<string>) 镜像需要导入机房,默认分发到所有机房
  1309. * "ImageId" => (string) 镜像Id,不传参表示新导入镜像,传参表示已有镜像分发到指定机房
  1310. * "ImageName" => (string) 镜像名称,不带镜像ID时必填
  1311. * "UFileUrl" => (string) UFile镜像文件下载地址,不带镜像ID时必填
  1312. * "OsType" => (string) 操作系统平台,linux、windows(当前版本暂不支持windows),不带镜像ID时必填
  1313. * "Format" => (string) 镜像格式,可选RAW、qcow2, 不带镜像ID时必填
  1314. * "ImageDesc" => (string) 镜像描述
  1315. * ]
  1316. *
  1317. * Outputs:
  1318. *
  1319. * $outputs = [
  1320. * "ImageId" => (string) 镜像Id
  1321. * ]
  1322. *
  1323. * @return ImportUEcCustomImageResponse
  1324. * @throws UCloudException
  1325. */
  1326. public function importUEcCustomImage(ImportUEcCustomImageRequest $request = null)
  1327. {
  1328. $resp = $this->invoke($request);
  1329. return new ImportUEcCustomImageResponse($resp->toArray(), $resp->getRequestId());
  1330. }
  1331. /**
  1332. * LoginUEcDocker - 登录容器
  1333. *
  1334. * See also: https://docs.ucloud.cn/api/uec-api/login_u_ec_docker
  1335. *
  1336. * Arguments:
  1337. *
  1338. * $args = [
  1339. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1340. * "ResourceId" => (string) 容器组资源id
  1341. * "Name" => (string) 容器名称
  1342. * ]
  1343. *
  1344. * Outputs:
  1345. *
  1346. * $outputs = [
  1347. * "SessionId" => (string) 返回的token
  1348. * "Link" => (string) 登录地址
  1349. * "LinkPort" => (integer) 登录端口
  1350. * ]
  1351. *
  1352. * @return LoginUEcDockerResponse
  1353. * @throws UCloudException
  1354. */
  1355. public function loginUEcDocker(LoginUEcDockerRequest $request = null)
  1356. {
  1357. $resp = $this->invoke($request);
  1358. return new LoginUEcDockerResponse($resp->toArray(), $resp->getRequestId());
  1359. }
  1360. /**
  1361. * ModifyUEcBandwidth - 修改节点带宽限制
  1362. *
  1363. * See also: https://docs.ucloud.cn/api/uec-api/modify_u_ec_bandwidth
  1364. *
  1365. * Arguments:
  1366. *
  1367. * $args = [
  1368. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1369. * "NodeId" => (string) 节点Id
  1370. * "NetLimit" => (string) 节点带宽限制,单位Mbs
  1371. * ]
  1372. *
  1373. * Outputs:
  1374. *
  1375. * $outputs = [
  1376. * ]
  1377. *
  1378. * @return ModifyUEcBandwidthResponse
  1379. * @throws UCloudException
  1380. */
  1381. public function modifyUEcBandwidth(ModifyUEcBandwidthRequest $request = null)
  1382. {
  1383. $resp = $this->invoke($request);
  1384. return new ModifyUEcBandwidthResponse($resp->toArray(), $resp->getRequestId());
  1385. }
  1386. /**
  1387. * ModifyUEcHolderName - 修改容器组名称
  1388. *
  1389. * See also: https://docs.ucloud.cn/api/uec-api/modify_u_ec_holder_name
  1390. *
  1391. * Arguments:
  1392. *
  1393. * $args = [
  1394. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1395. * "ResourceId" => (string) 容器组资源id
  1396. * "Name" => (string) 容器组名称
  1397. * ]
  1398. *
  1399. * Outputs:
  1400. *
  1401. * $outputs = [
  1402. * ]
  1403. *
  1404. * @return ModifyUEcHolderNameResponse
  1405. * @throws UCloudException
  1406. */
  1407. public function modifyUEcHolderName(ModifyUEcHolderNameRequest $request = null)
  1408. {
  1409. $resp = $this->invoke($request);
  1410. return new ModifyUEcHolderNameResponse($resp->toArray(), $resp->getRequestId());
  1411. }
  1412. /**
  1413. * ModifyUEcImageName - 修改镜像名称
  1414. *
  1415. * See also: https://docs.ucloud.cn/api/uec-api/modify_u_ec_image_name
  1416. *
  1417. * Arguments:
  1418. *
  1419. * $args = [
  1420. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1421. * "ImageId" => (string) 镜像ID
  1422. * "ImageName" => (string) 镜像名称
  1423. * "ImageDesc" => (string) 镜像描述
  1424. * ]
  1425. *
  1426. * Outputs:
  1427. *
  1428. * $outputs = [
  1429. * ]
  1430. *
  1431. * @return ModifyUEcImageNameResponse
  1432. * @throws UCloudException
  1433. */
  1434. public function modifyUEcImageName(ModifyUEcImageNameRequest $request = null)
  1435. {
  1436. $resp = $this->invoke($request);
  1437. return new ModifyUEcImageNameResponse($resp->toArray(), $resp->getRequestId());
  1438. }
  1439. /**
  1440. * PoweroffUEcVHost - 虚拟机断电
  1441. *
  1442. * See also: https://docs.ucloud.cn/api/uec-api/poweroff_u_ec_v_host
  1443. *
  1444. * Arguments:
  1445. *
  1446. * $args = [
  1447. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1448. * "NodeId" => (array<string>) 虚拟机资源ID
  1449. * ]
  1450. *
  1451. * Outputs:
  1452. *
  1453. * $outputs = [
  1454. * ]
  1455. *
  1456. * @return PoweroffUEcVHostResponse
  1457. * @throws UCloudException
  1458. */
  1459. public function poweroffUEcVHost(PoweroffUEcVHostRequest $request = null)
  1460. {
  1461. $resp = $this->invoke($request);
  1462. return new PoweroffUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  1463. }
  1464. /**
  1465. * ReinstallUEcVHost - 虚拟机重装系统
  1466. *
  1467. * See also: https://docs.ucloud.cn/api/uec-api/reinstall_u_ec_v_host
  1468. *
  1469. * Arguments:
  1470. *
  1471. * $args = [
  1472. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1473. * "NodeId" => (string) 虚拟机资源ID
  1474. * "ImageId" => (string) 镜像ID
  1475. * "KeepData" => (integer) 是否保留数据盘数据, 0-不保留,1-保留,默认为1
  1476. * "Password" => (string) 节点密码
  1477. * "SysDiskSize" => (integer) 系统盘大小,单位GB
  1478. * ]
  1479. *
  1480. * Outputs:
  1481. *
  1482. * $outputs = [
  1483. * ]
  1484. *
  1485. * @return ReinstallUEcVHostResponse
  1486. * @throws UCloudException
  1487. */
  1488. public function reinstallUEcVHost(ReinstallUEcVHostRequest $request = null)
  1489. {
  1490. $resp = $this->invoke($request);
  1491. return new ReinstallUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  1492. }
  1493. /**
  1494. * RestartUEcHolder - 重启容器组
  1495. *
  1496. * See also: https://docs.ucloud.cn/api/uec-api/restart_u_ec_holder
  1497. *
  1498. * Arguments:
  1499. *
  1500. * $args = [
  1501. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1502. * "ResourceId" => (array<string>) 容器组资源id,n为0,1,2...
  1503. * ]
  1504. *
  1505. * Outputs:
  1506. *
  1507. * $outputs = [
  1508. * ]
  1509. *
  1510. * @return RestartUEcHolderResponse
  1511. * @throws UCloudException
  1512. */
  1513. public function restartUEcHolder(RestartUEcHolderRequest $request = null)
  1514. {
  1515. $resp = $this->invoke($request);
  1516. return new RestartUEcHolderResponse($resp->toArray(), $resp->getRequestId());
  1517. }
  1518. /**
  1519. * RestartUEcVHost - 重启虚拟机v2.0
  1520. *
  1521. * See also: https://docs.ucloud.cn/api/uec-api/restart_u_ec_v_host
  1522. *
  1523. * Arguments:
  1524. *
  1525. * $args = [
  1526. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1527. * "NodeId" => (array<string>) 节点id
  1528. * ]
  1529. *
  1530. * Outputs:
  1531. *
  1532. * $outputs = [
  1533. * ]
  1534. *
  1535. * @return RestartUEcVHostResponse
  1536. * @throws UCloudException
  1537. */
  1538. public function restartUEcVHost(RestartUEcVHostRequest $request = null)
  1539. {
  1540. $resp = $this->invoke($request);
  1541. return new RestartUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  1542. }
  1543. /**
  1544. * StartUEcVHost - 启动UEC虚拟机
  1545. *
  1546. * See also: https://docs.ucloud.cn/api/uec-api/start_u_ec_v_host
  1547. *
  1548. * Arguments:
  1549. *
  1550. * $args = [
  1551. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1552. * "NodeId" => (array<string>) 虚拟机资源ID
  1553. * ]
  1554. *
  1555. * Outputs:
  1556. *
  1557. * $outputs = [
  1558. * ]
  1559. *
  1560. * @return StartUEcVHostResponse
  1561. * @throws UCloudException
  1562. */
  1563. public function startUEcVHost(StartUEcVHostRequest $request = null)
  1564. {
  1565. $resp = $this->invoke($request);
  1566. return new StartUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  1567. }
  1568. /**
  1569. * StopUEcVHost - 停止UEC虚拟机
  1570. *
  1571. * See also: https://docs.ucloud.cn/api/uec-api/stop_u_ec_v_host
  1572. *
  1573. * Arguments:
  1574. *
  1575. * $args = [
  1576. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1577. * "NodeId" => (array<string>) 虚拟机资源ID
  1578. * ]
  1579. *
  1580. * Outputs:
  1581. *
  1582. * $outputs = [
  1583. * ]
  1584. *
  1585. * @return StopUEcVHostResponse
  1586. * @throws UCloudException
  1587. */
  1588. public function stopUEcVHost(StopUEcVHostRequest $request = null)
  1589. {
  1590. $resp = $this->invoke($request);
  1591. return new StopUEcVHostResponse($resp->toArray(), $resp->getRequestId());
  1592. }
  1593. /**
  1594. * UnBindUEcFirewall - 解绑防火墙
  1595. *
  1596. * See also: https://docs.ucloud.cn/api/uec-api/un_bind_u_ec_firewall
  1597. *
  1598. * Arguments:
  1599. *
  1600. * $args = [
  1601. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1602. * "FirewallId" => (string) 防火墙Id
  1603. * "ResourceId" => (string) 节点Id或容器组资源id
  1604. * ]
  1605. *
  1606. * Outputs:
  1607. *
  1608. * $outputs = [
  1609. * ]
  1610. *
  1611. * @return UnBindUEcFirewallResponse
  1612. * @throws UCloudException
  1613. */
  1614. public function unBindUEcFirewall(UnBindUEcFirewallRequest $request = null)
  1615. {
  1616. $resp = $this->invoke($request);
  1617. return new UnBindUEcFirewallResponse($resp->toArray(), $resp->getRequestId());
  1618. }
  1619. /**
  1620. * UpdateUEcFirewall - 更新防火墙信息,新增和删除规则
  1621. *
  1622. * See also: https://docs.ucloud.cn/api/uec-api/update_u_ec_firewall
  1623. *
  1624. * Arguments:
  1625. *
  1626. * $args = [
  1627. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1628. * "FirewallId" => (string) 防火墙Id
  1629. * "Rule" => (array<object>) [
  1630. * [
  1631. * "ProtocolType" => (string) 协议,可选值:TCP,UDP,ICMP
  1632. * "Port" => (string) 端口,范围用"-"符号分隔,如:1-65535
  1633. * "SrcIp" => (string) 源ip
  1634. * "Action" => (string) ACCEPT(接受)和DROP(拒绝)
  1635. * "Priority" => (string) 优先级:HIGH(高),MEDIUM(中),LOW(低)
  1636. * "Remark" => (string) 备注
  1637. * ]
  1638. * ]
  1639. * ]
  1640. *
  1641. * Outputs:
  1642. *
  1643. * $outputs = [
  1644. * ]
  1645. *
  1646. * @return UpdateUEcFirewallResponse
  1647. * @throws UCloudException
  1648. */
  1649. public function updateUEcFirewall(UpdateUEcFirewallRequest $request = null)
  1650. {
  1651. $resp = $this->invoke($request);
  1652. return new UpdateUEcFirewallResponse($resp->toArray(), $resp->getRequestId());
  1653. }
  1654. /**
  1655. * UpdateUEcFirewallAttribute - 更新防火墙名称及描述
  1656. *
  1657. * See also: https://docs.ucloud.cn/api/uec-api/update_u_ec_firewall_attribute
  1658. *
  1659. * Arguments:
  1660. *
  1661. * $args = [
  1662. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1663. * "FirewallId" => (string) 防火墙Id
  1664. * "Name" => (string) 防火墙名称
  1665. * "Remark" => (string) 描述
  1666. * ]
  1667. *
  1668. * Outputs:
  1669. *
  1670. * $outputs = [
  1671. * ]
  1672. *
  1673. * @return UpdateUEcFirewallAttributeResponse
  1674. * @throws UCloudException
  1675. */
  1676. public function updateUEcFirewallAttribute(UpdateUEcFirewallAttributeRequest $request = null)
  1677. {
  1678. $resp = $this->invoke($request);
  1679. return new UpdateUEcFirewallAttributeResponse($resp->toArray(), $resp->getRequestId());
  1680. }
  1681. /**
  1682. * UpdateUEcSubnet - 更新子网信息
  1683. *
  1684. * See also: https://docs.ucloud.cn/api/uec-api/update_u_ec_subnet
  1685. *
  1686. * Arguments:
  1687. *
  1688. * $args = [
  1689. * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list)
  1690. * "SubnetId" => (string) 子网ID
  1691. * "SubnetName" => (string) 子网名称
  1692. * "Comment" => (string) 备注
  1693. * ]
  1694. *
  1695. * Outputs:
  1696. *
  1697. * $outputs = [
  1698. * ]
  1699. *
  1700. * @return UpdateUEcSubnetResponse
  1701. * @throws UCloudException
  1702. */
  1703. public function updateUEcSubnet(UpdateUEcSubnetRequest $request = null)
  1704. {
  1705. $resp = $this->invoke($request);
  1706. return new UpdateUEcSubnetResponse($resp->toArray(), $resp->getRequestId());
  1707. }
  1708. }