1 Star 6 Fork 0

tencentcloud/tencentcloud-sdk-go

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
client.go 234.07 KB
Copy Edit Raw Blame History
tencentcloud authored 2024-07-19 04:14 . release v1.0.967
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20180317
import (
"context"
"errors"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
)
const APIVersion = "2018-03-17"
type Client struct {
common.Client
}
// Deprecated
func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error) {
cpf := profile.NewClientProfile()
client = &Client{}
client.Init(region).WithSecretId(secretId, secretKey).WithProfile(cpf)
return
}
func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error) {
client = &Client{}
client.Init(region).
WithCredential(credential).
WithProfile(clientProfile)
return
}
func NewAssociateTargetGroupsRequest() (request *AssociateTargetGroupsRequest) {
request = &AssociateTargetGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "AssociateTargetGroups")
return
}
func NewAssociateTargetGroupsResponse() (response *AssociateTargetGroupsResponse) {
response = &AssociateTargetGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AssociateTargetGroups
// 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡的监听器(四层协议)或转发规则(七层协议)上。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) AssociateTargetGroups(request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error) {
return c.AssociateTargetGroupsWithContext(context.Background(), request)
}
// AssociateTargetGroups
// 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡的监听器(四层协议)或转发规则(七层协议)上。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) AssociateTargetGroupsWithContext(ctx context.Context, request *AssociateTargetGroupsRequest) (response *AssociateTargetGroupsResponse, err error) {
if request == nil {
request = NewAssociateTargetGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("AssociateTargetGroups require credential")
}
request.SetContext(ctx)
response = NewAssociateTargetGroupsResponse()
err = c.Send(request, response)
return
}
func NewAutoRewriteRequest() (request *AutoRewriteRequest) {
request = &AutoRewriteRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "AutoRewrite")
return
}
func NewAutoRewriteResponse() (response *AutoRewriteResponse) {
response = &AutoRewriteResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// AutoRewrite
// 用户需要先创建出一个HTTPS:443监听器,并在其下创建转发规则。通过调用本接口,系统会自动创建出一个HTTP:80监听器(如果之前不存在),并在其下创建转发规则,与HTTPS:443监听器下的Domains(在入参中指定)对应。创建成功后可以通过HTTP:80地址自动跳转为HTTPS:443地址进行访问。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) AutoRewrite(request *AutoRewriteRequest) (response *AutoRewriteResponse, err error) {
return c.AutoRewriteWithContext(context.Background(), request)
}
// AutoRewrite
// 用户需要先创建出一个HTTPS:443监听器,并在其下创建转发规则。通过调用本接口,系统会自动创建出一个HTTP:80监听器(如果之前不存在),并在其下创建转发规则,与HTTPS:443监听器下的Domains(在入参中指定)对应。创建成功后可以通过HTTP:80地址自动跳转为HTTPS:443地址进行访问。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) AutoRewriteWithContext(ctx context.Context, request *AutoRewriteRequest) (response *AutoRewriteResponse, err error) {
if request == nil {
request = NewAutoRewriteRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("AutoRewrite require credential")
}
request.SetContext(ctx)
response = NewAutoRewriteResponse()
err = c.Send(request, response)
return
}
func NewBatchDeregisterTargetsRequest() (request *BatchDeregisterTargetsRequest) {
request = &BatchDeregisterTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "BatchDeregisterTargets")
return
}
func NewBatchDeregisterTargetsResponse() (response *BatchDeregisterTargetsResponse) {
response = &BatchDeregisterTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BatchDeregisterTargets
// 批量解绑四七层后端服务。批量解绑的资源数量上限为500。只支持VPC网络负载均衡。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchDeregisterTargets(request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error) {
return c.BatchDeregisterTargetsWithContext(context.Background(), request)
}
// BatchDeregisterTargets
// 批量解绑四七层后端服务。批量解绑的资源数量上限为500。只支持VPC网络负载均衡。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchDeregisterTargetsWithContext(ctx context.Context, request *BatchDeregisterTargetsRequest) (response *BatchDeregisterTargetsResponse, err error) {
if request == nil {
request = NewBatchDeregisterTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BatchDeregisterTargets require credential")
}
request.SetContext(ctx)
response = NewBatchDeregisterTargetsResponse()
err = c.Send(request, response)
return
}
func NewBatchModifyTargetTagRequest() (request *BatchModifyTargetTagRequest) {
request = &BatchModifyTargetTagRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "BatchModifyTargetTag")
return
}
func NewBatchModifyTargetTagResponse() (response *BatchModifyTargetTagResponse) {
response = &BatchModifyTargetTagResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BatchModifyTargetTag
// BatchModifyTargetTag 接口用于批量修改负载均衡监听器绑定的后端机器的标签。批量修改的资源数量上限为500。本接口为同步接口。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchModifyTargetTag(request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error) {
return c.BatchModifyTargetTagWithContext(context.Background(), request)
}
// BatchModifyTargetTag
// BatchModifyTargetTag 接口用于批量修改负载均衡监听器绑定的后端机器的标签。批量修改的资源数量上限为500。本接口为同步接口。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchModifyTargetTagWithContext(ctx context.Context, request *BatchModifyTargetTagRequest) (response *BatchModifyTargetTagResponse, err error) {
if request == nil {
request = NewBatchModifyTargetTagRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BatchModifyTargetTag require credential")
}
request.SetContext(ctx)
response = NewBatchModifyTargetTagResponse()
err = c.Send(request, response)
return
}
func NewBatchModifyTargetWeightRequest() (request *BatchModifyTargetWeightRequest) {
request = &BatchModifyTargetWeightRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "BatchModifyTargetWeight")
return
}
func NewBatchModifyTargetWeightResponse() (response *BatchModifyTargetWeightResponse) {
response = &BatchModifyTargetWeightResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BatchModifyTargetWeight
// BatchModifyTargetWeight 接口用于批量修改负载均衡监听器绑定的后端机器的转发权重。批量修改的资源数量上限为500。本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchModifyTargetWeight(request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error) {
return c.BatchModifyTargetWeightWithContext(context.Background(), request)
}
// BatchModifyTargetWeight
// BatchModifyTargetWeight 接口用于批量修改负载均衡监听器绑定的后端机器的转发权重。批量修改的资源数量上限为500。本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。<br/>负载均衡的4层和7层监听器支持此接口,传统型负载均衡不支持。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchModifyTargetWeightWithContext(ctx context.Context, request *BatchModifyTargetWeightRequest) (response *BatchModifyTargetWeightResponse, err error) {
if request == nil {
request = NewBatchModifyTargetWeightRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BatchModifyTargetWeight require credential")
}
request.SetContext(ctx)
response = NewBatchModifyTargetWeightResponse()
err = c.Send(request, response)
return
}
func NewBatchRegisterTargetsRequest() (request *BatchRegisterTargetsRequest) {
request = &BatchRegisterTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "BatchRegisterTargets")
return
}
func NewBatchRegisterTargetsResponse() (response *BatchRegisterTargetsResponse) {
response = &BatchRegisterTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// BatchRegisterTargets
// 批量绑定虚拟主机或弹性网卡,支持跨域绑定,支持四层、七层(TCP、UDP、HTTP、HTTPS)协议绑定。批量绑定的资源数量上限为500。只支持VPC网络负载均衡。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchRegisterTargets(request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error) {
return c.BatchRegisterTargetsWithContext(context.Background(), request)
}
// BatchRegisterTargets
// 批量绑定虚拟主机或弹性网卡,支持跨域绑定,支持四层、七层(TCP、UDP、HTTP、HTTPS)协议绑定。批量绑定的资源数量上限为500。只支持VPC网络负载均衡。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) BatchRegisterTargetsWithContext(ctx context.Context, request *BatchRegisterTargetsRequest) (response *BatchRegisterTargetsResponse, err error) {
if request == nil {
request = NewBatchRegisterTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("BatchRegisterTargets require credential")
}
request.SetContext(ctx)
response = NewBatchRegisterTargetsResponse()
err = c.Send(request, response)
return
}
func NewCloneLoadBalancerRequest() (request *CloneLoadBalancerRequest) {
request = &CloneLoadBalancerRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CloneLoadBalancer")
return
}
func NewCloneLoadBalancerResponse() (response *CloneLoadBalancerResponse) {
response = &CloneLoadBalancerResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CloneLoadBalancer
// 克隆负载均衡实例,根据指定的负载均衡实例,复制出相同规则和绑定关系的负载均衡实例。克隆接口为异步操作,克隆的数据以调用CloneLoadBalancer时为准,如果调用CloneLoadBalancer后克隆CLB发生变化,变化规则不会克隆。
//
//
//
// 注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口
//
//
//
// 限制说明
//
// 实例属性维度限制:
//
// - 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
//
// - 不支持克隆未关联实例计费项的 CLB。
//
// - 不支持克隆传统型负载均衡实例和高防 CLB。
//
// - 不支持克隆基础网络类型的实例。
//
// - 不支持克隆 Anycast 类型的实例。
//
// - 不支持克隆 IPv6 NAT64 版本的实例。
//
// - 不支持克隆被封禁或冻结的实例。
//
// - 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。
//
// 配额维度限制:
//
// - 当实例的监听器个数超过 50 个时,不支持克隆。
//
// - 当共享型实例的公网带宽上限超过 2G 时,不支持克隆。
//
//
//
// 通过接口调用:
//
// BGP带宽包必须传带宽包id
//
// 独占集群克隆必须传对应的参数,否则按共享型创建
//
// 功能内测中,请提交 [内测申请](https://cloud.tencent.com/apply/p/1akuvsmyn0g)。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
func (c *Client) CloneLoadBalancer(request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error) {
return c.CloneLoadBalancerWithContext(context.Background(), request)
}
// CloneLoadBalancer
// 克隆负载均衡实例,根据指定的负载均衡实例,复制出相同规则和绑定关系的负载均衡实例。克隆接口为异步操作,克隆的数据以调用CloneLoadBalancer时为准,如果调用CloneLoadBalancer后克隆CLB发生变化,变化规则不会克隆。
//
//
//
// 注:查询实例创建状态可以根据返回值中的requestId访问[DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683)接口
//
//
//
// 限制说明
//
// 实例属性维度限制:
//
// - 支持克隆网络计费模式为按量计费与包年包月的实例,包年包月实例克隆后的新实例网络计费模式会转换为按小时带宽计费,其带宽、规格与原实例设置保持一致。
//
// - 不支持克隆未关联实例计费项的 CLB。
//
// - 不支持克隆传统型负载均衡实例和高防 CLB。
//
// - 不支持克隆基础网络类型的实例。
//
// - 不支持克隆 Anycast 类型的实例。
//
// - 不支持克隆 IPv6 NAT64 版本的实例。
//
// - 不支持克隆被封禁或冻结的实例。
//
// - 执行克隆操作前,请确保实例上没有使用已过期证书,否则会导致克隆失败。
//
// 配额维度限制:
//
// - 当实例的监听器个数超过 50 个时,不支持克隆。
//
// - 当共享型实例的公网带宽上限超过 2G 时,不支持克隆。
//
//
//
// 通过接口调用:
//
// BGP带宽包必须传带宽包id
//
// 独占集群克隆必须传对应的参数,否则按共享型创建
//
// 功能内测中,请提交 [内测申请](https://cloud.tencent.com/apply/p/1akuvsmyn0g)。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// OPERATIONDENIED = "OperationDenied"
// REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
// RESOURCEINUSE = "ResourceInUse"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// RESOURCESSOLDOUT = "ResourcesSoldOut"
func (c *Client) CloneLoadBalancerWithContext(ctx context.Context, request *CloneLoadBalancerRequest) (response *CloneLoadBalancerResponse, err error) {
if request == nil {
request = NewCloneLoadBalancerRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CloneLoadBalancer require credential")
}
request.SetContext(ctx)
response = NewCloneLoadBalancerResponse()
err = c.Send(request, response)
return
}
func NewCreateClsLogSetRequest() (request *CreateClsLogSetRequest) {
request = &CreateClsLogSetRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateClsLogSet")
return
}
func NewCreateClsLogSetResponse() (response *CreateClsLogSetResponse) {
response = &CreateClsLogSetResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateClsLogSet
// 创建CLB专有日志集,此日志集用于存储CLB的日志。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateClsLogSet(request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error) {
return c.CreateClsLogSetWithContext(context.Background(), request)
}
// CreateClsLogSet
// 创建CLB专有日志集,此日志集用于存储CLB的日志。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateClsLogSetWithContext(ctx context.Context, request *CreateClsLogSetRequest) (response *CreateClsLogSetResponse, err error) {
if request == nil {
request = NewCreateClsLogSetRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateClsLogSet require credential")
}
request.SetContext(ctx)
response = NewCreateClsLogSetResponse()
err = c.Send(request, response)
return
}
func NewCreateListenerRequest() (request *CreateListenerRequest) {
request = &CreateListenerRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateListener")
return
}
func NewCreateListenerResponse() (response *CreateListenerResponse) {
response = &CreateListenerResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateListener
// 在一个负载均衡实例下创建监听器。
//
// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateListener(request *CreateListenerRequest) (response *CreateListenerResponse, err error) {
return c.CreateListenerWithContext(context.Background(), request)
}
// CreateListener
// 在一个负载均衡实例下创建监听器。
//
// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateListenerWithContext(ctx context.Context, request *CreateListenerRequest) (response *CreateListenerResponse, err error) {
if request == nil {
request = NewCreateListenerRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateListener require credential")
}
request.SetContext(ctx)
response = NewCreateListenerResponse()
err = c.Send(request, response)
return
}
func NewCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) {
request = &CreateLoadBalancerRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateLoadBalancer")
return
}
func NewCreateLoadBalancerResponse() (response *CreateLoadBalancerResponse) {
response = &CreateLoadBalancerResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateLoadBalancer
// 本接口(CreateLoadBalancer)用来创建负载均衡实例(本接口只支持购买按量计费的负载均衡,包年包月的负载均衡请通过控制台购买)。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
//
// 注意:(1)指定可用区申请负载均衡、跨zone容灾(仅香港支持)【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】;(2)目前只有北京、上海、广州支持IPv6;(3)一个账号在每个地域的默认购买配额为:公网100个,内网100个。
//
// 本接口为异步接口,接口成功返回后,可使用 DescribeLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) {
return c.CreateLoadBalancerWithContext(context.Background(), request)
}
// CreateLoadBalancer
// 本接口(CreateLoadBalancer)用来创建负载均衡实例(本接口只支持购买按量计费的负载均衡,包年包月的负载均衡请通过控制台购买)。为了使用负载均衡服务,您必须购买一个或多个负载均衡实例。成功调用该接口后,会返回负载均衡实例的唯一 ID。负载均衡实例的类型分为:公网、内网。详情可参考产品说明中的产品类型。
//
// 注意:(1)指定可用区申请负载均衡、跨zone容灾(仅香港支持)【如果您需要体验该功能,请通过 [工单申请](https://console.cloud.tencent.com/workorder/category)】;(2)目前只有北京、上海、广州支持IPv6;(3)一个账号在每个地域的默认购买配额为:公网100个,内网100个。
//
// 本接口为异步接口,接口成功返回后,可使用 DescribeLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_CLIENTTOKENLIMITEXCEEDED = "InvalidParameter.ClientTokenLimitExceeded"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) CreateLoadBalancerWithContext(ctx context.Context, request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) {
if request == nil {
request = NewCreateLoadBalancerRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateLoadBalancer require credential")
}
request.SetContext(ctx)
response = NewCreateLoadBalancerResponse()
err = c.Send(request, response)
return
}
func NewCreateLoadBalancerSnatIpsRequest() (request *CreateLoadBalancerSnatIpsRequest) {
request = &CreateLoadBalancerSnatIpsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateLoadBalancerSnatIps")
return
}
func NewCreateLoadBalancerSnatIpsResponse() (response *CreateLoadBalancerSnatIpsResponse) {
response = &CreateLoadBalancerSnatIpsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateLoadBalancerSnatIps
// 针对SnatPro负载均衡,这个接口用于添加SnatIp,如果负载均衡没有开启SnatPro,添加SnatIp后会自动开启。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
func (c *Client) CreateLoadBalancerSnatIps(request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error) {
return c.CreateLoadBalancerSnatIpsWithContext(context.Background(), request)
}
// CreateLoadBalancerSnatIps
// 针对SnatPro负载均衡,这个接口用于添加SnatIp,如果负载均衡没有开启SnatPro,添加SnatIp后会自动开启。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
func (c *Client) CreateLoadBalancerSnatIpsWithContext(ctx context.Context, request *CreateLoadBalancerSnatIpsRequest) (response *CreateLoadBalancerSnatIpsResponse, err error) {
if request == nil {
request = NewCreateLoadBalancerSnatIpsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateLoadBalancerSnatIps require credential")
}
request.SetContext(ctx)
response = NewCreateLoadBalancerSnatIpsResponse()
err = c.Send(request, response)
return
}
func NewCreateRuleRequest() (request *CreateRuleRequest) {
request = &CreateRuleRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateRule")
return
}
func NewCreateRuleResponse() (response *CreateRuleResponse) {
response = &CreateRuleResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateRule
// CreateRule 接口用于在一个已存在的负载均衡七层监听器下创建转发规则,七层监听器中,后端服务必须绑定到规则上而非监听器上。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateRule(request *CreateRuleRequest) (response *CreateRuleResponse, err error) {
return c.CreateRuleWithContext(context.Background(), request)
}
// CreateRule
// CreateRule 接口用于在一个已存在的负载均衡七层监听器下创建转发规则,七层监听器中,后端服务必须绑定到规则上而非监听器上。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateRuleWithContext(ctx context.Context, request *CreateRuleRequest) (response *CreateRuleResponse, err error) {
if request == nil {
request = NewCreateRuleRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateRule require credential")
}
request.SetContext(ctx)
response = NewCreateRuleResponse()
err = c.Send(request, response)
return
}
func NewCreateTargetGroupRequest() (request *CreateTargetGroupRequest) {
request = &CreateTargetGroupRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateTargetGroup")
return
}
func NewCreateTargetGroupResponse() (response *CreateTargetGroupResponse) {
response = &CreateTargetGroupResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateTargetGroup
// 创建目标组。该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateTargetGroup(request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error) {
return c.CreateTargetGroupWithContext(context.Background(), request)
}
// CreateTargetGroup
// 创建目标组。该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateTargetGroupWithContext(ctx context.Context, request *CreateTargetGroupRequest) (response *CreateTargetGroupResponse, err error) {
if request == nil {
request = NewCreateTargetGroupRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateTargetGroup require credential")
}
request.SetContext(ctx)
response = NewCreateTargetGroupResponse()
err = c.Send(request, response)
return
}
func NewCreateTopicRequest() (request *CreateTopicRequest) {
request = &CreateTopicRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "CreateTopic")
return
}
func NewCreateTopicResponse() (response *CreateTopicResponse) {
response = &CreateTopicResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// CreateTopic
// 创建主题,默认开启全文索引和键值索引。如果不存在CLB专有日志集,则创建失败。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateTopic(request *CreateTopicRequest) (response *CreateTopicResponse, err error) {
return c.CreateTopicWithContext(context.Background(), request)
}
// CreateTopic
// 创建主题,默认开启全文索引和键值索引。如果不存在CLB专有日志集,则创建失败。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) CreateTopicWithContext(ctx context.Context, request *CreateTopicRequest) (response *CreateTopicResponse, err error) {
if request == nil {
request = NewCreateTopicRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("CreateTopic require credential")
}
request.SetContext(ctx)
response = NewCreateTopicResponse()
err = c.Send(request, response)
return
}
func NewDeleteListenerRequest() (request *DeleteListenerRequest) {
request = &DeleteListenerRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteListener")
return
}
func NewDeleteListenerResponse() (response *DeleteListenerResponse) {
response = &DeleteListenerResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteListener
// 本接口用来删除负载均衡实例下的监听器(四层和七层)。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteListener(request *DeleteListenerRequest) (response *DeleteListenerResponse, err error) {
return c.DeleteListenerWithContext(context.Background(), request)
}
// DeleteListener
// 本接口用来删除负载均衡实例下的监听器(四层和七层)。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteListenerWithContext(ctx context.Context, request *DeleteListenerRequest) (response *DeleteListenerResponse, err error) {
if request == nil {
request = NewDeleteListenerRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteListener require credential")
}
request.SetContext(ctx)
response = NewDeleteListenerResponse()
err = c.Send(request, response)
return
}
func NewDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) {
request = &DeleteLoadBalancerRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancer")
return
}
func NewDeleteLoadBalancerResponse() (response *DeleteLoadBalancerResponse) {
response = &DeleteLoadBalancerResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteLoadBalancer
// DeleteLoadBalancer 接口用以删除指定的一个或多个负载均衡实例。成功删除后,会把负载均衡实例下的监听器、转发规则一起删除,并把后端服务解绑。
//
// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) {
return c.DeleteLoadBalancerWithContext(context.Background(), request)
}
// DeleteLoadBalancer
// DeleteLoadBalancer 接口用以删除指定的一个或多个负载均衡实例。成功删除后,会把负载均衡实例下的监听器、转发规则一起删除,并把后端服务解绑。
//
// 本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteLoadBalancerWithContext(ctx context.Context, request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) {
if request == nil {
request = NewDeleteLoadBalancerRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancer require credential")
}
request.SetContext(ctx)
response = NewDeleteLoadBalancerResponse()
err = c.Send(request, response)
return
}
func NewDeleteLoadBalancerListenersRequest() (request *DeleteLoadBalancerListenersRequest) {
request = &DeleteLoadBalancerListenersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancerListeners")
return
}
func NewDeleteLoadBalancerListenersResponse() (response *DeleteLoadBalancerListenersResponse) {
response = &DeleteLoadBalancerListenersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteLoadBalancerListeners
// 该接口支持删除负载均衡的多个监听器。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteLoadBalancerListeners(request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error) {
return c.DeleteLoadBalancerListenersWithContext(context.Background(), request)
}
// DeleteLoadBalancerListeners
// 该接口支持删除负载均衡的多个监听器。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteLoadBalancerListenersWithContext(ctx context.Context, request *DeleteLoadBalancerListenersRequest) (response *DeleteLoadBalancerListenersResponse, err error) {
if request == nil {
request = NewDeleteLoadBalancerListenersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancerListeners require credential")
}
request.SetContext(ctx)
response = NewDeleteLoadBalancerListenersResponse()
err = c.Send(request, response)
return
}
func NewDeleteLoadBalancerSnatIpsRequest() (request *DeleteLoadBalancerSnatIpsRequest) {
request = &DeleteLoadBalancerSnatIpsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteLoadBalancerSnatIps")
return
}
func NewDeleteLoadBalancerSnatIpsResponse() (response *DeleteLoadBalancerSnatIpsResponse) {
response = &DeleteLoadBalancerSnatIpsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteLoadBalancerSnatIps
// 这个接口用于删除SnatPro的负载均衡的SnatIp。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
func (c *Client) DeleteLoadBalancerSnatIps(request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error) {
return c.DeleteLoadBalancerSnatIpsWithContext(context.Background(), request)
}
// DeleteLoadBalancerSnatIps
// 这个接口用于删除SnatPro的负载均衡的SnatIp。
//
// 本接口为异步接口,接口返回成功后,需以得到的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// LIMITEXCEEDED = "LimitExceeded"
func (c *Client) DeleteLoadBalancerSnatIpsWithContext(ctx context.Context, request *DeleteLoadBalancerSnatIpsRequest) (response *DeleteLoadBalancerSnatIpsResponse, err error) {
if request == nil {
request = NewDeleteLoadBalancerSnatIpsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteLoadBalancerSnatIps require credential")
}
request.SetContext(ctx)
response = NewDeleteLoadBalancerSnatIpsResponse()
err = c.Send(request, response)
return
}
func NewDeleteRewriteRequest() (request *DeleteRewriteRequest) {
request = &DeleteRewriteRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteRewrite")
return
}
func NewDeleteRewriteResponse() (response *DeleteRewriteResponse) {
response = &DeleteRewriteResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteRewrite
// DeleteRewrite 接口支持删除指定转发规则之间的重定向关系。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteRewrite(request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error) {
return c.DeleteRewriteWithContext(context.Background(), request)
}
// DeleteRewrite
// DeleteRewrite 接口支持删除指定转发规则之间的重定向关系。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteRewriteWithContext(ctx context.Context, request *DeleteRewriteRequest) (response *DeleteRewriteResponse, err error) {
if request == nil {
request = NewDeleteRewriteRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteRewrite require credential")
}
request.SetContext(ctx)
response = NewDeleteRewriteResponse()
err = c.Send(request, response)
return
}
func NewDeleteRuleRequest() (request *DeleteRuleRequest) {
request = &DeleteRuleRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteRule")
return
}
func NewDeleteRuleResponse() (response *DeleteRuleResponse) {
response = &DeleteRuleResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteRule
// DeleteRule 接口用来删除负载均衡实例七层监听器下的转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteRule(request *DeleteRuleRequest) (response *DeleteRuleResponse, err error) {
return c.DeleteRuleWithContext(context.Background(), request)
}
// DeleteRule
// DeleteRule 接口用来删除负载均衡实例七层监听器下的转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteRuleWithContext(ctx context.Context, request *DeleteRuleRequest) (response *DeleteRuleResponse, err error) {
if request == nil {
request = NewDeleteRuleRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteRule require credential")
}
request.SetContext(ctx)
response = NewDeleteRuleResponse()
err = c.Send(request, response)
return
}
func NewDeleteTargetGroupsRequest() (request *DeleteTargetGroupsRequest) {
request = &DeleteTargetGroupsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeleteTargetGroups")
return
}
func NewDeleteTargetGroupsResponse() (response *DeleteTargetGroupsResponse) {
response = &DeleteTargetGroupsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeleteTargetGroups
// 删除目标组
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteTargetGroups(request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error) {
return c.DeleteTargetGroupsWithContext(context.Background(), request)
}
// DeleteTargetGroups
// 删除目标组
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeleteTargetGroupsWithContext(ctx context.Context, request *DeleteTargetGroupsRequest) (response *DeleteTargetGroupsResponse, err error) {
if request == nil {
request = NewDeleteTargetGroupsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeleteTargetGroups require credential")
}
request.SetContext(ctx)
response = NewDeleteTargetGroupsResponse()
err = c.Send(request, response)
return
}
func NewDeregisterFunctionTargetsRequest() (request *DeregisterFunctionTargetsRequest) {
request = &DeregisterFunctionTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeregisterFunctionTargets")
return
}
func NewDeregisterFunctionTargetsResponse() (response *DeregisterFunctionTargetsResponse) {
response = &DeregisterFunctionTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeregisterFunctionTargets
// DeregisterFunctionTargets 接口用来将一个云函数从负载均衡的转发规则上解绑,对于七层监听器,还需通过 LocationId 或 Domain+Url 指定转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// <br/>限制说明:
//
//
//
// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
// - 传统型负载均衡不支持绑定 SCF。
//
// - 基础网络类型不支持绑定 SCF。
//
// - CLB 默认支持绑定同地域下的所有 SCF,可支持跨 VPC 绑定 SCF,不支持跨地域绑定。
//
// - 目前仅 IPv4、IPv6 NAT64 版本的负载均衡支持绑定 SCF,IPv6 版本的暂不支持。
//
// - 仅七层(HTTP、HTTPS)监听器支持绑定 SCF,四层(TCP、UDP、TCP SSL)监听器和七层 QUIC 监听器不支持。
//
// - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterFunctionTargets(request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error) {
return c.DeregisterFunctionTargetsWithContext(context.Background(), request)
}
// DeregisterFunctionTargets
// DeregisterFunctionTargets 接口用来将一个云函数从负载均衡的转发规则上解绑,对于七层监听器,还需通过 LocationId 或 Domain+Url 指定转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 [DescribeTaskStatus](https://cloud.tencent.com/document/product/214/30683) 接口查询本次任务是否成功。
//
// <br/>限制说明:
//
//
//
// - 仅广州、深圳金融、上海、上海金融、北京、成都、中国香港、新加坡、孟买、东京、硅谷地域支持绑定 SCF。
//
// - 仅标准账户类型支持绑定 SCF,传统账户类型不支持。建议升级为标准账户类型,详情可参见 [账户类型升级说明](https://cloud.tencent.com/document/product/1199/49090)。
//
// - 传统型负载均衡不支持绑定 SCF。
//
// - 基础网络类型不支持绑定 SCF。
//
// - CLB 默认支持绑定同地域下的所有 SCF,可支持跨 VPC 绑定 SCF,不支持跨地域绑定。
//
// - 目前仅 IPv4、IPv6 NAT64 版本的负载均衡支持绑定 SCF,IPv6 版本的暂不支持。
//
// - 仅七层(HTTP、HTTPS)监听器支持绑定 SCF,四层(TCP、UDP、TCP SSL)监听器和七层 QUIC 监听器不支持。
//
// - CLB 绑定 SCF 仅支持绑定“Event 函数”类型的云函数。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCENOTFOUND = "ResourceNotFound"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterFunctionTargetsWithContext(ctx context.Context, request *DeregisterFunctionTargetsRequest) (response *DeregisterFunctionTargetsResponse, err error) {
if request == nil {
request = NewDeregisterFunctionTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeregisterFunctionTargets require credential")
}
request.SetContext(ctx)
response = NewDeregisterFunctionTargetsResponse()
err = c.Send(request, response)
return
}
func NewDeregisterTargetGroupInstancesRequest() (request *DeregisterTargetGroupInstancesRequest) {
request = &DeregisterTargetGroupInstancesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargetGroupInstances")
return
}
func NewDeregisterTargetGroupInstancesResponse() (response *DeregisterTargetGroupInstancesResponse) {
response = &DeregisterTargetGroupInstancesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeregisterTargetGroupInstances
// 从目标组中解绑服务器。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargetGroupInstances(request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error) {
return c.DeregisterTargetGroupInstancesWithContext(context.Background(), request)
}
// DeregisterTargetGroupInstances
// 从目标组中解绑服务器。
//
// 本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_RESOURCEINOPERATING = "FailedOperation.ResourceInOperating"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargetGroupInstancesWithContext(ctx context.Context, request *DeregisterTargetGroupInstancesRequest) (response *DeregisterTargetGroupInstancesResponse, err error) {
if request == nil {
request = NewDeregisterTargetGroupInstancesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargetGroupInstances require credential")
}
request.SetContext(ctx)
response = NewDeregisterTargetGroupInstancesResponse()
err = c.Send(request, response)
return
}
func NewDeregisterTargetsRequest() (request *DeregisterTargetsRequest) {
request = &DeregisterTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargets")
return
}
func NewDeregisterTargetsResponse() (response *DeregisterTargetsResponse) {
response = &DeregisterTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeregisterTargets
// DeregisterTargets 接口用来将一台或多台后端服务从负载均衡的监听器或转发规则上解绑,对于四层监听器,只需指定监听器ID即可,对于七层监听器,还需通过LocationId或Domain+Url指定转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargets(request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error) {
return c.DeregisterTargetsWithContext(context.Background(), request)
}
// DeregisterTargets
// DeregisterTargets 接口用来将一台或多台后端服务从负载均衡的监听器或转发规则上解绑,对于四层监听器,只需指定监听器ID即可,对于七层监听器,还需通过LocationId或Domain+Url指定转发规则。
//
// 本接口为异步接口,本接口返回成功后需以返回的RequestID为入参,调用DescribeTaskStatus接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargetsWithContext(ctx context.Context, request *DeregisterTargetsRequest) (response *DeregisterTargetsResponse, err error) {
if request == nil {
request = NewDeregisterTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargets require credential")
}
request.SetContext(ctx)
response = NewDeregisterTargetsResponse()
err = c.Send(request, response)
return
}
func NewDeregisterTargetsFromClassicalLBRequest() (request *DeregisterTargetsFromClassicalLBRequest) {
request = &DeregisterTargetsFromClassicalLBRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DeregisterTargetsFromClassicalLB")
return
}
func NewDeregisterTargetsFromClassicalLBResponse() (response *DeregisterTargetsFromClassicalLBResponse) {
response = &DeregisterTargetsFromClassicalLBResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DeregisterTargetsFromClassicalLB
// DeregisterTargetsFromClassicalLB 接口用于解绑负载均衡后端服务。本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargetsFromClassicalLB(request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error) {
return c.DeregisterTargetsFromClassicalLBWithContext(context.Background(), request)
}
// DeregisterTargetsFromClassicalLB
// DeregisterTargetsFromClassicalLB 接口用于解绑负载均衡后端服务。本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DeregisterTargetsFromClassicalLBWithContext(ctx context.Context, request *DeregisterTargetsFromClassicalLBRequest) (response *DeregisterTargetsFromClassicalLBResponse, err error) {
if request == nil {
request = NewDeregisterTargetsFromClassicalLBRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DeregisterTargetsFromClassicalLB require credential")
}
request.SetContext(ctx)
response = NewDeregisterTargetsFromClassicalLBResponse()
err = c.Send(request, response)
return
}
func NewDescribeBlockIPListRequest() (request *DescribeBlockIPListRequest) {
request = &DescribeBlockIPListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeBlockIPList")
return
}
func NewDescribeBlockIPListResponse() (response *DescribeBlockIPListResponse) {
response = &DescribeBlockIPListResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeBlockIPList
// 查询一个负载均衡所封禁的IP列表(黑名单)。(接口灰度中,如需使用请提工单)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeBlockIPList(request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error) {
return c.DescribeBlockIPListWithContext(context.Background(), request)
}
// DescribeBlockIPList
// 查询一个负载均衡所封禁的IP列表(黑名单)。(接口灰度中,如需使用请提工单)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeBlockIPListWithContext(ctx context.Context, request *DescribeBlockIPListRequest) (response *DescribeBlockIPListResponse, err error) {
if request == nil {
request = NewDescribeBlockIPListRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeBlockIPList require credential")
}
request.SetContext(ctx)
response = NewDescribeBlockIPListResponse()
err = c.Send(request, response)
return
}
func NewDescribeBlockIPTaskRequest() (request *DescribeBlockIPTaskRequest) {
request = &DescribeBlockIPTaskRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeBlockIPTask")
return
}
func NewDescribeBlockIPTaskResponse() (response *DescribeBlockIPTaskResponse) {
response = &DescribeBlockIPTaskResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeBlockIPTask
// 根据 ModifyBlockIPList 接口返回的异步任务的ID,查询封禁IP(黑名单)异步任务的执行状态。(接口灰度中,如需使用请提工单)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeBlockIPTask(request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error) {
return c.DescribeBlockIPTaskWithContext(context.Background(), request)
}
// DescribeBlockIPTask
// 根据 ModifyBlockIPList 接口返回的异步任务的ID,查询封禁IP(黑名单)异步任务的执行状态。(接口灰度中,如需使用请提工单)
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
func (c *Client) DescribeBlockIPTaskWithContext(ctx context.Context, request *DescribeBlockIPTaskRequest) (response *DescribeBlockIPTaskResponse, err error) {
if request == nil {
request = NewDescribeBlockIPTaskRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeBlockIPTask require credential")
}
request.SetContext(ctx)
response = NewDescribeBlockIPTaskResponse()
err = c.Send(request, response)
return
}
func NewDescribeClassicalLBByInstanceIdRequest() (request *DescribeClassicalLBByInstanceIdRequest) {
request = &DescribeClassicalLBByInstanceIdRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBByInstanceId")
return
}
func NewDescribeClassicalLBByInstanceIdResponse() (response *DescribeClassicalLBByInstanceIdResponse) {
response = &DescribeClassicalLBByInstanceIdResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClassicalLBByInstanceId
// DescribeClassicalLBByInstanceId用于通过后端实例ID获取传统型负载均衡ID列表。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBByInstanceId(request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error) {
return c.DescribeClassicalLBByInstanceIdWithContext(context.Background(), request)
}
// DescribeClassicalLBByInstanceId
// DescribeClassicalLBByInstanceId用于通过后端实例ID获取传统型负载均衡ID列表。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBByInstanceIdWithContext(ctx context.Context, request *DescribeClassicalLBByInstanceIdRequest) (response *DescribeClassicalLBByInstanceIdResponse, err error) {
if request == nil {
request = NewDescribeClassicalLBByInstanceIdRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBByInstanceId require credential")
}
request.SetContext(ctx)
response = NewDescribeClassicalLBByInstanceIdResponse()
err = c.Send(request, response)
return
}
func NewDescribeClassicalLBHealthStatusRequest() (request *DescribeClassicalLBHealthStatusRequest) {
request = &DescribeClassicalLBHealthStatusRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBHealthStatus")
return
}
func NewDescribeClassicalLBHealthStatusResponse() (response *DescribeClassicalLBHealthStatusResponse) {
response = &DescribeClassicalLBHealthStatusResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClassicalLBHealthStatus
// DescribeClassicalLBHealthStatus用于获取传统型负载均衡后端的健康状态
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBHealthStatus(request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error) {
return c.DescribeClassicalLBHealthStatusWithContext(context.Background(), request)
}
// DescribeClassicalLBHealthStatus
// DescribeClassicalLBHealthStatus用于获取传统型负载均衡后端的健康状态
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBHealthStatusWithContext(ctx context.Context, request *DescribeClassicalLBHealthStatusRequest) (response *DescribeClassicalLBHealthStatusResponse, err error) {
if request == nil {
request = NewDescribeClassicalLBHealthStatusRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBHealthStatus require credential")
}
request.SetContext(ctx)
response = NewDescribeClassicalLBHealthStatusResponse()
err = c.Send(request, response)
return
}
func NewDescribeClassicalLBListenersRequest() (request *DescribeClassicalLBListenersRequest) {
request = &DescribeClassicalLBListenersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBListeners")
return
}
func NewDescribeClassicalLBListenersResponse() (response *DescribeClassicalLBListenersResponse) {
response = &DescribeClassicalLBListenersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClassicalLBListeners
// DescribeClassicalLBListeners 接口用于获取传统型负载均衡的监听器信息。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeClassicalLBListeners(request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error) {
return c.DescribeClassicalLBListenersWithContext(context.Background(), request)
}
// DescribeClassicalLBListeners
// DescribeClassicalLBListeners 接口用于获取传统型负载均衡的监听器信息。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeClassicalLBListenersWithContext(ctx context.Context, request *DescribeClassicalLBListenersRequest) (response *DescribeClassicalLBListenersResponse, err error) {
if request == nil {
request = NewDescribeClassicalLBListenersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBListeners require credential")
}
request.SetContext(ctx)
response = NewDescribeClassicalLBListenersResponse()
err = c.Send(request, response)
return
}
func NewDescribeClassicalLBTargetsRequest() (request *DescribeClassicalLBTargetsRequest) {
request = &DescribeClassicalLBTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClassicalLBTargets")
return
}
func NewDescribeClassicalLBTargetsResponse() (response *DescribeClassicalLBTargetsResponse) {
response = &DescribeClassicalLBTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClassicalLBTargets
// DescribeClassicalLBTargets用于获取传统型负载均衡绑定的后端服务。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBTargets(request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error) {
return c.DescribeClassicalLBTargetsWithContext(context.Background(), request)
}
// DescribeClassicalLBTargets
// DescribeClassicalLBTargets用于获取传统型负载均衡绑定的后端服务。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClassicalLBTargetsWithContext(ctx context.Context, request *DescribeClassicalLBTargetsRequest) (response *DescribeClassicalLBTargetsResponse, err error) {
if request == nil {
request = NewDescribeClassicalLBTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClassicalLBTargets require credential")
}
request.SetContext(ctx)
response = NewDescribeClassicalLBTargetsResponse()
err = c.Send(request, response)
return
}
func NewDescribeClsLogSetRequest() (request *DescribeClsLogSetRequest) {
request = &DescribeClsLogSetRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClsLogSet")
return
}
func NewDescribeClsLogSetResponse() (response *DescribeClsLogSetResponse) {
response = &DescribeClsLogSetResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClsLogSet
// 获取用户的CLB专有日志集。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClsLogSet(request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error) {
return c.DescribeClsLogSetWithContext(context.Background(), request)
}
// DescribeClsLogSet
// 获取用户的CLB专有日志集。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeClsLogSetWithContext(ctx context.Context, request *DescribeClsLogSetRequest) (response *DescribeClsLogSetResponse, err error) {
if request == nil {
request = NewDescribeClsLogSetRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClsLogSet require credential")
}
request.SetContext(ctx)
response = NewDescribeClsLogSetResponse()
err = c.Send(request, response)
return
}
func NewDescribeClusterResourcesRequest() (request *DescribeClusterResourcesRequest) {
request = &DescribeClusterResourcesRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeClusterResources")
return
}
func NewDescribeClusterResourcesResponse() (response *DescribeClusterResourcesResponse) {
response = &DescribeClusterResourcesResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeClusterResources
// 查询独占集群中的资源列表,支持按集群ID、VIP、负载均衡ID、是否闲置为过滤条件检索。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeClusterResources(request *DescribeClusterResourcesRequest) (response *DescribeClusterResourcesResponse, err error) {
return c.DescribeClusterResourcesWithContext(context.Background(), request)
}
// DescribeClusterResources
// 查询独占集群中的资源列表,支持按集群ID、VIP、负载均衡ID、是否闲置为过滤条件检索。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeClusterResourcesWithContext(ctx context.Context, request *DescribeClusterResourcesRequest) (response *DescribeClusterResourcesResponse, err error) {
if request == nil {
request = NewDescribeClusterResourcesRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeClusterResources require credential")
}
request.SetContext(ctx)
response = NewDescribeClusterResourcesResponse()
err = c.Send(request, response)
return
}
func NewDescribeCrossTargetsRequest() (request *DescribeCrossTargetsRequest) {
request = &DescribeCrossTargetsRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeCrossTargets")
return
}
func NewDescribeCrossTargetsResponse() (response *DescribeCrossTargetsResponse) {
response = &DescribeCrossTargetsResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCrossTargets
// 查询跨域2.0版本云联网后端子机和网卡信息。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCrossTargets(request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error) {
return c.DescribeCrossTargetsWithContext(context.Background(), request)
}
// DescribeCrossTargets
// 查询跨域2.0版本云联网后端子机和网卡信息。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCrossTargetsWithContext(ctx context.Context, request *DescribeCrossTargetsRequest) (response *DescribeCrossTargetsResponse, err error) {
if request == nil {
request = NewDescribeCrossTargetsRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCrossTargets require credential")
}
request.SetContext(ctx)
response = NewDescribeCrossTargetsResponse()
err = c.Send(request, response)
return
}
func NewDescribeCustomizedConfigAssociateListRequest() (request *DescribeCustomizedConfigAssociateListRequest) {
request = &DescribeCustomizedConfigAssociateListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeCustomizedConfigAssociateList")
return
}
func NewDescribeCustomizedConfigAssociateListResponse() (response *DescribeCustomizedConfigAssociateListResponse) {
response = &DescribeCustomizedConfigAssociateListResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCustomizedConfigAssociateList
// 拉取配置绑定的 server 或 location,如果 domain 存在,结果将根据 domain 过滤。或拉取配置绑定的 loadbalancer。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCustomizedConfigAssociateList(request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error) {
return c.DescribeCustomizedConfigAssociateListWithContext(context.Background(), request)
}
// DescribeCustomizedConfigAssociateList
// 拉取配置绑定的 server 或 location,如果 domain 存在,结果将根据 domain 过滤。或拉取配置绑定的 loadbalancer。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCustomizedConfigAssociateListWithContext(ctx context.Context, request *DescribeCustomizedConfigAssociateListRequest) (response *DescribeCustomizedConfigAssociateListResponse, err error) {
if request == nil {
request = NewDescribeCustomizedConfigAssociateListRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCustomizedConfigAssociateList require credential")
}
request.SetContext(ctx)
response = NewDescribeCustomizedConfigAssociateListResponse()
err = c.Send(request, response)
return
}
func NewDescribeCustomizedConfigListRequest() (request *DescribeCustomizedConfigListRequest) {
request = &DescribeCustomizedConfigListRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeCustomizedConfigList")
return
}
func NewDescribeCustomizedConfigListResponse() (response *DescribeCustomizedConfigListResponse) {
response = &DescribeCustomizedConfigListResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeCustomizedConfigList
// 拉取个性化配置列表,返回用户 AppId 下指定类型的配置。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCustomizedConfigList(request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error) {
return c.DescribeCustomizedConfigListWithContext(context.Background(), request)
}
// DescribeCustomizedConfigList
// 拉取个性化配置列表,返回用户 AppId 下指定类型的配置。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETER_PROTOCOLCHECKFAILED = "InvalidParameter.ProtocolCheckFailed"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETER_REWRITEALREADYEXIST = "InvalidParameter.RewriteAlreadyExist"
// INVALIDPARAMETER_SOMEREWRITENOTFOUND = "InvalidParameter.SomeRewriteNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// RESOURCEINSUFFICIENT = "ResourceInsufficient"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeCustomizedConfigListWithContext(ctx context.Context, request *DescribeCustomizedConfigListRequest) (response *DescribeCustomizedConfigListResponse, err error) {
if request == nil {
request = NewDescribeCustomizedConfigListRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeCustomizedConfigList require credential")
}
request.SetContext(ctx)
response = NewDescribeCustomizedConfigListResponse()
err = c.Send(request, response)
return
}
func NewDescribeExclusiveClustersRequest() (request *DescribeExclusiveClustersRequest) {
request = &DescribeExclusiveClustersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeExclusiveClusters")
return
}
func NewDescribeExclusiveClustersResponse() (response *DescribeExclusiveClustersResponse) {
response = &DescribeExclusiveClustersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeExclusiveClusters
// 查询集群信息列表,支持以集群类型、集群唯一ID、集群名字、集群标签、集群内vip、集群内负载均衡唯一id、集群网络类型、可用区等条件进行检索
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeExclusiveClusters(request *DescribeExclusiveClustersRequest) (response *DescribeExclusiveClustersResponse, err error) {
return c.DescribeExclusiveClustersWithContext(context.Background(), request)
}
// DescribeExclusiveClusters
// 查询集群信息列表,支持以集群类型、集群唯一ID、集群名字、集群标签、集群内vip、集群内负载均衡唯一id、集群网络类型、可用区等条件进行检索
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_DUPLICATE = "InvalidParameterValue.Duplicate"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeExclusiveClustersWithContext(ctx context.Context, request *DescribeExclusiveClustersRequest) (response *DescribeExclusiveClustersResponse, err error) {
if request == nil {
request = NewDescribeExclusiveClustersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeExclusiveClusters require credential")
}
request.SetContext(ctx)
response = NewDescribeExclusiveClustersResponse()
err = c.Send(request, response)
return
}
func NewDescribeIdleLoadBalancersRequest() (request *DescribeIdleLoadBalancersRequest) {
request = &DescribeIdleLoadBalancersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeIdleLoadBalancers")
return
}
func NewDescribeIdleLoadBalancersResponse() (response *DescribeIdleLoadBalancersResponse) {
response = &DescribeIdleLoadBalancersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeIdleLoadBalancers
// 闲置实例是指创建超过7天后付费实例,且没有创建规则或创建规则没有绑定子机的负载均衡实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeIdleLoadBalancers(request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error) {
return c.DescribeIdleLoadBalancersWithContext(context.Background(), request)
}
// DescribeIdleLoadBalancers
// 闲置实例是指创建超过7天后付费实例,且没有创建规则或创建规则没有绑定子机的负载均衡实例。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// FAILEDOPERATION_INVALIDLBSTATUS = "FailedOperation.InvalidLBStatus"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_INVALIDFILTER = "InvalidParameter.InvalidFilter"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETER_LOCATIONNOTFOUND = "InvalidParameter.LocationNotFound"
// INVALIDPARAMETER_PORTCHECKFAILED = "InvalidParameter.PortCheckFailed"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
func (c *Client) DescribeIdleLoadBalancersWithContext(ctx context.Context, request *DescribeIdleLoadBalancersRequest) (response *DescribeIdleLoadBalancersResponse, err error) {
if request == nil {
request = NewDescribeIdleLoadBalancersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeIdleLoadBalancers require credential")
}
request.SetContext(ctx)
response = NewDescribeIdleLoadBalancersResponse()
err = c.Send(request, response)
return
}
func NewDescribeLBListenersRequest() (request *DescribeLBListenersRequest) {
request = &DescribeLBListenersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeLBListeners")
return
}
func NewDescribeLBListenersResponse() (response *DescribeLBListenersResponse) {
response = &DescribeLBListenersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLBListeners
// 查询后端云主机或弹性网卡绑定的负载均衡,支持弹性网卡和cvm查询。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeLBListeners(request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error) {
return c.DescribeLBListenersWithContext(context.Background(), request)
}
// DescribeLBListeners
// 查询后端云主机或弹性网卡绑定的负载均衡,支持弹性网卡和cvm查询。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_LISTENERIDNOTFOUND = "InvalidParameter.ListenerIdNotFound"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// LIMITEXCEEDED = "LimitExceeded"
// MISSINGPARAMETER = "MissingParameter"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeLBListenersWithContext(ctx context.Context, request *DescribeLBListenersRequest) (response *DescribeLBListenersResponse, err error) {
if request == nil {
request = NewDescribeLBListenersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLBListeners require credential")
}
request.SetContext(ctx)
response = NewDescribeLBListenersResponse()
err = c.Send(request, response)
return
}
func NewDescribeListenersRequest() (request *DescribeListenersRequest) {
request = &DescribeListenersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeListeners")
return
}
func NewDescribeListenersResponse() (response *DescribeListenersResponse) {
response = &DescribeListenersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeListeners
// DescribeListeners 接口可根据负载均衡器 ID、监听器的协议或端口作为过滤条件获取监听器列表。如果不指定任何过滤条件,则返回该负载均衡实例下的所有监听器。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeListeners(request *DescribeListenersRequest) (response *DescribeListenersResponse, err error) {
return c.DescribeListenersWithContext(context.Background(), request)
}
// DescribeListeners
// DescribeListeners 接口可根据负载均衡器 ID、监听器的协议或端口作为过滤条件获取监听器列表。如果不指定任何过滤条件,则返回该负载均衡实例下的所有监听器。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_LBIDNOTFOUND = "InvalidParameter.LBIdNotFound"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeListenersWithContext(ctx context.Context, request *DescribeListenersRequest) (response *DescribeListenersResponse, err error) {
if request == nil {
request = NewDescribeListenersRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeListeners require credential")
}
request.SetContext(ctx)
response = NewDescribeListenersResponse()
err = c.Send(request, response)
return
}
func NewDescribeLoadBalancerListByCertIdRequest() (request *DescribeLoadBalancerListByCertIdRequest) {
request = &DescribeLoadBalancerListByCertIdRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerListByCertId")
return
}
func NewDescribeLoadBalancerListByCertIdResponse() (response *DescribeLoadBalancerListByCertIdResponse) {
response = &DescribeLoadBalancerListByCertIdResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLoadBalancerListByCertId
// 根据证书ID查询其在一个地域中所关联到负载均衡实例列表
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeLoadBalancerListByCertId(request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error) {
return c.DescribeLoadBalancerListByCertIdWithContext(context.Background(), request)
}
// DescribeLoadBalancerListByCertId
// 根据证书ID查询其在一个地域中所关联到负载均衡实例列表
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
func (c *Client) DescribeLoadBalancerListByCertIdWithContext(ctx context.Context, request *DescribeLoadBalancerListByCertIdRequest) (response *DescribeLoadBalancerListByCertIdResponse, err error) {
if request == nil {
request = NewDescribeLoadBalancerListByCertIdRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerListByCertId require credential")
}
request.SetContext(ctx)
response = NewDescribeLoadBalancerListByCertIdResponse()
err = c.Send(request, response)
return
}
func NewDescribeLoadBalancerOverviewRequest() (request *DescribeLoadBalancerOverviewRequest) {
request = &DescribeLoadBalancerOverviewRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerOverview")
return
}
func NewDescribeLoadBalancerOverviewResponse() (response *DescribeLoadBalancerOverviewResponse) {
response = &DescribeLoadBalancerOverviewResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLoadBalancerOverview
// 查询运行中、隔离中、即将到期和负载均衡总数。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (c *Client) DescribeLoadBalancerOverview(request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error) {
return c.DescribeLoadBalancerOverviewWithContext(context.Background(), request)
}
// DescribeLoadBalancerOverview
// 查询运行中、隔离中、即将到期和负载均衡总数。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// DRYRUNOPERATION = "DryRunOperation"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (c *Client) DescribeLoadBalancerOverviewWithContext(ctx context.Context, request *DescribeLoadBalancerOverviewRequest) (response *DescribeLoadBalancerOverviewResponse, err error) {
if request == nil {
request = NewDescribeLoadBalancerOverviewRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerOverview require credential")
}
request.SetContext(ctx)
response = NewDescribeLoadBalancerOverviewResponse()
err = c.Send(request, response)
return
}
func NewDescribeLoadBalancerTrafficRequest() (request *DescribeLoadBalancerTrafficRequest) {
request = &DescribeLoadBalancerTrafficRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancerTraffic")
return
}
func NewDescribeLoadBalancerTrafficResponse() (response *DescribeLoadBalancerTrafficResponse) {
response = &DescribeLoadBalancerTrafficResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLoadBalancerTraffic
// 查询账号下的高流量负载均衡,返回前10个负载均衡。如果是子账号登录,只返回子账号有权限的负载均衡。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (c *Client) DescribeLoadBalancerTraffic(request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error) {
return c.DescribeLoadBalancerTrafficWithContext(context.Background(), request)
}
// DescribeLoadBalancerTraffic
// 查询账号下的高流量负载均衡,返回前10个负载均衡。如果是子账号登录,只返回子账号有权限的负载均衡。
//
// 可能返回的错误码:
// AUTHFAILURE = "AuthFailure"
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
func (c *Client) DescribeLoadBalancerTrafficWithContext(ctx context.Context, request *DescribeLoadBalancerTrafficRequest) (response *DescribeLoadBalancerTrafficResponse, err error) {
if request == nil {
request = NewDescribeLoadBalancerTrafficRequest()
}
if c.GetCredential() == nil {
return nil, errors.New("DescribeLoadBalancerTraffic require credential")
}
request.SetContext(ctx)
response = NewDescribeLoadBalancerTrafficResponse()
err = c.Send(request, response)
return
}
func NewDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest) {
request = &DescribeLoadBalancersRequest{
BaseRequest: &tchttp.BaseRequest{},
}
request.Init().WithApiInfo("clb", APIVersion, "DescribeLoadBalancers")
return
}
func NewDescribeLoadBalancersResponse() (response *DescribeLoadBalancersResponse) {
response = &DescribeLoadBalancersResponse{
BaseResponse: &tchttp.BaseResponse{},
}
return
}
// DescribeLoadBalancers
// 查询一个地域的负载均衡实例列表。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error) {
return c.DescribeLoadBalancersWithContext(context.Background(), request)
}
// DescribeLoadBalancers
// 查询一个地域的负载均衡实例列表。
//
// 可能返回的错误码:
// FAILEDOPERATION = "FailedOperation"
// INTERNALERROR = "InternalError"
// INVALIDPARAMETER = "InvalidParameter"
// INVALIDPARAMETER_FORMATERROR = "InvalidParameter.FormatError"
// INVALIDPARAMETER_REGIONNOTFOUND = "InvalidParameter.RegionNotFound"
// INVALIDPARAMETERVALUE = "InvalidParameterValue"
// INVALIDPARAMETERVALUE_INVALIDFILTER = "InvalidParameterValue.InvalidFilter"
// INVALIDPARAMETERVALUE_LENGTH = "InvalidParameterValue.Length"
// INVALIDPARAMETERVALUE_RANGE = "InvalidParameterValue.Range"
// UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// UNSUPPORTEDOPERATION = "UnsupportedOperation"
func (c *Client) De