"use strict";(self.webpackChunkelementary_public_docs=self.webpackChunkelementary_public_docs||[]).push([[29126],{15680:(e,t,a)=>{a.d(t,{xA:()=>o,yg:()=>m});var n=a(96540);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function l(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var p=n.createContext({}),d=function(e){var t=n.useContext(p),a=t;return e&&(a="function"==typeof e?e(t):i(i({},t),e)),a},o=function(e){var t=d(e.components);return n.createElement(p.Provider,{value:t},e.children)},u="mdxType",s={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,l=e.originalType,p=e.parentName,o=g(e,["components","mdxType","originalType","parentName"]),u=d(a),y=r,m=u["".concat(p,".").concat(y)]||u[y]||s[y]||l;return a?n.createElement(m,i(i({ref:t},o),{},{components:a})):n.createElement(m,i({ref:t},o))}));function m(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var l=a.length,i=new Array(l);i[0]=y;var g={};for(var p in t)hasOwnProperty.call(t,p)&&(g[p]=t[p]);g.originalType=e,g[u]="string"==typeof e?e:r,i[1]=g;for(var d=2;d{a.r(t),a.d(t,{assets:()=>d,contentTitle:()=>g,default:()=>c,frontMatter:()=>i,metadata:()=>p,toc:()=>o});var n=a(58168),r=(a(96540),a(15680)),l=a(96763);const i={sidebar_position:6},g="\u66f4\u65b0\u5757\u5b58\u50a8\u4e91\u76d8\u540d\u79f0",p={unversionedId:"cloud-foundation/storage/abs/openapi/update-disk",id:"cloud-foundation/storage/abs/openapi/update-disk",title:"\u66f4\u65b0\u5757\u5b58\u50a8\u4e91\u76d8\u540d\u79f0",description:"\u63a5\u53e3\u63cf\u8ff0",source:"@site/docs/cloud-foundation/storage/abs/openapi/update-disk.md",sourceDirName:"cloud-foundation/storage/abs/openapi",slug:"/cloud-foundation/storage/abs/openapi/update-disk",permalink:"/help/docs/cloud-foundation/storage/abs/openapi/update-disk",draft:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/cloud-foundation/storage/abs/openapi/update-disk.md",tags:[],version:"current",sidebarPosition:6,frontMatter:{sidebar_position:6},sidebar:"tutorialSidebar",previous:{title:"\u83b7\u53d6\u5757\u5b58\u50a8\u4e91\u76d8\u8d44\u6e90",permalink:"/help/docs/cloud-foundation/storage/abs/openapi/get-disk"},next:{title:"\u5220\u9664\u5757\u5b58\u50a8\u4e91\u76d8\u8d44\u6e90",permalink:"/help/docs/cloud-foundation/storage/abs/openapi/delete-disk"}},d={},o=[{value:"\u63a5\u53e3\u63cf\u8ff0",id:"\u63a5\u53e3\u63cf\u8ff0",level:2},{value:"\u8bf7\u6c42\u5934\uff08Request Header\uff09",id:"\u8bf7\u6c42\u5934request-header",level:2},{value:"\u8bf7\u6c42\u53c2\u6570\uff08Request Parameters\uff09",id:"\u8bf7\u6c42\u53c2\u6570request-parameters",level:2},{value:"\u8bf7\u6c42\u4f53\uff08Request Body\uff09",id:"\u8bf7\u6c42\u4f53request-body",level:2},{value:"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09",id:"\u8bf7\u6c42\u793a\u4f8brequest-example",level:2},{value:"\u54cd\u5e94\u53c2\u6570,\u8fd4\u56dedisk\u4fe1\u606f\uff08Response Parameters\uff09",id:"\u54cd\u5e94\u53c2\u6570\u8fd4\u56dedisk\u4fe1\u606fresponse-parameters",level:2},{value:"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09",id:"\u54cd\u5e94\u793a\u4f8bresponse-example",level:2}],u=(s="ApiLinkRegion",function(e){return l.warn("Component "+s+" was not imported, exported, or provided by MDXProvider as global scope"),(0,r.yg)("div",e)});var s;const y={toc:o},m="wrapper";function c(e){let{components:t,...a}=e;return(0,r.yg)(m,(0,n.A)({},y,a,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("h1",{id:"\u66f4\u65b0\u5757\u5b58\u50a8\u4e91\u76d8\u540d\u79f0"},"\u66f4\u65b0\u5757\u5b58\u50a8\u4e91\u76d8\u540d\u79f0"),(0,r.yg)("h2",{id:"\u63a5\u53e3\u63cf\u8ff0"},"\u63a5\u53e3\u63cf\u8ff0"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"PATCH /storage/abs/v1/subscriptions/{subscription_name}/resourceGroups/{resource_group_name}/zones/{zone}/disks/{disk_name}")),(0,r.yg)(u,{apiType:"abs",mdxType:"ApiLinkRegion"},(0,r.yg)("a",{href:"/docs/API/abs/abs-storages-update-disk",className:"but_to_APi"},"\u8c03\u8bd5\u63a5\u53e3")),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u5934request-header"},"\u8bf7\u6c42\u5934\uff08Request Header\uff09"),(0,r.yg)("p",null,"\u53c2\u8003",(0,r.yg)("a",{parentName:"p",href:"/help/docs/cloud-foundation/storage/abs/openapi/authentication"},"\u8ba4\u8bc1\uff08authentication\uff09")),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u53c2\u6570request-parameters"},"\u8bf7\u6c42\u53c2\u6570\uff08Request Parameters\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u5fc5\u987b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u4f4d\u7f6e"),(0,r.yg)("th",{parentName:"tr",align:null},"\u9ed8\u8ba4\u503c"),(0,r.yg)("th",{parentName:"tr",align:null},"\u53d6\u503c\u8303\u56f4"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"subscription_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8ba2\u9605\u6807\u8bc6")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"resource_group_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u7ec4\u6807\u8bc6")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"zone"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u53ef\u7528\u533a")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"disk_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"path"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},(0,r.yg)("inlineCode",{parentName:"td"},"^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$")),(0,r.yg)("td",{parentName:"tr",align:null},"\u5757\u8d44\u6e90\u540d\u79f0")))),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u4f53request-body"},"\u8bf7\u6c42\u4f53\uff08Request Body\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u53c2\u6570\u540d"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u5fc5\u987b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u9ed8\u8ba4\u503c"),(0,r.yg)("th",{parentName:"tr",align:null},"\u53d6\u503c\u8303\u56f4"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"display_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5757\u8d44\u6e90\u5c55\u793a\u540d\u79f0")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"description"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u5426"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"-"),(0,r.yg)("td",{parentName:"tr",align:null},"\u63cf\u8ff0\u4fe1\u606f")))),(0,r.yg)("h2",{id:"\u8bf7\u6c42\u793a\u4f8brequest-example"},"\u8bf7\u6c42\u793a\u4f8b\uff08Request Example\uff09"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-shell"},"curl --request PATCH 'https://management.sensecoreapi.dev/storage/abs/v1/subscriptions/e995c396-83f6-4a1b-a055-2acb8bc7cf1f/resourceGroups/default/zones/cn-sh-01e/disks/c6d8b27b-55b7-4ca3-992d-7f369e5076cb'\\\n -H 'authority: management.sensecoreapi.dev' \\\n -H 'accept: application/json' \\\n -H 'accept-language: zh-CN' \\\n -H 'authorization: xxxxxxxx' \\\n -d '{\"display_name\":\"\u6d4b\u8bd5\u4fee\u6539\u540d\u79f01\"}' \n")),(0,r.yg)("h2",{id:"\u54cd\u5e94\u53c2\u6570\u8fd4\u56dedisk\u4fe1\u606fresponse-parameters"},"\u54cd\u5e94\u53c2\u6570,\u8fd4\u56dedisk\u4fe1\u606f\uff08Response Parameters\uff09"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:null},"\u540d\u79f0"),(0,r.yg)("th",{parentName:"tr",align:null},"\u7c7b\u578b"),(0,r.yg)("th",{parentName:"tr",align:null},"\u63cf\u8ff0"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90ID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u540d\u79f0")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"display_name"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u522b\u540d")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"description"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u63cf\u8ff0\u4fe1\u606f")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"uid"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u5b9e\u4f8bUUID")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"resource_type"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u7c7b\u578b")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"creator_id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u521b\u5efa\u8005\u6807\u8bc6")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"owner_id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u62e5\u6709\u8005\u6807\u8bc6")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"tenant_id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u79df\u6237\u6807\u8bc6")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"zone"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u53ef\u7528\u533a")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"state"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u72b6\u6001")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"sku_id"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u4e91\u7ba1sku_id")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"tags"),(0,r.yg)("td",{parentName:"tr",align:null},"map"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u6807\u7b7emap")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"properties"),(0,r.yg)("td",{parentName:"tr",align:null},"object"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u5c5e\u6027")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"order_info"),(0,r.yg)("td",{parentName:"tr",align:null},"object"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8ba2\u5355\u4fe1\u606f")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"deleted"),(0,r.yg)("td",{parentName:"tr",align:null},"bool"),(0,r.yg)("td",{parentName:"tr",align:null},"\u662f\u5426\u5220\u9664\u8d44\u6e90")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"create_time"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u521b\u5efa\u65f6\u95f4")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:null},"update_time"),(0,r.yg)("td",{parentName:"tr",align:null},"string"),(0,r.yg)("td",{parentName:"tr",align:null},"\u8d44\u6e90\u6700\u65b0\u66f4\u65b0\u65f6\u95f4")))),(0,r.yg)("h2",{id:"\u54cd\u5e94\u793a\u4f8bresponse-example"},"\u54cd\u5e94\u793a\u4f8b\uff08Response Example\uff09"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-json"},'{\n "id": "/subscriptions/e995c396-83f6-4a1b-a055-2acb8bc7cf1f/resourceGroups/default/zones/cn-sh-01e/disks/c6d8b27b-55b7-4ca3-992d-7f369e5076cb",\n "name": "c6d8b27b-55b7-4ca3-992d-7f369e5076cb",\n "display_name": "\u6d4b\u8bd5\u4fee\u6539\u540d\u79f01",\n "description": "",\n "uid": "2330e95e-6681-11ef-9e0a-523e95af74a9",\n "resource_type": "storage.abs.v1.disk",\n "creator_id": "57463cd8-3ee9-4bf4-b139-8890fd26c914",\n "owner_id": "57463cd8-3ee9-4bf4-b139-8890fd26c914",\n "tenant_id": "e995c396-83f6-4a1b-a055-2acb8bc7cf1f",\n "zone": "cn-sh-01e",\n "state": "INUSE",\n "sku_id": "3583abdc-f096-4b82-a0ff-15a13a7b5c1c",\n "tags": {},\n "properties": {\n "resources": {\n "billing_items": {\n "capacity": 20,\n "capacity_unit": "GB"\n },\n "disk_type": "CLOUDSSD",\n "system_disk": false,\n "ecs_lifecycle": false,\n "snapshot_id": "",\n "image_id": ""\n }\n },\n "order_info": {\n "billing_cycle_number": 1,\n "auto_renew": false,\n "currency_code": "CNY",\n "payment_channel": "PC_UNSPECIFIED",\n "note": "",\n "order_type": "OT_ORIGINAL",\n "order_id": "141c2091410124043829248",\n "start_time": "2024-08-30T03:37:09Z",\n "payment_model": "PM_PREPAID",\n "billing_model": "BM_MONTHLY",\n "original_id": "",\n "end_time": "2024-09-30T15:59:59Z",\n "auto_convert_postpaid": false\n },\n "deleted": false,\n "create_time": "2024-08-30T03:37:54.844913Z",\n "update_time": "2024-09-01T11:30:34.968929Z"\n}\n\n')))}c.isMDXComponent=!0}}]);