ECS DEV DOC

Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
This commit is contained in:
Zaoxu, Li 2024-05-15 14:15:46 +00:00 committed by zuul
parent 483e5cc6cc
commit 57dcff6915
5 changed files with 124 additions and 27 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,21 +11,21 @@
<p id="EN-US_TOPIC_0134192987__p7658656173811">The fields following the question mark (?) are optional for viewing flavors. For details, see section <a href="https://docs.otc.t-systems.com/en-us/api/ecs/en-us_topic_0020212658.html" target="_blank" rel="noopener noreferrer">Querying Details About ECS Flavors</a>.</p> <p id="EN-US_TOPIC_0134192987__p7658656173811">The fields following the question mark (?) are optional for viewing flavors. For details, see section <a href="https://docs.otc.t-systems.com/en-us/api/ecs/en-us_topic_0020212658.html" target="_blank" rel="noopener noreferrer">Querying Details About ECS Flavors</a>.</p>
</li><li id="EN-US_TOPIC_0134192987__li15296739145115">Request example<p id="EN-US_TOPIC_0134192987__p162598164013"><a name="EN-US_TOPIC_0134192987__li15296739145115"></a><a name="li15296739145115"></a>GET: https://<em id="EN-US_TOPIC_0134192987__i183041136164014">{endpoint}</em>/v2/74610f3a5ad941998e91f076297ecf27/flavors/detail</p> </li><li id="EN-US_TOPIC_0134192987__li15296739145115">Request example<p id="EN-US_TOPIC_0134192987__p162598164013"><a name="EN-US_TOPIC_0134192987__li15296739145115"></a><a name="li15296739145115"></a>GET: https://<em id="EN-US_TOPIC_0134192987__i183041136164014">{endpoint}</em>/v2/74610f3a5ad941998e91f076297ecf27/flavors/detail</p>
<p id="EN-US_TOPIC_0134192987__p184501625164012">Obtain the endpoint from <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p> <p id="EN-US_TOPIC_0134192987__p184501625164012">Obtain the endpoint from <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">Regions and Endpoints</a>.</p>
</li><li id="EN-US_TOPIC_0134192987__li1229613917517">Response example<pre class="screen" id="EN-US_TOPIC_0134192987__screen1429693965118">{ </li><li id="EN-US_TOPIC_0134192987__li1229613917517">Response example<pre class="screen" id="EN-US_TOPIC_0134192987__screen28862509311">{
"flavors": [ "flavors": [
{ {
"name": "c1.2xlarge", "name": "c3.2xlarge.2",
"links": [ "links": [
{ {
"href": "https://<em id="EN-US_TOPIC_0134192987__i67737564135">xxx</em>/v2/74610f3a5ad941998e91f076297ecf27/flavors/c1.2xlarge", "href": "https://compute.region.xxx.com/v2.1/743b4c0428d94531b9f2add666642e6b/flavors/c3.2xlarge.2",
"rel": "self" "rel": "self"
}, },
{ {
"href": "https://<em id="EN-US_TOPIC_0134192987__i8476216101412">xxx</em>/74610f3a5ad941998e91f076297ecf27/flavors/c1.2xlarge", "href": "https://compute.region.xxx.com/743b4c0428d94531b9f2add666642e6b/flavors/c3.2xlarge.2",
"rel": "bookmark" "rel": "bookmark"
} }
], ],
"ram": 8192, "ram": 16384,
"OS-FLV-DISABLED:disabled": false, "OS-FLV-DISABLED:disabled": false,
"vcpus": 8, "vcpus": 8,
"swap": "", "swap": "",
@ -33,7 +33,7 @@
"rxtx_factor": 1, "rxtx_factor": 1,
"OS-FLV-EXT-DATA:ephemeral": 0, "OS-FLV-EXT-DATA:ephemeral": 0,
"disk": 0, "disk": 0,
"id": "c1.2xlarge" "id": "c3.2xlarge.2"
} }
] ]
}</pre> }</pre>
@ -167,7 +167,7 @@
<p id="EN-US_TOPIC_0134192987__p32811943192714">Body</p> <p id="EN-US_TOPIC_0134192987__p32811943192714">Body</p>
<pre class="screen" id="EN-US_TOPIC_0134192987__screen97711544192913">{ <pre class="screen" id="EN-US_TOPIC_0134192987__screen97711544192913">{
"server": { "server": {
"flavorRef": "c1.large", "flavorRef": "c3.2xlarge.2",
"name": "zttestvm1", "name": "zttestvm1",
"block_device_mapping_v2": [{ "block_device_mapping_v2": [{
"source_type": "image", "source_type": "image",
@ -269,10 +269,10 @@
"links": [ "links": [
{ {
"rel": "bookmark", "rel": "bookmark",
"href": "https://None/74610f3a5ad941998e91f076297ecf27/flavors/c1.large" "href": "https://None/74610f3a5ad941998e91f076297ecf27/flavors/c3.2xlarge.2"
} }
], ],
"id": "c1.large" "id": "c3.2xlarge.2"
}, },
"security_groups": [ "security_groups": [
{ {

View File

@ -8,7 +8,13 @@
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody><tr id="EN-US_TOPIC_0134883593__row19753204111410"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0134883593__p175415417148">2022-10-30</p> <tbody><tr id="EN-US_TOPIC_0134883593__row320775014370"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0134883593__p4207125043716">2024-05-13</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0134883593__p520815501377">This issue is the fourth official release.</p>
<p id="EN-US_TOPIC_0134883593__p532119416382">Updated examples in <a href="en-us_topic_0134192987.html">Creating an ECS</a>.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0134883593__row19753204111410"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0134883593__p175415417148">2022-10-30</p>
</td> </td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0134883593__p47541842147">This issue is the third official release.</p> <td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0134883593__p47541842147">This issue is the third official release.</p>
<ul id="EN-US_TOPIC_0134883593__ul184471451165911"><li id="EN-US_TOPIC_0134883593__li1330911112017">Optimized descriptions in <a href="en-us_topic_0134192984.html">Request Example</a>.</li><li id="EN-US_TOPIC_0134883593__li3447175111593">Changed the title to "Creating an ECS" in <a href="en-us_topic_0134192987.html">Creating an ECS</a>.</li></ul> <ul id="EN-US_TOPIC_0134883593__ul184471451165911"><li id="EN-US_TOPIC_0134883593__li1330911112017">Optimized descriptions in <a href="en-us_topic_0134192984.html">Request Example</a>.</li><li id="EN-US_TOPIC_0134883593__li3447175111593">Changed the title to "Creating an ECS" in <a href="en-us_topic_0134192987.html">Creating an ECS</a>.</li></ul>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 B

After

Width:  |  Height:  |  Size: 1.8 KiB