| 1 | package OpenStack::MetaAPI::API::Specs::Compute::v2_0; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Moo; | ||
| 7 | |||
| 8 | with 'OpenStack::MetaAPI::API::Specs::Roles::Service'; | ||
| 9 | |||
| 10 | 1; | ||
| 11 | |||
| 12 | # | ||
| 13 | # API specs: incomplete need to be continued | ||
| 14 | # url: | ||
| 15 | # https://developer.openstack.org/api-ref/network/v2/index.html?expanded=list-ports-detail#ports | ||
| 16 | # | ||
| 17 | |||
| 18 | =pod | ||
| 19 | |||
| 20 | =encoding UTF-8 | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | OpenStack::MetaAPI::API::Specs::Compute::v2_0 | ||
| 25 | |||
| 26 | =head1 VERSION | ||
| 27 | |||
| 28 | version 0.002 | ||
| 29 | |||
| 30 | =head1 AUTHOR | ||
| 31 | |||
| 32 | Nicolas R <atoomic@cpan.org> | ||
| 33 | |||
| 34 | =head1 COPYRIGHT AND LICENSE | ||
| 35 | |||
| 36 | This software is copyright (c) 2019 by cPanel, Inc. | ||
| 37 | |||
| 38 | This is free software; you can redistribute it and/or modify it under | ||
| 39 | the same terms as the Perl 5 programming language system itself. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | __DATA__ | ||
| 44 | --- | ||
| 45 | get: | ||
| 46 | /servers/{server_id}: | ||
| 47 | perl_api: | ||
| 48 | method: server_from_uid | ||
| 49 | type: getfromid | ||
| 50 | request: | ||
| 51 | path: | ||
| 52 | server_id: | ||
| 53 | required: 1 | ||
| 54 | /servers: | ||
| 55 | perl_api: | ||
| 56 | method: servers | ||
| 57 | type: listable | ||
| 58 | listable_key: 'servers' | ||
| 59 | request: | ||
| 60 | query: | ||
| 61 | host: {} | ||
| 62 | flavor: {} | ||
| 63 | hostname: {} | ||
| 64 | image: {} | ||
| 65 | ip: {} | ||
| 66 | /os-keypairs: | ||
| 67 | perl_api: | ||
| 68 | method: keypairs | ||
| 69 | type: listable | ||
| 70 | listable_key: 'keypairs' | ||
| 71 | request: | ||
| 72 | query: | ||
| 73 | user_id: {} | ||
| 74 | limit: {} | ||
| 75 | marker: {} | ||
| 76 | delete: | ||
| 77 | /server/{server_id}: | ||
| 78 | perl_api: | ||
| 79 | method: delete_server_from_uid | ||
| 80 | type: getfromid | ||
| 81 | request: | ||
| 82 | path: | ||
| 83 | server_id: | ||
| 84 | required: 1 |