forked from docs/doc-exports
Reviewed-by: Muller, Martin <martin.muller@t-systems.com> Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
347 lines
18 KiB
HTML
347 lines
18 KiB
HTML
<a name="evs_04_2080"></a><a name="evs_04_2080"></a>
|
|
|
|
<h1 class="topictitle1">Querying Extension APIs</h1>
|
|
<div id="body1493902424366"><div class="section" id="evs_04_2080__section19390540"><h4 class="sectiontitle">Function</h4><p id="evs_04_2080__p50301879">This API is used to query extension APIs.</p>
|
|
</div>
|
|
<div class="section" id="evs_04_2080__section40297137"><h4 class="sectiontitle">URI</h4><ul id="evs_04_2080__ul47920438"><li id="evs_04_2080__li28630766">URI format<p id="evs_04_2080__p37390672"><a name="evs_04_2080__li28630766"></a><a name="li28630766"></a>GET /v2/{project_id}/extensions</p>
|
|
</li><li id="evs_04_2080__li971734">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2080__table8745607" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2080__row15985080"><th align="left" class="cellrowborder" valign="top" width="24.87%" id="mcps1.3.2.2.2.1.1.4.1.1"><p id="evs_04_2080__p19723089">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.12%" id="mcps1.3.2.2.2.1.1.4.1.2"><p id="evs_04_2080__p54066375">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.01%" id="mcps1.3.2.2.2.1.1.4.1.3"><p id="evs_04_2080__p17300225">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2080__row59140967"><td class="cellrowborder" valign="top" width="24.87%" headers="mcps1.3.2.2.2.1.1.4.1.1 "><p id="evs_04_2080__p25689059">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.12%" headers="mcps1.3.2.2.2.1.1.4.1.2 "><p id="evs_04_2080__p439002">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.01%" headers="mcps1.3.2.2.2.1.1.4.1.3 "><p id="evs_04_2080__p35559222">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2080__section27129916"><h4 class="sectiontitle">Request</h4><ul id="evs_04_2080__ul14963212101"><li id="evs_04_2080__li12496526109">Example request<pre class="screen" id="evs_04_2080__screen616211561114">GET https://{endpoint}/v2/{project_id}/extensions</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2080__section42842654"><h4 class="sectiontitle">Response</h4><ul id="evs_04_2080__ul45240216"><li id="evs_04_2080__li8787321201856">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2080__table11977025201856" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2080__row8102228201856"><th align="left" class="cellrowborder" valign="top" width="20.24%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="evs_04_2080__p52300707201856">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.62%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="evs_04_2080__p3642697315541">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.14%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="evs_04_2080__p17319263201856">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2080__row60683035201856"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="evs_04_2080__p16378828201856">extensions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="evs_04_2080__p6490369115541">list</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="evs_04_2080__p20205612201856">Specifies the extension APIs. For details, see <a href="#evs_04_2080__li35330737222812">Parameters in the extensions field</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__row18487163602815"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="evs_04_2080__p129522216412">error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="evs_04_2080__p1595262111415">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><p id="evs_04_2080__p109527215417">Specifies the error message returned when an error occurs. For details, see <a href="#evs_04_2080__li0419202382514">Parameters in the error field</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2080__li35330737222812"><a name="evs_04_2080__li35330737222812"></a><a name="li35330737222812"></a>Parameters in the <strong id="evs_04_2080__b18153565299">extensions</strong> field
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2080__table49541177222812" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2080__row31307356222812"><th align="left" class="cellrowborder" valign="top" width="20.24%" id="mcps1.3.4.2.2.2.1.4.1.1"><p id="evs_04_2080__p52867918222812">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22.62%" id="mcps1.3.4.2.2.2.1.4.1.2"><p id="evs_04_2080__p54442989222812">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.14%" id="mcps1.3.4.2.2.2.1.4.1.3"><p id="evs_04_2080__p47079504222812">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2080__row55343460222812"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2080__p66542884171033">updated</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2080__p21264523171033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2080__p172841210852">Specifies the last update time.</p>
|
|
<p id="evs_04_2080__p64318586171033"><span id="evs_04_2080__text15197123457">Time format: UTC YYYY-MM-DDTHH:MM:SS.+XX.XX</span></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__row49897554222812"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2080__p46262636171033">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2080__p56285996171033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2080__p59451065171033">Specifies the description.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__row15692876222812"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2080__p54609812171033">links</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2080__p44048737191438">list<map<String,String>></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2080__p61224008171033"><span id="evs_04_2080__text658942018365">The reserved field.</span></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__row23073040222812"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2080__p19600405171033">alias</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2080__p44128957171033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2080__p22448926171033">Specifies the extension parameter alias.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__row52652485222812"><td class="cellrowborder" valign="top" width="20.24%" headers="mcps1.3.4.2.2.2.1.4.1.1 "><p id="evs_04_2080__p57813479171033">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22.62%" headers="mcps1.3.4.2.2.2.1.4.1.2 "><p id="evs_04_2080__p52380208171033">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.14%" headers="mcps1.3.4.2.2.2.1.4.1.3 "><p id="evs_04_2080__p2055232171033">Specifies the extension parameter name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2080__li0419202382514"><a name="evs_04_2080__li0419202382514"></a><a name="li0419202382514"></a>Parameters in the <strong id="evs_04_2080__evs_04_2013_b1288034833610">error</strong> field
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="evs_04_2080__evs_04_2013_table15441099103019" frame="border" border="1" rules="all"><thead align="left"><tr id="evs_04_2080__evs_04_2013_row54094047103019"><th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.3.2.1.4.1.1"><p id="evs_04_2080__evs_04_2013_p19541716103019">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.17788221177882%" id="mcps1.3.4.2.3.2.1.4.1.2"><p id="evs_04_2080__evs_04_2013_p39375186103019">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="57.64423557644236%" id="mcps1.3.4.2.3.2.1.4.1.3"><p id="evs_04_2080__evs_04_2013_p38578950103019">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="evs_04_2080__evs_04_2013_row59401790103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.3.2.1.4.1.1 "><p id="evs_04_2080__evs_04_2013_p46815658103019">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.3.2.1.4.1.2 "><p id="evs_04_2080__evs_04_2013_p33971979103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.3.2.1.4.1.3 "><p id="evs_04_2080__evs_04_2013_p21623243103019">The error message returned if an error occurs.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="evs_04_2080__evs_04_2013_row60391466103019"><td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.3.2.1.4.1.1 "><p id="evs_04_2080__evs_04_2013_p59870541103019">code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.17788221177882%" headers="mcps1.3.4.2.3.2.1.4.1.2 "><p id="evs_04_2080__evs_04_2013_p17675690103019">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="57.64423557644236%" headers="mcps1.3.4.2.3.2.1.4.1.3 "><p id="evs_04_2080__evs_04_2013_p6087468103019">The error code returned if an error occurs.</p>
|
|
<p id="evs_04_2080__evs_04_2013_p54787218103019">For details about the error code, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="evs_04_2080__li4508766">Example response<pre class="screen" id="evs_04_2080__screen66641223163114">{
|
|
"extensions": [
|
|
{
|
|
"updated": "2013-04-18T00:00:00+00:00",
|
|
"name": "SchedulerHints",
|
|
"links": [ ],
|
|
"alias": "OS-SCH-HNT",
|
|
"description": "Pass arbitrary key/value pairs to the scheduler."
|
|
},
|
|
{
|
|
"updated": "2011-06-29T00:00:00+00:00",
|
|
"name": "Hosts",
|
|
"links": [ ],
|
|
"alias": "os-hosts",
|
|
"description": "Admin-only host administration."
|
|
},
|
|
{
|
|
"updated": "2011-11-03T00:00:00+00:00",
|
|
"name": "VolumeTenantAttribute",
|
|
"links": [ ],
|
|
"alias": "os-vol-tenant-attr",
|
|
"description": "Expose the internal project_id as an attribute of a volume."
|
|
},
|
|
{
|
|
"updated": "2011-08-08T00:00:00+00:00",
|
|
"name": "Quotas",
|
|
"links": [ ],
|
|
"alias": "os-quota-sets",
|
|
"description": "Quota management support."
|
|
},
|
|
{
|
|
"updated": "2011-08-24T00:00:00+00:00",
|
|
"name": "TypesManage",
|
|
"links": [ ],
|
|
"alias": "os-types-manage",
|
|
"description": "Types manage support."
|
|
},
|
|
{
|
|
"updated": "2013-07-10T00:00:00+00:00",
|
|
"name": "VolumeEncryptionMetadata",
|
|
"links": [ ],
|
|
"alias": "os-volume-encryption-metadata",
|
|
"description": "Volume encryption metadata retrieval support."
|
|
},
|
|
{
|
|
"updated": "2012-12-12T00:00:00+00:00",
|
|
"name": "Backups",
|
|
"links": [ ],
|
|
"alias": "backups",
|
|
"description": "Backups support."
|
|
},
|
|
{
|
|
"updated": "2013-07-16T00:00:00+00:00",
|
|
"name": "SnapshotActions",
|
|
"links": [ ],
|
|
"alias": "os-snapshot-actions",
|
|
"description": "Enable snapshot manager actions."
|
|
},
|
|
{
|
|
"updated": "2012-05-31T00:00:00+00:00",
|
|
"name": "VolumeActions",
|
|
"links": [ ],
|
|
"alias": "os-volume-actions",
|
|
"description": "Enable volume actions
|
|
"
|
|
},
|
|
{
|
|
"updated": "2013-10-03T00:00:00+00:00",
|
|
"name": "UsedLimits",
|
|
"links": [ ],
|
|
"alias": "os-used-limits",
|
|
"description": "Provide data on limited resources that are being used."
|
|
},
|
|
{
|
|
"updated": "2012-05-31T00:00:00+00:00",
|
|
"name": "VolumeUnmanage",
|
|
"links": [ ],
|
|
"alias": "os-volume-unmanage",
|
|
"description": "Enable volume unmanage operation."
|
|
},
|
|
{
|
|
"updated": "2011-11-03T00:00:00+00:00",
|
|
"name": "VolumeHostAttribute",
|
|
"links": [ ],
|
|
"alias": "os-vol-host-attr",
|
|
"description": "Expose host as an attribute of a volume."
|
|
},
|
|
{
|
|
"updated": "2013-07-01T00:00:00+00:00",
|
|
"name": "VolumeTypeEncryption",
|
|
"links": [ ],
|
|
"alias": "encryption",
|
|
"description": "Encryption support for volume types."
|
|
},
|
|
{
|
|
"updated": "2013-06-27T00:00:00+00:00",
|
|
"name": "AvailabilityZones",
|
|
"links": [ ],
|
|
"alias": "os-availability-zone",
|
|
"description": "Describe Availability Zones."
|
|
},
|
|
{
|
|
"updated": "2013-08-02T00:00:00+00:00",
|
|
"name": "Qos_specs_manage",
|
|
"links": [ ],
|
|
"alias": "qos-specs",
|
|
"description": "QoS specs support."
|
|
},
|
|
{
|
|
"updated": "2011-08-24T00:00:00+00:00",
|
|
"name": "TypesExtraSpecs",
|
|
"links": [ ],
|
|
"alias": "os-types-extra-specs",
|
|
"description": "Type extra specs support."
|
|
},
|
|
{
|
|
"updated": "2013-08-08T00:00:00+00:00",
|
|
"name": "VolumeMigStatusAttribute",
|
|
"links": [ ],
|
|
"alias": "os-vol-mig-status-attr",
|
|
"description": "Expose migration_status as an attribute of a volume."
|
|
},
|
|
{
|
|
"updated": "2012-08-13T00:00:00+00:00",
|
|
"name": "CreateVolumeExtension",
|
|
"links": [ ],
|
|
"alias": "os-image-create",
|
|
"description": "Allow creating a volume from an image in the Create Volume v1 API."
|
|
},
|
|
{
|
|
"updated": "2014-01-10T00:00:00-00:00",
|
|
"name": "ExtendedServices",
|
|
"links": [ ],
|
|
"alias": "os-extended-services",
|
|
"description": "Extended services support."
|
|
},
|
|
{
|
|
"updated": "2012-06-19T00:00:00+00:00",
|
|
"name": "ExtendedSnapshotAttributes",
|
|
"links": [ ],
|
|
"alias": "os-extended-snapshot-attributes",
|
|
"description": "Extended SnapshotAttributes support."
|
|
},
|
|
{
|
|
"updated": "2012-12-07T00:00:00+00:00",
|
|
"name": "VolumeImageMetadata",
|
|
"links": [ ],
|
|
"alias": "os-vol-image-meta",
|
|
"description": "Show image metadata associated with the volume."
|
|
},
|
|
{
|
|
"updated": "2012-03-12T00:00:00+00:00",
|
|
"name": "QuotaClasses",
|
|
"links": [ ],
|
|
"alias": "os-quota-class-sets",
|
|
"description": "Quota classes management support."
|
|
},
|
|
{
|
|
"updated": "2013-05-29T00:00:00+00:00",
|
|
"name": "VolumeTransfer",
|
|
"links": [ ],
|
|
"alias": "os-volume-transfer",
|
|
"description": "Volume transfer management support."
|
|
},
|
|
{
|
|
"updated": "2014-02-10T00:00:00+00:00",
|
|
"name": "VolumeManage",
|
|
"links": [ ],
|
|
"alias": "os-volume-manage",
|
|
"description": "Allows existing backend storage to be 'managed' by Cinder."
|
|
},
|
|
{
|
|
"updated": "2012-08-25T00:00:00+00:00",
|
|
"name": "AdminActions",
|
|
"links": [ ],
|
|
"alias": "os-admin-actions",
|
|
"description": "Enable admin actions."
|
|
},
|
|
{
|
|
"updated": "2012-10-28T00:00:00-00:00",
|
|
"name": "Services",
|
|
"links": [ ],
|
|
"alias": "os-services",
|
|
"description": "Services support."
|
|
}
|
|
]
|
|
}</pre>
|
|
<p id="evs_04_2080__p11712787121252">or</p>
|
|
<pre class="screen" id="evs_04_2080__screen12414516151529">{
|
|
"error": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
<p id="evs_04_2080__p9211706121252">In the preceding example, <strong id="evs_04_2080__b842352706143959">error</strong> indicates a general error, for example, <strong id="evs_04_2080__b842352706144438">badRequest</strong> or <strong id="evs_04_2080__b842352706144454">itemNotFound</strong>. An example is provided as follows:</p>
|
|
<pre class="screen" id="evs_04_2080__screen14928136151550">{
|
|
"badRequest": {
|
|
"message": "XXXX",
|
|
"code": "XXX"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2080__section50039568"><h4 class="sectiontitle">Status Codes</h4><ul id="evs_04_2080__ul5136981"><li id="evs_04_2080__li46232835">Normal<p id="evs_04_2080__p13442339"><a name="evs_04_2080__li46232835"></a><a name="li46232835"></a>200</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="evs_04_2080__section431317151242"><h4 class="sectiontitle">Error Codes</h4><p id="evs_04_2080__evs_04_2013_p783819215242">For details, see <a href="evs_04_0038.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="evs_04_2064.html">Disk Management</a></div>
|
|
</div>
|
|
</div>
|
|
|