12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525 |
- {
- "consumes": [
- "application/json"
- ],
- "produces": [
- "application/json"
- ],
- "schemes": [
- "http",
- "https"
- ],
- "swagger": "2.0",
- "info": {
- "title": "etcdserver/etcdserverpb/rpc.proto",
- "version": "version not set"
- },
- "paths": {
- "/v3/auth/authenticate": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "Authenticate processes an authenticate request.",
- "operationId": "Authenticate",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthenticateRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthenticateResponse"
- }
- }
- }
- }
- },
- "/v3/auth/disable": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "AuthDisable disables authentication.",
- "operationId": "AuthDisable",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthDisableRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthDisableResponse"
- }
- }
- }
- }
- },
- "/v3/auth/enable": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "AuthEnable enables authentication.",
- "operationId": "AuthEnable",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthEnableRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthEnableResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/add": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleAdd adds a new role.",
- "operationId": "RoleAdd",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleAddRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleAddResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/delete": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleDelete deletes a specified role.",
- "operationId": "RoleDelete",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleDeleteRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleDeleteResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/get": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleGet gets detailed role information.",
- "operationId": "RoleGet",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleGetRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleGetResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/grant": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleGrantPermission grants a permission of a specified key or range to a specified role.",
- "operationId": "RoleGrantPermission",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleGrantPermissionRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleGrantPermissionResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/list": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleList gets lists of all roles.",
- "operationId": "RoleList",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleListRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleListResponse"
- }
- }
- }
- }
- },
- "/v3/auth/role/revoke": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "RoleRevokePermission revokes a key or range permission of a specified role.",
- "operationId": "RoleRevokePermission",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleRevokePermissionRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthRoleRevokePermissionResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/add": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserAdd adds a new user.",
- "operationId": "UserAdd",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserAddRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserAddResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/changepw": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserChangePassword changes the password of a specified user.",
- "operationId": "UserChangePassword",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserChangePasswordRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserChangePasswordResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/delete": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserDelete deletes a specified user.",
- "operationId": "UserDelete",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserDeleteRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserDeleteResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/get": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserGet gets detailed user information.",
- "operationId": "UserGet",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserGetRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserGetResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/grant": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserGrant grants a role to a specified user.",
- "operationId": "UserGrantRole",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserGrantRoleRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserGrantRoleResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/list": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserList gets a list of all users.",
- "operationId": "UserList",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserListRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserListResponse"
- }
- }
- }
- }
- },
- "/v3/auth/user/revoke": {
- "post": {
- "tags": [
- "Auth"
- ],
- "summary": "UserRevokeRole revokes a role of specified user.",
- "operationId": "UserRevokeRole",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserRevokeRoleRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAuthUserRevokeRoleResponse"
- }
- }
- }
- }
- },
- "/v3/cluster/member/add": {
- "post": {
- "tags": [
- "Cluster"
- ],
- "summary": "MemberAdd adds a member into the cluster.",
- "operationId": "MemberAdd",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberAddRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberAddResponse"
- }
- }
- }
- }
- },
- "/v3/cluster/member/list": {
- "post": {
- "tags": [
- "Cluster"
- ],
- "summary": "MemberList lists all the members in the cluster.",
- "operationId": "MemberList",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberListRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberListResponse"
- }
- }
- }
- }
- },
- "/v3/cluster/member/remove": {
- "post": {
- "tags": [
- "Cluster"
- ],
- "summary": "MemberRemove removes an existing member from the cluster.",
- "operationId": "MemberRemove",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberRemoveRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberRemoveResponse"
- }
- }
- }
- }
- },
- "/v3/cluster/member/update": {
- "post": {
- "tags": [
- "Cluster"
- ],
- "summary": "MemberUpdate updates the member configuration.",
- "operationId": "MemberUpdate",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberUpdateRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbMemberUpdateResponse"
- }
- }
- }
- }
- },
- "/v3/kv/compaction": {
- "post": {
- "tags": [
- "KV"
- ],
- "summary": "Compact compacts the event history in the etcd key-value store. The key-value\nstore should be periodically compacted or the event history will continue to grow\nindefinitely.",
- "operationId": "Compact",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbCompactionRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbCompactionResponse"
- }
- }
- }
- }
- },
- "/v3/kv/deleterange": {
- "post": {
- "tags": [
- "KV"
- ],
- "summary": "DeleteRange deletes the given range from the key-value store.\nA delete request increments the revision of the key-value store\nand generates a delete event in the event history for every deleted key.",
- "operationId": "DeleteRange",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbDeleteRangeRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbDeleteRangeResponse"
- }
- }
- }
- }
- },
- "/v3/kv/lease/leases": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseLeases lists all existing leases.",
- "operationId": "LeaseLeases2",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseLeasesRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseLeasesResponse"
- }
- }
- }
- }
- },
- "/v3/kv/lease/revoke": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.",
- "operationId": "LeaseRevoke2",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseRevokeRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseRevokeResponse"
- }
- }
- }
- }
- },
- "/v3/kv/lease/timetolive": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseTimeToLive retrieves lease information.",
- "operationId": "LeaseTimeToLive2",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseTimeToLiveRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseTimeToLiveResponse"
- }
- }
- }
- }
- },
- "/v3/kv/put": {
- "post": {
- "tags": [
- "KV"
- ],
- "summary": "Put puts the given key into the key-value store.\nA put request increments the revision of the key-value store\nand generates one event in the event history.",
- "operationId": "Put",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbPutRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbPutResponse"
- }
- }
- }
- }
- },
- "/v3/kv/range": {
- "post": {
- "tags": [
- "KV"
- ],
- "summary": "Range gets the keys in the range from the key-value store.",
- "operationId": "Range",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbRangeRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbRangeResponse"
- }
- }
- }
- }
- },
- "/v3/kv/txn": {
- "post": {
- "tags": [
- "KV"
- ],
- "summary": "Txn processes multiple requests in a single transaction.\nA txn request increments the revision of the key-value store\nand generates events with the same revision for every completed request.\nIt is not allowed to modify the same key several times within one txn.",
- "operationId": "Txn",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbTxnRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbTxnResponse"
- }
- }
- }
- }
- },
- "/v3/lease/grant": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseGrant creates a lease which expires if the server does not receive a keepAlive\nwithin a given time to live period. All keys attached to the lease will be expired and\ndeleted if the lease expires. Each expired key generates a delete event in the event history.",
- "operationId": "LeaseGrant",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseGrantRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseGrantResponse"
- }
- }
- }
- }
- },
- "/v3/lease/keepalive": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client\nto the server and streaming keep alive responses from the server to the client.",
- "operationId": "LeaseKeepAlive",
- "parameters": [
- {
- "description": " (streaming inputs)",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseKeepAliveRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.(streaming responses)",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseKeepAliveResponse"
- }
- }
- }
- }
- },
- "/v3/lease/leases": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseLeases lists all existing leases.",
- "operationId": "LeaseLeases",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseLeasesRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseLeasesResponse"
- }
- }
- }
- }
- },
- "/v3/lease/revoke": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseRevoke revokes a lease. All keys attached to the lease will expire and be deleted.",
- "operationId": "LeaseRevoke",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseRevokeRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseRevokeResponse"
- }
- }
- }
- }
- },
- "/v3/lease/timetolive": {
- "post": {
- "tags": [
- "Lease"
- ],
- "summary": "LeaseTimeToLive retrieves lease information.",
- "operationId": "LeaseTimeToLive",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseTimeToLiveRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbLeaseTimeToLiveResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/alarm": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "Alarm activates, deactivates, and queries alarms regarding cluster health.",
- "operationId": "Alarm",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbAlarmRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbAlarmResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/defragment": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "Defragment defragments a member's backend database to recover storage space.",
- "operationId": "Defragment",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbDefragmentRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbDefragmentResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/hash": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "HashKV computes the hash of all MVCC keys up to a given revision.\nIt only iterates \"key\" bucket in backend storage.",
- "operationId": "HashKV",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbHashKVRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbHashKVResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/snapshot": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "Snapshot sends a snapshot of the entire backend from a member over a stream to a client.",
- "operationId": "Snapshot",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbSnapshotRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.(streaming responses)",
- "schema": {
- "$ref": "#/definitions/etcdserverpbSnapshotResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/status": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "Status gets the status of the member.",
- "operationId": "Status",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbStatusRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbStatusResponse"
- }
- }
- }
- }
- },
- "/v3/maintenance/transfer-leadership": {
- "post": {
- "tags": [
- "Maintenance"
- ],
- "summary": "MoveLeader requests current leader node to transfer its leadership to transferee.",
- "operationId": "MoveLeader",
- "parameters": [
- {
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbMoveLeaderRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.",
- "schema": {
- "$ref": "#/definitions/etcdserverpbMoveLeaderResponse"
- }
- }
- }
- }
- },
- "/v3/watch": {
- "post": {
- "tags": [
- "Watch"
- ],
- "summary": "Watch watches for events happening or that have happened. Both input and output\nare streams; the input stream is for creating and canceling watchers and the output\nstream sends events. One watch RPC can watch on multiple key ranges, streaming events\nfor several watches at once. The entire event history can be watched starting from the\nlast compaction revision.",
- "operationId": "Watch",
- "parameters": [
- {
- "description": " (streaming inputs)",
- "name": "body",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/etcdserverpbWatchRequest"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "A successful response.(streaming responses)",
- "schema": {
- "$ref": "#/definitions/etcdserverpbWatchResponse"
- }
- }
- }
- }
- }
- },
- "definitions": {
- "AlarmRequestAlarmAction": {
- "type": "string",
- "default": "GET",
- "enum": [
- "GET",
- "ACTIVATE",
- "DEACTIVATE"
- ]
- },
- "CompareCompareResult": {
- "type": "string",
- "default": "EQUAL",
- "enum": [
- "EQUAL",
- "GREATER",
- "LESS",
- "NOT_EQUAL"
- ]
- },
- "CompareCompareTarget": {
- "type": "string",
- "default": "VERSION",
- "enum": [
- "VERSION",
- "CREATE",
- "MOD",
- "VALUE",
- "LEASE"
- ]
- },
- "EventEventType": {
- "type": "string",
- "default": "PUT",
- "enum": [
- "PUT",
- "DELETE"
- ]
- },
- "RangeRequestSortOrder": {
- "type": "string",
- "default": "NONE",
- "enum": [
- "NONE",
- "ASCEND",
- "DESCEND"
- ]
- },
- "RangeRequestSortTarget": {
- "type": "string",
- "default": "KEY",
- "enum": [
- "KEY",
- "VERSION",
- "CREATE",
- "MOD",
- "VALUE"
- ]
- },
- "WatchCreateRequestFilterType": {
- "description": " - NOPUT: filter out put event.\n - NODELETE: filter out delete event.",
- "type": "string",
- "default": "NOPUT",
- "enum": [
- "NOPUT",
- "NODELETE"
- ]
- },
- "authpbPermission": {
- "type": "object",
- "title": "Permission is a single entity",
- "properties": {
- "key": {
- "type": "string",
- "format": "byte"
- },
- "permType": {
- "$ref": "#/definitions/authpbPermissionType"
- },
- "range_end": {
- "type": "string",
- "format": "byte"
- }
- }
- },
- "authpbPermissionType": {
- "type": "string",
- "default": "READ",
- "enum": [
- "READ",
- "WRITE",
- "READWRITE"
- ]
- },
- "etcdserverpbAlarmMember": {
- "type": "object",
- "properties": {
- "alarm": {
- "description": "alarm is the type of alarm which has been raised.",
- "$ref": "#/definitions/etcdserverpbAlarmType"
- },
- "memberID": {
- "description": "memberID is the ID of the member associated with the raised alarm.",
- "type": "string",
- "format": "uint64"
- }
- }
- },
- "etcdserverpbAlarmRequest": {
- "type": "object",
- "properties": {
- "action": {
- "description": "action is the kind of alarm request to issue. The action\nmay GET alarm statuses, ACTIVATE an alarm, or DEACTIVATE a\nraised alarm.",
- "$ref": "#/definitions/AlarmRequestAlarmAction"
- },
- "alarm": {
- "description": "alarm is the type of alarm to consider for this request.",
- "$ref": "#/definitions/etcdserverpbAlarmType"
- },
- "memberID": {
- "description": "memberID is the ID of the member associated with the alarm. If memberID is 0, the\nalarm request covers all members.",
- "type": "string",
- "format": "uint64"
- }
- }
- },
- "etcdserverpbAlarmResponse": {
- "type": "object",
- "properties": {
- "alarms": {
- "description": "alarms is a list of alarms associated with the alarm request.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbAlarmMember"
- }
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAlarmType": {
- "type": "string",
- "default": "NONE",
- "enum": [
- "NONE",
- "NOSPACE",
- "CORRUPT"
- ]
- },
- "etcdserverpbAuthDisableRequest": {
- "type": "object"
- },
- "etcdserverpbAuthDisableResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthEnableRequest": {
- "type": "object"
- },
- "etcdserverpbAuthEnableResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthRoleAddRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "name is the name of the role to add to the authentication system.",
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthRoleAddResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthRoleDeleteRequest": {
- "type": "object",
- "properties": {
- "role": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthRoleDeleteResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthRoleGetRequest": {
- "type": "object",
- "properties": {
- "role": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthRoleGetResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "perm": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/authpbPermission"
- }
- }
- }
- },
- "etcdserverpbAuthRoleGrantPermissionRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "name is the name of the role which will be granted the permission.",
- "type": "string"
- },
- "perm": {
- "description": "perm is the permission to grant to the role.",
- "$ref": "#/definitions/authpbPermission"
- }
- }
- },
- "etcdserverpbAuthRoleGrantPermissionResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthRoleListRequest": {
- "type": "object"
- },
- "etcdserverpbAuthRoleListResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbAuthRoleRevokePermissionRequest": {
- "type": "object",
- "properties": {
- "key": {
- "type": "string",
- "format": "byte"
- },
- "range_end": {
- "type": "string",
- "format": "byte"
- },
- "role": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthRoleRevokePermissionResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthUserAddRequest": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserAddResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthUserChangePasswordRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "name is the name of the user whose password is being changed.",
- "type": "string"
- },
- "password": {
- "description": "password is the new password for the user.",
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserChangePasswordResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthUserDeleteRequest": {
- "type": "object",
- "properties": {
- "name": {
- "description": "name is the name of the user to delete.",
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserDeleteResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthUserGetRequest": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserGetResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "roles": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbAuthUserGrantRoleRequest": {
- "type": "object",
- "properties": {
- "role": {
- "description": "role is the name of the role to grant to the user.",
- "type": "string"
- },
- "user": {
- "description": "user is the name of the user which should be granted a given role.",
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserGrantRoleResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthUserListRequest": {
- "type": "object"
- },
- "etcdserverpbAuthUserListResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "users": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbAuthUserRevokeRoleRequest": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "role": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthUserRevokeRoleResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbAuthenticateRequest": {
- "type": "object",
- "properties": {
- "name": {
- "type": "string"
- },
- "password": {
- "type": "string"
- }
- }
- },
- "etcdserverpbAuthenticateResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "token": {
- "type": "string",
- "title": "token is an authorized token that can be used in succeeding RPCs"
- }
- }
- },
- "etcdserverpbCompactionRequest": {
- "description": "CompactionRequest compacts the key-value store up to a given revision. All superseded keys\nwith a revision less than the compaction revision will be removed.",
- "type": "object",
- "properties": {
- "physical": {
- "description": "physical is set so the RPC will wait until the compaction is physically\napplied to the local database such that compacted entries are totally\nremoved from the backend database.",
- "type": "boolean",
- "format": "boolean"
- },
- "revision": {
- "description": "revision is the key-value store revision for the compaction operation.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbCompactionResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbCompare": {
- "type": "object",
- "properties": {
- "create_revision": {
- "type": "string",
- "format": "int64",
- "title": "create_revision is the creation revision of the given key"
- },
- "key": {
- "description": "key is the subject key for the comparison operation.",
- "type": "string",
- "format": "byte"
- },
- "lease": {
- "description": "lease is the lease id of the given key.",
- "type": "string",
- "format": "int64"
- },
- "mod_revision": {
- "description": "mod_revision is the last modified revision of the given key.",
- "type": "string",
- "format": "int64"
- },
- "range_end": {
- "description": "range_end compares the given target to all keys in the range [key, range_end).\nSee RangeRequest for more details on key ranges.",
- "type": "string",
- "format": "byte"
- },
- "result": {
- "description": "result is logical comparison operation for this comparison.",
- "$ref": "#/definitions/CompareCompareResult"
- },
- "target": {
- "description": "target is the key-value field to inspect for the comparison.",
- "$ref": "#/definitions/CompareCompareTarget"
- },
- "value": {
- "description": "value is the value of the given key, in bytes.",
- "type": "string",
- "format": "byte"
- },
- "version": {
- "type": "string",
- "format": "int64",
- "title": "version is the version of the given key"
- }
- }
- },
- "etcdserverpbDefragmentRequest": {
- "type": "object"
- },
- "etcdserverpbDefragmentResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbDeleteRangeRequest": {
- "type": "object",
- "properties": {
- "key": {
- "description": "key is the first key to delete in the range.",
- "type": "string",
- "format": "byte"
- },
- "prev_kv": {
- "description": "If prev_kv is set, etcd gets the previous key-value pairs before deleting it.\nThe previous key-value pairs will be returned in the delete response.",
- "type": "boolean",
- "format": "boolean"
- },
- "range_end": {
- "description": "range_end is the key following the last key to delete for the range [key, range_end).\nIf range_end is not given, the range is defined to contain only the key argument.\nIf range_end is one bit larger than the given key, then the range is all the keys\nwith the prefix (the given key).\nIf range_end is '\\0', the range is all keys greater than or equal to the key argument.",
- "type": "string",
- "format": "byte"
- }
- }
- },
- "etcdserverpbDeleteRangeResponse": {
- "type": "object",
- "properties": {
- "deleted": {
- "description": "deleted is the number of keys deleted by the delete range request.",
- "type": "string",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "prev_kvs": {
- "description": "if prev_kv is set in the request, the previous key-value pairs will be returned.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/mvccpbKeyValue"
- }
- }
- }
- },
- "etcdserverpbHashKVRequest": {
- "type": "object",
- "properties": {
- "revision": {
- "description": "revision is the key-value store revision for the hash operation.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbHashKVResponse": {
- "type": "object",
- "properties": {
- "compact_revision": {
- "description": "compact_revision is the compacted revision of key-value store when hash begins.",
- "type": "string",
- "format": "int64"
- },
- "hash": {
- "description": "hash is the hash value computed from the responding member's MVCC keys up to a given revision.",
- "type": "integer",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbHashRequest": {
- "type": "object"
- },
- "etcdserverpbHashResponse": {
- "type": "object",
- "properties": {
- "hash": {
- "description": "hash is the hash value computed from the responding member's KV's backend.",
- "type": "integer",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbLeaseGrantRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.",
- "type": "string",
- "format": "int64"
- },
- "TTL": {
- "description": "TTL is the advisory time-to-live in seconds. Expired lease will return -1.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbLeaseGrantResponse": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID for the granted lease.",
- "type": "string",
- "format": "int64"
- },
- "TTL": {
- "description": "TTL is the server chosen lease time-to-live in seconds.",
- "type": "string",
- "format": "int64"
- },
- "error": {
- "type": "string"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbLeaseKeepAliveRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID for the lease to keep alive.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbLeaseKeepAliveResponse": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID from the keep alive request.",
- "type": "string",
- "format": "int64"
- },
- "TTL": {
- "description": "TTL is the new time-to-live for the lease.",
- "type": "string",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbLeaseLeasesRequest": {
- "type": "object"
- },
- "etcdserverpbLeaseLeasesResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "leases": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbLeaseStatus"
- }
- }
- }
- },
- "etcdserverpbLeaseRevokeRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID to revoke. When the ID is revoked, all associated keys will be deleted.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbLeaseRevokeResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbLeaseStatus": {
- "type": "object",
- "properties": {
- "ID": {
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbLeaseTimeToLiveRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID for the lease.",
- "type": "string",
- "format": "int64"
- },
- "keys": {
- "description": "keys is true to query all the keys attached to this lease.",
- "type": "boolean",
- "format": "boolean"
- }
- }
- },
- "etcdserverpbLeaseTimeToLiveResponse": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the lease ID from the keep alive request.",
- "type": "string",
- "format": "int64"
- },
- "TTL": {
- "description": "TTL is the remaining TTL in seconds for the lease; the lease will expire in under TTL+1 seconds.",
- "type": "string",
- "format": "int64"
- },
- "grantedTTL": {
- "description": "GrantedTTL is the initial granted time in seconds upon lease creation/renewal.",
- "type": "string",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "keys": {
- "description": "Keys is the list of keys attached to this lease.",
- "type": "array",
- "items": {
- "type": "string",
- "format": "byte"
- }
- }
- }
- },
- "etcdserverpbMember": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the member ID for this member.",
- "type": "string",
- "format": "uint64"
- },
- "clientURLs": {
- "description": "clientURLs is the list of URLs the member exposes to clients for communication. If the member is not started, clientURLs will be empty.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "name": {
- "description": "name is the human-readable name of the member. If the member is not started, the name will be an empty string.",
- "type": "string"
- },
- "peerURLs": {
- "description": "peerURLs is the list of URLs the member exposes to the cluster for communication.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbMemberAddRequest": {
- "type": "object",
- "properties": {
- "peerURLs": {
- "description": "peerURLs is the list of URLs the added member will use to communicate with the cluster.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbMemberAddResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "member": {
- "description": "member is the member information for the added member.",
- "$ref": "#/definitions/etcdserverpbMember"
- },
- "members": {
- "description": "members is a list of all members after adding the new member.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbMember"
- }
- }
- }
- },
- "etcdserverpbMemberListRequest": {
- "type": "object"
- },
- "etcdserverpbMemberListResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "members": {
- "description": "members is a list of all members associated with the cluster.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbMember"
- }
- }
- }
- },
- "etcdserverpbMemberRemoveRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the member ID of the member to remove.",
- "type": "string",
- "format": "uint64"
- }
- }
- },
- "etcdserverpbMemberRemoveResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "members": {
- "description": "members is a list of all members after removing the member.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbMember"
- }
- }
- }
- },
- "etcdserverpbMemberUpdateRequest": {
- "type": "object",
- "properties": {
- "ID": {
- "description": "ID is the member ID of the member to update.",
- "type": "string",
- "format": "uint64"
- },
- "peerURLs": {
- "description": "peerURLs is the new list of URLs the member will use to communicate with the cluster.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- }
- },
- "etcdserverpbMemberUpdateResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "members": {
- "description": "members is a list of all members after updating the member.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbMember"
- }
- }
- }
- },
- "etcdserverpbMoveLeaderRequest": {
- "type": "object",
- "properties": {
- "targetID": {
- "description": "targetID is the node ID for the new leader.",
- "type": "string",
- "format": "uint64"
- }
- }
- },
- "etcdserverpbMoveLeaderResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- }
- }
- },
- "etcdserverpbPutRequest": {
- "type": "object",
- "properties": {
- "ignore_lease": {
- "description": "If ignore_lease is set, etcd updates the key using its current lease.\nReturns an error if the key does not exist.",
- "type": "boolean",
- "format": "boolean"
- },
- "ignore_value": {
- "description": "If ignore_value is set, etcd updates the key using its current value.\nReturns an error if the key does not exist.",
- "type": "boolean",
- "format": "boolean"
- },
- "key": {
- "description": "key is the key, in bytes, to put into the key-value store.",
- "type": "string",
- "format": "byte"
- },
- "lease": {
- "description": "lease is the lease ID to associate with the key in the key-value store. A lease\nvalue of 0 indicates no lease.",
- "type": "string",
- "format": "int64"
- },
- "prev_kv": {
- "description": "If prev_kv is set, etcd gets the previous key-value pair before changing it.\nThe previous key-value pair will be returned in the put response.",
- "type": "boolean",
- "format": "boolean"
- },
- "value": {
- "description": "value is the value, in bytes, to associate with the key in the key-value store.",
- "type": "string",
- "format": "byte"
- }
- }
- },
- "etcdserverpbPutResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "prev_kv": {
- "description": "if prev_kv is set in the request, the previous key-value pair will be returned.",
- "$ref": "#/definitions/mvccpbKeyValue"
- }
- }
- },
- "etcdserverpbRangeRequest": {
- "type": "object",
- "properties": {
- "count_only": {
- "description": "count_only when set returns only the count of the keys in the range.",
- "type": "boolean",
- "format": "boolean"
- },
- "key": {
- "description": "key is the first key for the range. If range_end is not given, the request only looks up key.",
- "type": "string",
- "format": "byte"
- },
- "keys_only": {
- "description": "keys_only when set returns only the keys and not the values.",
- "type": "boolean",
- "format": "boolean"
- },
- "limit": {
- "description": "limit is a limit on the number of keys returned for the request. When limit is set to 0,\nit is treated as no limit.",
- "type": "string",
- "format": "int64"
- },
- "max_create_revision": {
- "description": "max_create_revision is the upper bound for returned key create revisions; all keys with\ngreater create revisions will be filtered away.",
- "type": "string",
- "format": "int64"
- },
- "max_mod_revision": {
- "description": "max_mod_revision is the upper bound for returned key mod revisions; all keys with\ngreater mod revisions will be filtered away.",
- "type": "string",
- "format": "int64"
- },
- "min_create_revision": {
- "description": "min_create_revision is the lower bound for returned key create revisions; all keys with\nlesser create revisions will be filtered away.",
- "type": "string",
- "format": "int64"
- },
- "min_mod_revision": {
- "description": "min_mod_revision is the lower bound for returned key mod revisions; all keys with\nlesser mod revisions will be filtered away.",
- "type": "string",
- "format": "int64"
- },
- "range_end": {
- "description": "range_end is the upper bound on the requested range [key, range_end).\nIf range_end is '\\0', the range is all keys \u003e= key.\nIf range_end is key plus one (e.g., \"aa\"+1 == \"ab\", \"a\\xff\"+1 == \"b\"),\nthen the range request gets all keys prefixed with key.\nIf both key and range_end are '\\0', then the range request returns all keys.",
- "type": "string",
- "format": "byte"
- },
- "revision": {
- "description": "revision is the point-in-time of the key-value store to use for the range.\nIf revision is less or equal to zero, the range is over the newest key-value store.\nIf the revision has been compacted, ErrCompacted is returned as a response.",
- "type": "string",
- "format": "int64"
- },
- "serializable": {
- "description": "serializable sets the range request to use serializable member-local reads.\nRange requests are linearizable by default; linearizable requests have higher\nlatency and lower throughput than serializable requests but reflect the current\nconsensus of the cluster. For better performance, in exchange for possible stale reads,\na serializable range request is served locally without needing to reach consensus\nwith other nodes in the cluster.",
- "type": "boolean",
- "format": "boolean"
- },
- "sort_order": {
- "description": "sort_order is the order for returned sorted results.",
- "$ref": "#/definitions/RangeRequestSortOrder"
- },
- "sort_target": {
- "description": "sort_target is the key-value field to use for sorting.",
- "$ref": "#/definitions/RangeRequestSortTarget"
- }
- }
- },
- "etcdserverpbRangeResponse": {
- "type": "object",
- "properties": {
- "count": {
- "description": "count is set to the number of keys within the range when requested.",
- "type": "string",
- "format": "int64"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "kvs": {
- "description": "kvs is the list of key-value pairs matched by the range request.\nkvs is empty when count is requested.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/mvccpbKeyValue"
- }
- },
- "more": {
- "description": "more indicates if there are more keys to return in the requested range.",
- "type": "boolean",
- "format": "boolean"
- }
- }
- },
- "etcdserverpbRequestOp": {
- "type": "object",
- "properties": {
- "request_delete_range": {
- "$ref": "#/definitions/etcdserverpbDeleteRangeRequest"
- },
- "request_put": {
- "$ref": "#/definitions/etcdserverpbPutRequest"
- },
- "request_range": {
- "$ref": "#/definitions/etcdserverpbRangeRequest"
- },
- "request_txn": {
- "$ref": "#/definitions/etcdserverpbTxnRequest"
- }
- }
- },
- "etcdserverpbResponseHeader": {
- "type": "object",
- "properties": {
- "cluster_id": {
- "description": "cluster_id is the ID of the cluster which sent the response.",
- "type": "string",
- "format": "uint64"
- },
- "member_id": {
- "description": "member_id is the ID of the member which sent the response.",
- "type": "string",
- "format": "uint64"
- },
- "raft_term": {
- "description": "raft_term is the raft term when the request was applied.",
- "type": "string",
- "format": "uint64"
- },
- "revision": {
- "description": "revision is the key-value store revision when the request was applied.\nFor watch progress responses, the header.revision indicates progress. All future events\nrecieved in this stream are guaranteed to have a higher revision number than the\nheader.revision number.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbResponseOp": {
- "type": "object",
- "properties": {
- "response_delete_range": {
- "$ref": "#/definitions/etcdserverpbDeleteRangeResponse"
- },
- "response_put": {
- "$ref": "#/definitions/etcdserverpbPutResponse"
- },
- "response_range": {
- "$ref": "#/definitions/etcdserverpbRangeResponse"
- },
- "response_txn": {
- "$ref": "#/definitions/etcdserverpbTxnResponse"
- }
- }
- },
- "etcdserverpbSnapshotRequest": {
- "type": "object"
- },
- "etcdserverpbSnapshotResponse": {
- "type": "object",
- "properties": {
- "blob": {
- "description": "blob contains the next chunk of the snapshot in the snapshot stream.",
- "type": "string",
- "format": "byte"
- },
- "header": {
- "description": "header has the current key-value store information. The first header in the snapshot\nstream indicates the point in time of the snapshot.",
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "remaining_bytes": {
- "type": "string",
- "format": "uint64",
- "title": "remaining_bytes is the number of blob bytes to be sent after this message"
- }
- }
- },
- "etcdserverpbStatusRequest": {
- "type": "object"
- },
- "etcdserverpbStatusResponse": {
- "type": "object",
- "properties": {
- "dbSize": {
- "description": "dbSize is the size of the backend database physically allocated, in bytes, of the responding member.",
- "type": "string",
- "format": "int64"
- },
- "dbSizeInUse": {
- "description": "dbSizeInUse is the size of the backend database logically in use, in bytes, of the responding member.",
- "type": "string",
- "format": "int64"
- },
- "errors": {
- "description": "errors contains alarm/health information and status.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "leader": {
- "description": "leader is the member ID which the responding member believes is the current leader.",
- "type": "string",
- "format": "uint64"
- },
- "raftAppliedIndex": {
- "description": "raftAppliedIndex is the current raft applied index of the responding member.",
- "type": "string",
- "format": "uint64"
- },
- "raftIndex": {
- "description": "raftIndex is the current raft committed index of the responding member.",
- "type": "string",
- "format": "uint64"
- },
- "raftTerm": {
- "description": "raftTerm is the current raft term of the responding member.",
- "type": "string",
- "format": "uint64"
- },
- "version": {
- "description": "version is the cluster protocol version used by the responding member.",
- "type": "string"
- }
- }
- },
- "etcdserverpbTxnRequest": {
- "description": "From google paxosdb paper:\nOur implementation hinges around a powerful primitive which we call MultiOp. All other database\noperations except for iteration are implemented as a single call to MultiOp. A MultiOp is applied atomically\nand consists of three components:\n1. A list of tests called guard. Each test in guard checks a single entry in the database. It may check\nfor the absence or presence of a value, or compare with a given value. Two different tests in the guard\nmay apply to the same or different entries in the database. All tests in the guard are applied and\nMultiOp returns the results. If all tests are true, MultiOp executes t op (see item 2 below), otherwise\nit executes f op (see item 3 below).\n2. A list of database operations called t op. Each operation in the list is either an insert, delete, or\nlookup operation, and applies to a single database entry. Two different operations in the list may apply\nto the same or different entries in the database. These operations are executed\nif guard evaluates to\ntrue.\n3. A list of database operations called f op. Like t op, but executed if guard evaluates to false.",
- "type": "object",
- "properties": {
- "compare": {
- "description": "compare is a list of predicates representing a conjunction of terms.\nIf the comparisons succeed, then the success requests will be processed in order,\nand the response will contain their respective responses in order.\nIf the comparisons fail, then the failure requests will be processed in order,\nand the response will contain their respective responses in order.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbCompare"
- }
- },
- "failure": {
- "description": "failure is a list of requests which will be applied when compare evaluates to false.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbRequestOp"
- }
- },
- "success": {
- "description": "success is a list of requests which will be applied when compare evaluates to true.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbRequestOp"
- }
- }
- }
- },
- "etcdserverpbTxnResponse": {
- "type": "object",
- "properties": {
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "responses": {
- "description": "responses is a list of responses corresponding to the results from applying\nsuccess if succeeded is true or failure if succeeded is false.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/etcdserverpbResponseOp"
- }
- },
- "succeeded": {
- "description": "succeeded is set to true if the compare evaluated to true or false otherwise.",
- "type": "boolean",
- "format": "boolean"
- }
- }
- },
- "etcdserverpbWatchCancelRequest": {
- "type": "object",
- "properties": {
- "watch_id": {
- "description": "watch_id is the watcher id to cancel so that no more events are transmitted.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbWatchCreateRequest": {
- "type": "object",
- "properties": {
- "filters": {
- "description": "filters filter the events at server side before it sends back to the watcher.",
- "type": "array",
- "items": {
- "$ref": "#/definitions/WatchCreateRequestFilterType"
- }
- },
- "fragment": {
- "description": "fragment enables splitting large revisions into multiple watch responses.",
- "type": "boolean",
- "format": "boolean"
- },
- "key": {
- "description": "key is the key to register for watching.",
- "type": "string",
- "format": "byte"
- },
- "prev_kv": {
- "description": "If prev_kv is set, created watcher gets the previous KV before the event happens.\nIf the previous KV is already compacted, nothing will be returned.",
- "type": "boolean",
- "format": "boolean"
- },
- "progress_notify": {
- "description": "progress_notify is set so that the etcd server will periodically send a WatchResponse with\nno events to the new watcher if there are no recent events. It is useful when clients\nwish to recover a disconnected watcher starting from a recent known revision.\nThe etcd server may decide how often it will send notifications based on current load.",
- "type": "boolean",
- "format": "boolean"
- },
- "range_end": {
- "description": "range_end is the end of the range [key, range_end) to watch. If range_end is not given,\nonly the key argument is watched. If range_end is equal to '\\0', all keys greater than\nor equal to the key argument are watched.\nIf the range_end is one bit larger than the given key,\nthen all keys with the prefix (the given key) will be watched.",
- "type": "string",
- "format": "byte"
- },
- "start_revision": {
- "description": "start_revision is an optional revision to watch from (inclusive). No start_revision is \"now\".",
- "type": "string",
- "format": "int64"
- },
- "watch_id": {
- "description": "If watch_id is provided and non-zero, it will be assigned to this watcher.\nSince creating a watcher in etcd is not a synchronous operation,\nthis can be used ensure that ordering is correct when creating multiple\nwatchers on the same stream. Creating a watcher with an ID already in\nuse on the stream will cause an error to be returned.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "etcdserverpbWatchProgressRequest": {
- "description": "Requests the a watch stream progress status be sent in the watch response stream as soon as\npossible.",
- "type": "object"
- },
- "etcdserverpbWatchRequest": {
- "type": "object",
- "properties": {
- "cancel_request": {
- "$ref": "#/definitions/etcdserverpbWatchCancelRequest"
- },
- "create_request": {
- "$ref": "#/definitions/etcdserverpbWatchCreateRequest"
- },
- "progress_request": {
- "$ref": "#/definitions/etcdserverpbWatchProgressRequest"
- }
- }
- },
- "etcdserverpbWatchResponse": {
- "type": "object",
- "properties": {
- "cancel_reason": {
- "description": "cancel_reason indicates the reason for canceling the watcher.",
- "type": "string"
- },
- "canceled": {
- "description": "canceled is set to true if the response is for a cancel watch request.\nNo further events will be sent to the canceled watcher.",
- "type": "boolean",
- "format": "boolean"
- },
- "compact_revision": {
- "description": "compact_revision is set to the minimum index if a watcher tries to watch\nat a compacted index.\n\nThis happens when creating a watcher at a compacted revision or the watcher cannot\ncatch up with the progress of the key-value store.\n\nThe client should treat the watcher as canceled and should not try to create any\nwatcher with the same start_revision again.",
- "type": "string",
- "format": "int64"
- },
- "created": {
- "description": "created is set to true if the response is for a create watch request.\nThe client should record the watch_id and expect to receive events for\nthe created watcher from the same stream.\nAll events sent to the created watcher will attach with the same watch_id.",
- "type": "boolean",
- "format": "boolean"
- },
- "events": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/mvccpbEvent"
- }
- },
- "fragment": {
- "description": "framgment is true if large watch response was split over multiple responses.",
- "type": "boolean",
- "format": "boolean"
- },
- "header": {
- "$ref": "#/definitions/etcdserverpbResponseHeader"
- },
- "watch_id": {
- "description": "watch_id is the ID of the watcher that corresponds to the response.",
- "type": "string",
- "format": "int64"
- }
- }
- },
- "mvccpbEvent": {
- "type": "object",
- "properties": {
- "kv": {
- "description": "kv holds the KeyValue for the event.\nA PUT event contains current kv pair.\nA PUT event with kv.Version=1 indicates the creation of a key.\nA DELETE/EXPIRE event contains the deleted key with\nits modification revision set to the revision of deletion.",
- "$ref": "#/definitions/mvccpbKeyValue"
- },
- "prev_kv": {
- "description": "prev_kv holds the key-value pair before the event happens.",
- "$ref": "#/definitions/mvccpbKeyValue"
- },
- "type": {
- "description": "type is the kind of event. If type is a PUT, it indicates\nnew data has been stored to the key. If type is a DELETE,\nit indicates the key was deleted.",
- "$ref": "#/definitions/EventEventType"
- }
- }
- },
- "mvccpbKeyValue": {
- "type": "object",
- "properties": {
- "create_revision": {
- "description": "create_revision is the revision of last creation on this key.",
- "type": "string",
- "format": "int64"
- },
- "key": {
- "description": "key is the key in bytes. An empty key is not allowed.",
- "type": "string",
- "format": "byte"
- },
- "lease": {
- "description": "lease is the ID of the lease that attached to key.\nWhen the attached lease expires, the key will be deleted.\nIf lease is 0, then no lease is attached to the key.",
- "type": "string",
- "format": "int64"
- },
- "mod_revision": {
- "description": "mod_revision is the revision of last modification on this key.",
- "type": "string",
- "format": "int64"
- },
- "value": {
- "description": "value is the value held by the key, in bytes.",
- "type": "string",
- "format": "byte"
- },
- "version": {
- "description": "version is the version of the key. A deletion resets\nthe version to zero and any modification of the key\nincreases its version.",
- "type": "string",
- "format": "int64"
- }
- }
- }
- },
- "securityDefinitions": {
- "ApiKey": {
- "type": "apiKey",
- "name": "Authorization",
- "in": "header"
- }
- },
- "security": [
- {
- "ApiKey": []
- }
- ]
- }
|